本文整理汇总了PHP中jCnn函数的典型用法代码示例。如果您正苦于以下问题:PHP jCnn函数的具体用法?PHP jCnn怎么用?PHP jCnn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jCnn函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
unset($_SESSION['domain']);
$_SESSION['language'] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
require "../ap/languages/language.php";
//$langFiles=dirList('../ap/languages/*.inc');
//-------------------------------------------------
// Main
//-------------------------------------------------
if (isset($_POST['user']) && isset($_POST['pass'])) {
$_SESSION['home'] = realpath('../db/domains/');
$_SESSION['domain'] = strLeft($_POST['user'], '\\');
if ($_POST['user'] == 'admin' && $_POST["pass"] == $mainPassword) {
$_SESSION['domain'] = 'admin';
header('Location: admin.php');
exit;
}
if (jCnn()) {
login();
}
}
function login()
{
$strsql = "insert into [log] ([user], [ip], [urlFrom]) values('" . $_POST["user"] . "', '" . $_SERVER["REMOTE_ADDR"] . "', '" . $_SERVER["SERVER_NAME"] . "');";
$results = $GLOBALS['db']->exec($strsql);
$strsql = "select idAgent, level from [agents] where user='" . strRight($_POST["user"], '\\') . "' and password='" . $_POST["pass"] . "';";
$results = $GLOBALS['db']->query($strsql);
if ($results) {
$results = $results->fetch();
$_SESSION['language'] = $_POST['language'];
$_SESSION['idAgent'] = $results['idAgent'];
$_SESSION['level'] = (string) $results['level'];
if ($_SESSION['idAgent'] > '0') {
示例2: jCnn
<?php
require_once "../../../cgi_bin/phpFun.php";
require_once "../languages/language.php";
jCnn();
// Captura de Parametros
//-------------------------------------------------
$report = 'Items';
if (isset($_REQUEST['report'])) {
$report = $_REQUEST['report'];
}
$valorBuscar = '';
if (isset($_REQUEST["valorBuscar"])) {
$valorBuscar = $_REQUEST["valorBuscar"];
}
if (isset($_POST["varItem1"])) {
$varItem1 = $_POST["varItem1"];
} else {
$varItem1 = '-';
}
if (isset($_POST["varItem2"])) {
$varItem2 = $_POST["varItem2"];
} else {
$varItem2 = '-';
}
if (isset($_POST["varItem3"])) {
$varItem3 = $_POST["varItem3"];
} else {
$varItem3 = '-';
}
$from = strftime('%Y-%m-%d', strtotime("-1 month"));
示例3: session_start
<?php
if (isset($_REQUEST['domain'])) {
if (!isset($_SESSION)) {
session_start();
}
$_SESSION['domain'] = $_REQUEST['domain'];
$_SESSION['home'] = realpath('../../../db/domains');
}
require "../../../../cgi_bin/phpFun.php";
require "../../languages/language.php";
if (!jCnn()) {
exit;
}
//-------------------------------------------------
// Parameters
//-------------------------------------------------
$id = '0';
if (isset($_REQUEST['id'])) {
$id = $_REQUEST['id'];
}
$idKey = 'id';
if (isset($_REQUEST['idKey'])) {
$idKey = $_REQUEST['idKey'];
}
$idModel = '0';
if (isset($_REQUEST['idModel'])) {
$idModel = $_REQUEST['idModel'];
}
//-------------------------------------------------
// Parsec