Пример #1
0
    $page = substr($page, strrpos($page, "/") + 1);
}
$page = str_replace(".php", "", $page);
$userBo = UserBo::newInstance($config);
$user = $userBo->getUser();
$isConnected = false;
if (SessionUtils::isConnected($_SESSION)) {
    $isConnected = true;
} else {
    SessionUtils::setLanguage($user["language"], $_SESSION);
    if ($page != "index" && $page != "about") {
        header("Location: index.php");
        exit;
    }
}
$language = SessionUtils::getLanguage($_SESSION);
?>
<!DOCTYPE html>
<html lang="<?php 
echo $language;
?>
">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php 
echo lang("parpaing_title");
?>
</title>
Пример #2
0
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with VPN.  If not, see <http://www.gnu.org/licenses/>.
*/
include_once "header.php";
?>

<div class="container theme-showcase" role="main">
	<ol class="breadcrumb">
		<li class="active"><?php 
echo lang("breadcrumb_index");
?>
</li>
	</ol>
	<div class="well well-sm">
		<p><?php 
echo lang("index_guide");
?>
</p>
	</div>
</div>

<script type="text/javascript">
var userLanguage = '<?php 
echo SessionUtils::getLanguage($_SESSION);
?>
';
</script>
<?php 
include "footer.php";