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:
@@ -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)
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user