Kód: Vybrať všetko
<?php include ('header.php');
include ('includes/index.inc.php');
?>
<div id="content">
<h3>Kontrola údajov</h3>
<?php
if(isset($_POST["status"])){
$status=limpiar($_POST["status"]);
if ($status == "premium"){
$usercheck = uc($_COOKIE["usNick"]);
$user = limpiar($_POST["purchaseusername"]);
if ($usercheck == $user){
$purchaseip = limpiar($_POST["purchaseip"]);
$purchaseuseremail = limpiar($_POST["purchaseuseremail"]);
$purchaseitemname = limpiar($_POST["purchaseitemname"]);
$purchaseitemprice = limpiar($_POST["purchaseitemprice"]);
$myDb->connect();
$sqle = "SELECT * FROM yob_users WHERE username='$user'";
$resulte = mysql_query($sqle);
$rowe = mysql_fetch_array($resulte);
$myDb->close(); ?>
<table align="center" width="80%" cellspacing="0" cellpadding="0" class="table1">
<tr>
<th class="top"> </th>
<th class="top"><b>Informácie o objednávke</b></th>
</tr>
<tr>
<th class="sub">Používateľ</th>
<td align="center"><?= $rowe['username'];?></td>
</tr>
<tr>
<th class="sub">Meno</th>
<td align="center"><?= $rowe['firstname'];?></td>
</tr>
<tr>
<th class="sub">Priezvisko</th>
<td align="center"><?= $rowe['surname'];?></td>
</tr>
<tr>
<th class="sub">Tvoja IP</th>
<td align="center"><?= $purchaseip;?></td>
</tr>
<tr>
<th class="sub">Email</th>
<td align="center"><?= $purchaseuseremail;?></td>
</tr>
<tr>
<th class="sub">Detail platby</th>
<td align="center"><?= $purchaseitemname;?></td>
</tr>
<tr>
<th class="sub">Cena</th>
<td align="center">€ <?= $purchaseitemprice;?></td>
</tr>
</table>
<p>
<?php include ('includes/gateways.inc.php');
}else{?>
<span class='success'><b>Vyskytla sa chyba v žiadosti. Skús neskôr.</b></span>
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />
<?php include ('footer.php');
exit();
}
}else if ($status == "advertise"){
$purchaseitemprice = 0;
$purchaseip = limpiar($_POST["purchaseip"]);
$pemail = limpiar($_POST["pemail"]);
$description = limpiar($_POST["description"]);
$url = limpiar($_POST["url"]);
$plan = limpiar($_POST["plan"]);
$myDb->connect();
$sql = "SELECT price FROM yob_config WHERE item='hits' and howmany='$plan'";
$result = mysql_query($sql);
$row1 = mysql_fetch_array($result);
$myDb->close();
$price_plan = $row1['price'];
$purchaseitemprice = $purchaseitemprice+$price_plan;
$viewable = limpiar($_POST["viewable"]);
if ($viewable == "ads"){
$viewable1 = "All Members";
}
if ($viewable == "premiumads"){
$viewable1 = "Premium Members Only";
$myDb->connect();
$sql = "SELECT price FROM yob_config WHERE item='premiumad' and howmany='1'";
$result = mysql_query($sql);
$row2 = mysql_fetch_array($result);
$myDb->close();
$price_viewable = $row2['price'];
$purchaseitemprice = $purchaseitemprice+$price_viewable;
}
$bold = limpiar($_POST["bold"]);
if ($bold == "0"){
$bold1 = "No";
}
if ($bold == "1"){
$bold1 = "Yes";
$myDb->connect();
$sql = "SELECT price FROM yob_config WHERE item='bold' and howmany='1'";
$result = mysql_query($sql);
$row3 = mysql_fetch_array($result);
$myDb->close();
$price_bold = $row3['price'];
$purchaseitemprice = $purchaseitemprice+$price_bold;
}
$highlight = limpiar($_POST["highlight"]);
if ($highlight == "0"){
$highlight1 = "No";
}
if ($highlight == "1"){
$highlight1 = "Yes";
$myDb->connect();
$sql = "SELECT price FROM yob_config WHERE item='highlight' and howmany='1'";
$result = mysql_query($sql);
$row4 = mysql_fetch_array($result);
$myDb->close();
$price_highlight = $row4['price'];
$purchaseitemprice = $purchaseitemprice+$price_highlight;
}
$purchaseitemname = limpiar($_POST["purchaseitemname"]);
?>
<table align="center" width="80%" cellspacing="0" cellpadding="0" class="table1">
<tr>
<th class="top"> </th>
<th class="top"><b>Informácie o objednávke</b></th>
</tr>
<tr>
<th class="sub">Email</th>
<td align="center"><?= $pemail;?></td>
</tr>
<th class="sub">Tvoja IP</th>
<td align="center"><?= $purchaseip;?></td>
</tr>
<tr>
<th class="sub">Detail platby</th>
<td align="center"><?= $purchaseitemname;?></td>
</tr>
<tr>
<th class="sub">Plán</th>
<td align="center"><?= $plan;?> Návštev</td>
</tr>
<tr>
<th class="sub">Text odkazu</th>
<td align="center"><?= $description;?></td>
</tr>
<tr>
<th class="sub">Odkaz Url</th>
<td align="center"><?= $url;?></td>
</tr>
<tr>
<th class="sub">Ukáž odkaz</th>
<td align="center"><?= $viewable1;?></td>
</tr>
<tr>
<th class="sub">Hrubý text</th>
<td align="center"><?= $bold1;?></td>
</tr>
<tr>
<th class="sub">Zvíraznený odkaz</th>
<td align="center"><?= $highlight1;?></td>
</tr>
<tr>
<th class="sub">Cena</th>
<td align="center">€ <?= $purchaseitemprice;?></td>
</tr>
</table>
<?php include ('includes/gateways2.inc.php');
}else if ($status == "referrals"){
$purchaseip = limpiar($_POST["purchaseip"]);
$pemail = limpiar($_POST["pemail"]);
$purchaseitemname = limpiar($_POST["purchaseitemname"]);
$user = limpiar($_POST["customer"]);
$refset = limpiar($_POST["refset"]);
$myDb->connect();
$sql = "SELECT price FROM yob_refset WHERE howmany='$refset'";
$result = mysql_query($sql);
$row1 = mysql_fetch_array($result);
$myDb->close();
$purchaseitemprice = $row1['price'];
?>
<table align="center" width="80%" cellspacing="0" cellpadding="0" class="table1">
<tr>
<th class="top"> </th>
<th class="top"><b>Informácie o objednávke</b></th>
</tr>
<tr>
<th class="sub">Používateľ</th>
<td align="center"><?= $user;?></td>
</tr>
<tr>
<th class="sub">Tvoja IP</th>
<td align="center"><?= $purchaseip;?></td>
</tr>
<tr>
<th class="sub">Email</th>
<td align="center"><?= $pemail;?></td>
</tr>
<tr>
<th class="sub">Detail platby</th>
<td align="center"><?= $refset;?> <?= $purchaseitemname;?></td>
</tr>
<tr>
<th class="sub">Cena</th>
<td align="center">€ <?= $purchaseitemprice;?></td>
</tr>
</table>
<?php include ('includes/gateways3.inc.php'); ?>
<br /> <br /> <br />
<?php
}
}else{?>
<span class='success'><b>Priamy prístup na túto stránku nieje povolený.</b></span>
</p><br /><br /><br />
<p class="rightBottom"></p>
<br class="spacer" />
</div>
<?php include ('footer.php');
exit();
}?>
</p>
<?php include ('footer.php'); ?>