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

@@ -104,7 +104,7 @@ class Forum
global $i;
global $forum;
global $default_skin;
$time = time()-129600;
$time = $_SERVER['REQUEST_TIME']-129600;
if ($_SESSION['uid']>0)
{
if ($postsinforum>0)

View File

@@ -80,14 +80,14 @@ class NewMessage
function AddToInbox($text, $name, $unid, $uid)
{
$last = DataBase::new_id(PM_INBOX_TABLE);
$time = time();
$time = $_SERVER['REQUEST_TIME'];
$sql = "INSERT INTO `".PM_INBOX_TABLE."` VALUES ('$last', '$uid', '$name', '$text', '$time', '$unid','0')";
DataBase::sql_query($sql,GENERAL,'Could not add new message at inbox');
}
function AddToSentbox($text, $name, $unid, $uid)
{
$last=DataBase::new_id(PM_SENTBOX_TABLE);
$time = time();
$time = $_SERVER['REQUEST_TIME'];
$sql = "INSERT INTO `".PM_SENTBOX_TABLE."` VALUES ('$last', '$uid', '$name', '$text', '$time', '$unid')";
DataBase::sql_query($sql,GENERAL,'Could not add new message at inbox');
}

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

View File

@@ -68,7 +68,7 @@ class Topic
global $last_post;
global $record;
global $default_skin;
$time = time()-129600;
$time = $_SERVER['REQUEST_TIME']-129600;
if ($_SESSION['uid']>0)
{
if ($last_post[2]>$time)

View File

@@ -182,7 +182,7 @@ class User
{
global $forum_config;
$last = DataBase::new_id(USERS_TABLE);
$time = time();
$time = $_SERVER['REQUEST_TIME'];
$sql = "INSERT INTO ".USERS_TABLE." VALUES
('$last', '$nick', '$pass', '$email', '0', '$time', '0', '$gg', '$allow_gg', '$allow_email', '$allow_qr', '".$forum_config['view_shoutbox']."', '".$forum_config['defaultskin']."', '".$forum_config['defaultlang']."','".$forum_config['limit_tpid']."', '".$forum_config['limit_ftid']."', '".$forum_config['limit_users']."', '$sig', '$av', '1','0','$interests');";
DataBase::sql_query($sql,CRITICAL,'Could not create new user');