note 73716 deleted from security.hiding by danbrown

From: Date: Tue, 28 Dec 2010 00:41:48 +0000
Subject: note 73716 deleted from security.hiding by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175258@lists.php.net to get a copy of this message
Note Submitter: raven-3 [at] o2 [dot] pl ---- I've found that your script ahmad does not work to me. So I've modified it, maybe someone will find it useful: //default page $config['main']="main"; //checking query $QS=explode("&",$_SERVER['QUERY_STRING']); $QS=explode('/',$QS[0]); //we have to find out if main page is in Query string //if not, then use default if (!$QS[0]) $MODULE=$config['main']; else $MODULE=strtolower($QS[0]); //here everything take place //below query is converted into table. //use it like following: $_QUERY['theme'] for ($i=1;$i<count($QS);$i+=2) $_QUERY[$QS[$i]]=$QS[$i+1]; so eg link: http://xyz.com/?projects/topic/20/theme/purple means: $module="projects"; $_QUERY['topic']=20; $_QUERY['theme']="gray"; PS. I'm using PHP 4.4.2

« previous php.notes (#175258) next »