All pastes #1338490 Raw Edit

Unnamed

public php v1 · immutable
#1338490 ·published 2009-02-16 00:39 UTC
rendered paste body
<?phpsession_start();/////////////////////////////////////////////Page Load Time//////////////////////////////////////////////$starttime = microtime(true);/////////////////////////////////////////////////////////////////////////////////////////////////////////include('config.php');include('functions.php');/*if(empty($_SESSION['UID']) && $_SERVER['SCRIPT_URL'] != "/login.php"){  $_SESSION['error'] = "login";  header('Location: http://wtor.x10hosting.com/claimer/login.php');  exit;}*/?><!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" lang="en" xml:lang="en"><head><title><?php echo $page_title; ?></title><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" /><!--[if lte IE 7]><style type="text/css">html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/</style><![endif]--><!--#847197  = Purple#62b3b9  = Blue--><style type="text/css"><!--/* Main */body {	background-color:#F8F4E8;	Width: 800px;	margin:60px auto 10px auto;	font-size:12pt;	font-family:"Trebuchet MS", Verdana, Arial;}div#page {	width:95%;	margin:0 auto;	border:2px solid #DED3B9;	background-color: #DED3B9;}div#header {	background-color:#996633;	padding:10px 0px;}div#content {	margin:2px 6px;}div#nav {	font-size:10pt;	width:100%;	height:40px;	background-color:#cc9966;	background-repeat:repeat-x;	background-position:center bottom;}div#footer {	clear:both;}div#left {	width: 370px;	float: left;}div#center {	margin: 0px auto;}div#right {	margin-left: 370px;}--></style><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script><link rel="stylesheet" type="text/css" href="tw.css" /><script type="text/javascript" src="ddsmoothmenu.js">/************************************************ Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code***********************************************/</script><script type="text/javascript">function chat_win(chan, username){window.open("http://www.wtor.x10hosting.com/claimer/js_chat.php?chan="+chan+"&name="+username, "_blank", "directories=no, height=420, width=660, toolbar=no, resizable=no, menubar=no");}var countId = 0function counter(strTime) {var id = (++countId)var outPut = "<input type='text' value='"+strTime+"' id='counter_"+id+"' />"var outPut = "<span type='text' value='"+strTime+"' id='counter_"+id+"' >"+strTime+"</span>"document.writeln(outPut)if (strTime != "ERROR") countDown(id)}function countDown(id) {var timeArray = [-1,23,59,59]var timeelm = document.getElementById("counter_"+id)time = timeelm.valuevar stime = time.split(":")for (var i =stime.length-1;i>=0;i--) {var t = parseInt(stime[i].replace(/^0/,""))r = stime[i] = (--t < 0)?timeArray[i]:tif (r == timeArray[i]) continuebreak}if (parseInt(stime[0]) > 0) {timeelm.style.backgroundColor = "orange"if (parseInt(stime[1]) < 12) {timeelm.style.backgroundColor = "orangeRed"}}if (parseInt(stime[0]) > 3) {timeelm.style.backgroundColor = "lightgreen"}if (parseInt(stime[0]) > 5) {timeelm.style.backgroundColor = "green"}if (parseInt(stime[0]) == -1) {timeelm.value = "Expired"timeelm.style.backgroundColor = "red"}else {timeelm.value = stime.join(":").replace(/\b(\d)\b/g,"0$1")setTimeout("countDown("+id+")",1000)}}</script></head><body><div id="page">  <div id="header"><center><img src="images/logo2.jpg" /></center>  </div><div id="smoothmenu1" class="ddsmoothmenu"><ul><li><a href="index.php">Home</a></li><li><a href="claim.php">Claimer</a></li><li><a href="tools.php">Tools</a>  <ul>  <li><a href="calculator.php">Calculators</a>  	<ul>  	<li><a href="calculator.php?page=price">Price of Troops</a></li>  	<li><a href="calculator.php?page=distance">Distance</a></li>  	<li><a href="#">Other</a></li>  	</ul>  </li>  <li><a href="script.php">Scripts</a>    <ul>    <li><a href="script.php?page=mass_recruit">Mass Recruitment</a></li>    <li><a href="script.php?page=quick_claim">Quick Claim</a></li>    <li><a href="script.php?page=player_growth">Player Growth</a></li>    <li><a href="#">Other</a></li>    </ul>  </li>  <li><a href="calculator.php?page=bbcode">Village List into BB-codes</a></li>  <li><a href="signature.php">Signature</a></li>  <li><a href="growth.php">Player Growth</a></li>  <li><a href="sos.php">SOS Image Maker</a></li>  </ul></li><li><a href="chat.php">Chat</a>  <ul>  <li><a href="#" onclick="chat_win('<?php echo $a; ?>', '<?php echo $a; ?>');">Your Tribe Channel</a></li>  <li><a href="#" onclick="chat_win('tribalwars', '<?php echo $a; ?>');">Tribalwars Main Channel</a></li>  <li><a href="#" onclick="chat_win('claimer', '<?php echo $a; ?>');">TW-Claimer Main Channel</a></li>  </ul></li><li><a href="share.php?page=all">Link Tribes</a>  <ul>  <li><a href="share.php?page=current">Current Linked Tribes</a></li>  <li><a href="share.php?page=pending">Current Links Pending</a></li>  <li><a href="share.php?page=request">Request a Link to a Tribe</a></li>  </ul></li><li><a href="contact.php?page=error">Contact Us</a>  <ul>  <li><a href="contact.php?page=suggest">Suggest an Idea</a></li>  <li><a href="contact.php?page=error">Report an Error</a></li>  <li><a href="#" onclick="chat_win('claimer', '<?php echo $a; ?>');">Live Support Channel - IRC</a></li>  </ul></li><li><a href="admin.php">Admin</a>  <ul>  <li><a href="admin.php?page=settings">Noble Claimer Time Length</a></li>  <li><a href="admin.php?page=no_claim">Non-Claimed Noblements</a></li>  <li><a href="admin.php?page=all_claim">Current Claims</a></li>  </ul></li></ul><br style="clear: left" /></div>  <div id="content">  <br>