Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del vip systemos

Parašė interaktyvus· 2008 Lie. 8 22:07:53
#1

taigi darau vip systema pas save saite ir man kazkodel nieko nesigauna viska padariau kaip reike bet vat kaip nusiunciau sms isbandyti tai kai spaudziu toliau man nieko nevyksta y jokia grupe nepriskire net saitas nesirefresina stai vip.php kodas nes manau kazkas su juo blogai
<?php
require_once "../../maincore.php";

if (iMEMBER) {
require_once BASEDIR."subheader.php";
require_once BASEDIR."side_left.php";
$id = $userdata['user_id'];
opentable("V.I.P");
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."vip"));
echo "<table align='center' cellpadding='0' cellspacing='0'>";
if (iVIP) {
echo "<tr>
<td class='tbl' align='center'>J&#251;s jau esate V.I.P narys!</td>
</tr>";
} elseif ($klaida == "0") {
echo "<tr>
<td class='tbl' align='center'>Sveikiname tapus V.I.P nariu.</td>
</tr>";
} elseif ($klaida == "1") {
echo "<tr>
<td class='tbl' align='center'>J&#251;sø apmok&#235;jimas nerastas.</td>
</tr>";
} else {
echo "<form name='submitform' method='post' action='".FUSION_SELF."'>";
echo "<tr>
<td class='tbl' align='center'>J&#251;s neesate V.I.P narys! Nor&#235;dami tapti V.I.P nariu siøskite SMS numeriu <b>1371</b> su tekstu <b>TIK".$data['sms_kaina']."</b><small>&lt;tarpas&gt;</small><b>".$data['paramos_zodis']."<small>&lt;tarpas&gt;</small><b>".$userdata['user_name']."</b>. Ir spauskite [Toliau]</td>
</tr>
<tr>
<td class='tbl' align='center'><input type='button' name='siusti' value='Toliau' class='button'></td>
</tr>";
echo "</form>";
}
echo "</table>";
closetable();
$zodis = $data['paramos_zodis'];
$useris = $userdata['user_name'];
$amount = $data['sms_kaina'];
$grupe = $data['grupes_id'];
if ($amount == 1) {
$kaina = 100;
} elseif ($amount == 2) {
$kaina = 200;
} elseif ($amount == 3) {
$kaina = 300;
} elseif ($amount == 4) {
$kaina = 400;
} elseif ($amount == 5) {
$kaina = 500;
} elseif ($amount == 7) {
$kaina = 700;
} elseif ($amount == 10) {
$kaina = 1000;
}
if ($_POST['siusti']) {
$result = dbquery("SELECT * FROM parama WHERE txt='$useris' AND amount='$kaina' AND word='$zodis'");
if (dbrows($result)) {
$result = dbquery("UPDATE ".$db_prefix."users SET user_groups='$grupe' WHERE user_id='$id'");
redirect(FUSION_SELF."?klaida=0");
} else {
redirect(FUSION_SELF."?klaida=1");
}
}
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
} else {
fallback(BASEDIR."index.php");
}
?>