[Phpslash-commit] CVS: phpslash-ft/class functions.inc,1.102,1.103
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-05-30 18:26:20
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv17862/phpslash-ft/class Modified Files: functions.inc Log Message: redirect on skin change Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** functions.inc 23 May 2002 18:41:59 -0000 1.102 --- functions.inc 30 May 2002 18:26:16 -0000 1.103 *************** *** 1007,1011 **** if( $method == "cookie") { setcookie("skin","$new_skin",time()+15552000, "/", ereg_replace("www.", "", "$SERVER_NAME")); ! // header("Location: $_PSL['phpself']"); } } elseif (@is_dir($templatedir . "/" . basename($_PSL['defaultskin']))) { --- 1007,1022 ---- if( $method == "cookie") { setcookie("skin","$new_skin",time()+15552000, "/", ereg_replace("www.", "", "$SERVER_NAME")); ! if(strstr($GLOBALS['QUERY_STRING'], "&skin=")) { ! $query_string = substr_replace ($GLOBALS['QUERY_STRING'], '', strpos($GLOBALS['QUERY_STRING'], "&skin=")); ! } elseif(strstr($GLOBALS['QUERY_STRING'], "skin=")) { ! $query_string = substr_replace ($GLOBALS['QUERY_STRING'], '', strpos($GLOBALS['QUERY_STRING'], "skin=")); ! } else { ! $query_string = ''; ! } ! $GLOBALS['QUERY_STRING'] = $query_string; ! if($query_string != '') { ! $query_string = "?" . $query_string; ! } ! header("Location: ".$_PSL[phpself].$query_string); } } elseif (@is_dir($templatedir . "/" . basename($_PSL['defaultskin']))) { |