YaWK  24.1
Yet another WebKit
disconnect-friend.php File Reference

Go to the source code of this file.

Variables

if(!isset($db)) $id = $_POST['id']
 
 $requestUsername = $_POST['requestUsername']
 
 $sessionUID = $_POST['sessionUID']
 
 $sessionUsername = \YAWK\user::getUserNameFromID($db, $sessionUID)
 
 $uid = $_POST['friendUID']
 
if($sql=$db->query("DELETE FROM {friends} WHERE id='". $id."'")) else
 

Variable Documentation

◆ $id

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

Definition at line 13 of file disconnect-friend.php.

◆ $requestUsername

$requestUsername = $_POST['requestUsername']

Definition at line 15 of file disconnect-friend.php.

◆ $sessionUID

$sessionUID = $_POST['sessionUID']

Definition at line 16 of file disconnect-friend.php.

◆ $sessionUsername

$sessionUsername = \YAWK\user::getUserNameFromID($db, $sessionUID)

Definition at line 17 of file disconnect-friend.php.

◆ $uid

$uid = $_POST['friendUID']

Definition at line 14 of file disconnect-friend.php.

◆ else

if ( $sql=$db->query("DELETE FROM {friends} WHERE id='". $id."'")) else
Initial value:
{
echo \YAWK\alert::draw("warning","Warning!", "Could not disconnect friendship status. Please try again.",'',4200)

Definition at line 23 of file disconnect-friend.php.