1. PHP / Говнокод #6777

    +152

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    if (mysql_query("UPDATE `users` as u, `inventory` as i SET u.{$slot1} = {$id}, i.dressed = 1,
    			u.sila = u.sila + i.gsila,
    			u.lovk = u.lovk + i.glovk,
    			u.inta = u.inta + i.ginta,
    			u.intel = u.intel + i.gintel,
    			u.maxhp = u.maxhp + i.ghp,
    			u.maxmana = u.maxmana + i.gmana,
    			u.noj = u.noj + i.gnoj,
    			u.topor = u.topor + i.gtopor,
    			u.dubina = u.dubina + i.gdubina,
    			u.mec = u.mec + i.gmech,
    			u.mfire = u.mfire + i.gfire,
    			u.mwater = u.mwater + i.gwater,
    			u.mair = u.mair + i.gair,
    			u.mearth = u.mearth + i.gearth,
    			u.mlight = u.mlight + i.glight,
    			u.mgray = u.mgray + i.ggray,
    			u.mdark = u.mdark + i.gdark
    				WHERE
    			i.needident = 0 AND
    			i.id = {$id} AND
    			i.dressed = 0 AND
    			i.owner = {$user['id']} AND
    			u.sila >= i.nsila AND
    			u.lovk >= i.nlovk AND
    			u.inta >= i.ninta AND
    			u.vinos >= i.nvinos AND
    			u.intel >= i.nintel AND
    			u.mudra >= i.nmudra AND
    			u.level >= i.nlevel AND
    			((".(int)$user['align']." = i.nalign) or (i.nalign = 0)) AND
    			u.id = {$user['id']};")) {
    			$user[$slot1] = $item['id'];
    			return 	true;}
    		}

    все та же браузерка

    Запостил: jQuery, 29 Мая 2011

    Комментарии (10) RSS

    Добавить комментарий