The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: dani | August 17, 2010 @ 2:11pm
PHP Code
[
Download
]
///////////////////////////// CLEAN URL!!!/////////////////////////////////////////////* $Get['uri'] = htmlspecialchars(trim($_SERVER['REQUEST_URI'])); $Get['url'] = htmlspecialchars(trim($_SERVER['SERVER_NAME'])); $_GET['p'] = $_GET['p']; $Get['page'] = $Get['uri']; $pagename = explode("/" , $Get['page']); array_shift($pagename); $Get['pageCato'] = trim($pagename[0]); //aan deze 0 heb ik lopen prutsen om juiste te krijgen voor mn page //set default page settings if ($Get['pageCato'] == "") { $Get['pageCato'] = $conf['defaultCato']; } //print $Get['pageCato']; //extract the uri information properly and make them get vars //array_shift($pagename); //array_shift($pagename); $gets = $pagename; $x=0; while (($x == (count($gets)-1)) || ($x < (count($gets)-1))) { $Get[htmlspecialchars(trim($gets[$x]))] = htmlspecialchars(trim($gets[$x+1])); if (($x+2) == (count($gets)-1)) { $x = $x + 3; } else { $x = $x + 2; } } ///////////////////////////// CLEAN URL!!!/////////////////////////////////////////////
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.51 / 8
53 Votes
http://codebin.yi.org/796
page generated in 0.01 seconds