Exemplo n.º 1
0
}
// Do an action on multiple files
// only the download has is handled separately in dropbox_init_inc.php because this has to be done before the headers are sent
// (which also happens in dropbox_init.inc.php
if (!isset($_POST['feedback']) && (strstr($postAction, 'move_received') or $postAction == 'delete_received' or $postAction == 'download_received' or $postAction == 'delete_sent' or $postAction == 'download_sent')) {
    $display_message = handle_multiple_actions();
    Display::display_normal_message($display_message);
}
// Store Feedback
if (isset($_POST['feedback'])) {
    if (api_get_session_id() != 0 && !api_is_allowed_to_session_edit(false, true)) {
        api_not_allowed();
    }
    $check = Security::check_token();
    if ($check) {
        $display_message = store_feedback();
        Display::display_normal_message($display_message);
        Security::check_token();
    }
}
// Error Message
if (isset($_GET['error']) and !empty($_GET['error'])) {
    Display::display_normal_message(get_lang($_GET['error']));
}
if ($action != 'add') {
    // Getting all the categories in the dropbox for the given user
    $dropbox_categories = get_dropbox_categories();
    // Greating the arrays with the categories for the received files and for the sent files
    foreach ($dropbox_categories as $category) {
        if ($category['received'] == '1') {
            $dropbox_received_category[] = $category;
Exemplo n.º 2
0
    case 'deletecharacter':
        delete_character();
        header('location: .?action=loggedon');
        break;
    case 'savecharacter':
        $character_id = filter_input(INPUT_POST, 'character_id');
        $updated = update_character($character_id);
        include 'characterForm.php';
        break;
    case 'manageaccount':
        include 'manageAccount.php';
        break;
    case 'updateaccount':
        $message = update_account();
        include 'manageAccount.php';
        break;
    case 'changepassword':
        $message = change_password();
        include 'manageAccount.php';
        break;
    case 'feedback':
        include 'feedbackForm.php';
        break;
    case 'feedbacksubmit':
        $message = store_feedback();
        include 'feedbackForm.php';
        break;
    case 'about':
        include 'about.php';
        break;
}