Domanda [AIUTO]-.-" Rispondete almeno qua....

Stato
Discussione chiusa ad ulteriori risposte.

ThunderPowa

Utente Emerald
10 Gennaio 2010
936
91
317
631
Per fare Un crea_Item Con Password per accedervi Mi hanno detto di mettere Questo script accanto a $_POST:
if($_POST['code'] != 'scrivi qui la pass'){die("ERRORE PASSWORD!");}
MA DOVE DEVO METTERLO,DOVE SONO QUESTI POST????
DITEMI DOVE METTERLO ECCO PARTE DELLO SCRIPT

$bdd_name='account';
if(isset($_POST['owner_id'])){
$owner_id=$_POST['owner_id'];
$window=$_POST['window'];
$pos=$_POST['pos'];
$count=$_POST['count'];
$vnum=$_POST['vnum'];
$socket0=$_POST['socket0'];
$socket1=$_POST['socket1'];
$socket2=$_POST['socket2'];
$socket3=$_POST['socket3'];
$socket4=$_POST['socket4'];
$socket5=$_POST['socket5'];
$attrtype0=$_POST['attrtype0'];
$attrtype1=$_POST['attrtype1'];
$attrtype2=$_POST['attrtype2'];
$attrtype3=$_POST['attrtype3'];
$attrtype4=$_POST['attrtype4'];
$attrtype5=$_POST['attrtype5'];
$attrtype6=$_POST['attrtype6'];
$attrvalue0=$_POST['attrvalue0'];
$attrvalue1=$_POST['attrvalue1'];
$attrvalue2=$_POST['attrvalue2'];
$attrvalue3=$_POST['attrvalue3'];
$attrvalue4=$_POST['attrvalue4'];
$attrvalue5=$_POST['attrvalue5'];
$attrvalue6=$_POST['attrvalue6'];
echo("Connessione al DataBase MySQL in corso...<br>");
mysql_connect($host_db,$Login_db,$pwd_db);
echo("Connessione stabilita!<br>");
mysql_select_db($bdd_name);
echo("Database selezionato...<br>Scrittura dei valori in corso...<br>");
$request="INSERT INTO `player`.`item` (`id`, `owner_id`, `window`, `pos`, `count`, `vnum`, `socket0`, `socket1`, `socket2`, `socket3`, `socket4`, `socket5`, `attrtype0`, `attrvalue0`, `attrtype1`, `attrvalue1`, `attrtype2`, `attrvalue2`, `attrtype3`, `attrvalue3`, `attrtype4`, `attrvalue4`, `attrtype5`, `attrvalue5`, `attrtype6`, `attrvalue6`) VALUES ('NULL', '$owner_id', '$window', '$pos', '$count', '$vnum', '$socket0', '$socket1', '$socket2', 'NULL', 'NULL', 'NULL', '$attrtype0', '$attrvalue0', '$attrtype1', '$attrvalue1', '$attrtype2', '$attrvalue2', '$attrtype3', '$attrvalue3', '$attrtype4', '$attrvalue4', '$attrtype5', '$attrvalue5', '$attrtype6', '$attrvalue6');";
if(mysql_query($request)){ echo("Item creato!<br> Script by Wufe, Modded by ScumpinatoS o ScumpiS only for CheatForge.net!"); } else { echo("Item non creato :("); }
}else{
 
Stato
Discussione chiusa ad ulteriori risposte.

DISCUSSIONI SIMILI

Indietro
Top Bottom