Exemplo n.º 1
0
function AJAX_USER_STARTER()
{
    switch ($_GET["section"]) {
        case "account":
            echo USER_ACCOUNT($_GET["userid"]);
            break;
        case "account-popup":
            echo USER_ACCOUNT_POPUP($_GET["userid"]);
            break;
        case "address":
            echo USER_ADDRESS($_GET["userid"]);
            break;
        case "mailbox":
            echo USER_MAILBOX($_GET["userid"]);
            break;
        case "aliases":
            echo USER_ALIASES($_GET["userid"]);
            break;
        case "mailing_list":
            echo USER_ALIASES_MAILING_LIST($_GET["userid"]);
            break;
        case "fetchmail":
            echo USER_FETCHMAIL($_GET["userid"]);
            break;
        case "groups":
            echo USER_GROUP($_GET["userid"]);
            break;
        case "email":
            echo USER_MESSAGING($_GET["userid"]);
            break;
        case "ftp_access":
            echo USER_FTP($_GET["userid"]);
            break;
        case "file_share":
            echo USER_SAMBA($_GET["userid"]);
            break;
        case "computer":
            echo AJAX_COMPUTER($_GET["userid"]);
            break;
        case "openports":
            echo AJAX_COMPUTER_OPENPORTS($_GET["userid"]);
            break;
        case "ocs":
            echo AJAX_COMPUTER_OCS($_GET["userid"]);
            break;
        case "ressources":
            echo AJAX_COMPUTER_RESSOURCES($_GET["userid"]);
            break;
        case "computer_aliases":
            echo AJAX_COMPTER_ALIASES($_GET["userid"]);
            break;
        case "safebox":
            echo USER_SAFEBOX();
            break;
        case "privs":
            echo USER_PRIVILEGES();
            break;
        default:
            echo AJAX_USER_TAB();
            break;
    }
}
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.user.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.lvm.org.inc';
include_once 'ressources/class.safebox.inc';
if (isset($_GET["uid"]) && !isset($_GET["userid"])) {
    $_GET["userid"] = $_GET["uid"];
}
//permissions
if (!CheckRights()) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . '");';
}
if (isset($_GET["main"])) {
    USER_SAFEBOX();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["CryptedHomeSize"])) {
    Save();
    exit;
}
if (isset($_GET["safe-box-page"])) {
    USER_SAFEBOX_PAGE();
    exit;
}
if (isset($_GET["safe-box-log"])) {