Относно за онлайн игра.

C++ JAVA
gamer12
Нов
Нов
Posts: 8
Joined: Sat Jan 05, 2013 1:39 am

Post by gamer12 » Wed Feb 13, 2013 11:36 am

Братлета, ето ви целия файл, благодаря искрено на Msecurity


session_start();
include "connect.php";
$admin = $_SESSION['admin'];
$result = mysql_query("select * from ulica");
while($r1 = mysql_fetch_array($result))
{
$roleks=$r1["kletka"];
$rs = mysql_query("select * from users WHERE username='$sesusername");
$row = mysql_fetch_array($rs);
$risk=$row["risk"];
$online=$row["online"];
$skrit=time();
$skrit1=$row["online"];
$atakyt=$row["ataka"];
$myni=$row["pari"];
$life=$row["life"];
$zatvor=$row["zatvor"];
$orujie=$row["orujie"];
$kola=$row["kola"];
$kuche=$row["kuche"];
$yosar=$row["username"];
$ips=array("newguy","bota");
if ($orujie=="1")
{
$atk=
$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk', orujie='11' WHERE username = '$admin'");
$at="Нямаш оръжие";
$izt="0";
}
elseif ($orujie=="2")
{
$atk=$atakyt;
$update = mysql_query("Update users set ataka = '$atk', orujie='3' where username = '$sesusername");
$izt="0";
$at="Нямаш оръжие";
}
elseif ($orujie=="11")
{
$at="Имаш AT";
$izt="100";
}
else
{
$at="Нямаш оръжие";
$izt="0";
}
if ($kola=="1")
{
$atk1=$atakyt +
1000000;$update = mysql_query("Update users set ataka = '$atk1', kola='11' where username = '$sadmin");$at1="Нямаш оръжие";$izt1="0";}elseif ($kola=="2"){$atk1=$atakyt - 1000000;$update = mysql_query("Update users set ataka = '$atk1', kola='3' where username = '$sesusername);$izt1="0";$at1="Нямаш кола";}elseif ($kola=="11"){$at1="Имаш Ролс ройс";$izt1="100";}else{$at1="Нямаш кола";$izt1="0";}if ($kuche=="1"){$atk2=$atakyt + 1000000;$update = mysql_query("Update users set ataka = '$atk2', kuche='11' where username = '$sesusername');$at2="Нямаш оръжие";$izt2="0";}elseif ($kuche=="2"){$atk2=$atakyt - 1000000;$update = mysql_query("Update users set ataka = '$atk2', kuche='3' where username = '$sesusername'");$izt2="0";$at2="Нямаш куче";}elseif ($kuche=="11"){$at2="Имаш Питбул";$izt2="100";}else{$at2="Нямаш куче";$izt2="0";}if (in_array($yosar,$ips)){$update = mysql_query("Update users set online = '3' where username = '$sesusername'");}else{echo "";} $rspzk=$row["respect"];$rspzkz=$row["intelect"];$rspraz=$row["respect"];$silatami=$row["sila"];$seksapil=$row["selsapil"];$stotinki=$row["pari"];if ($rspzk<0){$update = mysql_query("Update users set ataka = '1' where username = '$sesusername'"); }if ($rspzkz<0){$update = mysql_query("Update users set intelect = '1' where username = '$sesusername'"); }if ($rspraz<0){$update = mysql_query("Update users set respect = '1' where username = '$sesusername'"); }if ($silatami<0){$update = mysql_query("Update users set sila = '1' where username = '$sesusername'"); }if ($stotinki<0){$update = mysql_query("Update users set pari = '1' where username = '$sesusername'"); }if ($risk>250 or $zatvor=="2"){$update = mysql_query("Update users set risk = '0' zatvor = '2' where username = '$sesusername'"); echo '<meta http-equiv="refresh" content="0;url=zatvor.php"/>';}}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- ... dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Улицата</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <meta name="description" content="BGMAFIA mass online game. Life of a gangster."/> <meta name='keywords' content='bgmafia,mass multiplayer,mmorpg,gangster,mob,rpg'/> <meta name='copyright' content='Copyright (c)2006 bgmafia.com'/> <meta name="authors" content="Boian Katzarsky, Stoian Doichev"/> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/> <link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' /> <!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]--> <!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]--> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/> <meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/> <link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' /> <!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]--> <!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]--> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script> <script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script> <script type='text/javascript'> DIRECTION = 'ltr'; COOKIE_DOMAIN = '.bgmafia.com'; AUTOLOGIN = 1; StaticServer = 'http://v2i.bgmafia.com'; Server = 'http://bgmafia.com/'; ServerID = '18'; var req_id = 'bBT' WORLD = 'bg.4'; REQ_PAIR = 'z=bBT'; COUNTER_UID = 'UA-10791273-17'; LANG = 'bg'; TIME = 1308595105; GAME_START = 1305838800; DST_CORRECTION = 0; TIME_FACTOR = 1; </script> <script type='text/javascript'> UID = 14416; GID = 1; </script> <style type='text/css'> div#msgbox { position:absolute; } </style> <script type='text/javascript' src='http://v2i.bgmafia.com/js/general.js?19'></script> <script type="text/javascript"> $(document).ready(function(){ $(document).find("a.iframe").attr({"href":"/credits", "target":""}); }); </script> </head> <body class='ltr lang-bg world-bg wt-bg.4'> <script type='text/javascript'> StaticServer = 'http://www2.bgmafia.com'; Server = 'http://bgmafia.com/'; REQ_PAIR = 'z=ZeQ6'; UID = 29; GID = 1; </script> <script type='text/javascript' src='http://www2.bgmafia.com/js/default.js?x'></script> <link rel='icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' /> <link rel='shortcut icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' /> <script type='text/javascript'> function addEvent( obj, type, fn) { if(obj.addEventListener) obj.addEventListener( type, fn, false ); else if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function() { obj['e'+type+fn]( window.event ); } obj.attachEvent('on'+type, obj[type+fn] ); } } function openMenu(event) { var el, x, y, id; id = this.getAttribute('m'); el = document.getElementById('menu'+id); if(window.event) { x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft; y = window.event.clientY + document.documentElement.scrollTop + + document.body.scrollTop; } else { x = event.clientX + window.scrollX; y = event.clientY + window.scrollY; } x -= 10; y -= 10; el.style.left = x + 'px'; el.style.top = y + 'px'; el.style.visibility = 'visible'; //el.style.display = 'block'; el.onmouseout = closeMenu; event.returnValue = false; hideBTooltip(); } function closeMenu(event) { var current, related; if(window.event){ current = this; related = window.event.toElement; } else{ current = event.currentTarget; related = event.relatedTarget; } if(current != related && !contains(current, related)) current.style.visibility = 'hidden'; //current.style.display = 'none'; } // Return true if node a contains node b. function contains(a, b) { if(!b) return true; while(b.parentNode) if((b = b.parentNode) == a) return true; return false; } function findPosX(obj) { var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent){ while(obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } function mapInit() { var map_div = document.getElementById('map'); if(map_div) { var mapconf = new Array(); var obj_arr = map_div.getElementsByTagName('div'); var len = obj_arr.length; for(var i=0,mid=0; i<len; i++) { var el = obj_arr; if(el.className.indexOf('spot')==-1) continue; // menu handler addEvent(el,'click', openMenu ); el.setAttribute('m', mid); // over addEvent( el, 'mouseover', onMouseOver); addEvent( el, 'mouseout', onMouseOut); // attach _over on every <tr> in menu table var tbl = document.getElementById('menu'+mid); if(!tbl || tbl.nodeName.toLowerCase() != 'table') continue; var trarr = tbl.getElementsByTagName('tr'); var trlen = trarr.length; for(var k=0; k<trlen; k++) { addEvent( trarr[k], 'mouseover', _onMouseOver); addEvent( trarr[k], 'mouseout', _onMouseOut); } mid++; } } } function onMouseOver(){ this.className += '_over'; } function onMouseOut(){ this.className = this.className.replace('_over', ''); } function _onMouseOver(){ this.style.backgroundColor = '#666666'; } function _onMouseOut(){ this.style.backgroundColor = ''; } </script> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/map4.css' media='screen'/> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/base.css' media='all'/> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/usericon.css' media='all'/> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/flags.css' media='all'/><?phpinclude "spots.php";?> <script type='text/javascript' src='http://www2.bgmafia.com/js/tooltip.js'></script></head> <div id='wrapper'> <div id='gndnew'> <a href='#'> </a><a href='#'> </a><a href='#'> </a><a href='#'> </a> </div> <div id='ifwrapper'> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/><style type="text/css"><!--body { background-attachment: fixed; background-image: url(images/header3.jpg); background-repeat: no-repeat; background-position: center center;}--></style><div class='bgwrapper'><div class='header' id='cheader'><div id='game-time' class=''><div class='wrapper' id='cwrapper'><div class='left-col'><div class='' id='cheader'> <div id='game-time' class=''> </div><div id='avatar'><a href='?q=profile&z=ZeQ6'><img src='http://www2.bgmafia.com/res/avt/6/0.gif' alt=''/></a></div> </div> </div> </a></div> </div> <div id='footer'> <div class='footer-links'> <div id='footer-bar'> <span class='in'></span> <span style='display:block;top:1px;right:2px;position:absolute;color:#999;'> <a href='http://nimrod-games.com/index.php' target='_blank' title='produced by nimrod games (nimrod-games.com)'>nimrod-games.com</a>|<a href='http://persy.com' target='_blank' title='powered by persy.com servers'>persy.com</a>|<a href='http://wisdom.bg' target='_blank' title='supported by wisdom.bg'>wisdom.bg</a> </span> <span style='display:none;' id='flid'><span> <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shoc ... on=9,0,0,0' width='1' height='1' id='access' align='top'> <param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='false' /> <param name='movie' value='http://v2i.bgmafia.com/res/swf/cookie.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='' /> <param name='wmode' value='' /> <embed src='http://v2i.bgmafia.com/res/swf/cookie.swf' wmode='' quality='high' bgcolor='' width='1' height='1' name='access' align='top' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed> </object> </span></span> </div> <div class='credit-box'> <a href='/extras?z=bBT'><span class='vip-active-small smarttip' title='2 дни'></span></a> <a href='/payments?z=bBT' class='iframe credit-number-new'><span class='credit-info-new'><b>0</b></span></a> <div class='credit-options'><a href='/extras?z=bBT' class='credit-bullet'>Екстри</a> <a href='/bank/change?z=bBT' class='credit-bullet'>Купи пари</a> <a href='/payments?z=bBT' class='credit-bullet iframe'>Зареди кредити</a></div> </div> </div> <div class='wrapper' id='cwrapper'> <div class='left-col'> <div class='main-menu'><a href='city.php' class='mm-city ' ><span>Градът</span></a><a href='index2.php' class='mm-street mm-sel ' ><span>Улицата</span></a><a href='/news?z=bBT' class='mm-newspaper ' ><span>Вестник</span></a><a href='?modul=uroci' class='mm-adviser ' ><span>Учебен център</span></a><a href='/training?z=bBT' class='mm-training ' ><span>Фитнес</span></a><a href='?modul=shop' class='mm-bars ' ><span>Заведения</span></a><a href='ranking.php' class='mm-standing ' ><span>Класация</span></a><a href='/contrabandist?z=bBT' class='mm-contrabandist ' ><span>Контрабандист</span></a><a href='pazar.php' class='mm-market ' ><span>Черен Пазар</span></a><a href='?modul=zatvor' class='mm-jail ' ><span>Затвор</span></a><a href='?modul=rean' class='mm-hospital ' ><span>Болница</span></a><a href='/tournament?z=bBT' class='mm-tournament ' ><span>Турнири</span></a><a href='/bank?z=bBT' class='mm-bank ' ><span>Банка</span></a><a href='/casino?z=bBT' class='mm-casino ' ><span>Казино</span></a><a href='/police?z=bBT' class='mm-police ' ><span>Полиция</span></a></div> <a href='/top10/search?z=bBT' class='sec-item'><span class='find'>Намери гангстер</span></a> <a href='/chart?z=bBT' class='sec-item'><span class='thumbs-up'>Гласувай</span></a> </div> <?php include "player_menu.php"; ?> </div> </div> </div> <div class='private-map' id='map'> <tr> <td width="54"><a href='?q=profile/1391&z=ZeQ6'><img src='http://i47.vbox7.com/a/baddilar_6e409e9b_1.jpg' width='50' height='50' alt='' class='avt'/></a></td> </tr> </table><div class='spot0 ground' title='Стара сграда'></div><div class='spot1 ground' title='Стара сграда'></div><div class='spot2 ground' title='Стара сграда'></div><div class='spot3 ground' title='Стара сграда'></div><div class='spot4 ground' title='Стара сграда'></div><div class='spot5 ground' title='Стара сграда'></div><div class='spot6 ground' title='Стара сграда'></div><div class='spot7 ground' title='Стара сграда'></div><div class='spot8 ground' title='Стара сграда'></div><div class='spot ' title=''></div><div class='spot drunk' title='Пияница'></div><div class='spot garbage' title='Кофи'></div><div class='spot postman' title='Пощальон'></div><div class='spot inlove' title='Влюбени'></div><div class='spot kid' title='Момиченце'></div><div class='spot dog' title='Куче'></div><div class='spot shaft' title='Шахта'></div><div class='spot blockade' title='Барикада'></div><div class='spot tank' title='Варели'></div><div class='spot girl' title='Гърла'></div><div class='spot skater' title='Скейтър'></div><div class='spot hydrant' title='Пожарен кран'></div><div class='spot lazyboy' title='Лентяй'></div><div class='spot doggirl' title='Мацка с куче'></div><div class='spot bicyclist' title='Пич с колело'></div><div class='spot dogboy' title='Пич с куче'></div><div class='spot mother' title='Майка с количка'></div><div class='spot worker' title='Хамалин'></div><div class='spot sign' title='Табела'></div><div class='spot soccerboy' title='Футболяга'></div><div class='spot post' title='Поща'></div><div class='spot teacher' title='Учителка'></div><div class='spot taxi' title='Бакшиш'></div><div class='spot upi' title='Юпи'></div><div class='spot phone' title='Телефон'></div><div class='spot punk' title='Хулиган'></div><div class='spot drugdealer' title='Наркопласьор'></div><div class='spot manager' title='Мениджър'></div><div class='spot businesslady' title='Бизнес дама'></div><div class='spot cofemachine' title='Кафемашина'></div><div class='spot hookers' title='Фльорци'></div><div class='spot dude' title='Гъзар'></div><div class='spot newcar' title='Лъскава кола'></div><div class='spot businessman' title='Бизнесмен'></div><div class='spot bully' title='Мутра'></div><div class='spot atm' title='ATM'></div></div><script type='text/javascript'>mapInit(); mapTooltipInit();</script></div> </div> </div> </center> </div> <tr> </tr> </p> <p> <?phpif ($online=="1" or $online=="3"){echo " ";}else{echo '<meta http-equiv="refresh" content="0;url=index.php"/>';}?> <?phpif ($life<"0"){echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';}elseif ($life=="0"){echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';}else{echo " ";}?> </p> </td> </tr> <tr> <td width="794">&nbsp;</td> </tr></table><table width="970" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><?phpdefine('IN_VALID', true);include "connect.php";if(isset($_GET['modul'])){$modul=htmlspecialchars($_GET['modul']);}else{$modul="";}switch($modul){case "roleks":include "modules/roleks.php";break;case "shop":include "modules/shop.php";break;case "pazar":include "modules/pazar.php";break;case "rean":include "modules/rean.php";break;case "uroci":include "modules/uroci.php";break;case "svali":include "modules/svali.php";break;case "xx":include "modules/xx.php";break;case "zatvor":include "modules/zatvor.php";break;case "rean":include "modules/rean.php";break;case "top":include "modules/top.php";break;case "toprs":include "modules/toprs.php";break;case "kletki":include "modules/kletki.php";break;case "otepai":include "modules/boi.php";break;case "msg":include "modules/msg.php";break;default:include "kv.php";}?></td> </tr></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp; </p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><meta http-equiv='Content-Type' content='text/html; charset=Windows-1251'></body></html> <!-- Tyxo --><a href="http://www.tyxo.bg/?2350" title="" target="_blank"><script type="text/javascript"><!--d=document;d.write('<img width="1" height="1" border="0" alt=""');d.write(' src="http://cnt.tyxo.bg/2350?rnd='+Math.round(Math.random()*2147483647));d.write('&amp;sp='+screen.width+'x'+screen.height+'&amp;r='+escape(d.referrer)+'" /></a>');//--></script><noscript><img src="http://cnt.tyxo.bg/2350" width='1' height='1' border='0' alt=''/></noscript></a><!--Web Counter--><font size="1" style="display:none;"><script type="text/javascript"><!--_d=document; _n=navigator; _t=new Date(); function t() { _d.write("<img src=\"http://counter.search.bg/cgi-bin/c?_id= ... "+_j+"&_t="+(_t.getTimezoneOffset())+"&amp;_k="+_k+"&amp;_l="+escape(_d.referrer)+"\" width='1' height='1' "+"border='0'/>");} _c="0"; _r="0"; _j="U"; _k="U"; _d.cookie="_c=y";_d.cookie.length>0?_k="Y":_k="N";//--></script><script type="text/javascript" language="javascript1.2"><!--_b=screen; _r=_b.width; _n.appName!="Netscape"?_c=_b.colorDepth : _c=_b.pixelDepth;_n.javaEnabled()?_j="Y":_j="N";//--></script><a href="http://counter.search.bg/cgi-bin/s?_id= ... p"><script type="text/javascript" language="javascript"><!--t(); //--></script><noscript><img width=1 height=1 border=0 alt=""src="http://counter.search.bg/cgi-bin/c?_id= ... </a></font><!-- Google Analytics: Tracking Instructions --><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-1677807-3";urchinTracker();</script></body></html>

