Exemple #1
0
     }
     if ($money) {
         if ($mod_user->addMoney($money)) {
             $rcodes[] = 1;
         }
     }
     if ($gender !== false) {
         $gender = !$gender ? 0 : 1;
         if ($mod_user->changeGender($gender)) {
             $rcodes[] = 1;
         }
     }
     if ($mail) {
         $rcodes[] = $mod_user->changeEmail($mail);
     }
     $ajax_message['token_data'] = tokenTool('get');
 }
 $newlogin = Filter::input('new_login');
 $newpass = Filter::input('new_password');
 $delete_skin = Filter::input('new_delete_skin', 'post', 'bool');
 $delete_cloak = Filter::input('new_delete_cloak', 'post', 'bool');
 if ($newlogin) {
     $rcodes[] = $mod_user->changeName($newlogin);
 }
 if ($newpass) {
     $oldpass = Filter::input('old_password');
     $newrepass = Filter::input('new_repassword');
     if ($user->lvl() >= 15 and $user_id) {
         $rcodes[] = $mod_user->changePassword($newpass);
     } else {
         $rcodes[] = $mod_user->changePassword($newpass, $newrepass, $oldpass);
Exemple #2
0
             sqlConfigSet('smtp-port', $smtp_port);
             sqlConfigSet('smtp-hello', $smtp_hello);
         }
         if ($email_test && !EMail::Send($email_test, 'Mail test', 'Content')) {
             $info .= '<br>' . lng('OPTIONS_MAIL_TEST_FAIL');
         }
     }
     $theme_manager = new ThemeManager(false, 'index.php?mode=control&');
     $theme_selector = $theme_manager->ShowThemeSelector();
     include View::Get('constants.html', $st_subdir);
     break;
 case 'profile':
     if (!$ban_user) {
         break;
     }
     tokenTool('set');
     $group_list = GroupManager::GetList($ban_user->group());
     include View::Get('profile_main.html', $st_subdir . 'profile/');
     $skin_def = $ban_user->defaultSkinTrigger();
     $cloak_exist = file_exists($ban_user->getCloakFName());
     $user_img_get = $ban_user->getSkinLink() . '&amp;refresh=' . rand(1000, 9999);
     if ($cloak_exist or !$skin_def) {
         include View::Get('profile_skin.html', $st_subdir . 'profile/');
     }
     if (!$skin_def) {
         include View::Get('profile_del_skin.html', $st_subdir . 'profile/');
     }
     if ($cloak_exist) {
         include View::Get('profile_del_cloak.html', $st_subdir . 'profile/');
     }
     if ($bd_names['iconomy']) {
Exemple #3
0
<?php

require '../system.php';
$command = Filter::input('command');
$userlist = Filter::input('userlist');
if (!$command and !$userlist) {
    exit('<script>parent.showResult("command is empty");</script>');
}
tokenTool('check');
$token = 'parent.token_data = "' . tokenTool('get') . '";';
DBinit('mcraft.rcon');
loadTool('rcon.class.php');
loadTool('user.class.php');
MCRAuth::userLoad();
if (empty($user) or $user->lvl() < 15) {
    exit;
}
/* HTML version of GetUserList */
function GetUserListHTML($result)
{
    $str = trim($result);
    $str = str_replace(array("\r\n", "\n", "\r"), '', $str);
    $names = explode(', ', substr($str, 19));
    if (!empty($names)) {
        for ($i = 0; $i < sizeof($names); $i++) {
            trim($names[$i]);
        }
    }
    if ($names[0] == '') {
        unset($names);
    }