Last update before closing project. Thank you!
git-svn-id: https://svn.pioder.pl/uf-svn/uF@38 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -26,7 +26,7 @@ class Post
|
||||
$tpid = $result['tp_id'];//post in topic id
|
||||
$tpid = $tpid+1;
|
||||
#
|
||||
$time = time();
|
||||
$time = $_SERVER['REQUEST_TIME'];
|
||||
#add new post
|
||||
$sql = "INSERT INTO `".POSTS_TABLE."` VALUES ('$last','$tid', '$uid', '$post', '".$_SERVER['HTTP_USER_AGENT']."', '$time', '$tpid', '$forum','$moderate','".$_SERVER['REMOTE_ADDR']."')";
|
||||
$query = DataBase::sql_query($sql,GENERAL,'Could not add new post.');
|
||||
@@ -49,7 +49,7 @@ class Post
|
||||
{
|
||||
//Select last topic
|
||||
$moderate = Forum::ForumInformation($forum,'moderate');
|
||||
$time = time();
|
||||
$time = $_SERVER['REQUEST_TIME'];
|
||||
$lastt=DataBase::new_id(TOPICS_TABLE);
|
||||
$sql = "INSERT INTO ".TOPICS_TABLE." VALUES ('$lastt', '$forum', '0', '$sticky', '$ntopic', '$uid','$time', '', '')";
|
||||
$query = DataBase::sql_query($sql,GENERAL,'Could not add new topic');
|
||||
|
||||
Reference in New Issue
Block a user