Unifying things
This commit is contained in:
parent
1599a338e5
commit
8f0808b9ff
22 changed files with 110 additions and 76 deletions
|
@ -38,7 +38,7 @@ class session {
|
|||
function page_begin($page = "UNDEFINED", $needlogin = TRUE){
|
||||
global $config, $db, $log, $core, $lang, $plugin, $functions;
|
||||
$plugin->run_hook('page_begin_start',array('page'=>$page,'needlogin'=>$needlogin));
|
||||
if($this->userdata['uid']==0 || !$this->userdata['uid']){
|
||||
if(!isset($this->userdata['uid']) || $this->userdata['uid']==0){
|
||||
$this->ip = $functions->get_ip();
|
||||
$this->packip = $functions->my_inet_pton($this->ip);
|
||||
$this->useragent = $_SERVER["HTTP_USER_AGENT"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue