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:
pioder
2010-03-27 17:41:57 +00:00
parent 43657534ab
commit 01741920b0
46 changed files with 652 additions and 661 deletions

View File

@@ -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');