Code: Select all
if($sacao == 'addi') { $id_char = intval($_GET['id_char']); $id_item = intval($_GET['id_item']); $t = addslashes(htmlentities($_GET['t'])); $enchant = intval($_GET['enchant']); $qtd = intval($_GET['qtd']); $caracteres = '0123456789'; $numch = 8; $oid = ''; for($i=0;$i<$numch;$i++) { $oid.=$caracteres[rand(0,strlen($caracteres)-1)]; /[color=#FF0000]/ here just no comment :X[/color] } for($i = 1; $i <= $qtd; $i++) { $aux=$oid+$i; $qt = $qtd > 1 ? '1' : $qtd; mysql_query("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc) VALUES ('".$id_char."', '".$aux."', '".$id_item."', '".$qt."', '".$enchant."', 'INVENTORY')") or die(mysql_error()); } echo "Item Added!"; }
....................................,.-‘”...................``~.,..................
.............................,.-”...................................“-.,............
.........................,/...............................................”:,........
.....................,?......................................................\,.....
.................../...........................................................,}....
................./......................................................,:`^`..}....
.............../...................................................,:”........./.....
..............?.....__.........................................:`.........../.....
............./__.(.....“~-,_..............................,:`........../........
.........../(_....”~,_........“~,_....................,:`........_/...........
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}...........
...........((.....*~_.......”=-._......“;,,./`..../”............../............
...,,,___.\`~,......“~.,....................`.....}............../.............
............(....`=-,,.......`........................(......;_,,-”...............
............/.`~,......`-...............................\....../\...................
.............\`~.*-,.....................................|,./.....\,__...........
,,_..........}.>-._\...................................|..............`=~-,....
.....`=~-,_\_......`\,.................................\........................
...................`=~-,,.\,...............................\.......................
................................`:,,...........................`\..............__..
.....................................`=-,...................,%`>--==``.......
........................................_\..........._,-%.......`\...............
...................................,<`.._|_,-&``................`\..............