本文整理汇总了PHP中checklog函数的典型用法代码示例。如果您正苦于以下问题:PHP checklog函数的具体用法?PHP checklog怎么用?PHP checklog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checklog函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
* smile@smileodonto.com.br
*
* Ou envie sua carta para o endereço:
*
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!checklog()) {
die($frase_log);
}
if (isset($_GET['procedimento'])) {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
$procedimento = $_GET['procedimento'];
} else {
$procedimento = utf8_decode($_GET['procedimento']);
}
mysql_query("UPDATE honorarios SET procedimento = '" . $procedimento . "' WHERE codigo = '" . $_GET['codigo'] . "'");
} elseif (isset($_GET['valor'])) {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
$valor = $_GET['valor'];
} else {
$valor = utf8_decode($_GET['valor']);
}
示例2: checklog
function checklog($Tab)
{
if (!isMailInDb($Tab['email'])) {
return "Email inconnu !";
}
if (!passIsOk($Tab['email'], $Tab['password'])) {
return "Password incorrect !";
}
if (banni($Tab['email']) == true) {
return "Merci d'activer votre compte via l'email reçu lors de l'inscription !";
}
return "NoError";
}
//checklog()
if ($_POST['send']) {
$error = checklog($_POST);
if ($error == "NoError") {
$User = new user($_POST['email']);
$_SESSION['id'] = $User->getId();
if ($User->getLastco() == NUll) {
$_SESSION['msg'] = "<div class='success' ><p class='success-txt' >Bienvenue, Share2Go vous souhaite un bon voyage !</p></div>";
}
updateCo(True);
$_SESSION['login'] = "ok";
$_SESSION['email'] = $_POST['email'];
$_SESSION['lastco'] = $User->getlastco();
$_SESSION['nbnewmess'] = getNbNewMess($User->getId());
$_SESSION['lu'] = false;
header('Location: index.php');
} else {
echo "<div class='error' ><p class='error-txt' >" . $error . "</p></div>";
示例3: session_start
*/
session_start();
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
include "E:/Study/workspace/laravel-login/app/models/check_login.php";
include "E:/Study/workspace/Chikitsa/application/modules/login/controllers/check_session.php";
include "E:/Study/workspace/hvol/application/controllers/check_session.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
// $login = file_get_contents('http://localhost/laravel-login/app/models/check_login.php');
// $login = json_decode($login, true);
$login = check_login();
$chikitsa = check_chikitsa();
$hvol = check_hvol();
if (checklog()) {
// $_SESSION["session_user"] = $_POST['usuario'];
// $_SESSION["session_password"] = $_POST['senha'];
$handle = opendir('../imagens/wallpapers');
while ($file = readdir($handle)) {
if (strpos($file, ".") !== 0 && $file != 'Thumbs.db') {
$papel[] = $file;
}
}
closedir($handle);
$rand = rand(0, count($papel) - 1);
$prim_nome = explode(' ', $_SESSION[nome_user]);
$prim_nome = $prim_nome[0] . ' ' . $prim_nome[count($prim_nome) - 1];
$titulo = $_SESSION[titulo];
if ($_SESSION[nome_user] == 'Administrador') {
$titulo = '';
示例4: glob
if (isset($modules) && empty($modules)) {
$allmods = glob($vars['directory'] . '/*', GLOB_ONLYDIR);
foreach ($allmods as $mod) {
$modules[] = str_replace($vars['directory'] . '/', '', $mod);
}
}
//display our log on a per module basis, based on the last tag
foreach ($modules as $module) {
$moddir = $vars['directory'] . '/' . $module;
if (!file_exists($moddir)) {
freepbx::out('Module ' . $module . ' does not exist in path: ' . $vars['directory']);
exit(1);
} else {
$repo = Git::open($moddir);
freepbx::out('================================== ' . $module . ' (' . $repo->active_branch() . ') START =========================================');
freepbx::out(checklog($moddir));
freepbx::out('================================== ' . $module . ' STOP =========================================');
}
}
/**
* Check Log
*
* This function finds that last tag for the current release and shows you
* any changes between them
*
* @param The git module directory
* @return String of `git log` output
*/
function checklog($moddir)
{
$repo = Git::open($moddir);