+ Moved classes to includes/classes catalog
+ Deleted a few of classes + Renamed functions + Fixed bug: Changing user nick in ACP git-svn-id: https://svn.pioder.pl/uf-svn/uF@17 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
52
moderate.php
52
moderate.php
@@ -11,28 +11,28 @@ define('IN_uF', true);
|
||||
//include files
|
||||
include('./config.php');
|
||||
include('./includes/constants.php');
|
||||
include('./includes/class_db.php');
|
||||
include('./includes/class_error.php');
|
||||
include('./includes/db.php');
|
||||
include('./includes/errors.php');
|
||||
//connect to database
|
||||
DataBase::db_connect();
|
||||
include('./includes/sessions.php');
|
||||
include('./includes/class_user.php');
|
||||
include('./includes/classes/class_user.php');
|
||||
include('./common.php');
|
||||
include('./includes/class_overall.php');
|
||||
include('./includes/misc_functions.php');
|
||||
include('./includes/classes/secure.php');
|
||||
include('./includes/class_mod.php');
|
||||
include('./includes/class_forum.php');
|
||||
include('./includes/class_topic.php');
|
||||
include('./lngs/'.Over::DefaultLang().'/main.php');
|
||||
$start = Over::TimeGeneration();
|
||||
sess_del_invalid($_SESSION['uid']);
|
||||
sess_register($_SESSION['uid']);
|
||||
sess_delete_old();
|
||||
include('./includes/classes/class_mod.php');
|
||||
include('./includes/classes/class_forum.php');
|
||||
include('./includes/classes/class_topic.php');
|
||||
include('./lngs/'.DefaultLang().'/main.php');
|
||||
$start = TimeGeneration();
|
||||
SessDelInvalid();
|
||||
SessRegister();
|
||||
SessDeleteOld();
|
||||
if ($_SESSION['uid']>0)
|
||||
{
|
||||
if (RANK==0)
|
||||
{
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['is_no_mod'],'index.php');
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ switch(trim($_GET['action']))
|
||||
Secure::topic_exists($tid);
|
||||
$fid = Topic::TopicInformation($tid,'f_id');
|
||||
Mod::DeleteTopic($tid);
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['tdeleted'], 'forum.php?f='.$fid);
|
||||
break;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ switch(trim($_GET['action']))
|
||||
$tid = intval($_GET['id']);
|
||||
Secure::topic_exists($tid);
|
||||
Mod::LockTopic($tid);
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['tlocked'], 'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ switch(trim($_GET['action']))
|
||||
$tid = intval($_GET['id']);
|
||||
Secure::topic_exists($tid);
|
||||
Mod::UnlockTopic($tid);
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['tunlocked'], 'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ switch(trim($_GET['action']))
|
||||
{
|
||||
Mod::DeletePost($pid);
|
||||
}
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['pdeleted'],'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
@@ -89,7 +89,7 @@ switch(trim($_GET['action']))
|
||||
$tid = intval($_GET['id']);
|
||||
Secure::topic_exists($tid);
|
||||
Mod::StickTopic($tid,'1');
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['tstuck'], 'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
@@ -98,7 +98,7 @@ switch(trim($_GET['action']))
|
||||
$tid = intval($_GET['id']);
|
||||
Secure::topic_exists($tid);
|
||||
Mod::StickTopic($tid,'0');
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['tunstuck'], 'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
@@ -114,8 +114,8 @@ switch(trim($_GET['action']))
|
||||
}
|
||||
else
|
||||
{
|
||||
$start = Over::TimeGeneration();
|
||||
$default_skin = Over::ViewSkinName();
|
||||
$start = TimeGeneration();
|
||||
$default_skin = ViewSkinName();
|
||||
//add skin variables
|
||||
$skin = array(
|
||||
't' => $tid,
|
||||
@@ -124,7 +124,7 @@ switch(trim($_GET['action']))
|
||||
'L.reset' => $lng['reset'],
|
||||
'OPTIONS.select_forum' => Forum::AddForums($tid)
|
||||
);
|
||||
$skin = array_push_associative($skin, Over::generate_header($lng['move_topic'].': '.Topic::TopicInformation($tid,'name'),'</a><a href="moderate.php?action=move&id='.$tid.'" class="navigator">'
|
||||
$skin = array_push_associative($skin, GenerateHeader($lng['move_topic'].': '.Topic::TopicInformation($tid,'name'),'</a><a href="moderate.php?action=move&id='.$tid.'" class="navigator">'
|
||||
.$lng['move_topic'].': </a><a href="topic.php?t='.$tid.'" class="navigator">'
|
||||
.Topic::TopicInformation($tid,'name')));
|
||||
if ($_SESSION['uid']>0)
|
||||
@@ -142,8 +142,8 @@ switch(trim($_GET['action']))
|
||||
{
|
||||
$skin['pa_link']='';
|
||||
}
|
||||
$stop = Over::TimeGeneration();
|
||||
$skin['queries'] = Over::ShowQueries($start, $stop);
|
||||
$stop = TimeGeneration();
|
||||
$skin['queries'] = ShowQueries($start, $stop);
|
||||
//do it!
|
||||
include('./skins/'.$default_skin.'/overall_header.tpl');
|
||||
include('./skins/'.$default_skin.'/move_topic_body.tpl');
|
||||
@@ -156,14 +156,14 @@ switch(trim($_GET['action']))
|
||||
$pid = intval($_GET['id']);
|
||||
Secure::post_exists($pid);
|
||||
Mod::AcceptPost($pid);
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
$tid = Topic::PostInformation($pid,'t_id');
|
||||
message_forum($lng['post_accepted'], 'topic.php?t='.$tid);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
$stop = Over::TimeGeneration();
|
||||
$stop = TimeGeneration();
|
||||
message_forum($lng['invalidmode'],'index.php');
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user