| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 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/sportyone.com/public_html/admin/friend/ |
Upload File : |
<?php
$friend_url = trim($_POST["friend_url"]," ");
$friend_name = trim($_POST["friend_name"]," ");
$friend_id = trim($_POST["friend_id"]," ");
if(!isset($_POST["delete"]))
{
$query = "update friend set ";
$query .= "friend_name = '".$_POST["friend_name"]."', ";
$query .= "friend_url = '".$_POST["friend_url"]."' ";
$query .= " WHERE friend_id = '".$friend_id."' ";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
}
else
{?> <table width="700" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="2" align="center"
style="border: ridge 1px #4a4e74; border-collapse: separate; " class="archivetext">
<tr>
<td>
<div align="center">
<?php $query = " SELECT a.asset_id, a.title
FROM assets a, friend2asset n2a
WHERE (n2a.asset_id = a.asset_id) and n2a.friend_id = '".$friend_id."'";
$result = mysql_query($query) or die('you must suck: ' . mysql_error());
$num_rows = mysql_num_rows($result);
echo "There are $num_rows assets that are currently using that friend;<br />";
while($row = mysql_fetch_assoc($result))
{?>
<a href="<?php echo SITEURL ?>/admin/index.php?act=nowmod&asset_id=<?php echo $row["asset_id"]?>" style="padding:0px; border:ridge 0px #cc0000"><?php echo $row["tour_title"]?></a>
<br />
<?php
}
?>
<br />
<form>
<input type="button" value="GO BACK!" onClick="javascript:history.go(-1)" class="button"/>
</form>
<br />
<form action="index.php?act=friend&act2=delete" method="post">
<input type="submit" name="delete" value="DELETE!" class="button" />
<input name="friend_id" type="hidden" value="<?php echo $friend_id ?>" />
</form>
</div>
</td>
</tr>
</table>
<?php
}
?>