예제 #1
0
function bank_menu()
{
    //Bank menu
    global $locale, $golddata, $userdata;
    table_top($locale['urg_bank_100']);
    echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr>\n";
    echo "<td><h3>" . $locale['urg_bank_101a'] . "</h3></td>\n";
    echo "<td rowspan='3' align='right' valign='bottom'><img src='" . GOLD_IMAGE . "logo_bank.png' alt='logo_bank' /></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td>" . $locale['urg_bank_101b'] . "</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td>" . $locale['urg_bank_101c'] . "</td>\n";
    echo "</tr>\n</table>\n";
    echo "<div style='margin:5px'></div>\n";
    echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl-border'>\n<tr>\n";
    echo "<td class='tbl2'>\n";
    if (UGLD_BANK_ENABLED) {
        if (ItemOwned("GLD_BANK_ACCOUNT", $golddata['owner_id'])) {
            echo "<a href='index.php?op=bank_start'>" . $locale['urg_bank_102'] . "</a>\n";
            $today = date('Ymd');
            if ($golddata['interest'] != $today) {
                echo " - <a href='index.php?op=bank_interest'>" . $locale['urg_bank_103'] . "</a>\n";
            }
            // Removed for now
            //echo " - <a href='index.php?op=bank_transactions'>".$locale['urg_bank_124']."</a>\n";
        } else {
            echo buylink("GLD_BANK_ACCOUNT", $locale['urg_bank_125'], $locale['urg_bank_126'], urlencode(FUSION_SELF . "?op=bank_menu")) . "";
        }
    } else {
        echo $locale['urg_bank_127'];
    }
    echo "</td>\n</tr>\n</table>\n";
    closetable();
}
예제 #2
0
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
if ($profile_method == "input") {
    if ($settings['userthemes'] == 1 || iADMIN) {
        if (USERGOLD && ItemOwned('GLD_THEME_SELECT', $user_data['user_id'])) {
            $theme_files = makefilelist(THEMES, ".|..|templates", true, "folders");
            array_unshift($theme_files, "Default");
            echo "<tr>\n";
            echo "<td class='tbl'>" . $locale['uf_theme'] . "</td>\n";
            echo "<td class='tbl'><select name='user_theme' class='textbox' style='width:100px;'>\n" . makefileopts($theme_files, isset($user_data['user_offset']) ? $user_data['user_theme'] : "") . "\n</select></td>\n";
            echo "</tr>\n";
        } else {
            echo "<tr>\n";
            echo "<td class='tbl'>" . $locale['uf_theme'] . "</td>\n";
            echo "<td class='tbl'><input name='user_theme' type='hidden' value='Default' />";
            buylink('GLD_THEME_SELECT', 'Buy Now', '');
            echo "</td>\n";
            echo "</tr>\n";
        }
    }
} elseif ($profile_method == "display") {
    // Not shown in profile
} elseif ($profile_method == "validate") {
    $db_fields .= ", user_theme";
    $db_values .= ", '" . (isset($_POST['user_theme']) && ($settings['userthemes'] == 1 || iADMIN) ? stripinput(trim($_POST['user_theme'])) : "Default") . "'";
} elseif ($profile_method == "validate_update") {
    $db_values .= ", user_theme='" . (isset($_POST['user_theme']) && ($settings['userthemes'] == 1 || iADMIN) ? stripinput(trim($_POST['user_theme'])) : "Default") . "'";
}