Exemplo n.º 1
0
            $melding = '<b>' . $lang->translate(106) . '</b><br />' . $lang->translate(107) . '<br />';
        } elseif (gegevens_action_do_changepass(get_value_post('curr_password'), get_value_post('password'), get_value_post('password2')) == FALSE) {
            $melding = '<b>' . $lang->translate(106) . '</b><br />' . $lang->translate(108) . '<br />';
        } else {
            $melding = $lang->translate(109) . '<br />';
            $_SESSION['login'] = 0;
            if (check_is_loggedin() == FALSE) {
                if (isset($_POST) && !empty($_POST) && isset($_POST['login']) && !empty($_POST['login'])) {
                    if (login_do_action_checkcredentials() == TRUE) {
                        login_do_action_createsession();
                    } else {
                        echo login_create_loginscreen($melding);
                        exit;
                    }
                } else {
                    echo login_create_loginscreen($melding);
                    exit;
                }
            }
        }
    }
    $html = '<div class="paginatitel">' . $lang->translate(30) . '</div><div class="content"><p><br />' . $melding . '<br /></p></div>';
    $html .= '<DIV class="formtable"><table><tr><td colspan="2"><b>' . $lang->translate(221) . '</b><br></td>';
    $html .= '<tr><td  width="200px"><form name="form1" method="post" action="">' . $lang->translate(102) . '</td><td><input type="password" id="curr_password" name="curr_password"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(103) . '</td><td><input type="password" id="password" name="password"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(104) . '</td><td><input type="password" id="password2" name="password2"></td></tr></table></div>';
    $html .= '<div class="content"><p><input type="submit" value="' . $lang->translate(105) . '" id="submit" name="submit" class="button"></p></div></form><br /><br />';
} elseif (get_value_get('type') == 'feedback') {
    $melding = '';
    if (get_value_post('submit') != FALSE) {
        $melding = '<br /><br />' . $lang->translate(150) . '<br /><br />';
Exemplo n.º 2
0
            $menu = menu_create_information('dns');
            break;
        case "stream":
            $menu = menu_create_information('stream');
            break;
        case "vps":
            $menu = menu_create_information('vps');
            break;
        case "email":
            $menu = menu_create_information('email');
            break;
        case "firewall":
            $menu = menu_create_information('firewall');
            break;
        case "voip":
            $menu = menu_create_information('voip');
            break;
        case "uitloggen":
            $menu = '';
            session_destroy();
            echo login_create_loginscreen();
            exit;
        default:
            $menu = menu_create_information('home');
            break;
    }
} else {
    require_once 'content/home.php';
    $menu = menu_create_information('home');
}
echo template_do_action_parse($html, $menu, "default", $cp_version);