Exemplo n.º 1
0
                    download();
                    break;
                case 4:
                    view();
                    break;
                case 5:
                    server_info();
                    break;
                case 6:
                    execute_cmd();
                    break;
                case 7:
                    edit_file_form();
                    break;
                case 8:
                    chmod_form();
                    break;
                case 9:
                    shell_form();
                    break;
                case 10:
                    upload_form();
                    break;
                case 11:
                    execute_file();
                    break;
                default:
                    frameset();
            }
    }
} else {
Exemplo n.º 2
0
// +--------------------------------------------------
if ($loggedon==$auth_pass){
    switch ($frame){
        case 1: break; // Empty Frame
        case 2: frame2(); break;
        case 3: frame3(); break;
        default:
            switch($action){
                case 1: logout(); break;
                case 2: config_form(); break;
                case 3: download(); break;
                case 4: view(); break;
                case 5: server_info(); break;
//                case 6: execute(); break;
                case 7: edit_file_form(); break;
                case 8: chmod_form(); break;
//                case 9: shell_form(); break;
                case 10: upload_form(); break;
                default: frameset();
            }
    }
} else {
    if (isset($senha)) login();
    else form_login();
}
// +--------------------------------------------------
// | Config Class
// +--------------------------------------------------
class config {
    var $data;
    var $filename;