Jump to content
php.lv forumi

klūda jeb kas


gangstadog

Recommended Posts

Es taisu spēli maffia war un vēlētos zināt kas man šhi par problēmu kas varētu but par vainu?

 

apskate šeit :P

 

http://mu-nero.zapto.org/spele/spele/play.php

 

Scripts šeit

<head>

 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

 

<title>Sinper-Gangsters</title><link rel="SHORTCUT ICON" href="http://avatars.jurko.net/uploads/avatar_22370.gif" />

 

</head>

 

 

 

<?

 

include("funcs.php");

 

 

 

function admin(){

 

global $id, $tab;

 

$user = mysql_fetch_array(mysql_query("SELECT status FROM {$tab['user']} WHERE id='$id';"));

 

if($user[0] != admin){ die("You are no fucking admin, stop fucking around, get the fuck out of here!!"); }

 

}

 

 

 

function secureheader(){

 

global $id, $tab, $time;

 

$user = mysql_fetch_array(mysql_query("SELECT online,status,code FROM $tab[user] WHERE id='$id';"));

 

$idle=$time-$user[0];

 

 

 

if (!$user){ setcookie("trupimp",NODATA); header("Location: index.php?reason=notlogged"); }

 

elseif ($idle >3600){ setcookie("trupimp",NODATA); header("Location: index.php?reason=idle"); }

 

elseif ($user[1] == banned){ setcookie("trupimp",NODATA); header("Location: index.php?reason=banned&code=$user[2]"); }

 

 

 

mysql_query("UPDATE $tab[user] SET online='$time' WHERE id='$id';");

 

}

 

 

 

