本文整理汇总了PHP中grr_resumeSession函数的典型用法代码示例。如果您正苦于以下问题:PHP grr_resumeSession函数的具体用法?PHP grr_resumeSession怎么用?PHP grr_resumeSession使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了grr_resumeSession函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
include_once 'include/misc.inc.php';
include_once 'include/mrbs_sql.inc.php';
$grr_script_name = 'contact.php';
// Settings
require_once 'include/settings.class.php';
//Chargement des valeurs de la table settingS
if (!Settings::load()) {
die("Erreur chargement settings");
}
// Session related functions
require_once 'include/session.inc.php';
// Paramètres langage
include_once 'include/language.inc.php';
// Resume session
$fin_session = 'n';
if (!grr_resumeSession()) {
$fin_session = 'y';
}
if ($fin_session == 'y' && Settings::get("authentification_obli") == 1) {
header("Location: ./logout.php?auto=1&url={$url}");
die;
}
if (Settings::get("authentification_obli") == 0 && getUserName() == '') {
$type_session = "no_session";
} else {
$type_session = "with_session";
}
header('Content-Type: text/html; charset=utf-8');
echo begin_page(Settings::get("company"));
echo "<div class=\"page_sans_col_gauche\">";
$cible = isset($_POST["cible"]) ? $_POST["cible"] : (isset($_GET["cible"]) ? $_GET["cible"] : '');
示例2: die
if (!Settings::load()) {
die("Erreur chargement settings");
}
if (isset($_POST['submit'])) {
if (isset($_POST['login']) && isset($_POST['password'])) {
$sql = "select upper(login) login, password, prenom, nom, statut from " . TABLE_PREFIX . "_utilisateurs where login = '" . $_POST['login'] . "' and password = md5('" . $_POST['password'] . "') and etat != 'inactif' and statut='administrateur' ";
$res_user = grr_sql_query($sql);
$num_row = grr_sql_count($res_user);
if ($num_row == 1) {
$valid = 'yes';
} else {
$message = get_vocab("wrong_pwd");
}
}
}
if (!grr_resumeSession() && $valid != 'yes') {
?>
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title> grr </title>
<link rel="shortcut icon" href="./favicon.ico">
</head>
<body>
<form action="admin_config_ldap.php" method='post' style="width: 100%; margin-top: 24px; margin-bottom: 48px;">
<h2>Configuration de l'accès à LDAP</h2>
<?php
if (isset($message)) {
echo "<p class=\"avertissement\">" . $message . "</p>";
}
示例3: mysql_connect
$db_c = mysql_connect($dbHost, $dbUser, $dbPass);
if (!$db_c || !mysql_select_db ($dbDb)) {
echo "\n<p>\n" . get_vocab('failed_connect_db') . "\n";
exit;
}
if (!(is_eleve($login)))
$user_ext_authentifie = 'lcs_eleve';
else
$user_ext_authentifie = 'lcs_non_eleve';
$password = '';
$result = grr_opensession($login,$password,$user_ext_authentifie,$lcs_tab_login,$lcs_groups) ;
}
}
if ((!@grr_resumeSession()) and $valid!='yes') {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=<?php
if ($unicode_encoding)
echo "utf-8";
else
echo $charset_html;
?>">
<link REL="stylesheet" href="themes/default/css/style.css" type="text/css">
<TITLE> GRR </TITLE>
<LINK REL="SHORTCUT ICON" href="./favicon.ico">
<script type="text/javascript" src="./functions.js" ></script>
</HEAD>
示例4: require_once
include "include/misc.inc.php";
include "include/functions.inc.php";
include "include/$dbsys.inc.php";
include "include/mincals.inc.php";
include "include/mrbs_sql.inc.php";
$grr_script_name = "month.php";
#Settings
require_once("./include/settings.inc.php");
#Chargement des valeurs de la table settings
if (!loadSettings())
die("Erreur chargement settings");
#Fonction relative à la session
require_once("./include/session.inc.php");
#Si il n'y a pas de session crée et que l'identification est requise, on déconnecte l'utilisateur.
if ((!grr_resumeSession())and (getSettingValue("authentification_obli")==1))
{
header("Location: ./logout.php?auto=1&url=$url");
die();
};
// Construction des identifiants de la ressource $room, du domaine $area, du site $id_site
Definition_ressource_domaine_site();
// Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($area);
// Paramètres langage
include "include/language.inc.php";
// On affiche le lien "format imprimable" en bas de la page
示例5: chdir
* GRR is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
chdir("..");
require_once("./include/config.inc.php");
include "./include/connect.inc.php";
require_once("./include/$dbsys.inc.php");
require_once("./include/session.inc.php");
require_once("./include/settings.inc.php");
grr_resumeSession();
require_once("./include/language.inc.php");
require_once(SPKITLASSO.'/lassospkit_public_api.inc.php');
if (lassospkit_nameid() == NULL)
{
// TODO: vérifier qu'il n'existe pas déjà une fédération pour le
// compte courant
$return_url = $_SERVER['REQUEST_URI'];
lassospkit_redirect_federate($return_url);
exit();
}
//Chargement des valeurs de la table settingS
require_once("./include/language.inc.php");
示例6: die
echo $message;
die();
}
if (grr_resumeSession() )
{
header("Location: ".htmlspecialchars_decode(page_accueil())."");
}
}
else
{
if (getSettingValue("authentification_obli")==1)
{
if ($cook["path"] != '')
{
if (grr_resumeSession())
{
header("Location: ".htmlspecialchars_decode(page_accueil())."");
}
else
{
if ((getSettingValue("Url_cacher_page_login")!="") and ((!isset($sso_super_admin)) or ($sso_super_admin==false))) {
header("Location: ".getSettingValue("Url_cacher_page_login"));
} else
header("Location: ./login.php");
}
}
else
{
if ((getSettingValue("Url_cacher_page_login")!="") and ((!isset($sso_super_admin)) or ($sso_super_admin==false))) {
示例7: die
include "include/misc.inc.php";
include "include/functions.inc.php";
include "include/{$dbsys}.inc.php";
include "include/mincals.inc.php";
include "include/mrbs_sql.inc.php";
$grr_script_name = "month.php";
//Settings
require_once "./include/settings.class.php";
//Chargement des valeurs de la table settings
if (!Settings::load()) {
die("Erreur chargement settings");
}
//Fonction relative à la session
require_once "./include/session.inc.php";
//Si il n'y a pas de session crée et que l'identification est requise, on déconnecte l'utilisateur.
if (!grr_resumeSession() && Settings::get("authentification_obli") == 1) {
header("Location: ./logout.php?auto=1&url={$url}");
die;
}
//Construction des identifiants de la ressource $room, du domaine $area, du site $id_site
Definition_ressource_domaine_site();
//Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($area);
//Paramètres langage
include "include/language.inc.php";
//On affiche le lien "format imprimable" en bas de la page
$affiche_pview = '1';
if (!isset($_GET['pview'])) {
$_GET['pview'] = 0;
} else {
$_GET['pview'] = 1;