note 62639 added to security.hiding

From: Date: Mon, 06 Mar 2006 06:05:10 +0000
Subject: note 62639 added to security.hiding
Groups: php.notes 
Request: Send a blank email to php-notes+get-104880@lists.php.net to get a copy of this message
I am use this script to hidding PHP: index.php -------------- <?php // PARSING QUERY STRING $QS=explode("&",$_SERVER['QUERY_STRING']); $QS=explode('/',$QS[0]); // IF Modul is Undefined set it to index if (!$QS[0]) $MODUL='index'; else $MODUL=strtolower($QS[0]); // WE can make a Variable $_QUERY // for alternative _GET for ($i=1;$i<count($QS);$i+=2) { $_QUERY[$NVAR]=$NVAR=$QS[$i]; $$NVAR=$QS[$i+1]; } // Check the Modul is exists? if (!file_exists("modul_directory/{$MODUL}.php")) $MODUL="index"; #### THIS IS EXAMPLE TO IMPLEMENTATION THE SCRIPT // Load The Template include("template.php"); // Load The Module include("modul_directory/{$MODUL}.php"); // Load The Footer include("footer.php"); ?> we can access the modul in URL like this: ================================= www.example.com/?forum/topic/20 - it mean load the modul forum.php, and set the _QUERY['topic']=20 www.foo.com/?voting/id/54/type/piechart&choice=2 - it mean load the modul voting.php, and set the _QUERY['id']=54 and _QUERY['type']='piechart' and set _GET['choice']=2 ---- Server IP: 66.163.161.117 Probable Submitter: 202.51.230.168 (proxied: 202.51.236.150) ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/security.hiding.php Edit -- http://master.php.net/note/edit/62639 Del: integrated -- http://master.php.net/note/delete/62639/integrated Del: useless -- http://master.php.net/note/delete/62639/useless Del: bad code -- http://master.php.net/note/delete/62639/bad+code Del: spam -- http://master.php.net/note/delete/62639/spam Del: non-english -- http://master.php.net/note/delete/62639/non-english Del: in docs -- http://master.php.net/note/delete/62639/in+docs Del: other reasons-- http://master.php.net/note/delete/62639 Reject -- http://master.php.net/note/reject/62639 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104880) next »