Go Back   CodingForums.com > Web Projects and Services Marketplace > Web Projects > Small projects (quick fixes and changes)

Notices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2013, 10:04 AM   PM User | #1
tehsin
New to the CF scene

 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tehsin is an unknown quantity at this point
Having issues with my home page

1) Project Details: Hello, If you go to www.crime-nations.com you will see it is not showing the alive users, users online etc etc in info.php, Also in index.php you will notice that the long header bars have gaps seperating them bron the navbars with the links. I was wondering if someone could help me fix this.
Info.php
PHP Code:
<center><table width=96%><tr><td><font face=tahoma size=2 color=#FFFFFF><b>Crime-Nations - Home</b></font><br>
Welcome to Crime-Nations.com. A free to play Mafia Genre MMORPG.<br /><img src='/beta/layout_images/headertop.gif' width='100%' height='4'><br />
<table><tr><td><b><font color=white><div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script><div class="fb-like" data-href="http://www.crime-nations.com" data-send="true" data-width="450" data-show-faces="false"></div></b></td><td align=left>
<div class="g-plusone"></div>
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script></td></tr></table>
<img src='/beta/layout_images/headertop.gif' width='100%' height='4'><table><tr><td>
<center><a href='http://www.crime-nations.com/index.php?x=signup'><img src='/beta/layout_images/winwin.png'></a></center></td><td valign=top><br /><b>
Welcome to Crime Nations. It is an amazing free to play mass multi player online mafia style browser game where you can mug/beat/hack/spy/stab/shoot/bomb/extort, And pretty much do what ever you want to the opposition, Including killing them. Rounds go for about 6 weeks and ends with over 10 prize categories including a cash prize for Top Mobster. You can choose from over 12 classes, And  25 cities to explore. You can pimp and/or own properties, Setting up a Roulette/ Slots/ Fence/ Chop shop/ launderer and many other back room features including Firebombing, Burn them to the ground. Work for the corporation working your way out of the mail room into that ever so cozy CEO office. Send or receive your stolen goods from bank heists and transport truck robberies. Break out of jail with your fellow players. Drug or Black market run across cities, Making loads of money while eluding the FBI. And even kidnap that rat who sold you out. Co-Op with other players to succeed in organized crimes and bank robberies, creating new friendships and connections. Work for a organization, Doing hits for the boss or bringing in mass profits for the vault, or Start your own organization, leading hundreds of loyal members and take it to the top, Or start an airport riot causing mass chaos in the community. Its all here. Sign Up Today...</b></td><td valign=top><br />include('includes/config.php');
include('includes/functions.php');
<?PHP
$coredb
=mysql_select_db($prefix);
$query="SELECT email FROM `login_info`";
$result=mysql_query($query);
$totalgangsters mysql_num_rows($result);
//Game Settings
$query="SELECT * FROM `game_settings` where id=1";
$result=mysql_query($query);
$game_settings=mysql_fetch_array($result);
//Users Online
$timeout time() - 121;
$query="SELECT COUNT(*) from user_profiles where lastactive > '$timeout'";
$result=mysql_query($query);    
$onlinegangsters=mysql_result($result,0);
$query="SELECT COUNT(*) from families";
$result=mysql_query($query);    
$total_families=mysql_result($result,0);
$query="SELECT COUNT(*) from funeral_home";
$result=mysql_query($query);    
$dead_members=mysql_result($result,0);
$query="SELECT COUNT(*) from user_characters";
$result=mysql_query($query);    
$alive_members=mysql_result($result,0);
$_GVARS array_merge($_POST$_REQUEST);
?>
<table align=center width=240 height><tr><td>Users Online: </td><td><b>".number_format($onlinegangsters) . "</b></td><tr><td>Alive Users: </td><td><b>".number_format($alive_members) . "</b></td><tr><td>Dead Users: </td><td><b>".number_format($dead_members) . "</b></td><tr><td>Organizations: </td><td><b>".number_format($total_families) . "</b></td><tr><td>Registered Users: </td><td><b>" . number_format($totalgangsters) . "</b></td></font></td></tr></table></td></tr></table>
<img src='/beta/layout_images/headertop.gif' width='100%' height='4'><br /><center>
<a href=images/screenshots/ss5.png target=_blank><img src='images/screenshots/ss5.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss1.png target=_blank><img src='images/screenshots/ss1.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss2.png target=_blank><img src='images/screenshots/ss2.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss3.png target=_blank><img src='images/screenshots/ss3.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss14.png target=_blank><img src='images/screenshots/ss14.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss20.png target=_blank><img src='images/screenshots/ss20.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss7.png target=_blank><img src='images/screenshots/ss7.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss17.png target=_blank><img src='images/screenshots/ss17.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss24.png target=_blank><img src='images/screenshots/ss24.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss19.png target=_blank><img src='images/screenshots/ss19.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss12.png target=_blank><img src='images/screenshots/ss12.png' border='0' height='100' width='100'></a> <a href=images/screenshots/ss21.png target=_blank><img src='images/screenshots/ss21.png' border='0' height='100' width='100'></a>
</td></tr></table><img src='/beta/layout_images/headertop.gif' width='96%' height='4'></center><br />
:

