Location: PHPKode > projects > Modular Site Manager > htdocs/misc/del-friend.php
<?
chdir("../");
include "inc/functions.inc.php";
$mysql = new mysql(DB_MAIN);
$sel = $mysql->select(PRE."members", "id='".$_COOKIE['mid']."'", "id", "DESC", "1");
$a = mysql_fetch_array($sel);
$ret = str_replace($_GET['friend']."~", "", $a['friends']);
$mysql->update(PRE."members", "friends='".$ret."'", "id='".$_COOKIE['mid']."'");
$mysql->close();
header("Location: ".$HTTP_REFERER);
?>
Return current item: Modular Site Manager