Changeset 5378 for lliurex-jclic-shared/trunk/fuentes/lliurex-jclic-shared.install-files/net/server-sync/share/jclic-aula/index.php
- Timestamp:
- Jun 28, 2017, 1:55:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-jclic-shared/trunk/fuentes/lliurex-jclic-shared.install-files/net/server-sync/share/jclic-aula/index.php
r4485 r5378 6 6 <link rel="stylesheet" type="text/css" href="css/lliurex.css" media="screen" /> 7 7 <title>Servidor LliureX</title> 8 <!-- i si llevem a ço per el local?-->8 <!-- i si llevem aço per el local?--> 9 9 <!--script language="JavaScript" src="http://clic.xtec.cat/dist/jclic/jclicplugin.js" type="text/javascript"></script--> 10 10 <script language="JavaScript" src="./jclic/jclicplugin.js" type="text/javascript"></script> … … 45 45 function execute(jclicpath, alert_lang, ident) 46 46 { 47 //console.log(jclicpath);47 console.log(jclicpath); 48 48 var datos = {"argumento":jclicpath}; 49 49 document.body.style.cursor = "progress"; … … 52 52 var path1 ="document.location="; 53 53 var path_base=jclicpath.match(/(.*)[\/\\]/)[1]||''; 54 //console.log(path_base);54 console.log(path_base); 55 55 var filename=jclicpath.replace(/^.*(\\|\/|\:)/, ''); 56 56 path_lock="jclic_uploads/0rig_jclic/"; 57 57 path_base=path_server.concat(path_base); 58 //console.log(path_base);58 console.log(path_base); 59 59 path_lock=path_server.concat(path_lock); 60 60 path_lock=path_lock.concat(filename); 61 61 path_lock=path_lock.concat(".lock"); 62 //console.log(path_lock);62 console.log(path_lock); 63 63 var result=doesFileExist(path_lock); 64 //console.log(result);64 console.log(result); 65 65 if (result == true){ 66 66 alert(alert_lang); … … 294 294 function replaceAccents($str) { 295 295 296 $search = explode(",","ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,ø,Ø,Å,Á,À,Â,Ä,È,É,Ê,Ë,Í,Î,Ï,Ì,Ò,Ó,Ô,Ö,Ú,Ù,Û,Ü,Ÿ,Ç,Æ,Œ"); 296 $search = explode(",","ç,æ,Å,á,é,Ã,ó,ú,à ,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,Ã¥,ø,Ã,à 297 ,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ã,Ÿ,Ã,Ã,Å"); 297 298 298 299 $replace = explode(",","c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,o,O,A,A,A,A,A,E,E,E,E,I,I,I,I,O,O,O,O,U,U,U,U,Y,C,AE,OE"); … … 310 311 $temp_array+=array($library=>array($file_name=>array('id'=>$id, 'title'=> $title))); 311 312 } 312 //echo "se a ñadieron cosas";313 //echo "se añadieron cosas"; 313 314 return $temp_array; 314 315 } … … 390 391 } else{ 391 392 //echo "JCLIC"; 392 //Debemos transformarlo en HTML5 con el python crado cuando se haga click sobre él393 //Debemos transformarlo en HTML5 con el python crado cuando se haga click sobre él 393 394 /*if ( strcasecmp( $resource, 'menu' ) == 0){ 394 395 $resource="menu_llx"; … … 451 452 452 453 $rscfound=0; // Resources found 453 454 //var_dump($jclicdirectory); 454 455 $jclicconten = opendir($jclicdirectory); 455 456 //print_r ($activities_orig); … … 474 475 // Search .html 475 476 $resource=""; 476 foreach($lista as $item) 477 // echo "$item\n";477 foreach($lista as $item){ 478 //var_dump($item); 478 479 if(($item=="index.html") && (strstr($jclicdirectory,'jclic_upload'))){ 479 480 $resource=$item; 481 //echo "2222222222222"; 480 482 break; } 481 483 } 484 485 //var_dump($resource); 482 486 if (($resource!="") && (strstr($jclicdirectory,'jclic_upload'))){ // Found .html 483 487 // Button for resource … … 494 498 495 499 if($resource!=""){ // Found jclic.jclic 496 //Button for jclic.jclic 500 //Button for jclic.jclic; 497 501 list ($title2, $temp_array)=CreateButton($jclicdirectory, $resource, "jclic",$locale ,$activities_orig, $library, $temp_array); 498 502 $activities[] = trim($title2); … … 513 517 514 518 foreach($lista as $item){ 519 //var_dump($item); 515 520 if(strpos($item, '.jclic')){ 516 521 //echo "FOUND JCLIC LISTS!!!!!"; 517 //echo " AQUIIIIIIIIIIIIIIIIIIIIIII";522 //echo "$resource"; 518 523 //$resource=substr($item, 0, -4); 519 524 if ($item!=""){ … … 522 527 $activities[] = trim($title2); 523 528 //echo "$title2"; 529 //echo "1111111111111111"; 524 530 // Increasing number of elements 525 531 $rscfound++; … … 531 537 if(is_dir($itemdir) && (strstr($jclicdirectory,'jclic_upload'))){ 532 538 $index_file="$jclicdirectory/$item/index.html"; 533 if(is_file($index_file)){ 534 if ($item!=""){ 535 // Button for .jclic.zip 536 list ($title2, $temp_array)=CreateButton($jclicdirectory, $item, "html",$locale, $activities_orig, $library, $temp_array); 537 $activities[] = trim($title2); 538 // Increasing number of elements 539 $rscfound++; 539 if (!strstr($itemdir,'0rig')){ 540 if(is_file($index_file)){ 541 if ($item!=""){ 542 // Button for .jclic.zip 543 list ($title2, $temp_array)=CreateButton($jclicdirectory, $item, "html",$locale, $activities_orig, $library, $temp_array); 544 $activities[] = trim($title2); 545 //echo "$title2"; 546 //echo "222222222222222"; 547 // Increasing number of elements 548 $rscfound++; 549 } 550 } else { 551 //lista directorio que no posee Index.html y lo creará 552 //echo "Crear INDEX excepto 0rig"; 553 $item_extended="$item/$item.jclic.zip"; 554 //var_dump($item_extended); 555 list ($title2, $temp_array)=CreateButton($jclicdirectory, $item_extended, "jclic",$locale ,$activities_orig, $library, $temp_array); 556 $activities[] = trim($title2); 557 $rscfound++; 540 558 } 559 //break; 541 560 } 542 //break;543 561 } 544 562 } … … 589 607 } // While 590 608 if($numrsc==0){ 591 if ($locale=="valencia") echo "<div class='rscinfo'>No hi ha recursos disponibles en esta secci ó</div>";592 else echo "<div class='rscinfo'>No hay recursos disponibles en esta secci ón</div>";609 if ($locale=="valencia") echo "<div class='rscinfo'>No hi ha recursos disponibles en esta secció</div>"; 610 else echo "<div class='rscinfo'>No hay recursos disponibles en esta sección</div>"; 593 611 } 594 612 … … 612 630 $testfile=$title . "." . $locale ; 613 631 if ( ! is_file( $testfile ) ) $txt = file_get_contents($title); 614 // en caso contrario, se muestra s ólo si tiene extension para el "locale" actual632 // en caso contrario, se muestra sólo si tiene extension para el "locale" actual 615 633 } elseif ( ereg("\.title." . $locale, $title) ) 616 634 { … … 737 755 738 756 if($numrsc==0){ 739 if ($locale=="valencia") echo "<div class='rscinfo' id='rscpersonal'>No hi ha recursos disponibles en esta secci ó</div>";740 else echo "<div class='rscinfo' id='rscpersonal'>No hay recursos disponibles en esta secci ón</div>";757 if ($locale=="valencia") echo "<div class='rscinfo' id='rscpersonal'>No hi ha recursos disponibles en esta secció</div>"; 758 else echo "<div class='rscinfo' id='rscpersonal'>No hay recursos disponibles en esta sección</div>"; 741 759 } 742 760 … … 756 774 <?php 757 775 if ($locale=="valencia") echo "Arrossega nous recursos fins aci"; 758 else echo "Arrastra nuevos recursos hasta aqu í";776 else echo "Arrastra nuevos recursos hasta aquÃ"; 759 777 ?> 760 778 </div> … … 787 805 </div> 788 806 <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div> 789 <div class="dz-success-mark"><span> ✔</span></div>790 <div class="dz-error-mark"><span> ✘</span></div>807 <div class="dz-success-mark"><span>â</span></div> 808 <div class="dz-error-mark"><span>â</span></div> 791 809 <div class="dz-error-message"><span data-dz-errormessage></span></div> 792 810 </div>
Note: See TracChangeset
for help on using the changeset viewer.