ok here ive started a lava base so there basicly nothing in just register and login then main page but the problem are ive main a head.php page and all the coding that came ontop before the actions start are in there so now the site dnt want to display
Demo
so anyone that have a fix post it here after and also any security measurements post here
Added after 18 minutes:
what are wrong here
head.php
index.php
Demo
so anyone that have a fix post it here after and also any security measurements post here
Added after 18 minutes:
what are wrong here
head.php
Code:
<?php session_name("PHPSESSID"); session_start(); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n"; echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n"; echo "<head><title>CodeGeekz</title>"; ?> <?php include("config.php"); include("core.php"); $bcon = connectdb(); $uid = getuid_sid($sid); if (!$bcon) { echo "<p align=\"center\">"; echo "<div class=\"navItem4\">"; echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>"; echo "DATABASE are out of order<br/><br/>"; echo "Sorry for the down time <br/><br/>"; echo "<b>Be Back Soon</b>"; echo "</p></div>"; exit(); } $brws = explode("/",$_SERVER['HTTP_USER_AGENT']); $ubr = $brws[0]; $uip = getip(); $act = $_GET["act"]; $sid = $_SESSION['sid']; $page = $_GET["page"]; $who = $_GET["who"]; cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo "<p align=\"center\">"; echo "<div class=\"navItem4\">"; echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>"; echo "Your ip are Blocked<br/>"; echo "<br/>"; echo "Contact the owner to ask to come back thank you....<br/><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - (time() - $timeadjust) ; $rmsg = gettimemsg($remain); echo "Time to unblock the IP: $rmsg<br/><br/>"; echo "</p></div>"; echo "<p>"; echo "<form action=\"enter.php\" method=\"get\">"; echo "Username:<br/> <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/><br/>"; echo "Password:<br/> <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/><br/>"; echo "<input type=\"submit\" value=\"Login\"/>"; echo "</form>"; echo "</p>"; exit(); } } if(($act != "") && ($act!="terms")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { echo "<p align=\"center\">"; echo "<div class=\"navItem4\">"; echo "You arn't login!!!!<br/>"; echo "Or ur session have expired<br/><br/>"; echo "<a href=\"index.php\">Login</a>"; echo "</p></div>"; exit(); } } //echo isbanned($uid); if(isbanned($uid)) { echo "<p align=\"center\">"; echo "<div class=\"navItem4\">"; echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>"; echo "You are <b>Banned</b><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM penalties WHERE uid='".$uid."' AND penalty='1'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM members WHERE id='".$uid."'")); $remain = $banto[0]- (time() - $timeadjust) ; $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg<br/><br/>"; echo "Ban Reason: $banres[0]"; //echo "<a href=\"index.php\">Login</a>"; echo "</p></div>"; exit(); } $res = mysql_query("UPDATE members SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); ?>
Code:
<?php include("head.php"); /////////////////////////Main Page Here echo "<p align=\"center\">"; echo "<small>"; echo "<div class=\"navItem1\">"; echo "This is our newest script<br/>"; echo "<small>"; $onu = getnumonline() + 0; echo "Members Inside: $onu<br/>"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM members")); echo "Registered Members: <b>$norm[0]</b><br/><br/>"; echo "</small>"; echo "</small>"; echo "</p></div>"; echo "<p>"; echo "<div class=\"navItem4\">"; echo "<form method=\"get\" action=\"enter.php\">"; echo "<small>UserName:</small> <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/><br/>"; echo "<small>Password:</small> <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/><br/>"; echo "<input type=\"submit\" name=\"Submit\" value=\"Log In\"/><br/>"; echo "</form>"; echo "</p></div>"; echo "<p>"; echo "</p>"; echo "<div class=\"navItem1\">"; echo "Not registered yet?<br/>"; echo "<a href=\"register.php?act=register\">Sign Up</a><br/><br/>"; echo "<p align=\"center\">"; echo "<small>"; echo "© $stitle 2013"; echo "</small>"; echo "</p></div>"; exit(); ?>
Comment