index.php
PHP Code:
<?php
session_start
();
//import_request_variables("gPc");
extract($_SESSION);
$bannedips=array('86.131.94.68''66.232.196.20','71.254.108.205','80.47.176.187','24.137.69.169','24.222.125.237','24.222.125.6','108.33.63.74');
if(
in_array($_SERVER[REMOTE_ADDR],$bannedips)) {
echo
"<center><table width=96%><tr><td><font color=red><b>Error | Crime-Nations.com Data Failed To Load Due To Your I.P Being On Our Global IP Ban List. If This Is A Mistake Or If The Problem Persists Contact A Member Of The Societeh Through Ipban@crime-nations.com.</b></font><br /><br /><img src='../beta/layout_images/topnav.gif' width=100% height=3><br /></td></tr></table></center>";
exit; }
include(
'includes/config.php');
include(
'includes/functions.php');
//*****************************************************************************************************************[GET ONLINE USERS]
if (!($game=@mysql_connect($gamedbhost,$gamedbuser,$gamedbpassword))) {
echo
"<center><table width=96%><tr><td><font color=red><b>Error | Failed To Connect To The Game Database. If This Problem Persists Contact A Member Of The Societeh Through Admin@crime-nations.com.</b></font><br /><br /><img src='../beta/layout_images/topnav.gif' width=100% height=3><br /></td></tr></table></center>";
exit; }
$gamedb=mysql_select_db($prefix) or die(mysql_error());

mysql_close();
if (!(
$game=@mysql_connect($gamedbhost,$gamedbuser,$gamedbpassword))) {
echo
"<center><table width=96%><tr><td><font color=red><b>Error | Failed To Connect To The Game Database. If This Problem Persists Contact A Member Of The Societeh Through Admin@crime-nations.com.</b></font><br /><br /><img src='../beta/layout_images/topnav.gif' width=100% height=3><br /></td></tr></table></center>";
exit; }

//*****************************************************************************************************************[GET TOTAL USERS]

$_GVARS array_merge($_POST$_REQUEST);

?>
<!DOCTYPE html>
<head><title>Crime Nations | Free Mafia MMORPG Browser Game | Win Cash Prizes | Round <?php print "$game_settings[round]";?></title></head>
<meta name="keywords" content="free game,mafia,game,free,rpg,mobster game, win cash games,colpitts,text based,crime,networking,rackets,gambling">
    <meta name="description" content="Crime Nations Com. It is an amazing free mass online game where you can mug/beat/hack/spy/stab/shoot/bomb/extort, and pretty much do what ever you want to the opposition, including killing them. You can choose from over 12 classes, and  25 cities to explore. You can pimp and/or own properties, Setting up a Roulette/ Slots/ Fence/ Chop shop/ launderer and many other back room features including Firebombing. Work for the corporation working your way out of the mail room into that ever so cozy CEO office. Send or receive your stolen goods from bank heists and transport truck robberies. Drug or Black market run across cities, making loads of money while eluding the FBI. And even kidnap that ****ing rat who sold you out. Co-Op with other players to succeed in organized crimes and bank robberies, creating new friendships and connections. Work for a organization, Doing hits for the boss or bringing in mass profits for the vault, or Start your own organization, leading hundreds of loyal members and take it to the top, Or start an airport riot causing mass chaos in the community. :) its all here at Crime Nations Com.
