L2JWeb Donation system

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: L2JWeb Donation system

Post by UnAfraid »

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!"; }	
............................................________........................
....................................,.-‘”...................``~.,..................
.............................,.-”...................................“-.,............
.........................,/...............................................”:,........
.....................,?......................................................\,.....
.................../...........................................................,}....
................./......................................................,:`^`..}....
.............../...................................................,:”........./.....
..............?.....__.........................................:`.........../.....
............./__.(.....“~-,_..............................,:`........../........
.........../(_....”~,_........“~,_....................,:`........_/...........
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}...........
...........((.....*~_.......”=-._......“;,,./`..../”............../............
...,,,___.\`~,......“~.,....................`.....}............../.............
............(....`=-,,.......`........................(......;_,,-”...............
............/.`~,......`-...............................\....../\...................
.............\`~.*-,.....................................|,./.....\,__...........
,,_..........}.>-._\...................................|..............`=~-,....
.....`=~-,_\_......`\,.................................\........................
...................`=~-,,.\,...............................\.......................
................................`:,,...........................`\..............__..
.....................................`=-,...................,%`>--==``.......
........................................_\..........._,-%.......`\...............
...................................,<`.._|_,-&``................`\..............
Image
Post Reply