コード例 #1
0
require '../../config.php';
header('Content-Type: text/plain');
// plain text file
// Get id
if (!isset($_GET['section_id']) or !is_numeric($_GET['section_id'])) {
    die("Location: " . ADMIN_URL . "/pages/index.php");
} else {
    $section_id = $_GET['section_id'];
}
$mod_dir = basename(dirname(__FILE__));
$tablename = $mod_dir;
require_once WB_PATH . '/modules/' . $mod_dir . '/defaults/module_settings.default.php';
require_once WB_PATH . '/modules/' . $mod_dir . '/module_settings.php';
$wb = new wb();
if ($wb->is_authenticated()) {
    echo "//Starting Javascript\n";
} else {
    die("Sorry, no access");
}
//global $wb;
// Get header and footer
$query_content = $database->query("SELECT * FROM " . TABLE_PREFIX . "mod_" . $tablename . "_settings WHERE section_id = '{$section_id}'");
$fetch_content = $query_content->fetchRow();
$vv = explode(',', $fetch_content['picture_values'] . ',-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2');
$w_zoom = (int) $vv[0];
if ($w_zoom == -2) {
    $w_zoom = 1000;
}
$h_zoom = (int) $vv[1];
if ($h_zoom == -2) {
コード例 #2
0
     unset($_SESSION['comes_from_view']);
     unset($_SESSION['comes_from_view_time']);
     unset($_SESSION['submitted_when']);
 }
 //Brachialer Spamschutz
 include '../inc/spamfilter.inc.php';
 $hpstart = substr($thesite, 0, 7);
 if ($hpstart != 'http://') {
     $thesite = 'http://' . $thesite;
 }
 if ($thesite == 'http://') {
     $thesite = '';
 }
 $show_link = $settings['default_link'];
 $commented_when = topics_localtime();
 if ($wb->is_authenticated() == true) {
     $commented_by = $wb->get_user_id();
 } else {
     $commented_by = '';
 }
 //Sending an Email:
 $admin_email = '';
 $query_topicauthor = $database->query("SELECT email FROM " . TABLE_PREFIX . "users WHERE user_id = '" . $topicauthornr . "'");
 if ($query_topicauthor->numRows() > 0) {
     $authorfetch = $query_topicauthor->fetchRow();
     $admin_email = $authorfetch['email'];
 }
 //Der spamfilter könnte $active verändert haben, deswegen $commentextra erst hier vergeben:
 $commentextra = '';
 if ($active == 0) {
     $commentextra = rand(1000000, 9999999);
コード例 #3
0
 * @lastmodified    $Date: 2011-09-07 20:51:47 +0200 (Mi, 07. Sep 2011) $
 *
 */
require_once '../config.php';
if (!FRONTEND_LOGIN) {
    if (INTRO_PAGE) {
        header('Location: ' . WB_URL . PAGES_DIRECTORY . '/index.php');
        exit(0);
    } else {
        header('Location: ' . WB_URL . '/index.php');
        exit(0);
    }
}
require_once WB_PATH . '/framework/class.frontend.php';
$wb_inst = new wb();
if ($wb_inst->is_authenticated() == false) {
    header('Location: ' . WB_URL . '/account/login.php');
    exit(0);
}
$page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
// Required page details
/* */
// $page_id = 0;
$page_description = '';
$page_keywords = '';
define('PAGE_ID', $page_id);
define('ROOT_PARENT', 0);
define('PARENT', 0);
define('LEVEL', 0);
define('PAGE_TITLE', $MENU['PREFERENCES']);
define('MENU_TITLE', $MENU['PREFERENCES']);