+ Changed generating last post and post count in forum and topic.php
+ Deleted not used template file: post_add_body.tpl + Replaced MCP images git-svn-id: https://svn.pioder.pl/uf-svn/uF@21 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -19,7 +19,7 @@ if (phpversion()<'5.0.7')
|
||||
}
|
||||
//set global preferences from DataBase
|
||||
$sql="SELECT * FROM ".CONFIG_TABLE."";
|
||||
$query=DataBase::sql_query($sql,'CRITICAL','Could not obtain config information');
|
||||
$query=DataBase::sql_query($sql,CRITICAL,'Could not obtain config information');
|
||||
while($result=DataBase::fetch($query))
|
||||
{
|
||||
if (($result['name']=='') or ($result['name']=='0'))
|
||||
@@ -53,7 +53,7 @@ if ($_SESSION['uid']>0)
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$uid = $_SESSION['uid'];
|
||||
$sql = "SELECT `IP`, `u_id`, `motive` FROM ".BANLIST_TABLE." WHERE `IP`='$ip' OR `u_id`='$uid'";
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql,'GENERAL','Could not obtain ban information'));
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql,GENERAL,'Could not obtain ban information'));
|
||||
$motive = $result['motive'];
|
||||
$db_ip = $result['IP'];
|
||||
$db_uid = $result['u_id'];
|
||||
@@ -76,7 +76,7 @@ else
|
||||
{
|
||||
$sql = "SELECT * FROM ".USERS_TABLE." WHERE `u_id`='-1'";
|
||||
}
|
||||
$query = DataBase::sql_query($sql, 'GENERAL','Could not obtain loged user information');
|
||||
$query = DataBase::sql_query($sql, GENERAL,'Could not obtain loged user information');
|
||||
$userdata = DataBase::fetch($query);
|
||||
define('RANK', $userdata['rank']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user