2011-06-15, 06:57:12
Carlos Wrote:You could probably get the suffix out as well (untested):(checking the file with suffix -- 'pages.php' instead of 'pages')Code:$sn=$_SERVER["SCRIPT_NAME"];
if (substr($sn,strrpos($sn,"/")+1)=="pages.php") {
// ...
}
Code:
$sn=$_SERVER["SCRIPT_NAME"];
if (substr($sn,strrpos($sn,"/")+1,-4)=="pages") {
// ...
}
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!