コード例 #1
0
ファイル: index.php プロジェクト: ssh24/LFC-World-fan-website
 $ModName = basename(dirname(__FILE__));
 ob_start();
 include "header.php";
 $GB_PG["base_url"] .= "/modules/{$ModName}";
 $GB_SELF = basename($_SERVER['PHP_SELF']);
 $GB_PG["index"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index";
 $GB_PG["admin"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=admin";
 $GB_PG["comment"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=comment";
 $GB_PG["addentry"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=addentry";
 if (!isset($agbook)) {
     $agbook = '';
 }
 switch ($agbook) {
     case "admin":
         require_once $include_path . "/lib/session.class.php";
         $gb_auth = new gb_session($include_path);
         $AUTH = $gb_auth->checkSessionID();
         $VARS = $gb_auth->fetch_array($gb_auth->query("SELECT * FROM " . $gb_auth->table['cfg']));
         $gb_auth->free_result($gb_auth->result);
         $template = new gb_template($include_path);
         if (isset($_COOKIE['lang']) && !empty($_COOKIE['lang'])) {
             $template->set_lang($_COOKIE['lang']);
         } else {
             $template->set_lang($VARS['lang']);
         }
         $LANG = $template->get_content();
         $gb_auth->close_db();
         $enter_html = "";
         if (!$AUTH) {
             $message = isset($username) || isset($password) ? $LANG["PassMess2"] : $LANG["PassMess1"];
             eval("\$enter_html = \"" . $template->get_template($GB_TPL['header']) . "\";");
コード例 #2
0
ファイル: admin.php プロジェクト: haazenpfeffer/haazenpfeffer
    die("Hacking Attempt!");
}
define('LAZ_INCLUDE_PATH', dirname(__FILE__));
global $GB_DB, $GB_PG;
require_once LAZ_INCLUDE_PATH . '/admin/version.php';
require_once LAZ_INCLUDE_PATH . '/admin/config.inc.php';
require_once LAZ_INCLUDE_PATH . '/lib/' . $DB_CLASS;
require_once LAZ_INCLUDE_PATH . '/lib/image.class.php';
require_once LAZ_INCLUDE_PATH . '/lib/template.class.php';
require_once LAZ_INCLUDE_PATH . '/lib/session.class.php';
require_once LAZ_INCLUDE_PATH . '/lib/admin.class.php';
define('LAZ_TABLE_PREFIX', $table_prefix);
// This is an array of all post variables we can expect in the login or session check
$postVars = array('username', 'password', 'remember', 'gbsession', 'uid');
create_variable($postVars);
$gb_auth = new gb_session(LAZ_INCLUDE_PATH);
$AUTH = $gb_auth->checkSessionID();
$VARS = $gb_auth->fetch_array($gb_auth->query('SELECT * FROM ' . LAZ_TABLE_PREFIX . '_config'));
date_default_timezone_set($VARS['offset']);
$GB_PG['base_url'] = $VARS['base_url'];
$GB_PG['index'] = $VARS['base_url'] . '/index.php';
$GB_PG['admin'] = $GB_PG['base_url'] . '/admin.php';
$GB_PG['comment'] = $GB_PG['base_url'] . '/comment.php';
$GB_PG['addentry'] = $GB_PG['base_url'] . '/addentry.php';
$gb_auth->free_result($gb_auth->result);
$template = new gb_template(LAZ_INCLUDE_PATH);
if (isset($_COOKIE['lang']) && !empty($_COOKIE['lang'])) {
    $template->set_lang($_COOKIE['lang']);
} else {
    $template->set_lang($VARS['lang']);
}
コード例 #3
0
}
$GB_PG['base_url'] = $gb_com->db->VARS['base_url'];
$GB_PG['index'] = $gb_com->db->VARS['base_url'] . '/index.php';
$GB_PG['admin'] = $gb_com->db->VARS['base_url'] . '/admin.php';
$GB_PG['comment'] = $gb_com->db->VARS['base_url'] . '/comment.php';
$GB_PG['addentry'] = $gb_com->db->VARS['base_url'] . '/addentry.php';
if ($gb_com->db->VARS['disablecomments'] == 1) {
    header("Location: {$GB_PG['index']}");
    die("Access Denied!");
} else {
    if ($gb_com->db->VARS['disablecomments'] == 2) {
        $gbsession = isset($_GET['gbsession']) ? addslashes($_GET['gbsession']) : '';
        $rid = isset($_GET['rid']) ? intval($_GET['rid']) : '';
        $uid = isset($_GET['uid']) ? intval($_GET['uid']) : '';
        $included = isset($_GET['included']) ? '&included=' . intval($_GET['included']) : '';
        $gb_auth = new gb_session(LAZ_INCLUDE_PATH);
        $AUTH = $gb_auth->checkSessionID();
        if (!$AUTH) {
            header("Location: {$GB_PG['index']}");
            die("Access Denied!");
        }
    }
    $antispam = $gb_com->db->VARS['antispam_word'];
    $gb_com->id = isset($_GET['gb_id']) ? $_GET['gb_id'] : '';
    $gb_com->id = isset($_POST['gb_id']) ? $_POST['gb_id'] : $gb_com->id;
    $gb_com->comment = isset($_POST['gb_comment']) ? $_POST['gb_comment'] : '';
    $gb_com->timehash = isset($_POST['gb_timehash']) ? $_POST['gb_timehash'] : '';
    $gb_com->user = isset($_POST['gb_user']) ? $_POST['gb_user'] : '';
    $gb_com->email = isset($_POST['gb_email']) ? $_POST['gb_email'] : '';
    if ($gb_com->db->VARS['solve_media'] == 1 && $gb_com->db->VARS['antibottest'] == 2) {
        $gb_com->bottest = isset($_POST['adcopy_response']) ? trim($_POST['adcopy_response']) : '';
コード例 #4
0
ファイル: admin.php プロジェクト: ssh24/LFC-World-fan-website
        }
    }
    if (isset($_COOKIE)) {
        while (list($name, $value) = each($_COOKIE)) {
            ${$name} = $value;
        }
    }
}
$include_path = dirname(__FILE__);
require_once $include_path . "/admin/config.inc.php";
require_once $include_path . "/lib/{$DB_CLASS}";
require_once $include_path . "/lib/image.class.php";
require_once $include_path . "/lib/template.class.php";
require_once $include_path . "/lib/session.class.php";
require_once $include_path . "/lib/admin.class.php";
$gb_auth = new gb_session($include_path);
$AUTH = $gb_auth->checkSessionID();
$VARS = $gb_auth->fetch_array($gb_auth->query("SELECT * FROM " . $gb_auth->table['cfg']));
$gb_auth->free_result($gb_auth->result);
$template = new gb_template($include_path);
if (isset($_COOKIE['lang']) && !empty($_COOKIE['lang'])) {
    $template->set_lang($_COOKIE['lang']);
} else {
    $template->set_lang($VARS['lang']);
}
$LANG = $template->get_content();
$enter_html = "";
if (!$AUTH) {
    $message = isset($username) || isset($password) ? $LANG["PassMess2"] : $LANG["PassMess1"];
    eval("\$enter_html = \"" . $template->get_template($GB_TPL['header']) . "\";");
    eval("\$enter_html .= \"" . $template->get_template($GB_TPL['adm_enter']) . "\";");