Updated to latest version of CMS

This commit is contained in:
genuineparts 2025-06-23 20:45:15 +02:00
parent ccdf8fbb81
commit edf41b1198
76 changed files with 465 additions and 1162 deletions

View file

@ -1,8 +1,8 @@
<?php
$module["session"]["name"]="Sessionmanagement Module";
$module["session"]["ver"]="0.9.1";
$module["session"]["ver"]="0.9.2";
/**
* Project: astat - simple site engine
* Project: BeCast WebEngine - simple site engine
* File: /inc/sessions.class.php
*
* This library is free software; you can redistribute it and/or
@ -19,13 +19,13 @@ $module["session"]["ver"]="0.9.1";
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @link http://www.astat.org SVN: $URL: http://svn.astat.org/astat/trunk/inc/sessions.class.php $
* @copyright 2010 becast.at
* @link http://www.becast.at
* @copyright 2009-2025 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @package BcWe core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: sessions.class.php 129 2010-02-21 22:04:51Z genuineparts $
*/
* @version $Id$
*/
class session {
var $sid = 0;
@ -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"];