• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getPriv函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getPriv函数的典型用法代码示例。如果您正苦于以下问题:PHP getPriv函数的具体用法?PHP getPriv怎么用?PHP getPriv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getPriv函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: header

	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-ui.js"></script>
	<script src="../report/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="../tracking/live.js"></script>
	<script type="text/javascript" src="../tracking/live1.js"></script>
    <script type="text/javascript" src="../js/OpenLayers.js"></script>

</head>
<?php 
if (session('user_id') == "261") {
    echo header('Location: ../sessionexpired/?l=' . $cLang);
}
opendb();
$Allow = getPriv("routescurrent", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$user_id = Session("user_id");
$dsAll = query("select defaultmap, datetimeformat, timezone, metric, cl.clienttypeid, ci.latitude, ci.longitude from users u left outer join clients cl on cl.id = u.clientid left outer join cities ci on ci.id = cl.cityid where u.id = " . $user_id);
$datetimeformat = pg_fetch_result($dsAll, 0, 'datetimeformat');
$datfor = explode(" ", $datetimeformat);
$dateformat = $datfor[0];
$timeformat = $datfor[1];
if ($timeformat == 'h:i:s') {
    $timeformat = $timeformat . " A";
}
if ($timeformat == "H:i:s") {
    $tf = " H:i";
} else {
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:SiteNaloziNew.php


示例2: header

<?php

include "../include/db.php";
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>


<?php 
header("Content-type: text/html; charset=utf-8");
opendb();
$uid = session('user_id');
$cid = session('client_id');
$Allow = getPriv("vehicles", $uid);
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
addlog(42);
?>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>
	<script type="application/javascript"> lang = '<?php 
echo $cLang;
?>
'; </script>
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:Vehicles.php


示例3: session_start

<?php

include "../include/functions.php";
include "../include/db.php";
include "../include/params.php";
include "../include/dictionary2.php";
session_start();
opendb();
$ua = getBrowser();
$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");
$Allow = getPriv("groupspoi", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
addlog(41);
?>
<html>
<head>
	<script type="application/javascript">
		lang = '<?php 
echo $cLang;
?>
';
	</script>
	<link rel="stylesheet" type="text/css" href="../style.css">
	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../js/share.js"></script>
	<script type="text/javascript" src="../js/settings.js"></script>
	<script type="text/javascript" src="../tracking/live.js"></script>
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:GroupPOI.php


示例4: session_start

<?php 
include "../include/db.php";
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>

<?php 
session_start();
header("Content-type: text/html; charset=utf-8");
$ua = getBrowser();
$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");
opendb();
$Allow = getPriv("privilegesuser", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
if (is_numeric(nnull(session("user_id"))) == false) {
    echo header("Location: ../sessionexpired/?l=" . $cLang);
}
$userID = str_replace("'", "''", NNull($_GET['uid'], ''));
$dsUsers = query("select id, fullname, roleid from users where id=" . $userID);
$ds = query("select allowedrouting, allowedfm from clients where id=" . session("client_id"));
$allowedR = pg_fetch_result($ds, 0, "allowedrouting");
$allowedF = pg_fetch_result($ds, 0, "allowedfm");
$reports = "checked='checked'";
$settings = "checked='checked'";
$routes = "checked='checked'";
$insertpoi = "checked='checked'";
$viewpoi = "checked='checked'";
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:Privileges.php


示例5: dic_

    $emailClick = "";
    $emailStyle = "style='float:right; opacity:0.5; cursor:default'";
    $noPermEmail = dic_("Reports.NoPermiss") . " ";
}
//pdf
$prPdf = getPriv("exportpdf", $uid);
if ($prPdf == true) {
    $pdfClick = "createPDF('MessageReport')";
    $pdfStyle = "style='float:right; cursor:pointer'";
} else {
    $pdfClick = "";
    $pdfStyle = "style='float:right; opacity:0.5; cursor:default'";
    $noPermPdf = dic_("Reports.NoPermiss") . " ";
}
//excel
$prExcel = getPriv("exportpdf", $uid);
if ($prExcel == true) {
    $excHref = $excStyle = "style='float:right; cursor:pointer'";
} else {
    $excHref = "";
    $excStyle = "style='float:right; opacity:0.5; cursor:default'";
    $noPermExc = dic_("Reports.NoPermiss") . " ";
}
$meseci = array("January1", "February1", "March1", "April1", "May1", "June1", "July1", "August1", "September1", "October1", "November1", "December1");
$idUsers = "";
?>
	
  <div id="report-content" style="width:100%; overflow-y:auto; text-align:left; height:500px; background-color:#fff;" class="corner5">
<div id="icons" style="position: relative; right:8px">
       
	        <div onclick="<?php 
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:MessageReport.php


示例6: opendb

<?php include "../include/functions.php" ?>
<?php include "../include/db.php" ?>
<?php include "../include/params.php" ?>
<?php include "../include/dictionary2.php" ?>

<?php opendb();?>

<?php

	error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);  // [josip] za error reports

	header("Content-type: text/html; charset=utf-8");
	opendb();

	$Allow = getPriv("employees", session("user_id"));
	if ($Allow == False) echo header ('Location: ../permission/?l=' . $cLang);

	$ua=getBrowser();
	$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
	$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");

	addlog(47);
?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php
	if($yourbrowser == "1")
	{ ?>
	<style type="text/css">
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:AllAlerts-org.php


示例7: header

<?php

include "../include/db.php";
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>

<?php 
header("Content-type: text/html; charset=utf-8");
opendb();
$uid = Session("user_id");
$cid = Session("client_id");
$ClientType = "";
$sqlV = "";
$Allow = getPriv("generalsettings", $uid);
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$dsCT = query("select ClientTypeID from clients where id = " . $cid);
if (pg_num_rows($dsCT) > 0) {
    $ClientType = nnull(pg_fetch_result($dsCT, 0, 0) . "", "1");
}
if (is_numeric(nnull($uid)) == false) {
    echo header("Location: ../sessionexpired/?l=" . $cLang);
}
if (Session("Role_id") == "2") {
    $sqlV = "select id from vehicles where clientID=" . $cid;
} else {
    $sqlV = "select vehicleID from UserVehicles where userID=" . $uid . "";
}
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:USettings.php


示例8: opendb

	<script type="text/javascript" src="./js/highcharts.src.js"></script>

	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-ui.js"></script>
	<script src="../report/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="../js/OpenLayers.js"></script>
    <script src="js/optimized.js" type="text/javascript"></script>
    <script src="js/advanced.js" type="text/javascript"></script>
	<script src="../js/jsxcompressor.js"></script>

</head>

<?php 
opendb();
$Allow = getPriv("routessearch", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$user_id = Session("user_id");
$dsAll = query("select defaultmap, datetimeformat, timezone, metric, cl.clienttypeid, ci.latitude, ci.longitude from users u left outer join clients cl on cl.id = u.clientid left outer join cities ci on ci.id = cl.cityid where u.id = " . $user_id);
$datetimeformat = pg_fetch_result($dsAll, 0, 'datetimeformat');
$datfor = explode(" ", $datetimeformat);
$dateformat = $datfor[0];
$timeformat = $datfor[1];
if ($timeformat == 'h:i:s') {
    $timeformat = $timeformat . " A";
}
if ($timeformat == "H:i:s") {
    $tf = " H:i";
} else {
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:Reports.php


示例9: opendb

<?php

include "../include/functions.php";
include "../include/db.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>

<?php 
opendb();
$uid = session("user_id");
$cid = session("client_id");
$roleid = dlookup("select roleid from users where id=" . $uid);
$Allow = getPriv("groupspoi", $uid);
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
addlog(41);
function pp($a)
{
    echo '<pre>' . print_r($a, 1) . '</pre>';
}
function comp($color)
{
    preg_match("/#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})/i", $color, $out);
    $ilum = 1 - (0.299 * hexdec($out[1]) + 0.587 * hexdec($out[2]) + 0.114 * hexdec($out[3])) / 255;
    return $ilum >= 0.5 ? '#ffffff' : '#000000';
}
?>

<html>
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:poi.php


示例10: getPriv

<?php

include "../include/db.php";
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";


	header("Content-type: text/html; charset=utf-8");
	opendb();
	$Allow = getPriv("vehicles", session("user_id"));
	if ($Allow == False) echo header ('Location: ../permission/?l=' . $cLang);
	
	$ua=getBrowser();
	$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
	$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");
	
	addlog(42);
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>
	<script type="application/javascript">
		lang = '<?php echo $cLang?>';
	</script>
	<link rel="stylesheet" type="text/css" href="../style.css">
    <link rel="stylesheet" type="text/css" href="../live/style.css">
开发者ID:hew86i,项目名称:panorama,代码行数:30,代码来源:Vehicles.php


示例11: opendb

	<script type="text/javascript" src="routes.js"></script>
	<script type="text/javascript" src="./js/highcharts.src.js"></script>

	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-ui.js"></script>
	<script src="../report/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="../tracking/live.js"></script>
	<script type="text/javascript" src="../tracking/live1.js"></script>
    <script type="text/javascript" src="../js/OpenLayers.js"></script>
</head>

<?php 
opendb();
$Allow = getPriv("routesall", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$user_id = Session("user_id");
$dsAll = query("select defaultmap, datetimeformat, timezone, metric, cl.clienttypeid, ci.latitude, ci.longitude from users u left outer join clients cl on cl.id = u.clientid left outer join cities ci on ci.id = cl.cityid where u.id = " . $user_id);
$clientType = pg_fetch_result($dsAll, 0, "clienttypeid");
$clientUnit = pg_fetch_result($dsAll, 0, "metric");
//dim allPOI as integer = dlookup("select count(*) from pinpoints where clientID=" & session("client_id"))
//Dim allPOIs As String = "false"
//If allPOI < 1000 Then allPOIs = "true"
$DefMap = pg_fetch_result($dsAll, 0, "defaultmap");
$currDateTime = new Datetime();
$currDateTime = $currDateTime->format("d-m-Y H:i");
$currDateTime1 = new Datetime();
$currDateTime1 = $currDateTime1->format("d-m-Y");
开发者ID:hew86i,项目名称:panorama,代码行数:30,代码来源:SiteNalozi.php


示例12: in

    $sql_ = "select * from vehicles where id in (select vehicleid from uservehicles where userid=" . session("user_id") . ") order by code asc";
    $sqlV = "select vehicleID from uservehicles where userID=" . session("user_id") . "";
}
$firstVehId = pg_fetch_result(query($sql_), 0, "id");
$err = getQUERY("err");
$snooze = dlookup("select snooze from users where id=" . session("user_id"));
$filename = './images/upload/' . session("client_id") . '.png';
$picload = 'profile.png';
if (file_exists($filename)) {
    $picload = session("client_id") . '.png';
}
$AllowViewLiveTracking = getPriv("livetracking", session("user_id"));
$AllowViewFm = getPriv("fm", session("user_id"));
$AllowViewRoutes = getPriv("routes", session("user_id"));
$AllowViewReports = getPriv("reports", session("user_id"));
$AllowViewSettings = getPriv("settings", session("user_id"));
$ds = query("select  allowedrouting, allowedfm, allowedmess, allowedalarms, clienttypeid from clients where id=" . session("client_id"));
$allowedR = pg_fetch_result($ds, 0, "allowedrouting");
$allowedFM = pg_fetch_result($ds, 0, "allowedfm");
$allowedMess = pg_fetch_result($ds, 0, "allowedmess");
$allowedAlarms = pg_fetch_result($ds, 0, "allowedalarms");
$tv = '';
$tv1 = '';
$tv2 = 'display: none;';
$mess = '';
$mess1 = '';
$al = '';
$al1 = '';
$al2 = '';
$lt = '';
$lt1 = '';
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:index.php


示例13: opendb

	<script type="text/javascript" src="./js/highcharts.src.js"></script>

	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-ui.js"></script>
	<script src="../report/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="../tracking/live.js"></script>
	<script type="text/javascript" src="../tracking/live1.js"></script>
    <script type="text/javascript" src="../js/OpenLayers.js"></script>
	
</head>

<?php 
opendb();
$Allow = getPriv("routesfuture", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$user_id = Session("user_id");
$dsAll = query("select defaultmap, datetimeformat, timezone, metric, cl.clienttypeid, ci.latitude, ci.longitude from users u left outer join clients cl on cl.id = u.clientid left outer join cities ci on ci.id = cl.cityid where u.id = " . $user_id);
$datetimeformat = pg_fetch_result($dsAll, 0, 'datetimeformat');
$datfor = explode(" ", $datetimeformat);
$dateformat = $datfor[0];
$timeformat = $datfor[1];
if ($timeformat == 'h:i:s') {
    $timeformat = $timeformat . " A";
}
if ($timeformat == "H:i:s") {
    $tf = " H:i";
} else {
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:NaloziUtre.php


示例14: getImageNameFromDB

$photoNamePrev = getImageNameFromDB($conn, $recipeId);
//echo "PHOTO NAME: $photoNamePrev<br>";
//get number of ingredients
$numberIngredients = getNumberOfIngredientsFromDB($conn, $recipeId);
//get each ingredient - format: ingredient1, ingredient2, ingredient3...
$ingredientList = getAllIngredientsFromDB($conn, $recipeId);
//echo "INGREDIENT NAME: $ingredientList<br>";
//get number of steps
$numberSteps = getNumberOfStepsFromDB($conn, $recipeId);
$stepList = getAllStepsFromDB($conn, $recipeId);
//echo "STEP NAME: $stepList<br>";
//get tags
$numberTags = getNumberOfTagsFromDB($conn, $recipeId);
$tagList = getAllTagsFromDB($conn, $recipeId);
//echo "TAG NAME: $tagList<br>";
$privacyx = getPriv($conn, $recipeId);
$friendList = getAllFriends($conn, $recipeId);
//echo "FRIEND NAME: $friendList<br>";
closeDBConnection($conn);
?>
        
        
        
        
        <?php 
//if form submitted
if ($_SERVER['REQUEST_METHOD'] == "POST") {
    //connect to db
    $conn = connectToDb($servername, $username, $password, $dbname);
    //clean db of old recipe
    cleanDbTables($recipeId, $conn);
开发者ID:eoyarzun,项目名称:CookbookNetwork,代码行数:31,代码来源:edit-recipe.php


示例15: query

			$AllowedMaps .= "1";
			echo "<script src=\"http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers\"></script>";
		} else {
			$AllowedMaps .= "0";
		};
		if (nnull(odbc_result($dsAllMaps,"Satellite"),1)==1) {$AllowedMaps .= "1";} else {$AllowedMaps .= "0";};
	} else {*/
$AllowedMaps = "11111";
//}
$dsAllowed = query("select timedate,speed,location,poi,zone,passengers,taximeter,fuel from users where id=" . session("user_id"));
if (pg_fetch_result($dsAllowed, 0, "speed") != "1" && pg_fetch_result($dsAllowed, 0, "taximeter") != "1" && pg_fetch_result($dsAllowed, 0, "passengers") != "1") {
    $AllowedSTP = "0";
} else {
    $AllowedSTP = "1";
}
$AllowViewZone = getPriv("ViewZones", session("user_id"));
?>

<div id="menu-4" class="menu-container" style="width:100%">
	<a id="menu-title-4" href="#" class="menu-title text3" onClick="OnMenuClick(4)" style="width:100%"><?php 
echo dic("Tracking.VehDetails");
?>
</a>
	<div id="searchVeh" style="width:230px; padding-left:10px; padding-top:10px; overflow:hidden; height: 55px; margin-bottom: -8px;">
        <input type="text" style="width: 220px; font-family: Arial,Helvetica,sans-serif; font-size: 12px;" name="searchbyreg" id="searchbyreg" value="" onkeyup="searchVehicle(this)" placeholder="<?php 
echo dic("Fm.SearchReg");
?>
" />
        <input type="text" style="width: 220px; font-family: Arial,Helvetica,sans-serif; font-size: 12px; position: relative; top: 5px;" name="searchbydriv" id="searchbydriv" value="" onkeyup="searchByDriver(this)" placeholder="<?php 
echo dic("searchbydriver");
?>
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:getLeftList_04032013.php


示例16: opendb

	<script type="text/javascript" src="./js/highcharts.src.js"></script>

	<link href="../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-ui.js"></script>
	<script src="../report/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="../tracking/live.js"></script>
	<script type="text/javascript" src="../tracking/live1.js"></script>
    <script type="text/javascript" src="../js/OpenLayers.js"></script>
	<script src="../js/jsxcompressor.js"></script>
</head>

<?php 
opendb();
$Allow = getPriv("routespredefined", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$user_id = Session("user_id");
$dsAll = query("select defaultmap, datetimeformat, timezone, metric, cl.clienttypeid, ci.latitude, ci.longitude from users u left outer join clients cl on cl.id = u.clientid left outer join cities ci on ci.id = cl.cityid where u.id = " . $user_id);
$datetimeformat = pg_fetch_result($dsAll, 0, 'datetimeformat');
$datfor = explode(" ", $datetimeformat);
$dateformat = $datfor[0];
$timeformat = $datfor[1];
if ($timeformat == 'h:i:s') {
    $timeformat = $timeformat . " A";
}
if ($timeformat == "H:i:s") {
    $tf = " H:i";
} else {
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:PredefiniraniNalozi.php


示例17: header

<?php 
if (session('user_id') == "261") {
    echo header('Location: ../sessionexpired/?l=' . $cLang);
}
if (is_numeric(nnull(session("user_id")) . "") == false) {
    echo header('Location: ../sessionexpired/?l=' . $cLang);
}
opendb();
$sqlV = "";
if (session("role_id") == "2") {
    $sqlV = "select id from vehicles where clientID=" . session("client_id");
} else {
    $sqlV = "select vehicleID from uservehicles where userID=" . session("user_id") . "";
}
$Allow = getPriv("settings", session("user_id"));
if ($Allow == false) {
    echo header('Location: ../?l=' . $cLang . '&err=permission');
}
$AllowUSettings = true;
//getPriv("UserSettings", session("user_id"));
$AllowCSettings = true;
//getPriv("ClientSettings", session("user_id"));
$AllowPSettings = true;
//getPriv("PrivilegesUser", session("user_id"));
$meni = 0;
if ($AllowUSettings == true) {
    $meni = 1;
} else {
    if ($AllowCSettings == true) {
        $meni = 2;
开发者ID:hew86i,项目名称:panorama,代码行数:30,代码来源:index_sega.php


示例18: opendb

<?php include "../include/db.php" ?>
<?php include "../include/params.php" ?>
<?php include "../include/dictionary2.php" ?>

<?php opendb();?>

<?php
	// error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);  // [josip] za error reports

	header("Content-type: text/html; charset=utf-8");
	opendb();
	$clientID = session("client_id");
	$userID = session("user_id");
	$roleID = session('role_id');

	$Allow = getPriv("employees", $userID);
	if ($Allow == False) echo header ('Location: ../permission/?l=' . $cLang);

	$ua=getBrowser();
	$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
	$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");

	addlog(47);

	// glavni promelivi ----------------------------------

	$clienttypeid = dlookup("select clienttypeid from clients where id = " . $clientID);

	$getQueryClient = pg_fetch_array(query("select * from clients where id=" . $clientID));
	$allowedfm = $getQueryClient["allowedfm"];
	$allowedrouting = $getQueryClient["allowedrouting"];
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:alerts.php


示例19: pg_fetch_result

        $dpassengers = '0';
    }
}
//VEHICLE DETAILS
$metric = pg_fetch_result($dsUsersSett, 0, 'metric');
$currency = pg_fetch_result($dsUsersSett, 0, 'currency');
$currencyvalue = dlookup("select value from currency where name='" . $currency . "'");
$currency = strtolower($currency);
if ($metric == 'mi') {
    $metricvalue = 0.621371;
    $speedunit = "mph";
} else {
    $metricvalue = 1;
    $speedunit = "Km/h";
}
$Allow = getPriv("idlingreport", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$vh = getQUERY("v");
$datetimeformat = pg_fetch_result($dsUsersSett, 0, 'datetimeformat');
$datfor = explode(" ", $datetimeformat);
$dateformat = $datfor[0];
$timeformat = $datfor[1];
if ($timeformat == 'h:i:s') {
    $timeformat = $timeformat . " a";
}
if ($timeformat == "H:i:s") {
    $e_ = " 23:59";
    $e1_ = "_23:59";
    $s_ = " 00:00";
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:CurrentData1.php


示例20: header

<?php

include "../include/db.php";
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>

<?php 
header("Content-type: text/html; charset=utf-8");
opendb();
$Allow = getPriv("ounits", session("user_id"));
if ($Allow == False) {
    echo header('Location: ../permission/?l=' . $cLang);
}
$ua = getBrowser();
$yourbrowser = (bool) strpos($ua['userAgent'], "iPad");
$yourbrowser1 = (bool) strpos($ua['userAgent'], "Macintosh");
addlog(43);
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>
	<script type="application/javascript">
		lang = '<?php 
echo $cLang;
?>
';
开发者ID:hew86i,项目名称:panorama,代码行数:31,代码来源:Organisation.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getProduct函数代码示例发布时间:2022-05-15
下一篇:
PHP getPrintableHeader函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap