News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

PasteBin - 1179360070

Started by SleePy, May 17, 2007, 12:01 AM

Previous topic - Next topic

0 Members and 7 Guests are viewing this topic.

SleePy

<?phpecho '<pre><br/>';print_r($_SERVER['PATH_INFO']);// Open it up$url = explode('/', $_SERVER['PATH_INFO']);// Get ride of the junker.if($url[0] == '')
	
unset(
$url[0]);// Ok.. Split it again.foreach($url as $tempurl)
	
$urlnew[] = explode(',', $tempurl);// Finally get it out of here.foreach($urlnew as $urlout)
	
$_GET[$urlout[0]] = $urlout[1];// And get rid of the extras;unset($url, $tempurl, $urlnew, $urlout);echo 'GET Variables-->', print_r($_GET), echo '<br/>';if(isset($_GET['action']))
	
echo
'We are set<br/>';if(isset($_GET['action']) && $_GET['action'] == 'home')
	
echo
'We have it.';echo '</pre>';?>?>
No siggy! :D