Пример #1
0
include_lan(e_PLUGIN . 'forum/languages/' . e_LANGUAGE . '/lan_forum_admin.php');
if (!getperms('P')) {
    header('location:' . e_BASE . 'index.php');
    exit;
}
$e_sub_cat = 'forum';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'userclass_class.php';
require_once e_HANDLER . 'form_handler.php';
require_once e_HANDLER . 'ren_help.php';
require_once e_PLUGIN . 'forum/forum_class.php';
require_once e_PLUGIN . 'forum/forum_admin_class.php';
$emessage = eMessage::getInstance();
$rs = new form();
$for = new e107forum();
$forum = new forumAdmin();
$fPref = e107::getPlugConfig('forum', '', false);
define('IMAGE_new', "<img src='" . img_path('new.png') . "' alt='' />");
define('IMAGE_sub', "<img src='" . e_PLUGIN . "forum/images/forums_16.png' alt='" . FORLAN_145 . "' title='" . FORLAN_145 . "' />");
define('IMAGE_nosub', "<img src='" . e_PLUGIN . "forum/images/sub_forums_16.png' alt='" . FORLAN_145 . "' title='" . FORLAN_145 . "' />");
$deltest = array_flip($_POST);
if (e_QUERY) {
    $tmp = explode('.', e_QUERY);
    $action = $tmp[0];
    $sub_action = $tmp[1];
    $id = $tmp[2];
    unset($tmp);
}
if (isset($_POST['delete'])) {
    $tmp = array_pop(array_flip($_POST['delete']));
    list($delete, $del_id) = explode('_', $tmp);
Пример #2
0
    class post_form_ui extends e_admin_form_ui
    {
    }
    new forum_admin();
    require_once e_ADMIN . "auth.php";
    e107::getAdminUI()->runPage();
    require_once e_ADMIN . "footer.php";
    exit;
}
$e_sub_cat = 'forum';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'userclass_class.php';
require_once e_HANDLER . 'form_handler.php';
require_once e_PLUGIN . 'forum/forum_class.php';
$for = new e107forum();
$forum = new forumAdmin();
$mes = e107::getMessage();
$sql = e107::getDb();
$tp = e107::getParser();
$fPref = e107::getPlugConfig('forum', '', false);
print_a($fPref);
define('IMAGE_new', "<img src='" . img_path('new.png') . "' alt='' />");
define('IMAGE_sub', "<img src='" . e_PLUGIN . "forum/images/forums_16.png' alt='" . FORLAN_145 . "' title='" . FORLAN_145 . "' />");
define('IMAGE_nosub', "<img src='" . e_PLUGIN . "forum/images/sub_forums_16.png' alt='" . FORLAN_145 . "' title='" . FORLAN_145 . "' />");
$deltest = array_flip($_POST);
if (e_QUERY) {
    $tmp = explode('.', e_QUERY);
    $action = $tmp[0];
    $sub_action = $tmp[1];
    $id = $tmp[2];
    unset($tmp);