linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file _ajax_filelist.php

Documentation is available at _ajax_filelist.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage workshop
  5.  * @author Simon Georget <simon@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. $id=$_GET['id'];
  12. $url=$_GET['rooturl'];
  13. $folder=$_GET['folder'];
  14.  
  15. include_once('../lib/functions_auth.php');
  16. include_once('../config/define.php');
  17. include_once('../lib/lib_common.php');
  18.  
  19. if(isset($_GET['upfiles'])) {
  20.   $a=explode('|'$_GET['upfiles']);
  21.   $files array();
  22.   foreach($a as $file{
  23.     $filename_parts pathinfo($file);
  24.     $filename cleanString($filename_parts['filename']).'.'.$filename_parts['extension'];
  25.     array_push($files$filename);
  26.   }
  27. }
  28.  
  29. //////////// Check Droits utilisateur ////////////
  30. if (!CookieWorkshopid($id)) ReloadIndex('public');
  31. ////////////
  32.  
  33.  
  34.  
  35.  
  36. include_once('../languages/' U_L '/lang_workshop.' CHARSET '.php');
  37. include_once('../languages/' U_L '/lang_common.' CHARSET '.php');
  38.  
  39. include_once(themePath('../workshop/display.php'));
  40.  
  41. DisplayFiles($id$url);
  42.  
  43. ////////////////////////////////////////
  44. /// Connexion SQL
  45. ///////////////////
  46. include_once('../class/system/class.'.SQL.'.php');
  47. $sql_entity=SQL;
  48. $GLOBALS['sql_object'new $sql_entity;
  49. $GLOBALS['sql_object'-> DBInitialise();
  50. $GLOBALS['sql_object'-> DBConnexion();
  51. ///////////////////
  52.  
  53. // notify users by mail
  54. notifyUsers(array('action' => 'file_alert''files' => $files'id' => $id));
  55. ?>

Documentation generated on Fri, 01 Apr 2011 09:35:19 +0200 by phpDocumentor 1.4.1