当前位置: 首页>>代码示例>>PHP>>正文


PHP jCnn函数代码示例

本文整理汇总了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') {
开发者ID:carriercomm,项目名称:invoTick,代码行数:31,代码来源:login.php

示例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"));
开发者ID:carriercomm,项目名称:invoTick,代码行数:31,代码来源:accumulates.php

示例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
开发者ID:carriercomm,项目名称:invoTick,代码行数:31,代码来源:parsec.php


注:本文中的jCnn函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。