mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 68 $_SESSION['logged_info'] delete.
because $_SESSION['logged_info'] deprecated. if want use logged_info variable, can use variable in Context git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8567 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0bf52edba1
commit
dd52750715
7 changed files with 7 additions and 16 deletions
|
|
@ -257,7 +257,7 @@
|
|||
$__Context = &$GLOBALS['__Context__'];
|
||||
$__Context->tpl_path = $this->path;
|
||||
|
||||
if($_SESSION['is_logged']) $__Context->logged_info = $_SESSION['logged_info'];
|
||||
if($_SESSION['is_logged']) $__Context->logged_info = Context::get('logged_info');
|
||||
|
||||
ob_start();
|
||||
$eval_str = "?>".$this->buff;
|
||||
|
|
|
|||
|
|
@ -150,7 +150,6 @@
|
|||
if(Context::isInstalled()) return new Object(-1, 'msg_already_installed');
|
||||
// Assign a temporary administrator when installing
|
||||
$logged_info->is_admin = 'Y';
|
||||
$_SESSION['logged_info'] = $logged_info;
|
||||
Context::set('logged_info', $logged_info);
|
||||
|
||||
include $this->db_tmp_config_file;
|
||||
|
|
|
|||
|
|
@ -1435,9 +1435,9 @@
|
|||
}
|
||||
*/
|
||||
// Information stored in the session login user
|
||||
$_SESSION['logged_info'] = $this->memberInfo;
|
||||
Context::set('is_logged', true);
|
||||
Context::set('logged_info', $this->memberInfo);
|
||||
|
||||
// Only the menu configuration of the user (such as an add-on to the menu can be changed)
|
||||
$this->addMemberMenu( 'dispMemberInfo', 'cmd_view_member_info');
|
||||
$this->addMemberMenu( 'dispMemberScrappedDocument', 'cmd_view_scrapped_document');
|
||||
|
|
@ -1455,7 +1455,6 @@
|
|||
$logged_info->menu_list[$act] = Context::getLang($str);
|
||||
|
||||
Context::set('logged_info', $logged_info);
|
||||
$_SESSION['logged_info'] = $logged_info;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1701,9 +1700,6 @@
|
|||
if(!$this->memberInfo) $this->memberInfo = $oMemberModel->getMemberInfoByMemberSrl($args->member_srl);
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->member_srl == $member_srl) {
|
||||
$_SESSION['logged_info'] = $this->memberInfo;
|
||||
}
|
||||
|
||||
$output->add('member_srl', $args->member_srl);
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,6 @@
|
|||
if($_SESSION['is_logged']&&$_SESSION['ipaddress']==$_SERVER['REMOTE_ADDR']) return true;
|
||||
|
||||
$_SESSION['is_logged'] = false;
|
||||
$_SESSION['logged_info'] = '';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +129,7 @@
|
|||
function getLoggedInfo() {
|
||||
// Return session info if session info is requested and the user is logged-in
|
||||
if($this->isLogged()) {
|
||||
$logged_info = $_SESSION['logged_info'];
|
||||
$logged_info = Context::get('logged_info');
|
||||
// Admin/Group list defined depending on site_module_info
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
if($site_module_info->site_srl) {
|
||||
|
|
@ -151,8 +150,7 @@
|
|||
|
||||
$logged_info->is_site_admin = false;
|
||||
}
|
||||
|
||||
$_SESSION['logged_info'] = $logged_info;
|
||||
Context::set('logged_info', $logged_info);
|
||||
|
||||
return $logged_info;
|
||||
}
|
||||
|
|
@ -267,7 +265,7 @@
|
|||
**/
|
||||
function getLoggedUserID() {
|
||||
if(!$this->isLogged()) return;
|
||||
$logged_info = $_SESSION['logged_info'];
|
||||
$logged_info = Context::get('logged_info');
|
||||
return $logged_info->user_id;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -220,12 +220,12 @@
|
|||
<span class="button"><button type="button">{$lang->cmd_search}</button></span>
|
||||
</div>
|
||||
<div class="item" id="zone_address_list_{$val->column_name}" style="display:none">
|
||||
<select name="{$val->column_name}" id="address_list_{$val->column_name}" class="w400"></select>
|
||||
<select name="{$val->column_name}[]" id="address_list_{$val->column_name}" class="w400"></select>
|
||||
<span class="button"><button type="button">{$lang->cmd_search_again}</button></span>
|
||||
</div>
|
||||
<div class="item address2">
|
||||
<label for="krzip_address2_{$val->column_name}" class="iLabel">{$lang->msg_kr_address_etc}</label>
|
||||
<input type="text" name="{$val->column_name}" id="krzip_address2_{$val->column_name}" value="{htmlspecialchars($val->value[1])}" class="iText w400" />
|
||||
<input type="text" name="{$val->column_name}[]" id="krzip_address2_{$val->column_name}" value="{htmlspecialchars($val->value[1])}" class="iText w400" />
|
||||
</div>
|
||||
</div>
|
||||
<load target="js/krzip_search.js" type="body" />
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@
|
|||
|
||||
$__Context = &$GLOBALS['__Context__'];
|
||||
$__Context->tpl_path = $filepath;
|
||||
if($_SESSION['is_logged']) $__Context->logged_info = $_SESSION['logged_info'];
|
||||
|
||||
ob_start();
|
||||
@include($cache_file);
|
||||
|
|
|
|||
|
|
@ -167,7 +167,6 @@
|
|||
|
||||
$__Context = &$GLOBALS['__Context__'];
|
||||
$__Context->tpl_path = $filepath;
|
||||
if($_SESSION['is_logged']) $__Context->logged_info = $_SESSION['logged_info'];
|
||||
|
||||
ob_start();
|
||||
@include($cache_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue