summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e8f201)
raw | patch | inline | side by side (parent: 1e8f201)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 07:20:34 +0000 (07:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 07:20:34 +0000 (07:20 +0000) |
Modified session assignments from
$_SESSION['...'] = ...;
to
session::set('...','...');
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8204 594d385d-05f5-0310-b6e9-bd551577e9d8
$_SESSION['...'] = ...;
to
session::set('...','...');
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8204 594d385d-05f5-0310-b6e9-bd551577e9d8
81 files changed:
diff --git a/gosa-core/include/class_MultiSelectWindow.inc b/gosa-core/include/class_MultiSelectWindow.inc
index f2be830346eab428ba3064d51f5c76ae3e72bcd6..3b8761790a12c0c217c070e6eb8239c702b16ff6 100644 (file)
}
}
}
- $_SESSION['CurrentMainBase'] = $this->selectedBase;
+ session::set('CurrentMainBase',$this->selectedBase);
if(isset($_POST['MultiSelectWindow'.$this->filterName])){
/* check for a valid base */
if(!$base){
if(!isset($_SESSION['CurrentMainBase'])){
- $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+ session::set('CurrentMainBase',$this->config->current['BASE']);
}
$base = $_SESSION['CurrentMainBase'];
}
index f5b26e32f21effdef7c567bee067226cc8355290..a9d7bc85dfd0803b1ff5012009c2a61393425faf 100644 (file)
/* Refresh users ACLs */
$ui= get_userinfo();
$ui->loadACL();
- $_SESSION['ui']= $ui;
+ session::set('ui',$ui);
}
index 3ad4fd81cd4c2a6244f15a105a2b1b3e50e4af16..0b4b92eb6aa63fb964f2ec1ec65261c75a61c775 100644 (file)
}
if (!isset($_SESSION['size_limit'])){
- $_SESSION['size_limit']= $this->current['SIZELIMIT'];
- $_SESSION['size_ignore']= $this->current['SIZEIGNORE'];
+ session::set('size_limit',$this->current['SIZELIMIT']);
+ session::set('size_ignore',$this->current['SIZEIGNORE']);
}
if ($sizelimit){
}
if (isset($this->current['INITIAL_BASE'])){
- $_SESSION['CurrentMainBase']= $this->current['INITIAL_BASE'];
+ session::set('CurrentMainBase',$this->current['INITIAL_BASE']);
}
/* Remove possibly added ',' from end of group and people ou */
index 538dc152a35d300aed29bcbb2f28c71c54d1ad5f..4293414ca1b3c563a5d6a530714407359271da88 100644 (file)
}
if((!isset($_SESSION['errorsAlreadyPosted'])) || !is_array($_SESSION['errorsAlreadyPosted'])){
- $_SESSION['errorsAlreadyPosted'] = array();
+ session::set('errorsAlreadyPosted',array());
}
if(!isset($_SESSION['errorsAlreadyPosted'][$s_title.$s_message])){
$this->a_Trace = debug_backtrace();
}
if(!isset($_SESSION['msg_dialogs'])){
- $_SESSION['msg_dialogs'] = array();
+ session::set('msg_dialogs',array());
}
if($this->i_Type == FATAL_ERROR_DIALOG){
restore_error_handler();
index fea28591a191eb8a638346544e88869678138171..b33e609e29fa9432d76d589c2661ca09ed6c9f7f 100644 (file)
function execute()
{
/* This one is empty currently. Fabian - please fill in the docu code */
- $_SESSION['current_class_for_help'] = get_class($this);
+ session::set('current_class_for_help',get_class($this));
/* Reset Lock message POST/GET check array, to prevent perg_match errors*/
- $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
+ session::set('LOCK_VARS_TO_USE',array());
+ session::set('LOCK_VARS_USED',array());
}
/*! \brief execute plugin
function multiple_execute()
{
/* This one is empty currently. Fabian - please fill in the docu code */
- $_SESSION['current_class_for_help'] = get_class($this);
+ session::set('current_class_for_help',get_class($this));
/* Reset Lock message POST/GET check array, to prevent perg_match errors*/
- $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
+ session::set('LOCK_VARS_TO_USE',array());
+ session::set('LOCK_VARS_USED',array());
return("Multiple edit is currently not implemented for this plugin.");
}
index 097c7ccdc90f2030cdd4cbc0d35b5e28ba0ff126..77015dad2290a8992a921968fd50cb3281efdf62 100644 (file)
$this->ip= $_SERVER['REMOTE_ADDR'];
/* Initialize ACL_CACHE */
- $_SESSION['ACL_CACHE']= array();
+ session::set('ACL_CACHE',array());
$this->reset_acl_cache();
}
public function reset_acl_cache()
{
/* Initialize ACL_CACHE */
- $_SESSION['ACL_CACHE']= array();
+ session::set('ACL_CACHE',array());
}
function loadACL()
index 77ccf4d134300976211759b3f7378fecfeb3ca3a..6937598f281545d9f3c4c80542e673b7c0017579 100644 (file)
$ui->loadACL();
/* TODO: check java script for htaccess authentication */
- $_SESSION['js']= true;
+ session::set('js',true);
return ($ui);
}
index d01cfbc7e36a1302620bf4b962aac0f1a5af63a6..92a350e4dab9ca386ff4aa265565073dfd72c73c 100644 (file)
}
}
}
- $_SESSION['FAI_objects_to_save'] = array();
+ session::set('FAI_objects_to_save',array());
}
diff --git a/gosa-core/include/functions_helpviewer.inc b/gosa-core/include/functions_helpviewer.inc
index 2f2e9c8142dee217999ba466d97b517eb78bfe25..1339332ac34e5591be194bd173abd7789edcb111 100644 (file)
$result['global']['maxhit'] = 0;
session::un_set('lastresults');
unset($_SESSION['parsed_search_keyword']);
- $_SESSION['parsed_search_keyword']="";
+ session::set('parsed_search_keyword',"");
error_reporting(E_ALL | E_STRICT);
}
/* Save result in Session, so we can mark words later, or go back to search, without searching again*/
- $_SESSION['lastresults'] = $result;
+ session::set('lastresults',$result);
return($result);
}
diff --git a/gosa-core/plugins/addons/godfs/class_dfsManagment.inc b/gosa-core/plugins/addons/godfs/class_dfsManagment.inc
index 4144eac58a60f742c98010ea64fa8885d6c50e7c..cb8db375fca49e28f17ab75acdb8f4df2e151943 100644 (file)
$this->dfstab = new dfstabs($this->config, $this->config->data['TABS']['DFSTABS'], $this->dn);
$this->dfstab->set_acl($this->acl);
$this->dfstab->save_object();
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
}
index 433f9be92fdf44e77ac3c545efe3d2f2f960fd1d..1bd11d47cb9d453ba142ee86e8db72f5367a6aa4 100644 (file)
$display.= $output;
# show page
- $_SESSION['dfsManagment'] = $dfsManagment;
+ session::set('dfsManagment',$dfsManagment);
}
?>
diff --git a/gosa-core/plugins/addons/gotomasses/main.inc b/gosa-core/plugins/addons/gotomasses/main.inc
index 2de0445728c7141a87b435c59487ea17a1f7c210..4e06270fea521599b5d099dfc11db0e18b147887 100644 (file)
$display= print_header(get_template_path('images/system.png'), _("System deployment")).$display;
/* Store changes in session */
- $_SESSION['gotomasses']= $gotomasses;
+ session::set('gotomasses',$gotomasses);
}
diff --git a/gosa-core/plugins/addons/ldapmanager/main.inc b/gosa-core/plugins/addons/ldapmanager/main.inc
index f2955a35ca3d46717648b77404fe1643d780cebb..87cd43179ef65360a6612ed021d5d7b44c4b08f1 100644 (file)
$display= print_header(get_template_path('images/ldif.png'), _("LDAP manager")).$display;
/* Store changes in session */
- $_SESSION['ldif']= $ldif;
+ session::set('ldif',$ldif);
}
?>
index 9ecb3161d79537089928cd9b0d00c86aff805f30..f6767de944d7ea63daeb92276cf11975f8923e50 100644 (file)
$display= print_header(get_template_path('images/logview.png'), _("System log view")).$display;
/* Store changes in session */
- $_SESSION['log_tabs']= $log_tabs;
+ session::set('log_tabs',$log_tabs);
}
?>
diff --git a/gosa-core/plugins/addons/mailqueue/main.inc b/gosa-core/plugins/addons/mailqueue/main.inc
index 37dca88c24dbf73f2dc515e6042fcff7ca862903..4962d5db63ee957f5314697624c9d8637041b254 100644 (file)
$display= print_header(get_template_path('images/mailqueue.png'), _("Mail queue")).$display;
/* Store changes in session */
- $_SESSION['mailqueue']= $mailqueue;
+ session::set('mailqueue',$mailqueue);
}
?>
diff --git a/gosa-core/plugins/addons/notifications/main.inc b/gosa-core/plugins/addons/notifications/main.inc
index 6d7245c7505708b6e50f8b328c365994a98d130b..b2e0a0339f01daa760f3ed7b9887b65b337b7a36 100644 (file)
$display= print_header(get_template_path('images/notifications.png'), _("Notifications")).$display;
/* Store changes in session */
- $_SESSION['msgplug']= $msgplug;
+ session::set('msgplug',$msgplug);
}
?>
diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc
index 7e77a07c763d9867d3a2c973c4cb359583c099be..6db90f32fb63cc137bcdaf6f8aa45e7f6483a16c 100644 (file)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^list/","/^id_/","/^list_acl_role_del/","/^list_acl_del/");
+ session::set('LOCK_VARS_TO_USE',array("/^list/","/^id_/","/^list_acl_role_del/","/^list_acl_del/"));
$smarty = get_smarty(); // Smarty instance
$s_action = ""; // Contains the action to be taken
}
/* Set ACL and move DN to the headline */
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}else{
print_red(_("You are not allowed to edit this acl."));
}
/* Check locking, save current plugin in 'back_plugin', so
the dialog knows where to return. */
if (($acl= get_lock($this->dn)) != ""){
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^list_acl_edit/","/^list_acl_del/","/^id_/");
+ session::set('LOCK_VARS_TO_USE',array("/^list_acl_edit/","/^list_acl_del/","/^id_/"));
return(gen_locked_message ($acl, $this->dn));
}
diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc
index 18bf440dc06395e02229391fde536fc0653c2370..16c7e44737d83da46fcef82d26e37af4c103cef2 100644 (file)
/* Refresh users ACLs */
$ui= get_userinfo();
$ui->loadACL();
- $_SESSION['ui']= $ui;
+ session::set('ui',$ui);
}
index 914817c8ec0858a65c7fcaa8f4800c870777d959..3383a010efa15d25d5531b890e7bbb0767f8646f 100644 (file)
}
$display.= $output;
- $_SESSION['macl']= $macl;
+ session::set('macl',$macl);
}
?>
diff --git a/gosa-core/plugins/admin/applications/class_applicationGeneric.inc b/gosa-core/plugins/admin/applications/class_applicationGeneric.inc
index 65cb8b75afb6a98be055173301e4007411de49d2..a8fb6bf243024b6802298a75ae07ad4eca1d0ab2 100644 (file)
if ($this->iconData == ""){
$this->set_picture("");
}
- $_SESSION['binary']= $this->iconData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->iconData);
+ session::set('binarytype',"image/jpeg");
$this->gosaApplicationIcon= $this->iconData;
/* This is always an account */
/* Download requested */
foreach($_POST as $name => $value){
if(preg_match("/^downloadScript/",$name)){
- $_SESSION['binary'] = $this->gotoLogonScript;
- $_SESSION['binarytype'] = "octet-stream";
- $_SESSION['binaryfile'] = $this->cn.".gosaApplication";
+ session::set('binary',$this->gotoLogonScript);
+ session::set('binarytype',"octet-stream");
+ session::set('binaryfile',$this->cn.".gosaApplication");
header("location: getbin.php ");
exit();
}
}
/* Reassign picture data, sometimes its corrupt cause we started a download of application scripts */
- $_SESSION['binary'] = $this->iconData;
- $_SESSION['binarytype'] = "image/jpeg";
+ session::set('binary',$this->iconData);
+ session::set('binarytype',"image/jpeg");
$smarty->assign("rand", rand(0, 10000));
$head = $this->generateTemplate();
if (file_exists($filename)){
$fd = fopen ($filename, "rb");
$this->iconData= fread ($fd, filesize ($filename));
- $_SESSION['binary']= $this->iconData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->iconData);
+ session::set('binarytype',"image/jpeg");
$this->gosaApplicationIcon= $this->iconData;
fclose ($fd);
diff --git a/gosa-core/plugins/admin/applications/class_applicationManagement.inc b/gosa-core/plugins/admin/applications/class_applicationManagement.inc
index 9804b330a218e86553e9315ba8524968da45465b..c7810321e3df5bcf872bf9a2d17526662be04c7d 100644 (file)
/* These vars will be stored if you try to open a locked app,
to be able to perform your last requests after showing a warning message */
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/","/^item_selected/","/^remove_multiple_applications/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/","/^item_selected/","/^remove_multiple_applications/"));
$smarty = get_smarty(); // Smarty instance
$s_action = ""; // Contains the action to proceed
/* Register apptabs to trigger edit dialog */
$this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn,"application");
$this->apptabs->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
diff --git a/gosa-core/plugins/admin/applications/main.inc b/gosa-core/plugins/admin/applications/main.inc
index 51011b31a37e88971ecfcbf2a9625d053a3f6373..9d2b4d373438d897ca98a8b6089c7dce0d06013b 100644 (file)
/* Show and save dialog */
$display.= $output;
- $_SESSION['applicationManagement']= $applicationManagement;
+ session::set('applicationManagement',$applicationManagement);
}
?>
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index 99e30816715382096b1b4a360ffbf9ccc2588095..5eef200994725951d4d1f0dc10d42c7ed6718c58 100644 (file)
Var init
***************/
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/","/^item_selected/","/^remove_multiple_departments/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/","/^item_selected/","/^remove_multiple_departments/"));
/* Reload departments */
$smarty = get_smarty();
$this->deptabs= new deptabs($this->config,$this->config->data['TABS']['DEPTABS'], $this->dn,"department");
$this->deptabs->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
/* Check locking */
if (($user= get_lock($this->dn)) != ""){
- $_SESSION['dn']= $this->dn;
+ session::set('dn',$this->dn);
return(gen_locked_message($user, $this->dn));
} else {
add_lock ($this->dn, $this->ui->dn);
diff --git a/gosa-core/plugins/admin/departments/main.inc b/gosa-core/plugins/admin/departments/main.inc
index 76d816ccb9750d1767d38f2873e96010f5c7c8f6..f0dbab6b2ca084fd40921fe86eb2322af0df5173 100644 (file)
}
$display.= $output;
- $_SESSION['department']= $department;
+ session::set('department',$department);
$config = $department->config;
}
diff --git a/gosa-core/plugins/admin/devices/class_deviceManagement.inc b/gosa-core/plugins/admin/devices/class_deviceManagement.inc
index a70644c5495fcb67f16aedd079acf6b0912c5576..d66e15c39edcc0245f314728fd5f488d3b5d4c61 100644 (file)
/* Register devicetabs to trigger edit dialog */
$this->devicetabs= new devicetabs($this->config,$this->config->data['TABS']['DEVICETABS'], $this->dn,"devices");
$this->devicetabs->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
index e56937a628d1762b5ba07a58f2822097a731da55..86769df39d992b8eb81ea753450fc64ed96041d1 100755 (executable)
/* Show and save dialog */
$display.= $output;
- $_SESSION['DeviceManagement']= $DeviceManagement;
+ session::set('DeviceManagement',$DeviceManagement);
}
?>
diff --git a/gosa-core/plugins/admin/fai/class_askClassName.inc b/gosa-core/plugins/admin/fai/class_askClassName.inc
index 54ec897fbd380a9268459ae5f32bde566815f843..64d2466954ec29eb448c0e09d45ef4617f813da1 100644 (file)
$this->objectClass = $objectClass;
plugin::plugin ($config, $dn);
if(!isset($_SESSION['CurrentMainBase'])){
- $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+ session::set('CurrentMainBase',$this->config->current['BASE']);
}
}
diff --git a/gosa-core/plugins/admin/fai/class_divListFai.inc b/gosa-core/plugins/admin/fai/class_divListFai.inc
index b15485c82dc890e3d8dd540711496e1f7d38e1c1..602283d837abc431f2ac5bbe3fdc99fe12bc774d 100644 (file)
/* Set default base */
if(!isset($_SESSION['CurrentMainBase'])){
- $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+ session::set('CurrentMainBase',$this->config->current['BASE']);
}
$this->selectedBase = $_SESSION['CurrentMainBase'];
diff --git a/gosa-core/plugins/admin/fai/class_faiHook.inc b/gosa-core/plugins/admin/fai/class_faiHook.inc
index ce60202a3a8428ca8d599923753986228012be02..d7cba42ea97cb24f7a82137ba218d4029b3dba55 100644 (file)
$this->dialog->set_acl_base($this->acl_base_for_current_object($obj['dn']));
$this->dialog->set_acl_category("fai");
- $_SESSION['objectinfo'] = $obj['dn'];
+ session::set('objectinfo',$obj['dn']);
$this->dialog->parent = &$this;
$this->is_dialog=true;
}
}
$this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
$this->dialog->acl = $this->acl;
- $_SESSION['objectinfo'] = $obj['dn'];
+ session::set('objectinfo',$obj['dn']);
$this->dialog->parent = &$this;
$this->is_dialog=true;
}
diff --git a/gosa-core/plugins/admin/fai/class_faiManagement.inc b/gosa-core/plugins/admin/fai/class_faiManagement.inc
index b0e6a92ea431c789e851ae901d4b557eaf288b8d..005a6ea273967d74a88b1f4fcc62d083ebd148d7 100644 (file)
$s_entry = "";
/* If an entry was locked, these vars will be stored in a session to allow direct edit */
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit_entry$/","/^id$/","/^entry_edit_/","/^entry_delete_/","/^item_selected/","/^remove_multiple_fai_objects/");
+ session::set('LOCK_VARS_TO_USE',array("/^edit_entry$/","/^id$/","/^entry_edit_/","/^entry_delete_/","/^item_selected/","/^remove_multiple_fai_objects/"));
/****************
#$this->dialog->set_acl(array("*none*")) ;
echo "Dawn it is freezed.";
}
- $_SESSION['objectinfo'] = $this->dn;
+ session::set('objectinfo',$this->dn);
}
****************/
if((isset($_POST['UseBranchName']))&&(($this->dispNewBranch)||($this->dispNewFreeze))){
- $_SESSION['LASTPOST'] = $_POST;
+ session::set('LASTPOST',$_POST);
if($this->dispNewBranch){
$type = "branch";
diff --git a/gosa-core/plugins/admin/fai/class_faiPackageEntry.inc b/gosa-core/plugins/admin/fai/class_faiPackageEntry.inc
index 1b22ba86966df7adf96f9765832ee18d4127468c..9474935015e46da25df3e7536d75b93dfcc88e89 100644 (file)
@@ -147,7 +147,7 @@ $CHKS = "<input type='hidden' value='chkchange' name='chkchange'><table summary=
}
}
- $_SESSION['searchStrPKG'] = $this->searchStrPKG;
+ session::set('searchStrPKG',$this->searchStrPKG);
$smarty->assign("CHKS" , $CHKS);
$smarty->assign("searchStrPKG" , $this->searchStrPKG);
$smarty->assign("faihead" , "");
diff --git a/gosa-core/plugins/admin/fai/class_faiPartitionTable.inc b/gosa-core/plugins/admin/fai/class_faiPartitionTable.inc
index 216d6c3ed1e257395fd65276e4449cc80b66d35a..e7ab5a9b053d604770e33eedd319f9c67ba2b364 100644 (file)
*/
if($this->dn != "new"){
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
if((isset($_POST['EditDisk']))&&(isset($_POST['disks']))){
/* Set object info string, which will be displayed in plugin info line */
if(isset($this->disks[$Udisk]['dn'])){
- $_SESSION['objectinfo'] = $this->disks[$Udisk]['dn'];
+ session::set('objectinfo',$this->disks[$Udisk]['dn']);
$dn = $this->disks[$Udisk]['dn'];
}else{
- $_SESSION['objectinfo'] = "";
+ session::set('objectinfo',"");
$dn = "new";
}
diff --git a/gosa-core/plugins/admin/fai/class_faiProfileEntry.inc b/gosa-core/plugins/admin/fai/class_faiProfileEntry.inc
index 1dbcad7f0bbde6974fa4fd8a76eaac7b6cad66d2..7819137a3470d7e38d03ab28b5b55f8a260bb048 100644 (file)
}
/* Save current searchfilter in session*/
- $_SESSION['SUBfaifilter']= $SUBfaifilter;
+ session::set('SUBfaifilter',$SUBfaifilter);
/* Check if we used a checkboxe from the list, to select dselect an entry */
foreach($_POST as $name => $value){
diff --git a/gosa-core/plugins/admin/fai/class_faiScript.inc b/gosa-core/plugins/admin/fai/class_faiScript.inc
index 928aa0e94a41384702d3ca74a21bc5228caf36d6..b5310e40ebffb04f13cc1ddc1ab0e48f7dcfdb52 100644 (file)
}
if($this->dn != "new"){
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
/* Handle posts */
$this->dialog->set_acl_category("fai");
/* Assign some additional dialog informations like headline and parent */
- $_SESSION['objectinfo'] = $obj['dn'];
+ session::set('objectinfo',$obj['dn']);
$this->dialog->parent = &$this;
$this->is_dialog=true;
}
diff --git a/gosa-core/plugins/admin/fai/class_faiTemplate.inc b/gosa-core/plugins/admin/fai/class_faiTemplate.inc
index 5f4fcbf14509115508ad4e98578618488d741cac..d35648a8e0c5c953a469c894a6e5943ad03c4e9c 100644 (file)
$this->dialog->set_acl_base($this->acl_base);
$this->dialog->set_acl_category("fai");
- $_SESSION['objectinfo'] = $obj['dn'];
+ session::set('objectinfo',$obj['dn']);
$this->dialog->parent = &$this;
$this->is_dialog=true;
}
}
$this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
$this->dialog->acl = $this->acl;
- $_SESSION['objectinfo'] = $obj['dn'];
+ session::set('objectinfo',$obj['dn']);
$this->dialog->parent = &$this;
$this->is_dialog=true;
}
}
if($this->dn != "new"){
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
/* Save Dialog */
diff --git a/gosa-core/plugins/admin/fai/class_faiTemplateEntry.inc b/gosa-core/plugins/admin/fai/class_faiTemplateEntry.inc
index 05c6b72acc303e30832adefe168fdf9b8cfc91b4..bef885e00fd700ea73a5894d116efcdc3cb06773 100644 (file)
$this->group = $this->user[1];
$this->user = $this->user[0];
- $_SESSION['binary'] = $this->FAItemplateFile;
- $_SESSION['binarytype'] = 'octet-stream';
+ session::set('binary',$this->FAItemplateFile);
+ session::set('binarytype','octet-stream');
$_SESSION['binaryfile'] = basename( $this->FAItemplatePath );
if(!empty($this->dn) && $this->dn != "new"){
$ldap = $this->config->get_ldap_link();
- $_SESSION['binary'] =$ldap->get_attribute($this->dn,"FAItemplateFile");
+ session::set('binary',$ldap->get_attribute($this->dn,"FAItemplateFile"));
$this->FAItemplateFile = $_SESSION['binary'];
}
$this->FAItemplatePath = $_FILES['FAItemplateFile']['name'];
}
- $_SESSION['binary'] = $this->FAItemplateFile;
- $_SESSION['binarytype'] = 'octet-stream';
+ session::set('binary',$this->FAItemplateFile);
+ session::set('binarytype','octet-stream');
$_SESSION['binaryfile'] = basename( $this->FAItemplatePath );
}
}
diff --git a/gosa-core/plugins/admin/fai/class_faiVariable.inc b/gosa-core/plugins/admin/fai/class_faiVariable.inc
index ae6b79a99fa36686b6ac0c409ae3fd66f1817e93..a3cbe09dc904083db53c7b25bd5f1ec4bc6b9ae0 100644 (file)
}
if($this->dn != "new"){
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
$this->dialog->set_acl_category("fai");
$this->dialog->set_acl_base($c_dn);
$this->dialog->parent = &$this;
- $_SESSION['objectinfo'] = $this->SubObjects[$var]['dn'];
+ session::set('objectinfo',$this->SubObjects[$var]['dn']);
$this->is_dialog=true;
}
index edf3a59e3c0b3054c577811c2ccf8095029a7501..d9ccd1069a75c1827570298c7bc994bfbf119558 100644 (file)
}
$display.= $output;
- $_SESSION['FAI']= $FAI;
+ session::set('FAI',$FAI);
}
?>
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index fb8d0148982f0c221952cb20eb2e2a554e828ef2..7ff67d26a29291468213e0d1c5a0693a453b2744 100644 (file)
plugin::execute();
/* Store these posts if the current object is locked (used by somebody else)*/
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_groups/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_groups/"));
/* Save data */
$s_action = "";
/* Register grouptab to trigger edit dialog */
$this->grouptab= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $this->dn);
$this->grouptab->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
index 2f30e04b16b24352bf30a2d8dce5d8084012f3ed..f8f82c586832b98d48c2f6f1813b61e27336ab2a 100644 (file)
}
/* Show and save dialog */
- $_SESSION['groupManagement']= $groupManagement;
+ session::set('groupManagement',$groupManagement);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
diff --git a/gosa-core/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-core/plugins/admin/mimetypes/class_mimetypeGeneric.inc
index 5d90a5ecdc3207f8fdea7711e3cd75d7f398a739..c9eac57aba94380cc6d64a353d64903c4160aaac 100644 (file)
if (file_exists($filename)){
$fd = fopen ($filename, "rb");
$this->iconData= fread ($fd, filesize ($filename));
- $_SESSION['binary']= $this->iconData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->iconData);
+ session::set('binarytype',"image/jpeg");
fclose ($fd);
}
}
/* Get picture link */
function get_picture()
{
- $_SESSION['binary']= $this->iconData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->iconData);
+ session::set('binarytype',"image/jpeg");
return("getbin.php");
}
diff --git a/gosa-core/plugins/admin/mimetypes/class_mimetypeManagement.inc b/gosa-core/plugins/admin/mimetypes/class_mimetypeManagement.inc
index b52fed080668705687ea4e01343c3c8efb44c76f..7af6280d70ceddc8439d09d2b68f9b252844ce6f 100755 (executable)
/* These vars will be stored if you try to open a locked mime,
to be able to perform your last requests after showing a warning message */
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/","/^item_selected/","/^remove_multiple_mimetypes/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/","/^item_selected/","/^remove_multiple_mimetypes/"));
$smarty = get_smarty(); // Smarty instance
$s_action = ""; // Contains the action to proceed
/* Register mimetabs to trigger edit dialog */
$this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
$this->mimetabs->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
diff --git a/gosa-core/plugins/admin/mimetypes/main.inc b/gosa-core/plugins/admin/mimetypes/main.inc
index fb64f754f1d41df28f95d661954881410e1410a2..edfe3d9b32e9d7c01fa4c2624b0de6feb3ea7cf0 100755 (executable)
/* Show and save dialog */
$display.= $output;
- $_SESSION['MimeTypeManagement']= $MimeTypeManagement;
+ session::set('MimeTypeManagement',$MimeTypeManagement);
}
?>
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
index 9bce9c372cbc3152c9a8046466f974e0f7b7807f..0c529fd122e4ae119cb73e8e8b01977d39d67118 100644 (file)
Variable intialisation && Check posts for commands
****************/
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_ogroups/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_ogroups/"));
$smarty = get_smarty();
$s_action = "";
/* Register grouptab to trigger edit dialog */
$this->ogroup= new ogrouptabs($this->config, $this->config->data['TABS']['OGROUPTABS'], $this->dn, "ogroups");
$this->ogroup->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
index 9d13b8cc0e4146a44a474203e1a483abfa26da26..701087ab9bbc811c780118ed02f19e13bc7b69f4 100644 (file)
$display.= $output;
/* Store changes in session */
- $_SESSION['ogroup']= $ogroup;
+ session::set('ogroup',$ogroup);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
diff --git a/gosa-core/plugins/admin/systems/class_systemManagement.inc b/gosa-core/plugins/admin/systems/class_systemManagement.inc
index bb986e9dc20fb27e698ed5a4ca16ac9a8b2521d9..58c0d0fc3214d8dfc735d515db13410ee835c9bf 100644 (file)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^system_edit_/i","/^system_del_/","/^act/","/^id/","/^item_selected/","/^remove_multiple_systems/");
+ session::set('LOCK_VARS_TO_USE',array("/^system_edit_/i","/^system_del_/","/^act/","/^id/","/^item_selected/","/^remove_multiple_systems/"));
/********************
Check for functional posts, edit|delete|add|... system devices
********************/
if ($s_action=="gen_cd"){
$this->dn= $this->terminals[$s_entry]['dn'];
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
return ($smarty->fetch(get_template_path('gencd.tpl', TRUE)));
}
$this->systab= new $tabclass($this->config, $this->config->data['TABS'][$class], $this->dn,$acl_cat);
$this->systab->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
add_lock ($this->dn, $this->ui->dn);
}else{
print_red (_("You can't edit this object type yet!"));
$tabacl = $ui->get_permissions($this->DivListSystem->selectedBase,$acl_cat."/".$tabname,"gotoRootPasswd");
if(preg_match("/w/",$tabacl)){
$this->dn= $this->terminals[$s_entry]['dn'];
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
return ($smarty->fetch(get_template_path('password.tpl', TRUE)));
}else{
print_red(_("You are not allowed to change the password for this object."));
diff --git a/gosa-core/plugins/admin/systems/class_workstationStartup.inc b/gosa-core/plugins/admin/systems/class_workstationStartup.inc
index 9e9a4732d027fecb581326de42e7ec6ad0e681c9..37196680193613c456c11b17cf0aac89890b50aa 100644 (file)
*/
if($this->fai_activated) {
- $_SESSION['getAvailableClassesForThisRelease_CACHE'] = array();
- $_SESSION['getAvailableClassesForThisRelease_CACHED_CLASSES'] = array();
+ session::set('getAvailableClassesForThisRelease_CACHE',array());
+ session::set('getAvailableClassesForThisRelease_CACHED_CLASSES',array());
/* Search all FAI objects */
$ldap->search("(|(objectClass=FAIpackageList)(objectClass=FAItemplate)(objectClass=FAIvariable)(objectClass=FAIscript)(objectClass=FAIhook)(objectClass=FAIprofile)(objectClass=FAIpartitionTable))",array("cn","objectClass","FAIdebianSection",'description'));
index a129e719642190ad8b27da5e23ccb3ef71a2cadf..2e6e2edc36fa62a4f7e299bec340aaeecae36139 100644 (file)
/* Show and save dialog */
$display.= $output;
- $_SESSION['systems']= $systems;
+ session::set('systems',$systems);
}
?>
diff --git a/gosa-core/plugins/admin/systems/services/glpi/class_glpiAttachmentPool.inc b/gosa-core/plugins/admin/systems/services/glpi/class_glpiAttachmentPool.inc
index b500660298b80ad14dd2502dd6a4c055b6624e63..7e5897a43f89ca345776b95866650341c1638a9b 100644 (file)
{
plugin::plugin ($config, $dn);
if(!isset($_SESSION['GlpiAttachmentFilter'])){
- $_SESSION['GlpiAttachmentFilter'] = array("filter"=>"*");
+ session::set('GlpiAttachmentFilter',array("filter"=>"*"));
}
/* Assign used attributes */
diff --git a/gosa-core/plugins/admin/systems/services/glpi/class_glpiDeviceManagement.inc b/gosa-core/plugins/admin/systems/services/glpi/class_glpiDeviceManagement.inc
index 0f24300d800375a24d1e9bf285cc3bff4c654d74..619e8015f446952527f69d96ac3610ce1fcd39f4 100644 (file)
if(!isset($_SESSION['glpiDeviceRegex'])){
$tmp['device_regex'] = "*";
- $_SESSION['glpiDeviceRegex'] = $tmp;
+ session::set('glpiDeviceRegex',$tmp);
}
$this->ui = get_userinfo();
diff --git a/gosa-core/plugins/admin/systems/services/glpi/class_glpiPrinterCartridges.inc b/gosa-core/plugins/admin/systems/services/glpi/class_glpiPrinterCartridges.inc
index 3d9d6301001a0e5dbe7b8ff89567c44aa178f7ed..68413a0646323d1efa024bfd335dc5982755d223 100644 (file)
/* Assign some basic settings */
$this->ui = get_userinfo();
if(!isset($_SESSION['glpiCartridgeRegex'])){
- $_SESSION['glpiCartridgeRegex'] = "*";
+ session::set('glpiCartridgeRegex',"*");
}
/* Only display cartridges for this type of printer */
if(empty($filter)) {
$filter = "*";
}
- $_SESSION['glpiCartridgeRegex']= $filter;
+ session::set('glpiCartridgeRegex',$filter);
/* Open dialog which allows to edit the manufacturers
*/
diff --git a/gosa-core/plugins/admin/systems/services/glpi/class_glpiSelectUser.inc b/gosa-core/plugins/admin/systems/services/glpi/class_glpiSelectUser.inc
index 7073b12a40564807837d986f706cd683fb9f518b..7b580df3161dfd3823d7f8436297a386718036da 100644 (file)
if(!isset($_SESSION['glpi_user_filter'])){
$tmp['users_regex'] = "*";
$tmp['base'] = $this->config->current['BASE'];
- $_SESSION['glpi_user_filter'] = $tmp;
+ session::set('glpi_user_filter',$tmp);
}
$this->ui = get_userinfo();
$filter['base']= ($this->config->departments[$entry]);
}
- $_SESSION['glpi_user_filter'] = $filter;
+ session::set('glpi_user_filter',$filter);
$this->reload();
diff --git a/gosa-core/plugins/admin/systems/tabs_server.inc b/gosa-core/plugins/admin/systems/tabs_server.inc
index 608a02fd1e3c5b4b543bde9f34a8ccf4488ea046..ea674e9de7f5fac96c95518eee5244e1495f04eb 100644 (file)
/* Reload server settings after saving */
$config= $_SESSION['config'];
$config->load_servers();
- $_SESSION['config']= $config;
+ session::set('config',$config);
/* Fix tagging if needed */
$baseobject->handle_object_tagging();
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index f4641b984a2791e074c751eaf4cb22cb569b4d5a..922c68ffdea7d13a7f5a4af3d8c9d0bccf0e60c8 100644 (file)
plugin::execute();
/* LOCK MESSAGE Vars */
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^user_edit_/","/^user_del_/","/^item_selected/","/^remove_multiple_users/","/^multiple_edit/","/menu_action/");
+ session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^user_edit_/","/^user_del_/","/^item_selected/","/^remove_multiple_users/","/^multiple_edit/","/menu_action/"));
$smarty = get_smarty(); // Smarty instance
$s_action = ""; // Contains the action to be taken
/* User is allowed to change passwords, save 'dn' and 'acl' for next
dialog. */
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
return ($smarty->fetch(get_template_path('password.tpl', TRUE)));
/* Set ACL and move DN to the headline */
$this->usertab->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
if($tmp->multiple_available()){
$this->usertab = $tmp;
$this->usertab->set_active_tab($s_tab);
- $_SESSION['objectinfo']= $this->usertab->get_object_info();
+ session::set('objectinfo',$this->usertab->get_object_info());
}
}
index b3a0a4251b6d2b8c489645fca2e0703ab3498896..e7dd663721a7e2fd05cc79ade7c117946e0718fd 100644 (file)
}
/* Show and save dialog */
- $_SESSION['userManagement']= $userManagement;
+ session::set('userManagement',$userManagement);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
diff --git a/gosa-core/plugins/generic/welcome/main.inc b/gosa-core/plugins/generic/welcome/main.inc
index eb0c63cd937165f3e72a62ac46f5e75b77afb615..b5205012ca5d554caf011fb4e19b50c32057c4e2 100644 (file)
*/
if (!$remove_lock){
- $_SESSION['plugin_dir']= dirname(__FILE__);
+ session::set('plugin_dir',dirname(__FILE__));
$smarty->assign("iconmenu", $plist->show_iconmenu());
$smarty->assign("header", print_header(get_template_path('images/hdd_linux_unmount.png'), sprintf(_("Welcome %s!"), $ui->cn)));
$smarty->assign("year", date("Y"));
diff --git a/gosa-core/plugins/gofax/blocklists/class_blocklistManagement.inc b/gosa-core/plugins/gofax/blocklists/class_blocklistManagement.inc
index 5b0ac1d0c4a74f9ca16c01d6dd56bd8aa82875d5..2476c807b5bca6fa038abcf682dd18739b01fd1a 100644 (file)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFaxBlocklist_/","/^act$/","/^id$/","/^remove_multiple_blocklists/","/^item_selected/");
+ session::set('LOCK_VARS_TO_USE',array("/^goFaxBlocklist_/","/^act$/","/^id$/","/^remove_multiple_blocklists/","/^item_selected/"));
/***************
Init vars
}else{
add_lock ($this->dn, $this->ui->dn);
}
- $_SESSION['objectinfo']= trim($this->dn);
+ session::set('objectinfo',trim($this->dn));
$this->dialog = new faxblocktabs($this->config,$this->config->data['TABS']['FAXBLOCKTABS'],$this->dn);
$this->dialog->set_acl_base($this->dn);
}
/* Check locking */
if (($user= get_lock($this->dn)) != ""){
- $_SESSION['dn']= $this->dn;
+ session::set('dn',$this->dn);
return(gen_locked_message($user, $this->dn));
} else {
diff --git a/gosa-core/plugins/gofax/blocklists/main.inc b/gosa-core/plugins/gofax/blocklists/main.inc
index 5951a6307bc28cf7ace1ed0eabef5d77566fe36f..74b4739bab87bdfd93e32d06b3edca3e42a1edbe 100644 (file)
}
$display.= $output;
- $_SESSION['blocklist']= $blocklist;
+ session::set('blocklist',$blocklist);
}
?>
diff --git a/gosa-core/plugins/gofax/faxaccount/main.inc b/gosa-core/plugins/gofax/faxaccount/main.inc
index aa8393cc9b2249fe830ddd92c8c943679de768d1..605e17f47d6334f005ccd43bd6ed5b9824e46339 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['gofaxAccount']= $gofaxAccount;
+ session::set('gofaxAccount',$gofaxAccount);
}
/* Show page footer depending on the mode */
diff --git a/gosa-core/plugins/gofax/faxreports/class_faxreport.inc b/gosa-core/plugins/gofax/faxreports/class_faxreport.inc
index 41e0fc47160179a046cf8865be4222448fb46e5b..53b915ee719a442aa58d0ff479d6d668e02de4af 100644 (file)
/* The user is allowed to download all fax images from those users
that are listed in $_SESSION['fuserfilter']
Don't forget to check getfax.php if you change somthing here */
- $_SESSION['fuserfilter']= $this->userfilter;
+ session::set('fuserfilter',$this->userfilter);
$smarty->assign("plug", "?plug=".validate($_GET['plug']));
$smarty->assign("detail", validate($_GET['detail']));
diff --git a/gosa-core/plugins/gofax/faxreports/main.inc b/gosa-core/plugins/gofax/faxreports/main.inc
index 61dd4cea05a975e9688b7b1171a9c6330f313ec0..b2421c97967218266b44c5e8b2d2980a26dad723 100644 (file)
$display= print_header(get_template_path('images/reports.png'), _("FAX reports")).$display;
/* Store changes in session */
- $_SESSION['faxreport']= $faxreport;
+ session::set('faxreport',$faxreport);
}
?>
diff --git a/gosa-core/plugins/gofon/conference/class_phoneConferenceManagment.inc b/gosa-core/plugins/gofon/conference/class_phoneConferenceManagment.inc
index 2f711df44f52de1bad5cdce09268195a17aac28e..65fccd9b99001380315869f562eee0bc036d5154 100644 (file)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^id$/","/^act$/","/^conference_/","/^item_selected/","/^remove_multiple_conferences/");
+ session::set('LOCK_VARS_TO_USE',array("/^id$/","/^act$/","/^conference_/","/^item_selected/","/^remove_multiple_conferences/"));
/***************
Variable initialisation
/* Check locking */
if (($conf= get_lock($this->dn)) != ""){
- $_SESSION['dn']= $this->dn;
+ session::set('dn',$this->dn);
return(gen_locked_message($conf, $this->dn));
} else {
add_lock ($this->dn, $this->ui->dn);
/* Register conftab to trigger edit dialog */
$this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn,"gofonconference");
$this->conftab->set_acl_base($this->dn);
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
diff --git a/gosa-core/plugins/gofon/conference/main.inc b/gosa-core/plugins/gofon/conference/main.inc
index 0cc2451dd9f7e594700ad20d6751ecc07e983523..b6496a4b4fe0e65f731ff587dd90608cc1f70f98 100644 (file)
/* Show and save dialog */
$conference->save_object();
$display.= $output;
- $_SESSION['conference']= $conference;
+ session::set('conference',$conference);
}
?>
diff --git a/gosa-core/plugins/gofon/fonreports/main.inc b/gosa-core/plugins/gofon/fonreports/main.inc
index 98b245346ba2a96affdc88525dca3a89609f5fbc..f6defcac495fb66b6646119ab1c21c415f9ef969 100644 (file)
$display= print_header(get_template_path('images/phonereport.png'), _("Phone reports")).$display;
/* Store changes in session */
- $_SESSION['fonreport']= $fonreport;
+ session::set('fonreport',$fonreport);
}
?>
diff --git a/gosa-core/plugins/gofon/macro/class_gofonMacroManagement.inc b/gosa-core/plugins/gofon/macro/class_gofonMacroManagement.inc
index 91738fd7e137bcdd524799f3050e73dca2796a9a..9d552be2aa5857c86a26471a62704cfee75bc354 100755 (executable)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFonMacro_/","/^act$/","/^id$/","/^item_selected/","/^remove_multiple_macros/");
+ session::set('LOCK_VARS_TO_USE',array("/^goFonMacro_/","/^act$/","/^id$/","/^item_selected/","/^remove_multiple_macros/"));
/*****************
Variable initialisation
/* Register macrotabs to trigger edit dialog */
$this->macrotabs= new macrotabs($this->config,
$this->config->data['TABS']['MACROTABS'], $this->dn,"gofonmacro");
- $_SESSION['objectinfo']= $this->dn;
+ session::set('objectinfo',$this->dn);
}
}
index 36e0d65df41a8d76ce703302518c37d6bee57976..402ca2e7c40e0fecf7743558a617ab9af14723c4 100755 (executable)
/* Show and save dialog */
$display.= $output;
- $_SESSION['macroManagment']= $macroManagment;
+ session::set('macroManagment',$macroManagment);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
diff --git a/gosa-core/plugins/gofon/phoneaccount/main.inc b/gosa-core/plugins/gofon/phoneaccount/main.inc
index 75ed8a9bcaf5c1b94f3a496cf4b054f7c59d6486..06d7f6ccf23e1aae3c6de789c5f2240fa89985f1 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
sess_del ('edit');
/* Write back to session */
- $_SESSION['phoneAccount']= $phoneAccount;
+ session::set('phoneAccount',$phoneAccount);
} else {
/* Errors found, show message */
show_errors ($message);
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['phoneAccount']= $phoneAccount;
+ session::set('phoneAccount',$phoneAccount);
}
$info= "";
diff --git a/gosa-core/plugins/personal/connectivity/main.inc b/gosa-core/plugins/personal/connectivity/main.inc
index a1684f74472fdbe154caf7ad8cedad80ea178403..16b66c13e979a71a694dd215d71278534e6ad372 100644 (file)
/* Check locking */
if ((($username= get_lock($ui->dn)) != "") && (!session::is_set('edit'))){
- $_SESSION['back_plugin']= $plug;
+ session::set('back_plugin',$plug);
gen_locked_message ($username, $ui->dn);
exit ();
}
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
/* save changes to LDAP and disable edit mode */
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['connectivity']= $connectivity;
+ session::set('connectivity',$connectivity);
}
$info= "";
diff --git a/gosa-core/plugins/personal/environment/main.inc b/gosa-core/plugins/personal/environment/main.inc
index 4cb24346f7fe1dfe91aa7f3bd31d71d7f1b61ff1..7142f96e7b894a8ff5ae76b791df75a8b9d7fbed 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['environment']= $environment;
+ session::set('environment',$environment);
}
$info= "";
diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc
index 49a732cce2e1cc1ade56f9fde15e6d24d9b59074..ff26df46fc5707feb98b13f80a5bf38d142aa37b 100644 (file)
$this->photoData= $this->old_photoData;
/* Update picture */
- $_SESSION['binary']= $this->photoData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->photoData);
+ session::set('binarytype',"image/jpeg");
$this->picture_dialog= FALSE;
$this->dialog= FALSE;
}
if(isset($this->attrs['preferredLanguage'])){
$_SESSION['ui']->language = $this->preferredLanguage;
- $_SESSION['Last_init_lang'] = "update";
+ session::set('Last_init_lang',"update");
}
$ldap->cd ($this->dn);
/* Set picture */
$this->photoData= $data;
- $_SESSION['binary']= $this->photoData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->photoData);
+ session::set('binarytype',"image/jpeg");
$this->jpegPhoto= "";
}
}
$fd = fopen ($filename, "rb");
$this->photoData= fread ($fd, filesize ($filename));
- $_SESSION['binary']= $this->photoData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->photoData);
+ session::set('binarytype',"image/jpeg");
$this->jpegPhoto= "";
fclose ($fd);
{
$str = "";
- $_SESSION['binary'] = $this->photoData;
- $_SESSION['binarytype']= "image/jpeg";
+ session::set('binary',$this->photoData);
+ session::set('binarytype',"image/jpeg");
/* Get random number for pictures */
srand((double)microtime()*1000000);
diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc
index 68c98d85c2ecd4cabe39496bbc2f820d4459f4ca..556cfe8ec10b227e2f315bcffad32c21cb97ecea 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Need to reset the password? */
if($user->password_change_needed()){
/* Save object */
- $_SESSION['user']= $user;
+ session::set('user',$user);
$display.= $smarty->fetch(get_template_path('password.tpl', TRUE));
return ($display);
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['user']= $user;
+ session::set('user',$user);
}
$info = "";
index a247e9e5a07d4f0b8eb9bad2bc4c7f7effe43f99..492639f32231980ec0b0fd77dbf94314e2b19bd6 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['mailAccount']= $mailAccount;
+ session::set('mailAccount',$mailAccount);
}
$info= "";
diff --git a/gosa-core/plugins/personal/nagios/main.inc b/gosa-core/plugins/personal/nagios/main.inc
index feb399ed17b2615525f65adc5b574398af1c5fbc..e554b0e8eda1e3ebf648338d5cd25fb96038f47d 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['nagiosAccount']= $nagiosAccount;
+ session::set('nagiosAccount',$nagiosAccount);
}
$info= "";
diff --git a/gosa-core/plugins/personal/netatalk/main.inc b/gosa-core/plugins/personal/netatalk/main.inc
index e1a62c9653389f9fc3f806f39214a0e41ad2a8b2..bb03aa91871914daf89ad8b48409c3e6a3732681 100644 (file)
/* Check locking */
if (($username = get_lock($ui->dn)) != "") {
- $_SESSION['back_plugin'] = $plug;
+ session::set('back_plugin',$plug);
gen_locked_message($username, $ui->dn);
exit ();
}
/* Lock the current entry */
add_lock($ui->dn, $ui->dn);
- $_SESSION['dn'] = $ui->dn;
- $_SESSION['edit'] = TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
/* save changes to LDAP and disable edit mode */
/* Store changes in session */
if (isset ($_SESSION['edit'])) {
- $_SESSION['netatalk'] = $netatalk;
+ session::set('netatalk',$netatalk);
}
$info = "";
diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc
index f9d5ac44a4b2cc2ef8944c17955dc2fe47f72e7c..2a4df8481964d61e4f26af68fd68d9228b5f9d51 100644 (file)
change_password ($ui->dn, $_POST['new_password']);
gosa_log ("User/password has been changed");
$ui->password= $_POST['new_password'];
- $_SESSION['ui']= $ui;
+ session::set('ui',$ui);
#$this->handle_post_events("modify",array("userPassword" => $_POST['new_password']));
return($smarty->fetch(get_template_path("changed.tpl", TRUE)));
}
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index 4eb7a33442bf87bc00be34539a7c0069ff1628ad..911718e96d5820b5345b2e30f7a18795574da211 100644 (file)
/* Department has changed? */
if(isset($_POST['depselect'])){
- $_SESSION['CurrentMainBase']= validate($_POST['depselect']);
+ session::set('CurrentMainBase',validate($_POST['depselect']));
}
if($this->multiple_support_active){
/* check sizelimit */
if (preg_match("/size limit/i", $ldap->error)){
- $_SESSION['limit_exceeded']= TRUE;
+ session::set('limit_exceeded',TRUE);
}
/* Create a list of users */
index 560bc04161b077cc5282ce503e969dc5b748441a..86d01d3b07f777da48081903c0acb1a88b577dc2 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['posixAccount']= $posixAccount;
+ session::set('posixAccount',$posixAccount);
}
/* Show page footer depending on the mode */
index 934c242379703230d8b2764cf6d27e60f2b959a4..e97e1ca7e5b0af906cf4cd14e64347316baf0c3a 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['sambaAccount']= $sambaAccount;
+ session::set('sambaAccount',$sambaAccount);
}
$info= "";
diff --git a/gosa-core/plugins/personal/scalix/main.inc b/gosa-core/plugins/personal/scalix/main.inc
index c086e8d7d520fffc76f4dfe70f0dd6e49f56e434..bb2e1fd44fbc82d90d05f362e7dcb63f71f1fe2d 100644 (file)
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
- $_SESSION['back_plugin']= $plug;
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ session::set('back_plugin',$plug);
+ session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
$lock_msg = gen_locked_message ($username, $ui->dn);
}else{
/* Lock the current entry */
add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ session::set('dn',$ui->dn);
+ session::set('edit',TRUE);
}
}
/* Store changes in session */
if (isset ($_SESSION['edit'])){
- $_SESSION['scalixAccount']= $scalixAccount;
+ session::set('scalixAccount',$scalixAccount);
}
/* Show page footer depending on the mode */
diff --git a/gosa-core/setup/class_setupStep_Language.inc b/gosa-core/setup/class_setupStep_Language.inc
index e1b5e72ab61c11b2487740b8afb5063b924d967f..ebb9c497b5dbf840ebfa0fe3b3a7a722f39fecfc 100644 (file)
$this->is_completed = TRUE;
if($this->lang_selected != ""){
- $_SESSION['lang'] = $this->lang_selected;
+ session::set('lang',$this->lang_selected);
}else{
- $_SESSION['lang'] = $this->lang;
+ session::set('lang',$this->lang);
}
}
}
index 870490a742312f87e51fc95a74d3954815474eac..3abe6ccef592c35f45b93fa526018c2da3170650 100644 (file)
--- a/gosa-core/setup/main.inc
+++ b/gosa-core/setup/main.inc
$display= $setup->execute();
/* Store changes in session */
-$_SESSION['setup']= $setup;
+session::set('setup',$setup);
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>