YaWK  24.1
Yet another WebKit
add-comment.php File Reference

Go to the source code of this file.

Variables

 $blogid = $_POST['blogid']
 
 $comment = $_POST['comment']
 
 $email = $_POST['email']
 
 $gid = $_POST['gid']
 
 $ip = $_SERVER['REMOTE_ADDR']
 
 $itemid = $_POST['itemid']
 
 $name = $_POST['name']
 
 $now = date("Y-m-d H:i:s")
 
 $uid = $_POST['uid']
 
if($uid==='0'|| $gid==='0') else
 
 if (!isset( $db))
 

Variable Documentation

◆ $blogid

$blogid = $_POST['blogid']

Definition at line 5 of file add-comment.php.

◆ $comment

$comment = $_POST['comment']

Definition at line 10 of file add-comment.php.

◆ $email

$email = $_POST['email']

Definition at line 12 of file add-comment.php.

◆ $gid

$gid = $_POST['gid']

Definition at line 8 of file add-comment.php.

◆ $ip

$ip = $_SERVER['REMOTE_ADDR']

Definition at line 9 of file add-comment.php.

Referenced by YAWK\backend\drawLoginBox().

◆ $itemid

$itemid = $_POST['itemid']

Definition at line 6 of file add-comment.php.

◆ $name

$name = $_POST['name']

Definition at line 11 of file add-comment.php.

Referenced by YAWK\sys\parse_phpinfo(), and YAWK\sys\read_recursive().

◆ $now

$now = date("Y-m-d H:i:s")

Definition at line 13 of file add-comment.php.

◆ $uid

$uid = $_POST['uid']

Definition at line 7 of file add-comment.php.

◆ else

if ( $db->query("INSERT INTO {blog_comments} (blogid, itemid, uid, gid, ip, date_created, name, email, comment) VALUES('$blogid', '$itemid', '$uid', '$gid', '$ip', '$now', '$name', '$email', '$comment')")) else
Initial value:
{
$sql = $db->query("SELECT email FROM {users} WHERE id ='" . $uid . "' AND privacy = 0")
$uid
Definition: add-comment.php:7
$sql
Definition: message-new.php:32

Definition at line 23 of file add-comment.php.

◆ if

if(!isset($db)) ( isset $db)

Definition at line 3 of file add-comment.php.