Follow us on Twitter!
Imagination is more valuable than knowledge - Albert Einstein
Monday, April 21, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 28
Guests Online: 26
Members Online: 2

Registered Members: 82858
Newest Member: alexxkim
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

css file


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-06-07 00:10
im working in a css file and im having trouble with a script being used in multiple pages which i dont want it to be in. i know i need to define a if else statement but im unsure how to do it. this is what i need.

If (((the page is equal to index.php))) then include welcome.php
else die


i need help with what goes into the parenthesis.
heres a snippit of my code.


<?php include("welcome.php"); ?>

thats the code i want to include IF the page is index.php.

Edited by on 24-06-07 00:12
Author

RE: css file


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-06-07 02:20
please explain your question in more detail...if you just want something on the index page and nothing else....just stick it on the index page lol....but if thats not what you mean pm me or soemthing


Author

RE: css file


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-06-07 02:28
well i could put it in the index i guess but im running on a cms and its hard to find where things fit with all the code. so instead i found the spot in the css and i just need a simple if/then statement to make it only show on insex. and that is what im asking. how do i do the if/then statement.
Author

RE: css file


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-06-07 20:06
ok problem fixed after hours of going through code :ninja:
Author

RE: css file

Mr_Cheese




Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
Uber Elite
Posted on 24-06-07 20:19
if($_SERVER['PHP_SELF'] == "/index.php"Wink{
include "welcome.php";
}


http://www.hellboundhackers.org/