Exemplo n.º 1
0
    $user->errors[] = 'err_416';
    $action = 'login';
    $user->empl_id = 0;
}
// Danach, ob wir schon nicht in eine andere Richtung gehen sollten...
if ($action != 'login') {
    $action = empty($_POST['action']) ? $action : $_POST['action'];
    // Und jetzt merken wir uns unsere Seite...
    $_SESSION['action'] = $action;
}
if (empty($_SESSION['default_project_id'])) {
    if ($options_array['pr_id'] > 0) {
        $_SESSION['default_project_id'] = $options_array['pr_id'];
    } else {
        $_pr = new projects();
        $_SESSION['default_project_id'] = $_pr->get_first_project();
    }
}
// Auf dieser Stelle initialisieren wir allgemein gültige Variablen...
$JavaScript = '';
//Jetzt wird eigene Logik für bestimmte Seite hinzugefügt
switch ($action) {
    case 'activity_acquisition':
        require 'includes/taet.app.php';
        break;
    case 'projects':
        require 'includes/projects.app.php';
        break;
    case 'projectposition':
        require 'includes/projectposition.app.php';
        break;