Win prizes every week. www.crime-nations.com">
    <meta name="robots" content="ALL,INDEX,FOLLOW">
    <meta name="revisit" content="3 days">
 <style>
A:link, A:visited, A:active {
    COLOR: #FFFFFF;
    TEXT-DECORATION: none;
}
A:hover {
    COLOR: #660000;
    TEXT-DECORATION: none;
}
  .imgfloat{position:absolute;}
.login {
    border:0px solid black;
    text-color: #FFFFFF;
    border-color: solid black;
    background-color: #gray
}
td.on {
    background: #111111;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #999999;
    align: center;
}
textarea, input, select {
font-size : 11px;
font-family : Tahoma;
color : #FFFFFF;
background-color : #333333;
}
.submit {
font-size : 11px;
font-family : Tahoma;
font-weight: bold;
color : #FFFFFF;
background-color : #333333;
}
font1 {
font-size : 11px;
font-family : Tahoma;
color : #FFFFFF;
font-weight: bold;
}
.text_head {
font-size : 12px;
font-family : Tahoma;
color : #FFFFFF;
font-weight: bold;
}
.text_menu {
font-size : 15px;
font-family : Tahoma;
color : #FFFFFF;
font-weight: bold;
}
.text_small {
font-size : 11px;
font-family : Tahoma;
color : #FFFFFF;
}
.text_normal {
font-size : 12px;
font-family : Arial;
color : silver;
}
.sidemenu2 {
background-color: #222222;
font-size : 10px;
font-family : Tahoma;
color : #FFFFFF;
}
.sidemenu {
font-size : 10px;
font-family : Tahoma;
color : #FFFFFF;
}
td,body {
font-size : 10px;
font-family : Tahoma;
color : #FFFFFF;
}
</style>
<?php
echo"<center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'><table width=100% background='beta/layout_images/header.png' width='100%'><tr><td width=80%></td><td width=20% alighn=left>
<table align=center width=240><tr><form method=post action=index.php?x=account&action=login><td><b>Email:<br /><input type=text name=email></td><tr> 
<td><b>Password:<br /><input type=password name=passwd></td><tr>
<td>
<a href='?x=account&action=forgotpass' alt='Recover Account' title='Recover Account'><u><b>Forgot Password?</b></u></a> | <a href='?x=signup' alt='Register Account' title='Register Account'><u><b>Register</b></u></a> | <input type=submit name=submit value=Login></form></td></tr></table></td></tr></table></center>"
;
if (
$user_email == "") { // they are not logged in so display quick login 
echo "<body background='/beta/layout_images/bg_2.gif' topmargin=0 leftmargin=0 rightmargin=0><center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'></center><center><table width='100%' background='beta/layout_images/fbg.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black><b><a href='?x=info' alt='Home' title='Home'><font color=tan>Home</font></a> | <a href='?x=scrnshots' alt='Screen Shots' title='Screen Shots'><font color=tan>Screen Shots</font></a> | <a target=_href href=http://www.youtube.com/watch?v=YsrQkWsvJUI><font color=tan>Teh Sins Video Tutorial</font></a> | <a href='mailto:support@crime-nations.com'><font color=tan>Contact Us</font></a> | <a href='mailto:email@echoecho.com?subject=Crime-Nations.com | New Free To Play Mafia MMORPG With Cash Prizes&body=Hey there friend. Looks like you are not where you should be, I see determination in your eyes but I can tell you lack the resources needed to get what you want. I offer you an alternative game to play. I offer you Crime Nations, And with over 26 playable cities it lives up to its name. If you know how to play any games you will transition into CN without any problems. You are welcomed by a short walkthrough from the games creator, Then let out of the cage to wreak havoc. Oh and you can riot the airports, Damn you can own the airports. Its all there. With a massively overflowing economy there is enough for everybody, Including death. What is gunna be your move mobster? You got what it takes to take the next step, The step up to the big times. Then use this link and start your new life as a true Mafioso. www.crime-nations.com. See you there!'><font color=tan>Refer Us</font></a></b></font></center>
</td></tr></table><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center></td></tr></table></center><center><table width=100% bgcolor='black'><tr><td>"
;
}
else
{
echo 
"<body background='/beta/layout_images/bg_6.gif' topmargin=0 leftmargin=0 rightmargin=0><center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'></center>
<center><table width='100%' background='beta/layout_images/fbg.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black><b><a href='index.php' alt='Game List' title='Game List'><font color=tan>Enter Game</font></a> | <a target=_href href=http://www.youtube.com/watch?v=YsrQkWsvJUI><font color=tan>Teh Sins Video Tutorial</font></a> |<a href='?x=account&action=logout' alt='Log Out' title='Log Out'><font color=tan>Log Out Account</font></a></b></font></center>
</td></tr></table><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center></td></tr></table></center><center><table width=100% bgcolor='black'><tr>"
;
            }
