phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/sessions/class.sessions_php.php, 1.1.1.1.2.13


From: nomail
Subject: [Phpgroupware-cvs] api/sessions/class.sessions_php.php, 1.1.1.1.2.13
Date: Fri, 9 Jul 2004 01:22:17 +0200

Update of /api/sessions
Modified Files:
        Branch: proposal-branch
          class.sessions_php.php

date: 2004/07/08 23:22:17;  author: dcech;  state: Exp;  lines: +4 -4

Log Message:
commented out settings stuff in phpgw class until seek3r commits the settings 
class
fixed some issues with xmltool and objects
fixed issue with trailing slash on basepath
=====================================================================
Index: api/sessions/class.sessions_php.php
diff -u api/sessions/class.sessions_php.php:1.1.1.1.2.12 
api/sessions/class.sessions_php.php:1.1.1.1.2.13
--- api/sessions/class.sessions_php.php:1.1.1.1.2.12    Sat May  1 00:02:01 2004
+++ api/sessions/class.sessions_php.php Thu Jul  8 23:22:17 2004
@@ -73,18 +73,18 @@
 
                        if (!empty($GLOBALS['phpgw_data']['server']['baseurl']))
                        {
-                               $this->basepath = 
$GLOBALS['phpgw_data']['server']['baseurl'];
+                               $this->basepath = 
rtrim($GLOBALS['phpgw_data']['server']['baseurl'],'/');
                                $this->baseurl = 
$this->basepath.'/index.php?sid='.$this->sid;
                        }
                        elseif 
(!empty($_SESSION['phpgw_data']['server']['baseurl']))
                        {
-                               $this->basepath = 
$_SESSION['phpgw_data']['server']['basepath'];
+                               $this->basepath = 
rtrim($_SESSION['phpgw_data']['server']['basepath'],'/');
                                $this->baseurl = 
$this->basepath.'/index.php?sid='.$this->sid;
                        }
                        else
                        {
                                //$this->baseurl = 
$GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'].'?sid='.$this->sid;
-                               $this->basepath = dirname($_SERVER['PHP_SELF']);
+                               $this->basepath = 
rtrim(dirname($_SERVER['PHP_SELF']),'/');
                                $this->baseurl = 
$this->basepath.'/index.php?sid='.$this->sid;
                        }
                        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]