+ 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:
@@ -69,7 +69,7 @@ if(isset($_GET['mode']))
|
||||
$_POST['delnick']='';
|
||||
}
|
||||
$sql = "SELECT `g_id`, `name`, `desc`, `m_id` FROM `".GROUPS_TABLE."` WHERE `g_id`='$gid'";
|
||||
$group = DataBase::fetch(DataBase::sql_query($sql, 'GENERAL', 'Could not obtain groups information.'));
|
||||
$group = DataBase::fetch(DataBase::sql_query($sql, GENERAL, 'Could not obtain groups information.'));
|
||||
if ($group['g_id']=='')
|
||||
{
|
||||
message_forum($lng['no_group'], 'index.php');
|
||||
@@ -89,7 +89,7 @@ if(isset($_GET['mode']))
|
||||
);
|
||||
include('./skins/'.$default_skin.'/group_view_head_body.tpl');
|
||||
$sql = "SELECT ".USERS_GROUP_TABLE.".*, ".USERS_TABLE.".* FROM `".USERS_GROUP_TABLE."` LEFT JOIN ".USERS_TABLE." ON ".USERS_TABLE.".u_id =".USERS_GROUP_TABLE.".u_id WHERE `g_id`='$gid'";
|
||||
$query = DataBase::sql_query($sql, 'GENERAL', 'Could not obtain users in groups information.');
|
||||
$query = DataBase::sql_query($sql, GENERAL, 'Could not obtain users in groups information.');
|
||||
$amout = DataBase::num_rows($query);
|
||||
if ($amout>0)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ else
|
||||
$skin = GenerateHeader($lng['lgroups'], '</a>> <a href="groups.php" class="navigator">'.$lng['lgroups']);
|
||||
include('./skins/'.$default_skin.'/overall_header.tpl');
|
||||
$sql = "SELECT `g_id`, `name`, `desc` FROM `".GROUPS_TABLE."` ORDER BY `sort`";
|
||||
$query = DataBase::sql_query($sql, 'GENERAL', 'Could not obtain groups information.');
|
||||
$query = DataBase::sql_query($sql, GENERAL, 'Could not obtain groups information.');
|
||||
if (DataBase::num_rows($query)>0)
|
||||
{
|
||||
while($item = DataBase::fetch($query))
|
||||
|
||||
Reference in New Issue
Block a user