+ 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:
@@ -44,9 +44,9 @@ switch($_GET['mode'])
|
||||
if ($sid!=$forum_config['defaultskin'])
|
||||
{
|
||||
$sql = "DELETE FROM ".SKINS_TABLE." WHERE `s_id`='$sid'";
|
||||
DataBase::sql_query($sql,'GENERAL','Could not delete skin');
|
||||
DataBase::sql_query($sql,GENERAL,'Could not delete skin');
|
||||
$sql = "UPDATE ".USERS_TABLE." SET `skin`='".$forum_config['defaultskin']."' WHERE `skin`='$sid'";
|
||||
DataBase::sql_query($sql,'GENERAL','Could not update user');
|
||||
DataBase::sql_query($sql,GENERAL,'Could not update user');
|
||||
admin_message_forum($lng['skins_deleted'],'styles.php?mode=view');
|
||||
}
|
||||
else
|
||||
@@ -64,7 +64,7 @@ switch($_GET['mode'])
|
||||
if (is_dir('./../skins/'.$_POST['skin']))
|
||||
{
|
||||
$last = DataBase::new_id(SKINS_TABLE);
|
||||
DataBase::sql_query("INSERT INTO ".SKINS_TABLE." VALUES ('$last','".strip_tags($_POST['skin'])."')",'GENERAL','Could not add skin');
|
||||
DataBase::sql_query("INSERT INTO ".SKINS_TABLE." VALUES ('$last','".strip_tags($_POST['skin'])."')",GENERAL,'Could not add skin');
|
||||
$_POST['skin']='';
|
||||
admin_message_forum($lng['skins_added'],'styles.php?mode=view');
|
||||
}
|
||||
@@ -89,7 +89,7 @@ switch($_GET['mode'])
|
||||
Admin_Over::GenerateHeader();
|
||||
include('./template/skins_beam_body.tpl');
|
||||
$sql = "SELECT * FROM ".SKINS_TABLE;
|
||||
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain skins information');
|
||||
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain skins information');
|
||||
while ($item = DataBase::fetch($query))
|
||||
{
|
||||
$skin=array(
|
||||
|
||||
Reference in New Issue
Block a user