コード例 #1
0
    if (!$member->authorizeLogin($_SESSION['btPassword']) || !$member->hasAccess($consoleObj)) {
        exit;
    }
}
echo "\n\n\t\t<table class='formTable' style='width: 90%; margin-top: 0px'>\n\t\t\t<tr>\n\t\t\t\t<td class='main' style='width: 50%'>Username</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%'>Input</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%; height: 24px'>N/A</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class='main' style='width: 50%'>Password</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%'>Input</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%; height: 24px'>N/A</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class='main' style='width: 50%'>E-mail Address</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%'>Input</td>\n\t\t\t\t<td class='main' align='center' style='width: 25%; height: 24px'>N/A</td>\n\t\t\t</tr>\n\t\t\t";
$objAppComponent = new BasicOrder($mysqli, "app_components", "appcomponent_id");
$result = $mysqli->query("SELECT appcomponent_id FROM " . $dbprefix . "app_components ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $objAppComponent->select($row['appcomponent_id']);
    $appComponentInfo = $objAppComponent->get_info_filtered();
    $dispUpArrow = "<a href='javascript:void(0)' onclick=\"moveAppComponent('up', '" . $row['appcomponent_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/uparrow.png' width='24' height='24' title='Move Up'></a>";
    $dispDownArrow = "<a href='javascript:void(0)' onclick=\"moveAppComponent('down', '" . $row['appcomponent_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/downarrow.png' width='24' height='24' title='Move Down'></a>";
    if ($appComponentInfo['ordernum'] == 1) {
        $dispDownArrow = "<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/transparent.png' width='24' height='24'>";
    }
    if ($appComponentInfo['ordernum'] == $objAppComponent->getHighestOrderNum()) {
        $dispUpArrow = "<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/transparent.png' width='24' height='24'>";
    }
    switch ($appComponentInfo['componenttype']) {
        case "multiselect":
            $appComponentInfo['componenttype'] = "Multi-Select";
            break;
        case "largeinput":
            $appComponentInfo['componenttype'] = "Large-Input";
            break;
        case "captchaextra":
            $appComponentInfo['componenttype'] = "Captcha - Extra Distortion";
            break;
        case "profile":
            $appComponentInfo['componenttype'] = "Profile Option";
            break;
コード例 #2
0
    $consoleObj->select($consoleObj->findConsoleIDByName("Manage Forum Categories"));
    if (!$member->hasAccess($consoleObj)) {
        exit;
    }
}
echo "\n\t<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t\t<tr><td class='dottedLine' colspan='5'></td></tr>\n";
$counter = 0;
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "forum_category ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $categoryObj->select($row['forumcategory_id']);
    $addCSS = "";
    if ($counter == 1) {
        $addCSS = " alternateBGColor";
        $counter = 0;
    } else {
        $counter = 1;
    }
    $dispUpArrow = "<a href='javascript:void(0)' onclick=\"moveCat('up', '" . $row['forumcategory_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/uparrow.png' width='24' height='24' title='Move Up'></a>";
    $dispDownArrow = "<a href='javascript:void(0)' onclick=\"moveCat('down', '" . $row['forumcategory_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/downarrow.png' width='24' height='24' title='Move Down'></a>";
    if ($categoryObj->getHighestOrderNum() == $row['ordernum']) {
        $dispUpArrow = "<img src='" . $MAIN_ROOT . "images/transparent.png' width='24' height='24'>";
    }
    if ($row['ordernum'] == 1) {
        $dispDownArrow = "<img src='" . $MAIN_ROOT . "images/transparent.png' width='24' height='24'>";
    }
    echo "\n\t\n\t\t<tr>\n\t\t\t<td class='dottedLine main" . $addCSS . "' style='padding-left: 10px; width: 76%'><b><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&catID=" . $row['forumcategory_id'] . "&action=edit'>" . filterText($row['name']) . "</a></b></td>\n\t\t\t<td class='dottedLine main" . $addCSS . "' style='width: 6%'>" . $dispUpArrow . "</td>\n\t\t\t<td class='dottedLine main" . $addCSS . "' style='width: 6%'>" . $dispDownArrow . "</td>\n\t\t\t<td class='dottedLine main" . $addCSS . "' style='width: 6%'><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&catID=" . $row['forumcategory_id'] . "&action=edit'><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/edit.png' width='24' height='24' title='Edit Forum Category'></a></td>\n\t\t\t<td class='dottedLine main" . $addCSS . "' style='width: 6%'><a href='javascript:void(0)' onclick=\"deleteCat('" . $row['forumcategory_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/delete.png' width='24' height='24' title='Delete Category'></a></td>\n\t\t</tr>\n\t\n\t\n\t";
}
echo "</table>";
if ($result->num_rows == 0) {
    echo "\n\t\n\t\t<div class='shadedBox' style='width: 40%; margin: 20px auto'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\t<i>There are currently no forum categories!<br><br>Click <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $intAddCategoryCID . "'>here</a> to add a category.</i>\n\t\t\t</p>\n\t\t</div>\n\t\n\t";
}
コード例 #3
0
$member->select($_SESSION['btUsername']);
$cID = $consoleObj->findConsoleIDByName("Member Application");
$consoleObj->select($cID);
$appComponentObj = new BasicOrder($mysqli, "app_components", "appcomponent_id");
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    include BASE_DIRECTORY . "members/include/membermanagement/include/appcomponent_form.php";
    if ($_POST['saveComponent']) {
        // Check Component Name
        if (trim($_POST['newComponentName']) == "") {
            $addAppForm->errors[] = "You can't have a blank component name.<br>";
        }
        if (!in_array($_POST['newComponentType'], array_keys($typeOptions))) {
            $addAppForm->errors[] = "You selected an invalid component type.<br>";
        }
        if (count($addAppForm->errors) == 0) {
            if ($appComponentObj->getHighestOrderNum() == "") {
                $componentOrderNum = $appComponentObj->validateOrder("first", "before");
            } else {
                $appComponentObj->selectByOrder(1);
                $componentOrderNum = $appComponentObj->makeRoom("after");
            }
            if ($_POST['newComponentRequired'] != 0) {
                $_POST['newComponentRequired'] = 1;
            }
            $arrColumns = array("name", "componenttype", "ordernum", "required", "tooltip");
            $arrValues = array($_POST['newComponentName'], $_POST['newComponentType'], $componentOrderNum, $_POST['newComponentRequired'], $_POST['newComponentTooltip']);
            if ($appComponentObj->addNew($arrColumns, $arrValues)) {
                if ($_POST['newComponentType'] == "select" || $_POST['newComponentType'] == "multiselect") {
                    $appComponentSelectOptionObj = new Basic($mysqli, "app_selectvalues", "appselectvalue_id");
                    $newComponentID = $appComponentObj->get_info("appcomponent_id");
                    foreach ($_SESSION['btAppComponent']['cOptions'] as $optionValue) {
コード例 #4
0
        exit;
    }
} else {
    $memberInfo = $member->get_info();
    $consoleObj->select($consoleObj->findConsoleIDByName("Manage Diplomacy Statuses"));
    if (!$member->hasAccess($consoleObj)) {
        exit;
    }
}
echo "\n<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t<tr><td colspan='5' class='dottedLine'></td></tr>\n";
if (!isset($diplomacyStatusObj)) {
    $diplomacyStatusObj = new BasicOrder($mysqli, "diplomacy_status", "diplomacystatus_id");
}
$counter = 0;
$x = 1;
$intHighestOrder = $diplomacyStatusObj->getHighestOrderNum();
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "diplomacy_status ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    if ($counter == 1) {
        $addCSS = " alternateBGColor";
        $counter = 0;
    } else {
        $addCSS = "";
        $counter = 1;
    }
    if ($x == 1) {
        $dispUpArrow = "<img src='" . $MAIN_ROOT . "images/transparent.png' width='24' height'24'>";
    } else {
        $dispUpArrow = "<a href='javascript:void(0)' onclick=\"moveStatus('up', '" . $row['diplomacystatus_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/uparrow.png' width='24' height='24' title='Move Up'></a>";
    }
    if ($x == $intHighestOrder) {