phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site functions.inc.php,1.1,1.2


From: Patrick Walsh <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site functions.inc.php,1.1,1.2
Date: Wed, 11 Sep 2002 23:55:40 -0400

Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site
In directory subversions:/tmp/cvs-serv4885

Modified Files:
        functions.inc.php 
Log Message:
Added sitemgr2_link changes for dir links


Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/sitemgr-site/functions.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** functions.inc.php   1 Sep 2002 04:23:16 -0000       1.1
--- functions.inc.php   12 Sep 2002 03:55:37 -0000      1.2
***************
*** 21,24 ****
--- 21,49 ----
                }
  
+               // Change http://xyz/index.php?page_name=page1 to
+               // http://xyz/page1/ i the htaccess stuff is enabled
+               $page_name = '';
+               if (!is_array($extravars))
+               {
+                       parse_str($extravars,$extravarsnew);
+                       $extravars = $extravarsnew;
+               }
+               $page_name = $extravars['page_name'];
+ 
+               if (($url == '' || $url == '/' || $url == '/index.php') &&
+                       !$page_name == '' &&
+                       $GLOBALS['sitemgr_info']['htaccess_404']=='enabled')
+               {
+                       $url = '/'.$page_name.'/';
+                       $newextravars=array();
+                       while (list($key,$value) = each($extravars))
+                       {
+                               if ($key != 'page_name')
+                               {
+                                       $newextravars[$key]=$value;
+                               }
+                       }
+                       $extravars = $newextravars;
+               }
  
                $url = $GLOBALS['sitemgr_info']['sitemgr-site_url'] . $url;





reply via email to

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