function siteheader(){

 

global $site, $tab, $menu, $time, $id;

 

 

 

//SHOWING PIMPS ONLINE

 

$idletime=$time-360;

 

 

 

$reg = mysql_fetch_row(mysql_query("SELECT count(username) FROM $tab[user];"));

 

$online=fetch("SELECT COUNT(id) FROM $tab[user] WHERE online>$idletime;");

 

 

 

$getgames = mysql_query("SELECT round FROM $tab[game] WHERE starts<$time AND ends>$time ORDER BY round ASC;");

 

while ($game = mysql_fetch_array($getgames)){

 

$onlinepimps=fetch("SELECT COUNT(id) FROM r$game[0]_$tab[pimp] WHERE online>$idletime;");

 

$pimpin=$pimpin+$onlinepimps;

 

}

 

 

 

$getgames = mysql_query("SELECT round FROM $tab[game] WHERE starts<$time AND ends>$time ORDER BY round ASC;");

 

while ($game = mysql_fetch_array($getgames)){

 

$pimpshitting=fetch("SELECT COUNT(id) FROM r$game[0]_$tab[pimp] WHERE lastattack>$idletime;");

 

$attackin=$attackin+$pimpshitting;}

 

 

 

header("Cache-Control: no-cache, must-revalidate");

 

header("Pragma: no-cache");

 

header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");

 

 

 

?>

 

<!--<?=$real?>!--><script language=JavaScript1.2 src="images/tmb.js"></SCRIPT>

 

 

 

<script src="images/urchin.js" type=text/javascript>

 

</SCRIPT>

 

 

 

<script

 

type=text/javascript>

 

_uacct = "UA-1270427-1";

 

urchinTracker();

 

</SCRIPT>

 

<LINK href="images/tmb.css" type=text/css rel=stylesheet>

 

<META content="MSHTML 6.00.2900.3243" name=GENERATOR><style type="text/css">

 

<!--

 

body {

 

background-color: #000000;

 

}

 

.style2 {

 

font-size: 16px;

 

font-weight: bold;

 

}

 

.style3 {font-weight: bold}

 

-->

 

</style></HEAD>

 

<BODY style="BACKGROUND-REPEAT: repeat-x" text=#ffffff

 

leftMargin=8 " topMargin=8

 

marginheight="8" marginwidth="8">

 

<link rel="stylesheet" href="tru/style.css">

 

<TABLE cellSpacing=0 cellPadding=0 align=center border=0>

 

<TBODY>

 

<TR>

 

<TD>

 

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

 

<TBODY>

 

<TR vAlign=top height=32>

 

<TD width=27 background="images/l.gif" rowSpan=2><IMG

 

height=32 src="images/tl.gif" width=27 border=0></TD>

 

<TD bgColor=#000000 rowSpan=3>

 

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

 

<TBODY>

 

<TR vAlign=bottom height=7>

 

<TD align=right background="images/tb.gif"

 

colSpan=2><IMG height=5 hspace=200

 

src="images/-.gif" width=41></TD></TR>

 

<TR vAlign=top>

 

<TD width="46%">

 

<TABLE cellSpacing=0 cellPadding=0 border=0>

 

<TBODY>

 

<TR>

 

<TD align=middle><IMG height=90

 

src="images/mb.gif" width=206

 

vspace=8></TD></TR>

 

<TR>

 

<TD align=right> </TD></TR></TBODY></TABLE></TD>

 

<TD width="54%"

 

align=right background="images/don.jpg" class="b r m"

 

style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px"> <span class="style3"><font color="White"><font color="#FFFFFF">

 

<?=commas($reg[0])?>

 

</font></font></span>registered, <span class="style3"><font color="White"><font color="#FFFFFF"><font color="#FFFFFF">

 

<?=commas($online1)?>

 

</font></font></font></span>online</TD>

 

</TR></TBODY></TABLE></TD>

 

<TD width=27 background="images/r.gif" rowSpan=2><IMG

 

height=32 src="images/tr.gif" width=27

 

border=0></TD></TR></TBODY></TABLE>

 

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

 

<TBODY>

 

<TR height=37>

 

<TD

 

style="BORDER-RIGHT: #ffffff 2px solid; BORDER-LEFT: #ffffff 2px solid"

 

background="images/mbk.gif">

 

<p align="center"><TABLE cellSpacing=0 cellPadding=0 align=center border=0>

 

<TBODY>

 

<TR height=4>

 

<TD width=26><IMG height=1 src="images/-.gif" width=26><DIV class=hide id=b1><IMG height=20 src="images/gun.gif" width=26 border=0></DIV></TD><TD style="PADDING-RIGHT: 26px"><A onmouseover="s('b1');" onmouseout="s('b1');" href="play.php"><IMG height=37 src="images/m1.jpg" width=65 border=0></A></TD>

 

<TD width=26><IMG height=1 src="images/-.gif" width=26><DIV class=hide id=b2><IMG height=20 src="images/gun.gif" width=26 border=0></DIV></TD><TD style="PADDING-RIGHT: 26px"><A onmouseover="s('b2');" onmouseout="s('b2');" href="myaccount.php"><IMG height=37 src="images/m2.jpg" width=100 border=0></A></TD>

 

<TD width=26><IMG height=1 src="images/-.gif" width=26><DIV class=hide id=b3><IMG height=20 src="images/gun.gif" width=26 border=0></DIV></TD><TD style="PADDING-RIGHT: 26px"><A onmouseover="s('b3');" onmouseout="s('b3');" href="credits.php"><IMG height=37 src="images/m3.jpg" width=90 border=0></A></TD>

 

<TD width=26><IMG height=1 src="images/-.gif" width=26><DIV class=hide id=b4><IMG height=20 src="images/gun.gif" width=26 border=0></DIV></TD><TD><A onmouseover="s('b4');" onmouseout="s('b4');" href="logout.php"><IMG height=37 src="images/m4.jpg" width=90 border=0></A></TD><TD width=15> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></p>

 

<TABLE

 

style="BORDER-RIGHT: #ffffff 2px solid; BORDER-LEFT: #ffffff 2px solid; BORDER-BOTTOM: #ffffff 2px solid"

 

cellSpacing=0 cellPadding=0 width="100%" bgColor=#000000 border=0>

 

<TBODY>

 

<TR>

 

<TD>

 

<TABLE

 

style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px"

 

cellSpacing=0 cellPadding=0 width="100%" align=center border=0>

 

<TBODY>

 

<TR vAlign=top>

 

<TD><IMG style="PADDING-RIGHT: 4px; PADDING-LEFT: 1px"

 

height=365 src="images/guy.jpg" width=161

 

border=0> </TD>

 

<TD align=middle width=475>

 

<TABLE border=0 align="center" cellPadding=0 cellSpacing=0 class=ts>

 

<TBODY>

 

<TR>

 

<TD class="g s p bgg">VIEW</TD>

 

<TD><A class=boxlink

 

href="guide.php"

 

target=_blank>Game guide</A></TD>

 

<TD><A class=boxlink

 

href="rules.php"

 

target=_blank>Game rules</A></TD>

 

<TD><A class=boxlink

 

href="faq.php"

 

target=_blank>FAQ</A></TD>

 

<TD><A class=boxlink

 

href="refer.php">Referral

 

program</A></TD>

 

 

 

 

 

 

 

<TD><A class=boxlink

 

href="mailto:[email protected]">Support</A></TD>

 

</TR>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</TBODY></TABLE><br>

 

 

 

 

 

<TABLE border=0 align="center" cellPadding=0 cellSpacing=0 class=ts>

 

<TBODY>

 

<TR>

 

<TD class="g s p bgg">PURCHASE</TD>

 

 

 

 

 

<TD><A class=boxlink

 

href="buycontracts.php">Contracts</A></TD>

 

 

 

<TD><A class=boxlink

 

href="subs.php">Subscriptions</A></TD>

 

</TR></TBODY>

 

</table>

 

<table width="486" border="0" align="center">

 

<tr>

 

<td width="487"><?

 

}

 

 

 

function sitefooter(){

 

global $site, $tab, $id;

 

 

 

 

 

$user = @mysql_fetch_array(mysql_query("SELECT status FROM $tab[user] WHERE id='$id';"));

 

?></td>

 

</tr>

 

<tr>

 

<td><small><b><font color="ff0000"><?if($user[0] == admin){?>Admins:</font></b><a href="awardwinners.php">Give To Winners</a> • <a href="awardmedals.php">Give Medals </a> <?}?></small></td>

 

</tr>

 

</table></TD>

 

 

 

 

 

 

 

</p>

 

</div></TD></TR>

 

<TR>

 

<TD

 

style="PADDING-RIGHT: 12px; PADDING-LEFT: 12px; PADDING-BOTTOM: 12px; PADDING-TOP: 12px"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

 

<P align=center><B><BR>

 

</B></P>

 

</BODY></HTML>

 

<? }?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...