Exemplo n.º 1
0
Arquivo: login.php Projeto: shuki/base
$name = 'login';
$language = 'he';
$rtl = true;
include_once "autoload.php";
if (isset($_GET['signout'])) {
    jset_login::signout();
}
jset_login::verify();
if (isset($_POST['user']) && $_POST['user']) {
    $user = $_POST['user'];
    $success = jset_login::signin($_POST['user'], $_POST['password']);
}
$dir_pre = config::jxset;
jset_session::create();
$lang = jset_lang::get($name, $language);
jset_page::min(config::jxset, $language, '', $rtl);
?>
<link rel="stylesheet" type="text/css" media="screen" href="css/login.css" />
<script src="<?php 
echo $dir_pre;
?>
jset/i18n/jset.locale-he.js" type="text/javascript"></script>
<title><?php 
echo $lang['title'];
?>
</title>
<script src="js/login.js" type="text/javascript"></script>
</head>
<body>
	<div style="width:100%; margin-top:10px">
		<div style="width:20%; margin: 0 auto;">
Exemplo n.º 2
0
Arquivo: index.php Projeto: shuki/base
<?php 
/*
 * jxset
 * Copyright (c) 2010 - 2013, Shuki Shukrun (shukrun.shuki at gmail.com).
 * Dual licensed under the MIT and GPL licenses
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
include_once "autoload.php";
$dir_pre = config::jxset;
jset_session::create();
jset_page::create(config::jxset, 'he', '', true);
$user_group = $_SESSION['jset_user_group'];
?>

<head>
<title>דוגמא - משימות</title>
<script type="text/javascript">
	<?php 
echo jset_permission::get_user_attributes_js();
?>
</script>
<script src="js/defaults.js" type="text/javascript"></script>
<script src="js/index.js" type="text/javascript"></script>
</head>

<body>
	<?php 
if (config::login) {
    ?>
	<div> <a href="login.php?signout"><img src="<?php