Beispiel #1
0
        <link rel="stylesheet" href="libraries/common.css">
        
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
        <script>
            var nav = <?php 
echo isset($_GET['subnav']) ? "'" . $_GET['subnav'] . "'" : "'index'";
?>
;
        </script>
        <script src="libraries/common.js"></script>
    </head>
    <body>
        <div class="col-lg-12">
            <?php 
if (portal::isSignedIn()) {
    ?>
            <div class="row">
                <nav class="navbar navbar-default">
                    <div class="container-fluid">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                                <span class="sr-only">Toggle Navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>

                            <a href="?nav=main" class="navbar-brand"><img class="navbar-brand" src="images/logo.jpg" style="margin:-26px -15px 0px -18px;width:139.16px;height:76.16px;"></a>
                        </div>
Beispiel #2
0
<?php

session_start();
require_once '../classes/portal.php';
if (portal::isSignedIn() && isset($_GET['page']) && isset($_GET['action'])) {
    $ORIGIN = $_SERVER['HTTP_REFERER'];
    $ORIGIN = explode('?', $ORIGIN);
    $ORIGIN = '?' . $ORIGIN[1];
    $ORIGIN = explode('&action', $ORIGIN);
    $ORIGIN = $ORIGIN[0];
    if (!isset($_POST['cancel'])) {
        portal::warp($_GET['page'], $_GET['action']);
    }
    portal::redirect('../' . $ORIGIN);
} else {
    portal::redirect();
}