}
public function getLanguage() {
- if(isset($this->Session['language']) && !empty($this->Session['language'])) {
- $language = $this->Session['language'];
+ if(isset($_SESSION['language']) && !empty($_SESSION['language'])) {
+ $language = $_SESSION['language'];
} else {
$language = $this->getModule('configuration')->getLanguage();
- $this->Session['language'] = $language;
+ $_SESSION['language'] = $language;
}
return $language;
}
public function onInit($param) {
parent::onInit($param);
- $this->Lang->SelectedValue = $this->Session['language'];
+ $this->Lang->SelectedValue = $_SESSION['language'];
$this->firstRun = !$this->getModule('configuration')->isApplicationConfig();
$this->applicationConfig = $this->getModule('configuration')->getApplicationConfig();
if($this->firstRun === false && $this->User->getIsAdmin() === false) {
}
public function setLang($sender, $param) {
- $this->Session['language'] = $sender->SelectedValue;
+ $_SESSION['language'] = $sender->SelectedValue;
$this->goToPage('ConfigurationWizard');
}
if(in_array($this->getPage()->CallBackEventTarget->ID, $allowedButtons) || $forceReload) {\r
$params = $this->getUrlParams('clients', $this->getPage()->ClientWindow->ID);\r
$clients = $this->Application->getModule('api')->get($params);\r
- $isDetailView = $this->Session['view' . $this->getPage()->ClientWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->ClientWindow->ID] == 'details';\r
$clientsList = $this->Application->getModule('misc')->objectToArray($clients->output);\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $isDetailView === false ? $clientsList : array();\r
if(in_array($this->getPage()->CallBackEventTarget->ID, $allowedButtons) || $forceReload) {\r
$params = $this->getUrlParams('jobs', $this->getPage()->JobWindow->ID);\r
$jobs = $this->Application->getModule('api')->get($params);\r
- $isDetailView = $this->Session['view' . $this->getPage()->JobWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->JobWindow->ID] == 'details';\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $isDetailView == false ? $jobs->output : array();\r
$this->Repeater->dataBind();\r
$params = $this->getUrlParams(array('jobs', 'tasks'), $this->getPage()->JobRunWindow->ID);\r
$jobTasks = $this->Application->getModule('api')->get($params)->output;\r
$jobs = $this->prepareJobs($jobTasks);\r
- $isDetailView = $this->Session['view' . $this->getPage()->JobRunWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->JobRunWindow->ID] == 'details';\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $isDetailView === false ? $jobs : array();\r
$this->Repeater->dataBind();\r
if(in_array($this->getPage()->CallBackEventTarget->ID, $allowedButtons) || $forceReload) {\r
$params = $this->getUrlParams('pools', $this->getPage()->PoolWindow->ID);\r
$pools = $this->Application->getModule('api')->get($params);\r
- $isDetailView = $this->Session['view' . $this->getPage()->PoolWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->PoolWindow->ID] == 'details';\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $isDetailView === false ? $pools->output : array();\r
$this->Repeater->dataBind();\r
const SORT_DESC = 'desc';
protected function getUrlParams($section, $id) {
- $limit = $this->Session['limit' . $id];
+ $limit = $_SESSION['limit' . $id];
if(is_numeric($limit)) {
if(is_array($section)) {
array_push($section, 'limit', $limit);
public function onInit($param) {
parent::onInit($param);
- if(empty($this->Session['view' . $this->getParent()->ID]) && empty($this->Session['limit' . $this->getParent()->ID])) {
- $this->Session['view' . $this->getParent()->ID] = self::NORMAL_VIEW;
- $this->Session['limit' . $this->getParent()->ID] = 'unlimited';
+ if(empty($_SESSION['view' . $this->getParent()->ID]) && empty($_SESSION['limit' . $this->getParent()->ID])) {
+ $_SESSION['view' . $this->getParent()->ID] = self::NORMAL_VIEW;
+ $_SESSION['limit' . $this->getParent()->ID] = 'unlimited';
}
}
parent::onLoad($param);
if(!$this->getPage()->IsPostBack) {
$this->Limit->dataSource = array_combine($this->elementsLimits, $this->elementsLimits);
- $this->Limit->SelectedValue = $this->Session['limit' . $this->getParent()->ID];
+ $this->Limit->SelectedValue = $_SESSION['limit' . $this->getParent()->ID];
$this->Limit->dataBind();
- $this->Simple->Checked = ($this->Session['view' . $this->getParent()->ID] == self::NORMAL_VIEW);
- $this->Details->Checked = ($this->Session['view' . $this->getParent()->ID] == self::DETAIL_VIEW);
+ $this->Simple->Checked = ($_SESSION['view' . $this->getParent()->ID] == self::NORMAL_VIEW);
+ $this->Details->Checked = ($_SESSION['view' . $this->getParent()->ID] == self::DETAIL_VIEW);
}
}
public function switchView($sender, $param) {
- $this->Session['view' . $this->getParent()->ID] = ($this->Simple->Checked === true) ? self::NORMAL_VIEW : self::DETAIL_VIEW;
- $this->Session['limit' . $this->getParent()->ID] = $this->Limit->SelectedValue;
+ $_SESSION['view' . $this->getParent()->ID] = ($this->Simple->Checked === true) ? self::NORMAL_VIEW : self::DETAIL_VIEW;
+ $_SESSION['limit' . $this->getParent()->ID] = $this->Limit->SelectedValue;
$this->getParent()->prepareData(true);
}
}
if(in_array($this->getPage()->CallBackEventTarget->ID, $allowedButtons) || $forceReload) {\r
$params = $this->getUrlParams('storages', $this->getPage()->StorageWindow->ID);\r
$storages = $this->Application->getModule('api')->get($params);\r
- $isDetailView = $this->Session['view' . $this->getPage()->StorageWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->StorageWindow->ID] == 'details';\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $isDetailView === false ? $storages->output : array();\r
$this->Repeater->dataBind();\r
$params = $this->getUrlParams('volumes', $this->getPage()->VolumeWindow->ID);\r
array_push($params, '?showpools=1');\r
$volumes = $this->Application->getModule('api')->get($params);\r
- $isDetailView = $this->Session['view' . $this->getPage()->VolumeWindow->ID] == 'details';\r
+ $isDetailView = $_SESSION['view' . $this->getPage()->VolumeWindow->ID] == 'details';\r
$this->RepeaterShow->Visible = !$isDetailView;\r
$this->Repeater->DataSource = $volumes->output;\r
$this->Repeater->dataBind();\r
<module id="globalization" class="TGlobalization">
<translation type="gettext" source="Application.Lang" marker="@@" autosave="true" cache="false" DefaultCulture="en" />
</module>
- <module id="Session" class="THttpSession" SessionName="SSID" CookieMode="Allow" UseCustomStorage="false" AutoStart="true" GCProbability="1" UseTransparentSessionID="true" TimeOut="3600" />
<module id="log" class="System.Util.TLogRouter">
<route class="TFileLogRoute" Categories="Execute, External, Application, General, Security" LogPath="Application.Data" LogFile="baculum.log" MaxFileSize="1000" MaxLogFiles="5" />
</module>