Changeset 570 for trunk/mmadmin/user.php


Ignore:
Timestamp:
Apr 20, 2009, 9:51:07 PM (16 years ago)
Author:
barny
Message:

Upraven minimanager aby se spustil vymazal jsem uptime script :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mmadmin/user.php

    r374 r570  
    7171                <option value=\"banned\">{$lang_user['by_banned']}</option>
    7272                <option value=\"locked\">{$lang_user['by_locked']}</option>
    73                 <option value=\"tbc\">{$lang_user['by_tbc']}</option>
     73                <option value=\"expansion\">{$lang_user['by_expansion']}</option>
    7474           </select></form></td>
    7575           <td>";
     
    152152 $search_value = $sql->quote_smart($_GET['search_value']);
    153153 $search_by = $sql->quote_smart($_GET['search_by']);
    154  $search_menu = array('username', 'id', 'gmlevel', 'greater_gmlevel', 'email', 'joindate', 'last_ip', 'failed_logins', 'last_login', 'online', 'banned', 'locked', 'tbc');
     154 $search_menu = array('username', 'id', 'gmlevel', 'greater_gmlevel', 'email', 'joindate', 'last_ip', 'failed_logins', 'last_login', 'online', 'banned', 'locked', 'expansion');
    155155 if (!array_key_exists($search_by, $search_menu)) $search_by = 'username';
    156156
     
    211211                <option value=\"banned\">{$lang_user['by_banned']}</option>
    212212                <option value=\"locked\">{$lang_user['by_locked']}</option>
    213                 <option value=\"tbc\">{$lang_user['by_tbc']}</option>
     213                <option value=\"expansion\">{$lang_user['by_expansion']}</option>
    214214           </select></form></td><td>";
    215215           makebutton($lang_global['search'], "javascript:do_submit()",80);
     
    541541     </tr>
    542542         <tr>
    543         <td>{$lang_user['tbc_account']}</td>
    544         <td><input type=\"checkbox\" name=\"new_tbc\" value=\"1\" checked=\"checked\" /></td>
     543        <td>{$lang_user['expansion_account']}</td>
     544        <td><input type=\"checkbox\" name=\"new_expansion\" value=\"1\" checked=\"checked\" /></td>
    545545     </tr>
    546546     <tr><td>";
     
    595595
    596596        $locked = (isset($_GET['new_locked'])) ? $sql->quote_smart($_GET['new_locked']) : 0;
    597         $tbc = (isset($_GET['new_tbc'])) ? $sql->quote_smart($_GET['new_tbc']) : 0;
    598 
    599         $result = $sql->query("INSERT INTO account (username,sha_pass_hash,gmlevel,email, joindate,last_ip,failed_logins,locked,last_login,online,tbc)
    600                                                                 VALUES ('$new_user','$pass',0 ,'$new_mail',now() ,'$last_ip',0, $locked ,NULL, 0, $tbc)");
     597        $expansion = (isset($_GET['new_expansion'])) ? $sql->quote_smart($_GET['new_expansion']) : 0;
     598
     599        $result = $sql->query("INSERT INTO account (username,sha_pass_hash,gmlevel,email, joindate,last_ip,failed_logins,locked,last_login,online,expansion)
     600                                                                VALUES ('$new_user','$pass',0 ,'$new_mail',now() ,'$last_ip',0, $locked ,NULL, 0, $expansion)");
    601601        $sql->close();
    602602
     
    620620 $id = $sql->quote_smart($_GET['id']);
    621621
    622  $result = $sql->query("SELECT id,username,gmlevel,email,joindate,last_ip,failed_logins,locked,last_login,online,tbc FROM account WHERE id = '$id'");
     622 $result = $sql->query("SELECT id,username,gmlevel,email,joindate,last_ip,failed_logins,locked,last_login,online,expansion FROM account WHERE id = '$id'");
    623623 $data = $sql->fetch_row($result);
    624624
     
    730730           <td>{$lang_user['client_type']}</td>";
    731731      if($user_lvl >= $action_permission['update']) { $output .="
    732                 <td><select name=\"tbc\">";
     732                <td><select name=\"expansion\">";
    733733      $output .= "<option value=\"0\">{$lang_user['classic']}</option>
    734734                         <option value=\"1\" ";
     
    831831 $failed = (isset($_POST['failed'])) ? $sql->quote_smart($_POST['failed']) : 0;
    832832 $gmlevel = (isset($_POST['gmlevel'])) ? $sql->quote_smart($_POST['gmlevel']) : 0;
    833  $tbc = (isset($_POST['tbc'])) ? $sql->quote_smart($_POST['tbc']) : 1;
     833 $expansion = (isset($_POST['expansion'])) ? $sql->quote_smart($_POST['expansion']) : 1;
    834834 $banned = (isset($_POST['banned'])) ? $sql->quote_smart($_POST['banned']) : 0;
    835835 $locked = (isset($_POST['locked'])) ? $sql->quote_smart($_POST['locked']) : 0;
     
    868868                 }
    869869
    870  $sql->query("UPDATE account SET email='$mail', $user_pass_change failed_logins='$failed',locked='$locked',gmlevel='$gmlevel',tbc='$tbc' WHERE id=$id");
     870 $sql->query("UPDATE account SET email='$mail', $user_pass_change failed_logins='$failed',locked='$locked',gmlevel='$gmlevel',expansion='$expansion' WHERE id=$id");
    871871
    872872 $sql->close();
Note: See TracChangeset for help on using the changeset viewer.