How can I make this work wit MYBB THIS_SCRIPT ?
$script = basename($_SERVER["SCRIPT_FILENAME"]);
if (($script == 'editpost.php'))
$script = basename($_SERVER["SCRIPT_FILENAME"]);
if (($script == 'editpost.php'))
MYBB THIS_SCRIPT?
|
How can I make this work wit MYBB THIS_SCRIPT ?
$script = basename($_SERVER["SCRIPT_FILENAME"]); if (($script == 'editpost.php'))
2014-09-01, 01:04 AM
Hey, I didn't quite understand your question,
THIS_SCRIPT refers to the actual page the code is being executed in, if you want to compare it to a constant, you could use :
Rasmus Lerdorf Wrote:If eval() is the answer, you're almost certainly asking the wrong question. - Rasmus Lerdorf
2014-09-01, 11:02 AM
Exactly thanks very much. I want the script run only if the page is editpost.php
|
« Next Oldest | Next Newest »
|