Source for file _ajax_filelist.php
Documentation is available at _ajax_filelist.php
* @package linea21.modules
* @author Simon Georget <simon@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
include_once('../config/define.php');
// is it shared file(s) or not ?
if(strpos($folder, 'shared') === false) {
if(isset ($_GET['upfiles'])) {
$filename = cleanString($filename_parts['filename']). '.'. $filename_parts['extension'];
//////////// Check Droits utilisateur ////////////
if (!$l21auth->isWorkgroupUser($id, $sql_object)) ReloadIndex('public');
include_once('../languages/' . U_L . '/lang_workshop.' . CHARSET . '.php');
include_once('../languages/' . U_L . '/lang_common.' . CHARSET . '.php');
// necessary includes for ajax calls
include_once('../languages/' . U_L . '/lang_comment.' . CHARSET . '.php');
include_once(override('../comment/'. SQL. '.inc.php'));
include_once(override('../workshop/display.php'));
notifyUsersMsg(array('action' => 'file_alert','user' => $_SESSION['userlogin'] ,'owner' => $_SESSION['userlogin'], 'files' => $files, 'id' => $id, 'is_shared'=> $is_shared));
|