Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendah_sch_id / tiny_mce / plugins / ajaxfilemanager / inc / | server ip : 104.21.89.46 your ip : 172.70.130.228 H O M E |
Filename | /var/www/html/sman1baleendah_sch_id/tiny_mce/plugins/ajaxfilemanager/inc/class.sessionaction.php |
Size | 1.89 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 11-Jun-2025 21:32 |
Last modified | 11-Jun-2025 21:32 |
Last accessed | 06-Jul-2025 01:16 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
*Session Action Class
* @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
* @link www.phpletter.com
* @since 22/May/2007
*
*/
class SessionAction
{
var $actionIndex = 'ajax_file_action';
var $selectedDocIndex = 'ajax_selected_doc';
var $fromFolderIndex = 'ajax_from_folder';
function __construct()
{
if(!isset($_SESSION[$this->actionIndex]))
{
$_SESSION[$this->actionIndex] = '';
}
if(!isset($_SESSION[$this->selectedDocIndex]) || !is_array($_SESSION[$this->selectedDocIndex]))
{
$_SESSION[$this->selectedDocIndex] = array();
}
if(!isset($_SESSION[$this->fromFolderIndex]))
{
$_SESSION[$this->fromFolderIndex] = '';
}
}
function SessionAction()
{
$this->__construct();
}
/**
* count the number of selected documents
*
*/
function count()
{
return (isset($_SESSION[$this->selectedDocIndex])?sizeof($_SESSION[$this->selectedDocIndex]):0);
}
/**
* assign the selected documents
*
* @param array $selectedDocuments
*/
function set($selectedDocuments)
{
$_SESSION[$this->selectedDocIndex] = $selectedDocuments;
}
/**
* get the selected documents
* @return array
*/
function get()
{
return (isset($_SESSION[$this->selectedDocIndex])?$_SESSION[$this->selectedDocIndex]:array());
}
function setAction($action)
{
$_SESSION[$this->actionIndex] = $action;
}
/**
* get the action
*
* @return unknown
*/
function getAction()
{
return (isset($_SESSION[$this->actionIndex])?$_SESSION[$this->actionIndex]:'');
}
/**
* set the folder
*
* @param string $folder
*/
function setFolder($folder)
{
$_SESSION[$this->fromFolderIndex] = $folder;
}
/**
* get the folder
*
* @return string
*/
function getFolder()
{
return (isset($_SESSION[$this->fromFolderIndex])?$_SESSION[$this->fromFolderIndex]:'');
}
}
?>
/**
*Session Action Class
* @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
* @link www.phpletter.com
* @since 22/May/2007
*
*/
class SessionAction
{
var $actionIndex = 'ajax_file_action';
var $selectedDocIndex = 'ajax_selected_doc';
var $fromFolderIndex = 'ajax_from_folder';
function __construct()
{
if(!isset($_SESSION[$this->actionIndex]))
{
$_SESSION[$this->actionIndex] = '';
}
if(!isset($_SESSION[$this->selectedDocIndex]) || !is_array($_SESSION[$this->selectedDocIndex]))
{
$_SESSION[$this->selectedDocIndex] = array();
}
if(!isset($_SESSION[$this->fromFolderIndex]))
{
$_SESSION[$this->fromFolderIndex] = '';
}
}
function SessionAction()
{
$this->__construct();
}
/**
* count the number of selected documents
*
*/
function count()
{
return (isset($_SESSION[$this->selectedDocIndex])?sizeof($_SESSION[$this->selectedDocIndex]):0);
}
/**
* assign the selected documents
*
* @param array $selectedDocuments
*/
function set($selectedDocuments)
{
$_SESSION[$this->selectedDocIndex] = $selectedDocuments;
}
/**
* get the selected documents
* @return array
*/
function get()
{
return (isset($_SESSION[$this->selectedDocIndex])?$_SESSION[$this->selectedDocIndex]:array());
}
function setAction($action)
{
$_SESSION[$this->actionIndex] = $action;
}
/**
* get the action
*
* @return unknown
*/
function getAction()
{
return (isset($_SESSION[$this->actionIndex])?$_SESSION[$this->actionIndex]:'');
}
/**
* set the folder
*
* @param string $folder
*/
function setFolder($folder)
{
$_SESSION[$this->fromFolderIndex] = $folder;
}
/**
* get the folder
*
* @return string
*/
function getFolder()
{
return (isset($_SESSION[$this->fromFolderIndex])?$_SESSION[$this->fromFolderIndex]:'');
}
}
?>