| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/www.superporner.com/porn/admin/ |
Upload File : |
<? require "header.php";
if(!is_numeric($_REQUEST[id])) { exit(); }
if($_POST) {
$_POST = mysql_real_escape_array($_POST);
if(mysql_query("UPDATE xml_feeds SET name = '$_POST[name]', url = '$_POST[url]', hotlink = '$_POST[hotlink]', paysite = '$_POST[paysite]' WHERE record_num = '$_POST[id]'")) {
$success = true;
}
}
$result = mysql_query("SELECT * FROM xml_feeds WHERE record_num = '$_GET[id]'");
$row = mysql_fetch_array($result);
?>
<div id="right_column">
<div id="right_top">
<div id="right_home"></div>
<div id="right_right">
<a href="index.php">Admin Home</a>
<span><a href="comments_all.php">Edit Comments</a></span>
</div>
</div>
<div id="right_bg">
<h2>Edit<strong>Feed</strong></h2>
<div id="index_left" style='width: 100%;'>
<form method='post' action='' enctype='multipart/form-data'>
<input type='hidden' name='id' value='<? echo $_GET[id]; ?>' />
<? if($success) { ?><p align='center'>Save Successful. <a href='xml_feeds.php'>Click here to go back</a>.</p>
<? } ?>
<table width="750" border="0" align="center" cellpadding="3" cellspacing="0" class='pagetable'>
<thead>
<tr >
<th colspan=2 align='left'>Edit Feed - <? echo $row[name]; ?></th>
</tr>
</thead>
<tr>
<td width="79" height="25" valign="top" class="style4">Name</td>
<td width="393" height="25" align="left" valign="top" class="style4"><input name="name" type="text" class="style4" id="name" value="<? echo $row[name]; ?>" size="35" maxlength="255" /></td>
</tr>
<tr>
<td width="79" height="25" valign="top" class="style4">URL</td>
<td width="393" height="25" align="left" valign="top" class="style4"><input name="url" type="text" class="style4" id="name" value="<? echo $row[url]; ?>" size="35" maxlength="255" /></td>
</tr>
<tr>
<td width="99" height="25" class="style4">Hotlink?</td>
<td width="446" height="25" align="left" class="style4">
<select name='hotlink'>
<option <? if($row[hotlink] == 0) { echo 'selected'; } ?> value='0'>Hosted</option>
<option <? if($row[hotlink] == 1) { echo 'selected'; } ?> value='1'>Hotlinked</option>
</select>
</td>
</tr>
<tr>
<td width="99" height="25" class="style4">Paysite</td>
<td width="446" height="25" align="left" class="style4">
<select name='paysite'>
<option value='0'>None</option>
<?
$rresult = mysql_query("SELECT * FROM paysites ORDER BY name ASC");
while($rrow = mysql_fetch_array($rresult)) {
if($row[paysite] == $rrow[record_num]) { $selected = 'selected'; } else { $selected = ''; }
echo "<option $selected value='$rrow[record_num]'>$rrow[name]</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td height="25" colspan="2" align="center" class="style4"><input type="submit" name="Submit2" value="Save" /></td>
</tr>
</table>
</form>
</div>
</div>
<div id="right_bottom"></div>
</div>
</div>
</div>
<? require "footer.php"; ?>