Example #1
0
            default:
                account_user(check_input($name));
        }
        break;
    case "track":
        switch ($topic) {
            case "site":
                account_track_site();
                break;
            case "stories":
                account_track_stories();
                break;
            default:
                account_track_comments();
        }
        break;
    case "edit":
        switch ($topic) {
            case "content":
                account_content_edit();
                break;
            case "site":
                account_site_edit();
                break;
            default:
                account_user_edit();
        }
        break;
    default:
        account_user($user->userid);
}
Example #2
0
    Route::post("user/favorites/add/production", "Frontend\\UserController@ajax_addProductionToFavorites");
    Route::post("user/favorites/delete/production", "Frontend\\UserController@ajax_deleteProductionToFavorites");
    Route::post("user/favorites/get/productions", "User\\UserController@ajax_getProductionsFromFavorites");
    Route::post("user/production/track", "Frontend\\UserController@ajax_trackProduction");
}
function ajax_productions()
{
    Route::post("productions/get/by/category", "Frontend\\ProductionController@ajax_getProductionsByCategory");
}
//*****************************************************
//USER*********************************************
//*****************************************************
Route::group(["prefix" => "user", "namespace" => "User", "middleware" => ["secure.connection", "auth"]], function () {
    menu_user();
    auth_user();
    account_user();
    activity_user();
    request_user();
});
function menu_user()
{
    $class = "MenuController@";
    Route::get("dashboard", $class . "getDashboard");
    Route::get("account", $class . "getAccount");
    Route::get("contributions", $class . "getContributions");
    Route::get("favorites", $class . "getFavorites");
    Route::get("requests", $class . "getRequests");
}
function auth_user()
{
    $class = "Auth\\AuthController@";