i have delete half of the coding of my login.php which is in lavair html.here is the code :
<?php include("core.php"); include("config.php"); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head>";
echo "<title>$stitle</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "</head>";
echo "<body>";
$bcon = connectdb(); if (!$bcon) {
echo " "; echo "<img src="images/exit.gif" alt="*"/> "; echo "ERROR! cannot connect to database
"; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute
"; echo "Soon, we will offer services that doesn't depend on MySQL databse to let you enjoy our site, while the database is not connected "; echo "THANK YOU VERY MUCH"; echo " "; exit(); } $action = $_GET["action"]; $sid = $_GET["sid"]; $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) {
echo " "; echo "You are not logged in "; echo "Or Your session has been expired
"; echo "<a href="index.php">Login</a>"; echo " "; exit(); } if(isbanned($uid)) {
echo " "; echo "<img src="images/notok.gif" alt="x"/> "; echo "You are Banned "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM fun_penalties WHERE uid='".$uid."' AND penalty='1'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg
"; //echo "<a href="index.php">Login</a>"; echo " "; exit(); }
some body help me to finish it with the original coding....thanks a lot...