Пример #1
0
// Config File
$prevFolder = "../";
include "../_setup.php";
// Check for valid Console Option
$consoleObj = new ConsoleOption($mysqli);
$checkConsole = $mysqli->query("SELECT console_id FROM " . $dbprefix . "console ORDER BY console_id");
while ($row = $checkConsole->fetch_assoc()) {
    $arrConsoleOptions[] = $row['console_id'];
}
if (!$consoleObj->select($_GET['cID'])) {
    die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "members';</script>");
}
$cID = $_GET['cID'];
// Load any plugins
$consolePluginObj = new btPlugin($mysqli);
$arrPlugins = $consolePluginObj->getPluginPage("console");
foreach ($arrPlugins as $pluginPageInfo) {
    include_once $pluginPageInfo['pagepath'];
}
// Start Page
$consoleInfo = $consoleObj->get_info_filtered();
$consoleTitle = $consoleInfo['pagetitle'];
$PAGE_NAME = $consoleTitle . " - ";
$EXTERNAL_JAVASCRIPT .= "\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/console.js'></script>\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/main.js'></script>\n<script type='text/javascript' src='" . $MAIN_ROOT . "js/colorpicker/jquery.miniColors.js'></script>\n<link rel='stylesheet' media='screen' type='text/css' href='" . $MAIN_ROOT . "js/colorpicker/jquery.miniColors.css'>\n";
$arrTinyMCEPages = array("Manage News", "Post News", "Add Custom Page", "Manage Custom Pages", "Add Custom Form Page", "Manage Custom Form Pages", "Post Topic", "Manage Forum Posts", "Add Menu Item", "Add Menu Category", "Manage Menu Categories", "Manage Menu Items", "Edit Profile");
$arrAceEditorPages = array("Modify Current Theme", "Add Menu Category", "Add Menu Item", "Manage Menu Categories", "Manage Menu Items");
if (in_array($consoleInfo['pagetitle'], $arrTinyMCEPages)) {
    $btThemeObj->addHeadItem("richtexteditor", "<script type='text/javascript' src='" . $MAIN_ROOT . "js/tiny_mce/jquery.tinymce.js'></script>");
}
if (in_array($consoleInfo['pagetitle'], $arrAceEditorPages)) {
    $btThemeObj->addHeadItem("codeedtior", "<script type='text/javascript' src='" . $MAIN_ROOT . "js/ace/src-min-noconflict/ace.js' charset='utf-8'></script>");
Пример #2
0
$prevFolder = "../../";
$PAGE_NAME = "Twitter Connect - " . $consoleTitle . " - ";
$dispBreadCrumb = "<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "'>" . $consoleTitle . "</a> > Twitter Connect Settings";
$EXTERNAL_JAVASCRIPT .= "\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/console.js'></script>\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/main.js'></script>\n";
include "../../themes/" . $THEME . "/_header.php";
echo "\n<div class='breadCrumbTitle' id='breadCrumbTitle'>Twitter Connect Settings</div>\n<div class='breadCrumb' id='breadCrumb' style='padding-top: 0px; margin-top: 0px'>\n{$dispBreadCrumb}\n</div>\n";
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $twitterObj = new Twitter($mysqli);
    $memberInfo = $member->get_info_filtered();
    $pluginObj->selectByName("Twitter Connect");
    //$result = $mysqli->query("SELECT * FROM ".$dbprefix."plugins WHERE name = 'Twitter Connect'");
    $pluginInfo = $pluginObj->get_info();
    $pluginObj->pluginPage->setCategoryKeyValue($pluginInfo['plugin_id']);
    $pluginPageInfo = $pluginObj->getPluginPage("profile", $pluginInfo['plugin_id']);
    $arrProfileModules = array("User Information", "Custom Profile Options", "Games Statistics", "Squads", "Medals");
    $countErrors = 0;
    $dispError = "";
    if ($_POST['submit']) {
        // Check Display Order (before/after)
        if ($_POST['beforeafter'] != "before" && $_POST['beforeafter'] != "after") {
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid display order (before/after).<br>";
            $countErrors++;
        }
        // Check Display Order
        if (!in_array($_POST['displayorder'], array_keys($arrProfileModules))) {
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid display order.<br>";
            $countErrors++;
        }
        if ($countErrors == 0) {
Пример #3
0
<?php

function minecraftSkins()
{
    global $arrSections;
    $arrSections = addArraySpace($arrSections, 5, 2);
    $arrSections[2] = "include/profile/_minecraftskin.php";
}
$hooksObj->addHook("profile_sections", "minecraftSkins");
// Include installed plugin functions
$modPluginsObj = new btPlugin($mysqli);
$arrPlugins = $modPluginsObj->getPluginPage("mods");
foreach ($arrPlugins as $pluginInfo) {
    include_once BASE_DIRECTORY . $pluginInfo['pagepath'];
}
function replaceRichTextEditor()
{
    $GLOBALS['richtextEditor'] = "\n\n\t\t\tCKEDITOR.replace('" . $GLOBALS['rtCompID'] . "');\n\t\t\n\t\t";
}
//$hooksObj->addHook("form_richtexteditor", "replaceRichTextEditor");
Пример #4
0
		</div>
	
	
	</div>


	<div class='main userProfileRight'>
		<?php 
define("SHOW_PROFILE_MAIN", true);
$arrSections[] = "include/profile/_main.php";
$arrSections[] = "include/profile/_customoptions.php";
$arrSections[] = "include/profile/_gamesplayed.php";
$arrSections[] = "include/profile/_squads.php";
$arrSections[] = "include/profile/_medals.php";
$pluginObj = new btPlugin($mysqli);
$arrPlugins = $pluginObj->getPluginPage("profile");
$hooksObj->run("profile_sections");
$arrSections[] = "";
$x = 0;
foreach ($arrSections as $section) {
    foreach ($arrPlugins as $pluginInfo) {
        if ($pluginInfo['sortnum'] == $x) {
            include $pluginInfo['pagepath'];
        }
    }
    if ($section != "") {
        include $section;
    }
    $x++;
}
?>