All pastes #769837 Raw Edit

Something

public php v1 · immutable
·published 2007-11-11 18:30 UTC
rendered paste body
<?phpif ($_SERVER['PHP_SELF'] == '/header.php' || $_SERVER['PHP_SELF'] == 'header.php') {	echo "Please go to the index to see this page in action.";} else {if			($_SERVER['PHP_SELF'] == '/home.php'								|| $_SERVER['PHP_SELF'] == 'home.php')								{ $pn = 'Home';					}elseif	($_SERVER['PHP_SELF'] == '/help.php' 								|| $_SERVER['PHP_SELF'] == 'help.php')								{ $pn = 'Help';					}elseif	($_SERVER['PHP_SELF'] == '/help/commands.php'					|| $_SERVER['PHP_SELF'] == 'help/commands.php')					{ $pn = 'Commands';				}elseif	($_SERVER['PHP_SELF'] == '/help/faq.php'							|| $_SERVER['PHP_SELF'] == 'help/faq.php')						{ $pn = 'FAQ';						}elseif	($_SERVER['PHP_SELF'] == '/help/helpdocs.php'					|| $_SERVER['PHP_SELF'] == 'help/helpdocs.php')					{ $pn = 'Help Docs';				}elseif	($_SERVER['PHP_SELF'] == '/help/usethebot.php'					|| $_SERVER['PHP_SELF'] == 'help/usethebot.php')				{ $pn = 'Use the Bot';			}elseif	($_SERVER['PHP_SELF'] == '/info.php'								|| $_SERVER['PHP_SELF'] == 'info.php')								{ $pn = 'Information';			}elseif	($_SERVER['PHP_SELF'] == '/info/about.php'						|| $_SERVER['PHP_SELF'] == 'info/about.php')						{ $pn = 'About';					}elseif	($_SERVER['PHP_SELF'] == '/info/staff.php'						|| $_SERVER['PHP_SELF'] == 'info/staff.php')						{ $pn = 'Staff';					}elseif	($_SERVER['PHP_SELF'] == '/info/credits.php'						|| $_SERVER['PHP_SELF'] == 'info/credits.php')					{ $pn = 'Credits';				}elseif	($_SERVER['PHP_SELF'] == '/info/contactus.php'					|| $_SERVER['PHP_SELF'] == 'info/contactus.php')				{ $pn = 'Contact Us';			}elseif	($_SERVER['PHP_SELF'] == '/other.php'								|| $_SERVER['PHP_SELF'] == 'other.php')							{ $pn = 'Other';					}elseif	($_SERVER['PHP_SELF'] == '/other/affiliates.php'				|| $_SERVER['PHP_SELF'] == 'other/affiliates.php')				{ $pn = 'Affiliates';			}elseif	($_SERVER['PHP_SELF'] == '/other/links.php'						|| $_SERVER['PHP_SELF'] == 'other/links.php')					{ $pn = 'Links';					}elseif	($_SERVER['PHP_SELF'] == '/databases.php'							|| $_SERVER['PHP_SELF'] == 'databases.php')						{ $pn = 'Databases';				}elseif	($_SERVER['PHP_SELF'] == '/databases/renderdatabase.php'		|| $_SERVER['PHP_SELF'] == 'databases/renderdatabase.php')	{ $pn = 'Render Database';		}elseif	($_SERVER['PHP_SELF'] == '/databases/clandatabase.php'		|| $_SERVER['PHP_SELF'] == 'databases/clandatabase.php')		{ $pn = 'Clan Database';		}elseif	($_SERVER['PHP_SELF'] == '/databases/statsignatures.php'		|| $_SERVER['PHP_SELF'] == 'databases/statsignatures.php')	{ $pn = 'Stat Signatures';		}else																																										{ $pn = 'Invalid Header';		}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ><head><title>TerrorIRC - <?php echo $pn; ?></title><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><link rel="stylesheet" type="text/css" href="http://zachera.no-ip.org/terror/style.css" media="screen"></head><body><div id="wrapper"><a name="top"></a><div id="header"><div id="pagedescription"><h1>Check us out!</h1><br /><h2><a href="irc://irc.facepwn.com">irc.facepwn.com</a></h2></div><div id="branding"><p><span class="templogo">TerrorIRC</span><br />Terrorizing the World</p></div></div><div id="menu"><ul><?php if($pn == 'Home')																																									{ ?><li class="active"><a href="http://terror.stirk.org/?page=Home" title="Home">Home</a></li>								<?php } else { ?><li><a href="http://terror.stirk.org/?page=Home" title="Home">Home</a></li>								<?php } ?>&mdash;<li><a href="http://terror.stirk.org/forums/index.php" title="Forums">Forums</a></li>&mdash;<li><a href="irc://irc.facepwn.net/Terror" title="Chat">Chat</a></li>&mdash;<?php if ($pn	==	'Help'			||	$pn	==	'Commands'			||	$pn	==	'FAQ'					||	$pn	==	'Help Docs'	||	$pn	==	'Use the Bot')	{ ?><li class="active"><a href="http://terror.stirk.org/?page=Help" title="Help">Help</a></li>								<?php } else { ?><li><a href="http://terror.stirk.org/?page=Help" title="Help">Help</a></li>								<?php } ?>&mdash;<?php if ($pn	==	'Information'	||	$pn	==	'About'				||	$pn	==	'Staff'				||	$pn	==	'Credits'	||	$pn	==	'Contact Us')	{ ?><li class="active"><a href="http://terror.stirk.org/?page=Information" title="Information">Information</a></li>	<?php } else { ?><li><a href="http://terror.stirk.org/?page=Information" title="Information">Information</a></li>	<?php } ?>&mdash;<?php if ($pn	==	'Databases'		||	$pn	==	'Render Database'	||	$pn	==	'Clan Database'	||	$pn	==	'Stat Signatures')							{ ?><li class="active"><a href="http://terror.stirk.org/?page=Databases" title="Databases">Databases</a></li>			<?php } else { ?><li><a href="http://terror.stirk.org/?page=Databases" title="Databases">Databases</a></li>			<?php } ?>&mdash;<?php if ($pn	==	'Other'			||	$pn	==	'Affiliates'		||	$pn	==	'Links') 																				{ ?><li class="active"><a href="http://terror.stirk.org/?page=Other" title="Other">Other</a></li>							<?php } else { ?><li><a href="http://terror.stirk.org/?page=Other" title="Other">Other</a></li>							<?php } ?></ul></div><div id="bodytop">&nbsp;</div><div id="bodywrap"><?php } ?><div id="contentbody"><h1><?php echo $pn; ?></h1>