forked from Subtech-tk/freepdfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_comment.php
More file actions
40 lines (35 loc) · 777 Bytes
/
Copy pathadd_comment.php
File metadata and controls
40 lines (35 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
include_once 'core.php';
include_once 'user/core.inc.php';
if (loggedin()==1)
{ $head=$_POST['head'];
$comment=$_POST['comment'];
$acess=1;
if (isset($head) && isset($comment) )
{
if (!empty($head) && !empty($comment) )
{
include 'add_comment_script.php';
//die(); //to kill rest of page
//echo "some problem occurs<br/>";
}
else
{
echo "<br/>Some error has occur.<br> Please check the values. Might be some field left out. ";
include 'add_comment_form.php';
}
}
else
{
include 'add_comment_form.php';
}
}
else
{
if ($countc==0)
{
echo "<p>Be the first one to comment </p>";
}
echo "<hr></hr><br/>Please <a href=\"login.php\">login</a> to post comments";
}
?>