+ Censorlist was extended - added replacement parametr
+ Fixed bug with DB Size in check_script.php + Deleted a lot of indexes in check_script_data.php + Deleted cache index and forum lastpost section in cache_index.php and cache_forum.php + Fixed other bugs in warnings + Fixed pagination in search.php + Replaced DSF logo to uForum logo + Moved differend elements in skin + Added "WHOIS" option in "Admin/Mod Pool" in view topic + Fixed bug in add warnings: couldn't add warn for admin/mod git-svn-id: https://svn.pioder.pl/uf-svn/uF@29 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
25
includes/cache/cache_topic.php
vendored
25
includes/cache/cache_topic.php
vendored
@@ -18,16 +18,23 @@ if ($result['t_id']=='')
|
||||
{
|
||||
message_forum($lng['no_topic'], 'index.php');
|
||||
}
|
||||
$topic['name']=$result['topic_name'];
|
||||
$topic['lock']=$result['topic_lock'];
|
||||
$topic['sticky']=$result['sticky'];
|
||||
$topic['f_id']=$result['f_id'];
|
||||
|
||||
$topic = array(
|
||||
'name' => $result['topic_name'],
|
||||
'lock' => $result['topic_lock'],
|
||||
'sticky' => $result['sticky'],
|
||||
'f_id' => $result['f_id']
|
||||
);
|
||||
|
||||
$forum = array(
|
||||
'name' => $result['name'],
|
||||
'lock' => $result['lock'],
|
||||
'moderate' => $result['moderate']
|
||||
);
|
||||
|
||||
$fid = $topic['f_id'];
|
||||
$forum['name']=$result['name'];
|
||||
$forum['lock']=$result['lock'];
|
||||
$forum['moderate']=$result['moderate'];
|
||||
|
||||
|
||||
//user warnings level
|
||||
$sql = "SELECT `u_id`,`value` FROM `".WARNINGS_TABLE."`";
|
||||
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain user warns information');
|
||||
$result = DataBase::num_rows($query);
|
||||
@@ -54,7 +61,9 @@ while($result = DataBase::fetch($query))
|
||||
{
|
||||
$user[$result['u_id']]['online']='1';
|
||||
}
|
||||
|
||||
unset($sql, $query, $result);
|
||||
|
||||
//
|
||||
//generate output pages
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user