Msecurity
Потребител
Потребител
Posts: 753
Joined: Sat Sep 18, 2010 6:12 am
Answers: 19
Location: Варна

Post by Msecurity » Wed Feb 13, 2013 3:56 pm

OFF TOPIC: в момента нямам време, но довечера ще го погледна :)

Msecurity
Потребител
Потребител
Posts: 753
Joined: Sat Sep 18, 2010 6:12 am
Answers: 19
Location: Варна

Post by Msecurity » Sat Feb 16, 2013 9:29 am

Сори за забавянето но последно време почти не мога да седна пред компа....
Ето постави го това... и ако ти даде грешка вече ще е по лесно да я намерим.
Поне има някакъв вид кода.

[php]<?php
session_start();
include "connect.php";
$admin = $_SESSION['admin'];
$result = mysql_query("select * from ulica");
while($r1 = mysql_fetch_array($result))
{
$roleks=$r1["kletka"];
$rs = mysql_query("select * from users WHERE username='$sesusername");
$row = mysql_fetch_array($rs);
$risk=$row["risk"];
$online=$row["online"];
$skrit=time();
$skrit1=$row["online"];
$atakyt=$row["ataka"];
$myni=$row["pari"];
$life=$row["life"];
$zatvor=$row["zatvor"];
$orujie=$row["orujie"];
$kola=$row["kola"];
$kuche=$row["kuche"];
$yosar=$row["username"];
$ips=array("newguy","bota");
if ($orujie=="1")
{
$atk=
$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk', orujie='11' WHERE username = '$admin'");
$at="Нямаш оръжие";
$izt="0";
}
elseif ($orujie=="2")
{
$atk=$atakyt;
$update = mysql_query("Update users set ataka = '$atk', orujie='3' where username = '$sesusername");
$izt="0";
$at="Нямаш оръжие";
}
elseif ($orujie=="11")
{
$at="Имаш AT";
$izt="100";
}
else
{
$at="Нямаш оръжие";
$izt="0";
}
if ($kola=="1")
{
$atk1=$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk1', kola='11' where username = '$sadmin");
$at1="Нямаш оръжие";
$izt1="0";
}
elseif ($kola=="2"){
$atk1=$atakyt - 1000000;
$update = mysql_query("Update users set ataka = '$atk1', kola='3' where username = '$sesusername);
$izt1="0";$at1="Нямаш кола";
}
elseif ($kola=="11")
{
$at1="Имаш Ролс ройс";
$izt1="100";
}
else{
$at1="Нямаш кола";
$izt1="0";
}
if ($kuche=="1")
{
$atk2=$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk2', kuche='11' where username = '$sesusername');$at2="Нямаш оръжие";$izt2="0";}elseif ($kuche=="2"){$atk2=$atakyt - 1000000;$update = mysql_query("Update users set ataka = '$atk2', kuche='3' where username = '$sesusername'");
$izt2="0";
$at2="Нямаш куче";
}
elseif ($kuche=="11")
{
$at2="Имаш Питбул";
$izt2="100";
}else
{$at2="Нямаш куче";
$izt2="0";
}
if (in_array($yosar,$ips))
{
$update = mysql_query("Update users set online = '3' where username = '$sesusername'");
}
else
{
echo "";
}
$rspzk=$row["respect"];
$rspzkz=$row["intelect"];
$rspraz=$row["respect"];
$silatami=$row["sila"];
$seksapil=$row["selsapil"];
$stotinki=$row["pari"];
if ($rspzk<0)
{
$update = mysql_query("Update users set ataka = '1' where username = '$sesusername'");
}
if ($rspzkz<0)
{
$update = mysql_query("Update users set intelect = '1' where username = '$sesusername'");
}
if ($rspraz<0){$update = mysql_query("Update users set respect = '1' where username = '$sesusername'");
}
if ($silatami<0)
{
$update = mysql_query("Update users set sila = '1' where username = '$sesusername'");
}
if ($stotinki<0){$update = mysql_query("Update users set pari = '1' where username = '$sesusername'");
}
if ($risk>250 or $zatvor=="2")
{
$update = mysql_query("Update users set risk = '0' zatvor = '2' where username = '$sesusername'");
echo '<meta http-equiv="refresh" content="0;url=zatvor.php"/>';}}?>

<!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">
<head>
<title>Улицата</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="description" content="BGMAFIA mass online game. Life of a gangster."/>
<meta name='keywords' content='bgmafia,mass multiplayer,mmorpg,gangster,mob,rpg'/>
<meta name='copyright' content='Copyright (c)2006 bgmafia.com'/>
<meta name="authors" content="Boian Katzarsky, Stoian Doichev"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/>
<link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' />
<!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]-->
<!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]-->
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/>
<meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/>
<link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' />
<!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]-->
<!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]-->
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script>
<script type='text/javascript'> DIRECTION = 'ltr'; COOKIE_DOMAIN = '.bgmafia.com'; AUTOLOGIN = 1; StaticServer = 'http://v2i.bgmafia.com'; Server = 'http://bgmafia.com/'; ServerID = '18'; var req_id = 'bBT' WORLD = 'bg.4'; REQ_PAIR = 'z=bBT'; COUNTER_UID = 'UA-10791273-17'; LANG = 'bg'; TIME = 1308595105; GAME_START = 1305838800; DST_CORRECTION = 0; TIME_FACTOR = 1; </script>
<script type='text/javascript'> UID = 14416; GID = 1; </script>
<style type='text/css'> div#msgbox { position:absolute; } </style>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/general.js?19'></script>
<script type="text/javascript"> $(document).ready(function(){ $(document).find("a.iframe").attr({"href":"/credits", "target":""}); }); </script>
</head>
<body class='ltr lang-bg world-bg wt-bg.4'>
<script type='text/javascript'> StaticServer = 'http://www2.bgmafia.com'; Server = 'http://bgmafia.com/'; REQ_PAIR = 'z=ZeQ6'; UID = 29; GID = 1; </script>
<script type='text/javascript' src='http://www2.bgmafia.com/js/default.js?x'></script>
<link rel='icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' />
<link rel='shortcut icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' />
<script type='text/javascript'>
function addEvent( obj, type, fn)
{ if(obj.addEventListener) obj.addEventListener( type, fn, false );
else if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function()
{ obj['e'+type+fn]( window.event ); } obj.attachEvent('on'+type, obj[type+fn] );
}
}
function openMenu(event)
{
var el, x, y, id; id = this.getAttribute('m'); el = document.getElementById('menu'+id);
if(window.event)
{
x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
y = window.event.clientY + document.documentElement.scrollTop + + document.body.scrollTop;
}
else {
x = event.clientX + window.scrollX; y = event.clientY + window.scrollY;
}
x -= 10;
y -= 10;
el.style.left = x + 'px';
el.style.top = y + 'px'; el.style.visibility = 'visible';
//el.style.display = 'block'; el.onmouseout = closeMenu; event.returnValue = false; hideBTooltip(); } function closeMenu(event) { var current, related; if(window.event){ current = this; related = window.event.toElement; } else{ current = event.currentTarget; related = event.relatedTarget; } if(current != related && !contains(current, related)) current.style.visibility = 'hidden'; //current.style.display = 'none'; } // Return true if node a contains node b. function contains(a, b) { if(!b) return true; while(b.parentNode) if((b = b.parentNode) == a) return true; return false; } function findPosX(obj) { var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent){ while(obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } function mapInit() { var map_div = document.getElementById('map'); if(map_div) { var mapconf = new Array(); var obj_arr = map_div.getElementsByTagName('div'); var len = obj_arr.length; for(var i=0,mid=0; i<len; i++) { var el = obj_arr; if(el.className.indexOf('spot')==-1) continue; // menu handler addEvent(el,'click', openMenu ); el.setAttribute('m', mid); // over addEvent( el, 'mouseover', onMouseOver); addEvent( el, 'mouseout', onMouseOut); // attach _over on every <tr> in menu table var tbl = document.getElementById('menu'+mid); if(!tbl || tbl.nodeName.toLowerCase() != 'table') continue; var trarr = tbl.getElementsByTagName('tr'); var trlen = trarr.length; for(var k=0; k<trlen; k++) { addEvent( trarr[k], 'mouseover', _onMouseOver); addEvent( trarr[k], 'mouseout', _onMouseOut); } mid++; } } } function onMouseOver(){ this.className += '_over'; } function onMouseOut(){ this.className = this.className.replace('_over', ''); } function _onMouseOver(){ this.style.backgroundColor = '#666666'; } function _onMouseOut(){ this.style.backgroundColor = ''; } </script> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/map4.css' media='screen'/> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/base.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/flags.css' media='all'/><?phpinclude "spots.php";?> <script type='text/javascript' src='http://www2.bgmafia.com/js/tooltip.js'></script></head> <div id='wrapper'> <div id='gndnew'> <a href='#'> </a><a href='#'> </a><a href='#'> </a><a href='#'> </a> </div> <div id='ifwrapper'> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/><style type="text/css"><!--body { background-attachment: fixed; background-image: url(images/header3.jpg); background-repeat: no-repeat; background-position: center center;}--></style>
<div class='bgwrapper'>
<div class='header' id='cheader'>
<div id='game-time' class=''>
<div class='wrapper' id='cwrapper'>
<div class='left-col'>
<div class='' id='cheader'>
<div id='game-time' class=''>
</div><div id='avatar'>
<a href='?q=profile&z=ZeQ6'><img src='http://www2.bgmafia.com/res/avt/6/0.gif' alt=''/></a>
</div>
</div>
</div>
</a></div>
</div>
<div id='footer'>
<div class='footer-links'>
<div id='footer-bar'>
<span class='in'>
</span>
<span style='display:block;top:1px;right:2px;position:absolute;color:#999;'>
<a href='http://nimrod-games.com/index.php' target='_blank' title='produced by nimrod games (nimrod-games.com)'>nimrod-games.com</a>|<a href='http://persy.com' target='_blank' title='powered by persy.com servers'>persy.com</a>|<a href='http://wisdom.bg' target='_blank' title='supported by wisdom.bg'>wisdom.bg</a> </span>
<span style='display:none;' id='flid'><span>
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shoc ... on=9,0,0,0' width='1' height='1' id='access' align='top'>
<param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='false' />
<param name='movie' value='http://v2i.bgmafia.com/res/swf/cookie.swf' />
<param name='quality' value='high' />
<param name='bgcolor' value='' />
<param name='wmode' value='' />
<embed src='http://v2i.bgmafia.com/res/swf/cookie.swf' wmode='' quality='high' bgcolor='' width='1' height='1' name='access' align='top' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
</span>
</span>
</div>
<div class='credit-box'><a href='/extras?z=bBT'>
<span class='vip-active-small smarttip' title='2 дни'></span>
</a><a href='/payments?z=bBT' class='iframe credit-number-new'>
<span class='credit-info-new'><b>0</b></span></a>
<div class='credit-options'><a href='/extras?z=bBT' class='credit-bullet'>Екстри</a>
<a href='/bank/change?z=bBT' class='credit-bullet'>Купи пари</a>
<a href='/payments?z=bBT' class='credit-bullet iframe'>Зареди кредити</a>
</div>
</div>
</div>
<div class='wrapper' id='cwrapper'>
<div class='left-col'>
<div class='main-menu'>
<a href='city.php' class='mm-city ' >
<span>Градът</span></a><a href='index2.php' class='mm-street mm-sel ' >
<span>Улицата</span></a><a href='/news?z=bBT' class='mm-newspaper ' >
<span>Вестник</span></a><a href='?modul=uroci' class='mm-adviser ' >
<span>Учебен център</span></a><a href='/training?z=bBT' class='mm-training ' >
<span>Фитнес</span></a><a href='?modul=shop' class='mm-bars ' >
<span>Заведения</span></a><a href='ranking.php' class='mm-standing ' >
<span>Класация</span></a><a href='/contrabandist?z=bBT' class='mm-contrabandist ' >
<span>Контрабандист</span></a><a href='pazar.php' class='mm-market ' >
<span>Черен Пазар</span></a><a href='?modul=zatvor' class='mm-jail ' >
<span>Затвор</span></a><a href='?modul=rean' class='mm-hospital ' >
<span>Болница</span></a><a href='/tournament?z=bBT' class='mm-tournament ' >
<span>Турнири</span></a><a href='/bank?z=bBT' class='mm-bank ' >
<span>Банка</span></a><a href='/casino?z=bBT' class='mm-casino ' >
<span>Казино</span></a><a href='/police?z=bBT' class='mm-police ' >
<span>Полиция</span></a></div> <a href='/top10/search?z=bBT' class='sec-item'>
<span class='find'>Намери гангстер</span></a><a href='/chart?z=bBT' class='sec-item'>
<span class='thumbs-up'>Гласувай</span></a> </div>
<?php include "player_menu.php"; ?>
</div>
</div>
</div>
<div class='private-map' id='map'>
<tr> <td width="54"><a href='?q=profile/1391&z=ZeQ6'><img src='http://i47.vbox7.com/a/baddilar_6e409e9b_1.jpg' width='50' height='50' alt='' class='avt'/></a></td> </tr> </table><div class='spot0 ground' title='Стара сграда'></div><div class='spot1 ground' title='Стара сграда'></div><div class='spot2 ground' title='Стара сграда'></div><div class='spot3 ground' title='Стара сграда'></div><div class='spot4 ground' title='Стара сграда'></div><div class='spot5 ground' title='Стара сграда'></div>
<div class='spot6 ground' title='Стара сграда'></div>
<div class='spot7 ground' title='Стара сграда'></div>
<div class='spot8 ground' title='Стара сграда'></div>
<div class='spot ' title=''></div><div class='spot drunk' title='Пияница'></div>
<div class='spot garbage' title='Кофи'></div>
<div class='spot postman' title='Пощальон'></div>
<div class='spot inlove' title='Влюбени'></div>
<div class='spot kid' title='Момиченце'></div>
<div class='spot dog' title='Куче'></div>
<div class='spot shaft' title='Шахта'></div>
<div class='spot blockade' title='Барикада'></div>
<div class='spot tank' title='Варели'></div>
<div class='spot girl' title='Гърла'></div>
<div class='spot skater' title='Скейтър'></div>
<div class='spot hydrant' title='Пожарен кран'></div>
<div class='spot lazyboy' title='Лентяй'></div>
<div class='spot doggirl' title='Мацка с куче'></div>
<div class='spot bicyclist' title='Пич с колело'></div>
<div class='spot dogboy' title='Пич с куче'></div>
<div class='spot mother' title='Майка с количка'></div>
<div class='spot worker' title='Хамалин'></div>
<div class='spot sign' title='Табела'></div>
<div class='spot soccerboy' title='Футболяга'></div>
<div class='spot post' title='Поща'></div>
<div class='spot teacher' title='Учителка'></div>
<div class='spot taxi' title='Бакшиш'></div>
<div class='spot upi' title='Юпи'></div>
<div class='spot phone' title='Телефон'></div>
<div class='spot punk' title='Хулиган'></div>
<div class='spot drugdealer' title='Наркопласьор'></div>
<div class='spot manager' title='Мениджър'></div>
<div class='spot businesslady' title='Бизнес дама'></div>
<div class='spot cofemachine' title='Кафемашина'></div>
<div class='spot hookers' title='Фльорци'></div>
<div class='spot dude' title='Гъзар'></div>
<div class='spot newcar' title='Лъскава кола'></div>
<div class='spot businessman' title='Бизнесмен'></div>
<div class='spot bully' title='Мутра'></div>
<div class='spot atm' title='ATM'></div></div>
<script type='text/javascript'>mapInit(); mapTooltipInit();</script>
</div>
</div>
</div>
</center>
</div>
<tr> </tr> </p>
<p> <?php
if ($online=="1" or $online=="3")
{
echo " ";
}
else
{
echo '<meta http-equiv="refresh" content="0;url=index.php"/>';
}
?>
<?php
if ($life<"0")
{
echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';
}
elseif ($life=="0")
{
echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';
}
else
{
echo " ";
}
?>
</p>
</td>
</tr>
<tr>
<td width="794">&nbsp;
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<?phpdefine('IN_VALID', true);
include "connect.php";
if(isset($_GET['modul']))
{
$modul=htmlspecialchars($_GET['modul']);
}
else{$modul="";
}
switch($modul)
{
case "roleks":include "modules/roleks.php";
break;
case "shop":
include "modules/shop.php";
break;
case "pazar":
include "modules/pazar.php";
break;
case "rean":
include "modules/rean.php";
break;
case "uroci":
include "modules/uroci.php";
break;
case "svali":
include "modules/svali.php";
break;
case "xx":
include "modules/xx.php";
break;
case "zatvor":
include "modules/zatvor.php";
break;
case "rean":
include "modules/rean.php";
break;
case "top":
include "modules/top.php";
break;case "toprs":
include "modules/toprs.php";
break;
case "kletki":
include "modules/kletki.php";
break;
case "otepai":
include "modules/boi.php";
break;case "msg":
include "modules/msg.php";
break;
default:
include "kv.php";
}
?>
</td>
</tr>
</table>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp; </p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<meta http-equiv='Content-Type' content='text/html; charset=Windows-1251'>
</body>
</html> <!-- Tyxo -->
<a href="http://www.tyxo.bg/?2350" title="" target="_blank">
<script type="text/javascript">
<!--d=document;d.write('<img width="1" height="1" border="0" alt=""');d.write(' src="http://cnt.tyxo.bg/2350?rnd='+Math.round(Math.random()*2147483647));d.write('&amp;sp='+screen.width+'x'+screen.height+'&amp;r='+escape(d.referrer)+'" /></a>');//--></script> <noscript><img src="http://cnt.tyxo.bg/2350" width='1' height='1' border='0' alt=''/></noscript></a> <!-Web Counter--> <font size="1" style="display:none;"> <script type="text/javascript"> <!--_d=document; _n=navigator; _t=new Date(); function t() { _d.write("<img src=\"http://counter.search.bg/cgi-bin/c?_id= ... "+_j+"&_t="+(_t.getTimezoneOffset())+"&amp;_k="+_k+"&amp;_l="+escape(_d.referrer)+"\" width='1' height='1' "+"border='0'/>");} _c="0"; _r="0"; _j="U"; _k="U"; _d.cookie="_c=y";_d.cookie.length>0?_k="Y":_k="N";//--> </script> <script type="text/javascript" language="javascript1.2"> <!--_b=screen; _r=_b.width; _n.appName!="Netscape"?_c=_b.colorDepth: _c=_b.pixelDepth;_n.javaEnabled()?_j="Y":_j="N";//--> </script> <a href="http://counter.search.bg/cgi-bin/s?_id= ... rget="_top"> <script type="text/javascript" language="javascript"> <!--t(); //--> </script> <noscript> <img width=1 height=1 border=0 alt=""src="http://counter.search.bg/cgi-bin/c?_id= ... </a></font> <!-- Google Analytics: Tracking Instructions --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript">_uacct = "UA-1677807-3";urchinTracker(); </script> </body> </html>
?>[/php]

gamer12
Нов
Нов
Posts: 8
Joined: Sat Jan 05, 2013 1:39 am

Post by gamer12 » Sat Feb 16, 2013 3:43 pm

Parse error: syntax error, unexpected T_LNUMBER in /home/a8739400/public_html/index2.php on line 59

ONTOPIC: кода го има в темата. Няма смисъл да го поствам пак.

User avatar
Weezy
Нов
Нов
Posts: 85
Joined: Sat Aug 25, 2012 5:21 pm

Post by Weezy » Sat Feb 16, 2013 4:12 pm

[php]<?php
session_start();
include "connect.php";
$admin = $_SESSION['admin'];
$result = mysql_query("select * from ulica");
while($r1 = mysql_fetch_array($result))
{
$roleks=$r1["kletka"];
$rs = mysql_query("select * from users WHERE username='$sesusername'");
$row = mysql_fetch_array($rs);
$risk=$row["risk"];
$online=$row["online"];
$skrit=time();
$skrit1=$row["online"];
$atakyt=$row["ataka"];
$myni=$row["pari"];
$life=$row["life"];
$zatvor=$row["zatvor"];
$orujie=$row["orujie"];
$kola=$row["kola"];
$kuche=$row["kuche"];
$yosar=$row["username"];
$ips=array("newguy","bota");
if ($orujie=="1")
{
$atk=
$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk', orujie='11' WHERE username = '$admin'");
$at="Нямаш оръжие";
$izt="0";
}
elseif ($orujie=="2")
{
$atk=$atakyt;
$update = mysql_query("Update users set ataka = '$atk', orujie='3' where username = '$sesusername'");
$izt="0";
$at="Нямаш оръжие";
}
elseif ($orujie=="11")
{
$at="Имаш AT";
$izt="100";
}
else
{
$at="Нямаш оръжие";
$izt="0";
}
if ($kola=="1")
{
$atk1=$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk1', kola='11' where username = '$sadmin'");
$at1="Нямаш оръжие";
$izt1="0";
}
elseif ($kola=="2"){
$atk1=$atakyt - 1000000;
$update = mysql_query("Update users set ataka = '$atk1', kola='3' where username = '$sesusername'");
$izt1="0";
$at1="Нямаш кола";
}
elseif ($kola=="11")
{
$at1="Имаш Ролс ройс";
$izt1="100";
}
else{
$at1="Нямаш кола";
$izt1="0";
}
if ($kuche=="1")
{
$atk2=$atakyt + 1000000;
$update = mysql_query("Update users set ataka = '$atk2', kuche='11' where username = '$sesusername'");
$at2="Нямаш оръжие";
$izt2="0";
}elseif ($kuche=="2"){
$atk2=$atakyt - 1000000;
$update = mysql_query("Update users set ataka = '$atk2', kuche='3' where username = '$sesusername'");
$izt2="0";
$at2="Нямаш куче";
}
elseif ($kuche=="11")
{
$at2="Имаш Питбул";
$izt2="100";
}else
{$at2="Нямаш куче";
$izt2="0";
}
if (in_array($yosar,$ips))
{
$update = mysql_query("Update users set online = '3' where username = '$sesusername'");
}
else
{
echo "";
}
$rspzk=$row["respect"];
$rspzkz=$row["intelect"];
$rspraz=$row["respect"];
$silatami=$row["sila"];
$seksapil=$row["selsapil"];
$stotinki=$row["pari"];
if ($rspzk<0)
{
$update = mysql_query("Update users set ataka = '1' where username = '$sesusername'");
}
if ($rspzkz<0)
{
$update = mysql_query("Update users set intelect = '1' where username = '$sesusername'");
}
if ($rspraz<0){$update = mysql_query("Update users set respect = '1' where username = '$sesusername'");
}
if ($silatami<0)
{
$update = mysql_query("Update users set sila = '1' where username = '$sesusername'");
}
if ($stotinki<0){$update = mysql_query("Update users set pari = '1' where username = '$sesusername'");
}
if ($risk>250 or $zatvor=="2")
{
$update = mysql_query("Update users set risk = '0' zatvor = '2' where username = '$sesusername'");
echo '<meta http-equiv="refresh" content="0;url=zatvor.php"/>';}}?>

<!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">
<head>
<title>Улицата</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="description" content="BGMAFIA mass online game. Life of a gangster."/>
<meta name='keywords' content='bgmafia,mass multiplayer,mmorpg,gangster,mob,rpg'/>
<meta name='copyright' content='Copyright (c)2006 bgmafia.com'/>
<meta name="authors" content="Boian Katzarsky, Stoian Doichev"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/>
<link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' />
<!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]-->
<!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]-->
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/>
<meta name='authors' content='Boian Katzarsky, Stoian Doichev, Hristo Getov, Emil Katzarsky'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/flags.css' media='all'/>
<link rel='shortcut icon' href='http://v2i.bgmafia.com/srv/bg.4/img/favicon.ico' type='image/x-icon' />
<!--[if IE 6]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie6-fix.css?2'/><![endif]-->
<!--[if IE 7]><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/ie7-fix.css'/><![endif]-->
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/>
<link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/cursors.css?2' media='all'/>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery/jquery ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.jscrol ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/jquery.mousew ... '></script>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/mwheelIntent.js'></script>
<script type='text/javascript'> DIRECTION = 'ltr'; COOKIE_DOMAIN = '.bgmafia.com'; AUTOLOGIN = 1; StaticServer = 'http://v2i.bgmafia.com'; Server = 'http://bgmafia.com/'; ServerID = '18'; var req_id = 'bBT' WORLD = 'bg.4'; REQ_PAIR = 'z=bBT'; COUNTER_UID = 'UA-10791273-17'; LANG = 'bg'; TIME = 1308595105; GAME_START = 1305838800; DST_CORRECTION = 0; TIME_FACTOR = 1; </script>
<script type='text/javascript'> UID = 14416; GID = 1; </script>
<style type='text/css'> div#msgbox { position:absolute; } </style>
<script type='text/javascript' src='http://v2i.bgmafia.com/js/general.js?19'></script>
<script type="text/javascript"> $(document).ready(function(){ $(document).find("a.iframe").attr({"href":"/credits", "target":""}); }); </script>
</head>
<body class='ltr lang-bg world-bg wt-bg.4'>
<script type='text/javascript'> StaticServer = 'http://www2.bgmafia.com'; Server = 'http://bgmafia.com/'; REQ_PAIR = 'z=ZeQ6'; UID = 29; GID = 1; </script>
<script type='text/javascript' src='http://www2.bgmafia.com/js/default.js?x'></script>
<link rel='icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' />
<link rel='shortcut icon' href='http://www2.bgmafia.com/tpl/favicon.ico' type='image/x-icon' />
<script type='text/javascript'>
function addEvent( obj, type, fn)
{ if(obj.addEventListener) obj.addEventListener( type, fn, false );
else if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function()
{ obj['e'+type+fn]( window.event ); } obj.attachEvent('on'+type, obj[type+fn] );
}
}
function openMenu(event)
{
var el, x, y, id; id = this.getAttribute('m'); el = document.getElementById('menu'+id);
if(window.event)
{
x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
y = window.event.clientY + document.documentElement.scrollTop + + document.body.scrollTop;
}
else {
x = event.clientX + window.scrollX; y = event.clientY + window.scrollY;
}
x -= 10;
y -= 10;
el.style.left = x + 'px';
el.style.top = y + 'px'; el.style.visibility = 'visible';
//el.style.display = 'block'; el.onmouseout = closeMenu; event.returnValue = false; hideBTooltip(); } function closeMenu(event) { var current, related; if(window.event){ current = this; related = window.event.toElement; } else{ current = event.currentTarget; related = event.relatedTarget; } if(current != related && !contains(current, related)) current.style.visibility = 'hidden'; //current.style.display = 'none'; } // Return true if node a contains node b. function contains(a, b) { if(!b) return true; while(b.parentNode) if((b = b.parentNode) == a) return true; return false; } function findPosX(obj) { var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent){ while(obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } function mapInit() { var map_div = document.getElementById('map'); if(map_div) { var mapconf = new Array(); var obj_arr = map_div.getElementsByTagName('div'); var len = obj_arr.length; for(var i=0,mid=0; i<len; i++) { var el = obj_arr; if(el.className.indexOf('spot')==-1) continue; // menu handler addEvent(el,'click', openMenu ); el.setAttribute('m', mid); // over addEvent( el, 'mouseover', onMouseOver); addEvent( el, 'mouseout', onMouseOut); // attach _over on every <tr> in menu table var tbl = document.getElementById('menu'+mid); if(!tbl || tbl.nodeName.toLowerCase() != 'table') continue; var trarr = tbl.getElementsByTagName('tr'); var trlen = trarr.length; for(var k=0; k<trlen; k++) { addEvent( trarr[k], 'mouseover', _onMouseOver); addEvent( trarr[k], 'mouseout', _onMouseOut); } mid++; } } } function onMouseOver(){ this.className += '_over'; } function onMouseOut(){ this.className = this.className.replace('_over', ''); } function _onMouseOver(){ this.style.backgroundColor = '#666666'; } function _onMouseOut(){ this.style.backgroundColor = ''; } </script> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/map4.css' media='screen'/> <link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/base.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/usericon.css' media='all'/>
<link rel='stylesheet' type='text/css' href='http://www2.bgmafia.com/tpl/flags.css' media='all'/><?phpinclude "spots.php";?> <script type='text/javascript' src='http://www2.bgmafia.com/js/tooltip.js'></script></head> <div id='wrapper'> <div id='gndnew'> <a href='#'> </a><a href='#'> </a><a href='#'> </a><a href='#'> </a> </div> <div id='ifwrapper'> <link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/base-skin2.css?81' media='all'/><link rel='stylesheet' type='text/css' href='http://v2i.bgmafia.com/tpl/map-1024.css?20' media='all'/><style type="text/css"><!--body { background-attachment: fixed; background-image: url(images/header3.jpg); background-repeat: no-repeat; background-position: center center;}--></style>
<div class='bgwrapper'>
<div class='header' id='cheader'>
<div id='game-time' class=''>
<div class='wrapper' id='cwrapper'>
<div class='left-col'>
<div class='' id='cheader'>
<div id='game-time' class=''>
</div><div id='avatar'>
<a href='?q=profile&z=ZeQ6'><img src='http://www2.bgmafia.com/res/avt/6/0.gif' alt=''/></a>
</div>
</div>
</div>
</a></div>
</div>
<div id='footer'>
<div class='footer-links'>
<div id='footer-bar'>
<span class='in'>
</span>
<span style='display:block;top:1px;right:2px;position:absolute;color:#999;'>
<a href='http://nimrod-games.com/index.php' target='_blank' title='produced by nimrod games (nimrod-games.com)'>nimrod-games.com</a>|<a href='http://persy.com' target='_blank' title='powered by persy.com servers'>persy.com</a>|<a href='http://wisdom.bg' target='_blank' title='supported by wisdom.bg'>wisdom.bg</a> </span>
<span style='display:none;' id='flid'><span>
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shoc ... on=9,0,0,0' width='1' height='1' id='access' align='top'>
<param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='false' />
<param name='movie' value='http://v2i.bgmafia.com/res/swf/cookie.swf' />
<param name='quality' value='high' />
<param name='bgcolor' value='' />
<param name='wmode' value='' />
<embed src='http://v2i.bgmafia.com/res/swf/cookie.swf' wmode='' quality='high' bgcolor='' width='1' height='1' name='access' align='top' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
</span>
</span>
</div>
<div class='credit-box'><a href='/extras?z=bBT'>
<span class='vip-active-small smarttip' title='2 дни'></span>
</a><a href='/payments?z=bBT' class='iframe credit-number-new'>
<span class='credit-info-new'><b>0</b></span></a>
<div class='credit-options'><a href='/extras?z=bBT' class='credit-bullet'>Екстри</a>
<a href='/bank/change?z=bBT' class='credit-bullet'>Купи пари</a>
<a href='/payments?z=bBT' class='credit-bullet iframe'>Зареди кредити</a>
</div>
</div>
</div>
<div class='wrapper' id='cwrapper'>
<div class='left-col'>
<div class='main-menu'>
<a href='city.php' class='mm-city ' >
<span>Градът</span></a><a href='index2.php' class='mm-street mm-sel ' >
<span>Улицата</span></a><a href='/news?z=bBT' class='mm-newspaper ' >
<span>Вестник</span></a><a href='?modul=uroci' class='mm-adviser ' >
<span>Учебен център</span></a><a href='/training?z=bBT' class='mm-training ' >
<span>Фитнес</span></a><a href='?modul=shop' class='mm-bars ' >
<span>Заведения</span></a><a href='ranking.php' class='mm-standing ' >
<span>Класация</span></a><a href='/contrabandist?z=bBT' class='mm-contrabandist ' >
<span>Контрабандист</span></a><a href='pazar.php' class='mm-market ' >
<span>Черен Пазар</span></a><a href='?modul=zatvor' class='mm-jail ' >
<span>Затвор</span></a><a href='?modul=rean' class='mm-hospital ' >
<span>Болница</span></a><a href='/tournament?z=bBT' class='mm-tournament ' >
<span>Турнири</span></a><a href='/bank?z=bBT' class='mm-bank ' >
<span>Банка</span></a><a href='/casino?z=bBT' class='mm-casino ' >
<span>Казино</span></a><a href='/police?z=bBT' class='mm-police ' >
<span>Полиция</span></a></div> <a href='/top10/search?z=bBT' class='sec-item'>
<span class='find'>Намери гангстер</span></a><a href='/chart?z=bBT' class='sec-item'>
<span class='thumbs-up'>Гласувай</span></a> </div>
<?php include "player_menu.php"; ?>
</div>
</div>
</div>
<div class='private-map' id='map'>
<tr> <td width="54"><a href='?q=profile/1391&z=ZeQ6'><img src='http://i47.vbox7.com/a/baddilar_6e409e9b_1.jpg' width='50' height='50' alt='' class='avt'/></a></td> </tr> </table><div class='spot0 ground' title='Стара сграда'></div><div class='spot1 ground' title='Стара сграда'></div><div class='spot2 ground' title='Стара сграда'></div><div class='spot3 ground' title='Стара сграда'></div><div class='spot4 ground' title='Стара сграда'></div><div class='spot5 ground' title='Стара сграда'></div>
<div class='spot6 ground' title='Стара сграда'></div>
<div class='spot7 ground' title='Стара сграда'></div>
<div class='spot8 ground' title='Стара сграда'></div>
<div class='spot ' title=''></div><div class='spot drunk' title='Пияница'></div>
<div class='spot garbage' title='Кофи'></div>
<div class='spot postman' title='Пощальон'></div>
<div class='spot inlove' title='Влюбени'></div>
<div class='spot kid' title='Момиченце'></div>
<div class='spot dog' title='Куче'></div>
<div class='spot shaft' title='Шахта'></div>
<div class='spot blockade' title='Барикада'></div>
<div class='spot tank' title='Варели'></div>
<div class='spot girl' title='Гърла'></div>
<div class='spot skater' title='Скейтър'></div>
<div class='spot hydrant' title='Пожарен кран'></div>
<div class='spot lazyboy' title='Лентяй'></div>
<div class='spot doggirl' title='Мацка с куче'></div>
<div class='spot bicyclist' title='Пич с колело'></div>
<div class='spot dogboy' title='Пич с куче'></div>
<div class='spot mother' title='Майка с количка'></div>
<div class='spot worker' title='Хамалин'></div>
<div class='spot sign' title='Табела'></div>
<div class='spot soccerboy' title='Футболяга'></div>
<div class='spot post' title='Поща'></div>
<div class='spot teacher' title='Учителка'></div>
<div class='spot taxi' title='Бакшиш'></div>
<div class='spot upi' title='Юпи'></div>
<div class='spot phone' title='Телефон'></div>
<div class='spot punk' title='Хулиган'></div>
<div class='spot drugdealer' title='Наркопласьор'></div>
<div class='spot manager' title='Мениджър'></div>
<div class='spot businesslady' title='Бизнес дама'></div>
<div class='spot cofemachine' title='Кафемашина'></div>
<div class='spot hookers' title='Фльорци'></div>
<div class='spot dude' title='Гъзар'></div>
<div class='spot newcar' title='Лъскава кола'></div>
<div class='spot businessman' title='Бизнесмен'></div>
<div class='spot bully' title='Мутра'></div>
<div class='spot atm' title='ATM'></div></div>
<script type='text/javascript'>mapInit(); mapTooltipInit();</script>
</div>
</div>
</div>
</center>
</div>
<tr> </tr> </p>
<p> <?php
if ($online=="1" or $online=="3")
{
echo " ";
}
else
{
echo '<meta http-equiv="refresh" content="0;url=index.php"/>';
}
?>
<?php
if ($life<"0")
{
echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';
}
elseif ($life=="0")
{
echo '<meta http-equiv="refresh" content="0;url=umrex.php"/>';
}
else
{
echo " ";
}
?>
</p>
</td>
</tr>
<tr>
<td width="794">&nbsp;
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<?phpdefine('IN_VALID', true);
include "connect.php";
if(isset($_GET['modul']))
{
$modul=htmlspecialchars($_GET['modul']);
}
else{$modul="";
}
switch($modul)
{
case "roleks":include "modules/roleks.php";
break;
case "shop":
include "modules/shop.php";
break;
case "pazar":
include "modules/pazar.php";
break;
case "rean":
include "modules/rean.php";
break;
case "uroci":
include "modules/uroci.php";
break;
case "svali":
include "modules/svali.php";
break;
case "xx":
include "modules/xx.php";
break;
case "zatvor":
include "modules/zatvor.php";
break;
case "rean":
include "modules/rean.php";
break;
case "top":
include "modules/top.php";
break;case "toprs":
include "modules/toprs.php";
break;
case "kletki":
include "modules/kletki.php";
break;
case "otepai":
include "modules/boi.php";
break;case "msg":
include "modules/msg.php";
break;
default:
include "kv.php";
}
?>
</td>
</tr>
</table>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp; </p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<meta http-equiv='Content-Type' content='text/html; charset=Windows-1251'>
</body>
</html> <!-- Tyxo -->
<a href="http://www.tyxo.bg/?2350" title="" target="_blank">
<script type="text/javascript">
<!--d=document;d.write('<img width="1" height="1" border="0" alt=""');d.write(' src="http://cnt.tyxo.bg/2350?rnd='+Math.round(Math.random()*2147483647));d.write('&amp;sp='+screen.width+'x'+screen.height+'&amp;r='+escape(d.referrer)+'" /></a>');//--></script> <noscript><img src="http://cnt.tyxo.bg/2350" width='1' height='1' border='0' alt=''/></noscript></a> <!-Web Counter--> <font size="1" style="display:none;"> <script type="text/javascript"> <!--_d=document; _n=navigator; _t=new Date(); function t() { _d.write("<img src=\"http://counter.search.bg/cgi-bin/c?_id= ... "+_j+"&_t="+(_t.getTimezoneOffset())+"&amp;_k="+_k+"&amp;_l="+escape(_d.referrer)+"\" width='1' height='1' "+"border='0'/>");} _c="0"; _r="0"; _j="U"; _k="U"; _d.cookie="_c=y";_d.cookie.length>0?_k="Y":_k="N";//--> </script> <script type="text/javascript" language="javascript1.2"> <!--_b=screen; _r=_b.width; _n.appName!="Netscape"?_c=_b.colorDepth: _c=_b.pixelDepth;_n.javaEnabled()?_j="Y":_j="N";//--> </script> <a href="http://counter.search.bg/cgi-bin/s?_id= ... rget="_top"> <script type="text/javascript" language="javascript"> <!--t(); //--> </script> <noscript> <img width=1 height=1 border=0 alt=""src="http://counter.search.bg/cgi-bin/c?_id= ... </a></font> <!-- Google Analytics: Tracking Instructions --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript">_uacct = "UA-1677807-3";urchinTracker(); </script> </body> </html>
?>[/php]

gamer12
Нов
Нов
Posts: 8
Joined: Sat Jan 05, 2013 1:39 am

Post by gamer12 » Sat Feb 16, 2013 6:25 pm

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/a8739400/public_html/index2.php on line 199

сайта му е мамата :@

User avatar
Weezy
Нов
Нов
Posts: 85
Joined: Sat Aug 25, 2012 5:21 pm

Post by Weezy » Sat Feb 16, 2013 7:26 pm

Истината е, че целият ти код е супер омазан(меко казано)! Не знам готов ли е този код, ти ли си го писал или си го купил, но кода НЕ СТРУВА! :) На много update заявки не бяха затворени кавички, на места има променливи, които нищо не изпълняват. :) Просто доста трябва да си играе някой за да го управи. :)

Post Reply