[pLog-svn] r505 - plog/trunk/class/net

subaochen at devel.plogworld.net subaochen at devel.plogworld.net
Thu Dec 16 02:38:44 GMT 2004


Author: subaochen
Date: 2004-12-16 02:38:43 +0000 (Thu, 16 Dec 2004)
New Revision: 505

Modified:
   plog/trunk/class/net/baserequestgenerator.class.php
   plog/trunk/class/net/modrewriterequestgenerator.class.php
   plog/trunk/class/net/prettyrequestgenerator.class.php
   plog/trunk/class/net/rawrequestgenerator.class.php
Log:
add function to return adminLink



Modified: plog/trunk/class/net/baserequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/baserequestgenerator.class.php	2004-12-15 17:16:59 UTC (rev 504)
+++ plog/trunk/class/net/baserequestgenerator.class.php	2004-12-16 02:38:43 UTC (rev 505)
@@ -94,6 +94,14 @@
             return $url;
         }
 
+        function getAdminUrl( $useSubdomains = true )
+        {
+			
+            $url = $this->getBaseUrl( $useSubdomains )."/admin.php";
+
+            return $url;
+        }
+
         function getRssUrl( $useSubdomains = false )
         {
             $url = $this->getBaseUrl( $useSubdomains )."/rss.php";

Modified: plog/trunk/class/net/modrewriterequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/modrewriterequestgenerator.class.php	2004-12-15 17:16:59 UTC (rev 504)
+++ plog/trunk/class/net/modrewriterequestgenerator.class.php	2004-12-16 02:38:43 UTC (rev 505)
@@ -178,6 +178,18 @@
             return $link;
         }
 
+        /**
+         * Returns the url of admin interface
+         *
+         */
+        function adminLink()
+        {
+			
+			$link = $this->getAdminUrl().$this->getRequest();			
+
+            return $link;
+        }
+
         /**
          * Returns the url where the rss feed is running
          *

Modified: plog/trunk/class/net/prettyrequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/prettyrequestgenerator.class.php	2004-12-15 17:16:59 UTC (rev 504)
+++ plog/trunk/class/net/prettyrequestgenerator.class.php	2004-12-16 02:38:43 UTC (rev 505)
@@ -177,7 +177,21 @@
             return $link;
         }
 
+        
         /**
+         * Returns the url of admin interface
+         *
+         */
+        function adminLink()
+        {
+			
+			$link = $this->getAdminUrl().$this->getRequest();			
+
+            return $link;
+        }
+
+
+        /**
          * Returns the url where the rss feed is running
          *
          * @param blogInfo A BlogInfo object containing information about the blog.

Modified: plog/trunk/class/net/rawrequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/rawrequestgenerator.class.php	2004-12-15 17:16:59 UTC (rev 504)
+++ plog/trunk/class/net/rawrequestgenerator.class.php	2004-12-16 02:38:43 UTC (rev 505)
@@ -215,6 +215,17 @@
         }
 
         /**
+         * Returns the url of admin interface
+         *
+         */
+        function adminLink()
+        {
+			
+			$link = $this->getAdminUrl().$this->getRequest();			
+
+            return $link;
+        }
+        /**
          * Returns the url where the rss feed is running
          *
          * @param blogInfo A BlogInfo object containing information about the blog.




More information about the pLog-svn mailing list