| Server IP : 74.208.236.52 / Your IP : 216.73.217.98 Web Server : Apache System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64 User : u44043973 ( 5404757) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/18/d194259149/htdocs/bonus1/admin/ |
Upload File : |
<?php
session_start();
include "../config.php";
include "../header.php";
include "../style.php";
if( session_is_registered("alogin") ) {
?><table>
<tr>
<td width="15%" valign=top><br>
<? include("adminnavigation.php"); ?>
</td>
<td valign="top" align="center"><br><br> <?
echo "<font size=2 face='$fonttype' color='$fontcolour'><p><center>";
echo "<center><H2>Edit OTO</H2></center>";
if($_POST['action'] == "update") {
mysql_query("UPDATE oto SET price = '".$_POST['price']."', upgrade_pro = '".$_POST['upgrade_pro']."', enable='".$_POST['enable']."', freecommission='".$_POST['freecommission']."', procommission='".$_POST['procommission']."', pro2commission='".$_POST['pro2commission']."', pinterval='".$_POST['interval']."' WHERE 1");
echo "<font color=red>The settings have been updated.</font><br><br>";
}
$sql = mysql_query("SELECT * FROM oto LIMIT 1");
$oto = mysql_fetch_array($sql);
?>
<form method="POST" action="editoto.php">
<input type="hidden" name="action" value="update">
<table>
<tr><td>Price:</td><td><input type="text" name="price" value="<? echo $oto['price']; ?>">$</td></tr>
<tr><td>Free commission:</td><td><input type="text" name="freecommission" value="<? echo $oto['freecommission']; ?>">$</td></tr>
<tr><td>1st level commission:</td><td><input type="text" name="procommission" value="<? echo $oto['procommission']; ?>">$</td></tr>
<tr><td>2nd level commission:</td><td><input type="text" name="pro2commission" value="<? echo $oto['pro2commission']; ?>">$</td></tr>
<tr><td>Payment interval:</td><td>
<select name="interval">
<? if ($oto['pinterval']=="Monthly") { ?>
<option>Monthly</option>
<option>Yearly</option>
<option>Lifetime</option>
<?} elseif ($oto['pinterval']=="Yearly") { ?>
<option>Yearly</option>
<option>Monthly</option>
<option>Lifetime</option>
<?} elseif ($oto['pinterval']=="Lifetime") { ?>
<option>Lifetime</option>
<option>Monthly</option>
<option>Yearly</option>
<?} else { ?>
<option>Monthly</option>
<option>Yearly</option>
<option>Lifetime</option>
<?} ?>
</select>
</td></tr>
<tr><td>Upgrade:</td><td><input type="radio" name="upgrade_pro" value="1"<? if($oto['upgrade_pro'] == 1) echo " CHECKED"; ?>> 1st level <input type="radio" name="upgrade_pro" value="2"<? if($oto['upgrade_pro'] == 2) echo " CHECKED"; ?>> 2nd level <input type="radio" name="upgrade_pro" value="0"<? if($oto['upgrade_pro'] == 0) echo " CHECKED"; ?>> no</td></tr>
<tr><td>Enable:</td><td><input type="radio" name="enable" value="1"<? if($oto['enable'] == 1) echo " CHECKED"; ?>> yes <input type="radio" name="enable" value="0"<? if($oto['enable'] == 0) echo " CHECKED"; ?>> no</td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Update"></td></tr>
</table>
</form>
<?
echo "</td></tr></table>";
}
else
echo "Unauthorised Access!";
include "../footer.php";
?>