TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 465
  • Total: 465

[PHP] If not on 'domain.com/index.php'

Started by lebisol, October 19, 2007, 11:58:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lebisol


IchBin

if(!$context['TPortal']['is_front'] || isset($_GET['page']))
echo 'You are not on the frontpage. on the main page';


Since it checks to see if you are on the frontpage, "or" page is set in the URL this should work for the rest as well.

lebisol


This website is proudly hosted on Crocweb Cloud Website Hosting.