10 include
'../../system/classes/db.php';
11 include
'../../system/classes/sys.php';
12 include
'../../system/classes/user.php';
13 include
'../../system/classes/alert.php';
14 include
'../../system/classes/settings.php';
28 if (
$sql =
$db->query(
"SELECT id FROM {follower} WHERE follower = '".$uid.
"' AND hunted = '".
$hunted.
"'"))
32 if (
$sql =
$db->query(
"DELETE FROM {follower} WHERE follower = '".$uid.
"' AND hunted = '".
$hunted.
"'"))
34 \YAWK\sys::setSyslog(
$db, 17, 0,
"$userA un-followed $userB.",
$uid,
$hunted, 0, 0);
37 \YAWK\alert::draw(
"warning",
"Disconnected with $userB",
"You are not following $userB anymore.",
"",4200);
42 if (
$db->query(
"INSERT INTO {follower} (follower, hunted) VALUES ('$uid', '$hunted')"))
44 \YAWK\sys::setSyslog(
$db, 17, 0,
"$userA follows $userB.",
$uid,
$hunted, 0, 0);
47 echo \YAWK\alert::draw(
"success",
"You follow $userB from now.",
"Good to keep your network up :)",
"",4200);
51 echo \YAWK\alert::draw(
"warning",
"Error!",
"A database error occured, your request could not be done. Please try again.",
"",4200);
57 echo \YAWK\alert::draw(
"danger",
"Error!",
"Some kind of error happened to the database. Please try again.",
"",4200);
static draw($type, $title, $text, $redirect, $delay)