+ Replaced old functions to listing dirs in admin_script.php and admin_users.php

+ Fixed update server address
+ Replaced URL in footer
+ Deleted admin styles page
+ Fixed a few bugs in polish language files

git-svn-id: https://svn.pioder.pl/uf-svn/uF@35 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
pioder
2009-11-10 16:11:00 +00:00
parent 9c75d445b0
commit 98bd401edb
15 changed files with 28 additions and 286 deletions

View File

@@ -29,22 +29,7 @@ $default_skin = ViewSkinName();
SessDelInvalid();
SessRegister();
SessDeleteOld();
/*$sql = "SELECT ".POSTS_TABLE.".*, ".USERS_TABLE.".* FROM ".POSTS_TABLE." LEFT JOIN ".USERS_TABLE." ON ".USERS_TABLE.".u_id = ".POSTS_TABLE.".u_id ORDER BY `ptime`";
$query = DataBase::sql_query($sql,GENERAL, 'Could not obtain amout of posts in forum');
while($result = DataBase::fetch($query))
{
$lastpost[$result['t_id']]['tp_id']=$result['tp_id'];
$lastpost[$result['t_id']]['u_id']=$result['u_id'];
$lastpost[$result['t_id']]['time']=$result['ptime'];
$lastpost[$result['t_id']]['user_nick']=$result['nick'];
$lastpost[$result['t_id']]['user_rank']=$result['rank'];
}
$sql = "SELECT COUNT(*) as `p_id`, `t_id` FROM ".POSTS_TABLE." GROUP BY `t_id`";
$query = DataBase::sql_query($sql,GENERAL, 'Could not obtain amout of posts in forum');
while($result = DataBase::fetch($query))
{
$count_topic[$result['t_id']]=$result['p_id'];
}*/
if (!isset($_GET['content']))
{
header('Location: search.php?content=posts');
@@ -183,7 +168,6 @@ if ((isset($_POST['keywords'])) || ($_GET['content']=='lastposts') || ($_GET['co
FROM ".TOPICS_TABLE."
LEFT JOIN ".POSTS_TABLE." ON ".POSTS_TABLE.".t_id = ".TOPICS_TABLE.".t_id
WHERE $like_where GROUP BY `t_id`";
echo $sql;
$count = DataBase::sql_query($sql,GENERAL,'Could not obtain count amout of topics');
$count = DataBase::num_rows($count);//$count['count'];
$count = ceil($count / $limiter);