예제 #1
0
function user_settings_start()
{
    //User Settings start page
    global $userdata, $locale, $golddata;
    table_top($locale['urg_user_103']);
    add_to_head("<script type='text/javascript' src='" . GOLD_INC . "colorpicker/301a.js'></script>");
    echo "<form name='ug3_usersettings' method='post' action='" . FUSION_SELF . "' enctype='multipart/form-data'>\n";
    echo "<table align='center' cellpadding='3' cellspacing='0' width='100%'><tr>\n";
    echo "<td class='tbl1' width='145px'>" . $locale['urg_user_110'] . "</td>\n";
    echo "<td style='color: " . $golddata['username_color'] . ";'><input type='hidden' name='user_name' value='" . $userdata['user_name'] . "' maxlength='30' class='textbox' style='width: 200px;' />" . $userdata['user_name'] . "</td>\n";
    echo "</tr>\n<tr valign='top'>\n";
    echo "<td class='tbl1'>" . $locale['urg_user_111'] . "</td>\n";
    echo "<td>\n";
    echo "<div id='colorpicker301' class='colorpicker301'></div>\n";
    echo "<input class='textbox' type='text' size='9' name='color_value' id='color_value' value='" . $golddata['username_color'] . "' />&nbsp;\n";
    echo "<img src='" . GOLD_INC . "colorpicker/colorpicker.png' onclick='showColorGrid3(\"color_value\",\"none\");' border='0' style='cursor:pointer' alt='" . $locale['urg_user_117'] . "' title='" . $locale['urg_user_117'] . "' />\n";
    echo "</td>\n";
    echo "</tr>\n<tr>\n";
    if (ItemOwned("GLD_USERLEVEL", $userdata['user_id'])) {
        echo "<td class='tbl1'>" . $locale['urg_user_113'] . "</td>\n";
        echo "<td><input type='text' name='userlevel' value='" . $golddata['userlevel'] . "' maxlength='30' class='textbox' style='width: 200px;' /></td>\n";
        echo "</tr>\n<tr>\n";
    } else {
        echo "<input type='hidden' name='userlevel' value='" . $locale['urg_user_118'] . "' class='textbox' />\n";
    }
    echo "<td colspan='2'><input type='hidden' name='op' value='user_settings_save' /></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td align='center' colspan='2'>\n";
    echo "<input type='submit' name='submit' value='" . $locale['urg_user_112'] . "' class='button' /></td>\n";
    echo "</tr>\n</table>\n";
    echo "</form>\n";
    closetable();
}
예제 #2
0
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| 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";
        }
    }
예제 #3
0
function goldmod_user($userid, $username)
{
    global $userdata;
    $userid = stripinput($userid);
    $username = stripinput($username);
    $item = dbquery("SELECT itemname FROM " . DB_UG3_INVENTORY . " WHERE ownerid = '" . $userid . "' AND trading = '0' GROUP BY itemname");
    $link = $username;
    if (USERGOLD) {
        while ($check = dbarray($item)) {
            if ($check['itemname'] == "GLD_USERNAME_ITALIC") {
                $link = "<i>{$link}</i>";
            }
            if ($check['itemname'] == "GLD_USERNAME_COLOR") {
                $result = dbquery("SELECT * FROM " . DB_UG3 . " WHERE owner_id = '{$userid}'");
                $goldlinkdata = dbarray($result);
                $link = "<span style='color: " . $goldlinkdata['username_color'] . ";'>{$link}</span>";
            }
            if (!ItemOwned("GLD_USERNAME_BLINK_BLOCK", $userdata['user_id'])) {
                if ($check['itemname'] == "GLD_USERNAME_BLINK") {
                    $link = "<blink>{$link}</blink>";
                }
            }
            if ($check['itemname'] == "GLD_USERNAME_BOLD") {
                $link = "<strong>{$link}</strong>";
            }
            if ($check['itemname'] == "GLD_USERNAMESRIKE") {
                $link = "<strike>{$link}</strike>";
            }
        }
        return $link;
    }
}
예제 #4
0
function bank_interest()
{
    //Collect the interest
    global $locale, $golddata;
    if (!ItemOwned("GLD_BANK_ACCOUNT", $golddata['owner_id']) || !UGLD_BANK_ENABLED) {
        redirect(FUSION_SELF . "?op=bank_menu");
    }
    $today = date('Ymd');
    table_top($locale['urg_bank_128']);
    echo "<div>\n";
    if ($golddata['interest'] != $today) {
        $interest_rate = UGLD_BANK_INTEREST / 100;
        $newtotal = $golddata['bank'] * $interest_rate;
        payuser($golddata['owner_id'], $newtotal, 'bank');
        dbquery("UPDATE " . DB_UG3 . " SET interest = '" . $today . "' WHERE owner_id = '" . $golddata['owner_id'] . "' LIMIT 1");
        echo sprintf($locale['urg_bank_122'], formatMoney($newtotal), date("d/m/Y h:i:s A"));
    } else {
        echo $locale['urg_bank_123'];
    }
    echo "</div>\n";
    pagerefresh('meta', '2', FUSION_SELF . '?op=bank_menu');
    closetable();
}