if (
$user_email == "") {
?>

<td align=left width=100% bgcolor=black valign=top>
<?php
    $x
=$_GET['x'];
      if(
$x=='') {
        
$x="home";
    }
    
$z=$x.".php";
    if(
is_file($z)) {
        include(
$z);
    } else {
        include(
'error.php');
    }
    
?>
</td>
<?php

if($user_email=="")
{
}
else
{
    echo
"<td align=center class=sidemenu2 width=250 valign=top><table class=sidemenu2 width=190 align=center background=layout_images/gray-greident.gif cellpadding=4 cellspacing=0>
             <tr valign=top>
            <td class=on align=center><font color=#FFFFFF><b>Account News</b></font></td><tr><td>"
;
                
$time=time();
                
$query"SELECT * FROM news WHERE `to`='$user_email' ORDER BY timestamp DESC LIMIT 5;";     
                
$result=mysql_query($query);
                if (
mysql_num_rows($result) == 0) {

                    echo 
"<font size=1 color=#FFFFFF>No News.";
            
                } else {
        

                    while(
$row=mysql_fetch_row($result))
                    {
                        
$timegap=$time $row[2];
                        if (
$timegap 86400) { 
                        
$fontcolor="#FFCC00"
                        } 
                        else 
                        { 
                        
$fontcolor="silver"
                        }
                        echo 
"<font size=1 color=$fontcolor face=tahoma><b>" date('m/d/Y  H:i:s'$row[2]) . "</b><font color=#FFFFFF> $row[3]<br><br>";
                    }
                        }
        echo 
"</td></tr></table></table>";
        }
?>
</table><center><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center><center><table width='100%' background='beta
/layout_images/topnav.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black size=1><b><u>Crime-Nations.com™ Trademarked by Red-Circus Creative. Copyright © 2008-2012 Crime-Nations.Com™. WorldWideOCR SEAL™ Files © Last Modified: Jan, 2013</u></b></center>
<center><font color=black><b><a href='?x=frontvotepage' alt='Vote For Us' title='Vote For Us'><font color=tan>Vote For Us</font></a> | <a href='?x=about' alt='About Us' title='About Us'><font color=tan>About Us</font></a> | <a href='?x=customerservice' alt='Customer Service' title='Customer Service'><font color=tan>Customer Service</font></a> | <a href='?x=tos' alt='Terms Of Service' title='Terms Of Service'><font color=tan>T.O.S</font></a></b></font></center></td></tr></table><center><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center>
</body>
</html><script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5704392-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
2) Payment method/ details (Paypal Timeline? 1 Week After Completion):
tehsin is offline   Reply With Quote
Old 01-04-2013, 03:07 AM   PM User | #2
savister
New to the CF scene

 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
savister is an unknown quantity at this point
PM sent.
savister is offline   Reply With Quote
Old 01-04-2013, 06:32 AM   PM User | #3
Technomeet
New to the CF scene

 
Join Date: Jan 2013
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Technomeet is an unknown quantity at this point
Hi m new here ! may i help u in ur home proj?
Technomeet is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:59 PM.


Advertisement
Log in to turn off these ads.