Parašė chratr· 2009 Lie. 19 22:07:08
#10
Dar cia klausymukas
<?php
$db_host = " CIA ZINAU ";
$db_user = " CIA ZINAU ";
$db_pass = " CIA ZINAU ";
$db_name = " CIA ZINAU ";
$connect = mysql_connect($db_host, $db_user, $db_pass) or die ('Error connecting to mysql');
$db_select = @mysql_select_db($db_name);
$ex = explode(" ", $_GET[sms], 2);
$ex[1] = strtolower($ex[1]);
$your_pass = 'CIA KURI REIK PASSORDA'; <- cia reik ta passworda kur jungesi i mokejimai ar ta kuri galima sukurti kartu su raktazodiu
$iki = time() + 24*3600*30;
if ( TestTransaction( $_GET['transaction'], $your_pass, $_GET['id'] ) ) {
$kodas = mysql_fetch_array(mysql_query("SELECT * FROM fusion_users WHERE user_name = '".$ex[1]."'"));
if ($kodas != '' ) <-cia raktazodi rasyt?
{
if ($_GET[amount] > 49) {
$result = @mysql_query("UPDATE fusion_users SET user_vip=user_vip+$iki WHERE user_name='".$ex[1]."'");
echo "".$ex[1].", Jums sekmingai uzsakyta VIP paslauga!";
}
else {
echo "Issiuntete per maza pinigu suma VIP statuso pirkimui";
}
} else {
echo "Vartotojas ".$ex[1]." portale nerastas, prasome bandyti dar karta";
}
}
else
{
echo "Ivyko klaida";
}
function TestTransaction( $transaction, $userPassword, $ordeID, $test = 0, $status = 1 )
{
return ( $transaction == md5("{$userPassword}|{$_SERVER['REMOTE_ADDR']}|{$ordeID}|{$test}|{$status}") );
}
?>
ir ar kodas teisingas?
Redagavo chratr· 2009 Lie. 19 22:07:16