YaWK  24.1
Yet another WebKit
unfriend-user.php File Reference

Go to the source code of this file.

Variables

 $hunted = $_POST['hunted']
 
if(!isset($db)) $uid = $_POST['uid']
 
 $userA = \YAWK\user::getUserNameFromID($db, $uid)
 
 $userB = $_POST['user']
 
if($sql=$db->query("SELECT id FROM {friends} WHERE friendA = '". $uid."' AND friendB = '". $hunted."' OR friendA = '". $hunted."' AND friendB = '". $uid."'")) else
 

Variable Documentation

◆ $hunted

$hunted = $_POST['hunted']

Definition at line 15 of file unfriend-user.php.

◆ $uid

if (!isset( $db)) $uid = $_POST['uid']

Definition at line 14 of file unfriend-user.php.

◆ $userA

$userA = \YAWK\user::getUserNameFromID($db, $uid)

Definition at line 17 of file unfriend-user.php.

◆ $userB

$userB = $_POST['user']

Definition at line 16 of file unfriend-user.php.

◆ else

if ( $sql=$db->query("SELECT id FROM {friends} WHERE friendA = '". $uid."' AND friendB = '". $hunted."' OR friendA = '". $hunted."' AND friendB = '". $uid."'")) else
Initial value:
{
echo \YAWK\alert::draw("danger", "Error!", "Some kind of error happened to the database. Please try again.","",4200)

Definition at line 53 of file unfriend-user.php.