2 include
'../../system/classes/db.php';
3 include
'../../system/classes/sys.php';
4 include
'../../system/classes/user.php';
5 include
'../../system/classes/alert.php';
6 include
'../../system/classes/settings.php';
14 $uid = $_POST[
'friendUID'];
19 if (
$sql =
$db->query(
"DELETE FROM {friends} WHERE id='".$id.
"'"))
21 echo
"friendship disconnected";
25 echo \YAWK\alert::draw(
"warning",
"Warning!",
"Could not disconnect friendship status. Please try again.",
'',4200);
31 \YAWK\sys::setSyslog(
$db, 17, 0,
"$sessionUsername ended friendship with $requestUsername",
$uid,
$sessionUID, 0, 0);