Update functions.php
This commit is contained in:
+9
-1
@@ -1,8 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
function getpath()
|
||||||
|
{
|
||||||
|
$p = strpos($_SERVER['REQUEST_URI'],'?');
|
||||||
|
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
|
||||||
|
else $path = $_SERVER['REQUEST_URI'];
|
||||||
|
return spurlencode($path, '/');
|
||||||
|
}
|
||||||
|
|
||||||
function getGET()
|
function getGET()
|
||||||
{
|
{
|
||||||
$getstr = substr(urldecode($_SERVER['REQUEST_URI']), strlen(urldecode($_SERVER['REDIRECT_URL'])));
|
$getstr = substr(urldecode($_SERVER['REQUEST_URI']), strpos($_SERVER['REQUEST_URI'],'?'));
|
||||||
while (substr($getstr, 0, 1) == '/' || substr($getstr, 0, 1) == '?') $getstr = substr($getstr, 1);
|
while (substr($getstr, 0, 1) == '/' || substr($getstr, 0, 1) == '?') $getstr = substr($getstr, 1);
|
||||||
$getstrarr = explode("&",$getstr);
|
$getstrarr = explode("&",$getstr);
|
||||||
foreach ($getstrarr as $getvalues) {
|
foreach ($getstrarr as $getvalues) {
|
||||||
|
|||||||
Reference in New Issue
Block a user