本文整理汇总了PHP中Conf::getSeed方法的典型用法代码示例。如果您正苦于以下问题:PHP Conf::getSeed方法的具体用法?PHP Conf::getSeed怎么用?PHP Conf::getSeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conf
的用法示例。
在下文中一共展示了Conf::getSeed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: myGet
$pagetitle = "Erreur";
$msg = "Aucun identifiant saisie";
break;
}
$data = ModelUsers::getId(array("mail" => myGet('mail')));
if (COUNT(ModelUsers::selectWhere($data)) == 0) {
$view = "error";
$pagetitle = "Erreur";
$msg = "L'utilisateur n'existe pas";
break;
}
$u = ModelUsers::select($data);
$i = $u->idUser;
$m = $u->mail;
$pwd = $u->password;
if (is_null(myGet('mail') || is_null(myGet('ConnectPassword'))) || $pwd != hash('sha256', myGet('ConnectPassword') . Conf::getSeed())) {
$m = "";
$ConnectPassword = "";
$submit = "Connexion";
$act = "connected";
$label = "Mauvais mot de passe";
$view = "connect";
$pagetitle = "Connection";
break;
}
$admini = ModelUsers::isAdmin($data);
$logValide = ModelUsers::selectWhere($data);
if (COUNT($logValide) == 1) {
$_SESSION['mail'] = myGet('mail');
$_SESSION['ConnectPassword'] = myGet('ConnectPassword');
if (COUNT($admini) != 0) {
示例2: array
$login = $_GET['login'];
// Chargement de la vue
$view = 'done';
$doned = 'supprimé';
$pagetitle = "Suppression de " . $_GET['login'] . " effectuée";
break;
case "connect":
$l = "";
$mdp = "";
$view = 'connect';
break;
case "connected":
$data = array('login' => $_GET['log'], 'mdp' => hash('sha256', Conf::getSeed() . $_GET['mdp']));
if (count(ModelUtilisateur::selectWhere($data)) == 1) {
$_SESSION['log'] = $_GET['log'];
$_SESSION['mdp'] = hash('sha256', Conf::getSeed() . $_GET['mdp']);
} else {
$view = 'error';
$pagetitle = 'Erreur avec l\'utilisateur';
$raison = "login ou mot de passe invalide";
break;
}
// Initialisation des variables pour la vue
if (Session::is_user('admin')) {
$controller = 'utilisateur';
$pagetitle = 'Liste des utilisateurs';
$view = 'list';
} else {
$controller = 'game';
$pagetitle = 'Liste des jeux';
$view = 'all';