Quote
JoiNNN wrote:
Try this:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (!isset($_GET['aid']))
{
// CODE IF NOT IN ADMINISTRATION
} else {
// CODE IF IN ADMINISTRATION
}[/syntaxhighlighter]just check the url for the correct query string.
Quote
JoiNNN wrote:
Here you go.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$url = $_SERVER['REQUEST_URI'];
if (strpos($url, '/forum/') !== false) {
echo 'CODE TO SHOW IN FORUM';
} elseif (strpos($url, '/administration/') !== false) {
echo 'CODE TO SHOW IN ADMINISTRATION';
} else {
echo 'CODE TO SHOW IN ANY OTHER PAGES';
}[/syntaxhighlighter]
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions