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. ////////////////////////////////////////
  30. /// Connexion SQL
  31. ///////////////////
  32. include_once('../class/system/class.'.SQL.'.php');
  33. $sql_entity=SQL;
  34. $GLOBALS['sql_object'new $sql_entity;
  35. $GLOBALS['sql_object'-> DBInitialise();
  36. $GLOBALS['sql_object'-> DBConnexion();
  37. ///////////////////
  38.  
  39. //////////// Check Droits utilisateur ////////////
  40. if (!isWorkgroupUser($id)) ReloadIndex('public');
  41. ////////////
  42.  
  43.  
  44.  
  45.  
  46. include_once('../languages/' U_L '/lang_workshop.' CHARSET '.php');
  47. include_once('../languages/' U_L '/lang_common.' CHARSET '.php');
  48.  
  49.  // necessary includes for ajax calls
  50.   if(MOD_COMMENT == 1{
  51.   include_once('../languages/' U_L '/lang_comment.' CHARSET '.php');
  52.   include_once(themePath('../comment/'.SQL.'.inc.php'));
  53. }
  54. include_once(themePath('../workshop/display.php'));
  55.  
  56. DisplayFiles($id$url);
  57.  
  58. // notify users by mail
  59. notifyUsersMsg(array('action' => 'file_alert''files' => $files'id' => $id));
  60. ?>

Documentation generated on Thu, 03 May 2012 15:08:01 +0200 by phpDocumentor 1.4.1