本文整理汇总了PHP中restrictAccess函数的典型用法代码示例。如果您正苦于以下问题:PHP restrictAccess函数的具体用法?PHP restrictAccess怎么用?PHP restrictAccess使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了restrictAccess函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: restrictAccess
<?php
/**
* User: Arsen
* Date: 03.10.14
* Time: 0:52
* Класс страницы
* Употребляется в виде для отабражения элементов страницы
* по средствам его методов
*/
namespace Widgets\Widget;
restrictAccess();
use Widgets\AbstractWidget;
use View;
class BestPlayer extends AbstractWidget
{
/**
* Тип страницы
*/
protected $_type;
/**
* Позиция
*/
protected $_position;
/**
* Индекс сортировки
*/
protected $_sort;
/**
* Шаблон
示例2: define
<?php
define('ROOT_PATH', '');
require_once ROOT_PATH . 'functions.php';
require_class('qIO');
restrictAccess('u');
//xuca
$q = new qIO();
$q->addRand(null, null, [0], 1);
?>
<style>
body{
font-size:30pt;
background-color:black;
color:white;
font-family:Segoe UI, Segoe, Frutiger, WeblySleekUI, CartoGothic STD, Open Sans, Arial, sans-serif;
}
.anschoices button{
font-family:"Robot!Head",
transition:background-color 0.5s;
font-size:inherit;
background-color:white;
color:black;
display:block;
width:100%;
text-align:center;
border-radius:20px;
border:none;
margin-top:10px;
cursor:pointer;
示例3: restrictAccess
<?php
require_once "auth.php";
require_once "bootstrap.php";
restrictAccess('0011');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Electronic Medical Information System - User Profile</title>
<link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
</head>
<?php
if (isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) > 0) {
echo '<ul class="err">';
foreach ($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>', $msg, '</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?>
<body>
<script type="text/javascript">
function submitform()
{
document.forms["loginForm"].submit();
}
</script>
示例4: restrictAccess
<?php
require_once "auth.php";
require_once 'bootstrap.php';
restrictAccess('1111');
$userName = $_SESSION['SESS_USERNAME'];
global $currentPath;
$request = $currentPath . "viewPatientREST.php?";
$request .= "u=" . urlencode($userName);
$request .= "&key=" . urlencode($_SESSION['SESS_AUTH_KEY']);
$request .= "&pat=" . urlencode($_GET['u']);
//die($request);
//format and send request
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$RESToutput = curl_exec($ch);
//send URL Request to RESTServer... returns string
curl_close($ch);
//string from server has been returned <XML> closethe channel
if ($RESToutput == '') {
die("CONNECTION ERROR");
}
//die($RESToutput);
//parse return string
$parser = xml_parser_create();
xml_parse_into_struct($parser, $RESToutput, $wsResponse, $wsIndices);
$errNum = $wsResponse[$wsIndices['ERRNUM'][0]]['value'];
/*print( "OUTPUT|$RESToutput|\n");
示例5: restrictAccess
<?php
require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess("0111");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Administrator Profile</title>
<link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
function submitform()
{
document.forms["editMemberForm"].submit();
}
</script>
<div class="container">
<div class="header">
<div class="logo"><a href="memberProfileView.php"><img src="img/logo.png" /></a></div>
<div class="welcome_text">
<h1>Welcome,
<?php
echo $_SESSION['SESS_FIRST_NAME'];
?>
</h1>
</div>
示例6: define
<?php
define('ROOT_PATH', '');
require_once ROOT_PATH . 'functions.php';
restrictAccess('a');
//xuca
if (posted("directory")) {
$directory = $_POST["directory"];
if (is_dir($directory)) {
require_class("fileToStr", "qParser");
$f = new fileToStr();
$qp = new qParser();
echo "Processing directory {$directory}:<br>";
foreach (glob($directory . '/*.*') as $file) {
echo " " . $file . " parsed:<br><textarea>" . $qp->parse($f->convert($file, $file)) . "</textarea><br><br>";
ob_flush();
flush();
}
} else {
echo "{$directory} is not a valid directory.";
}
}
?>
<form action="bulk_file_process.php" method="POST">
<b>Add All Files From Directory:</b>
<input type="text" name="directory"/>
</form>
示例7: session_start
<?php
session_start();
require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess("1111");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Electronic Medical Information System</title>
<link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
function submitform()
{
document.forms["loginForm"].submit();
}
</script>
<div class="container">
<div class="header">
<div class="logo"><img src="img/logo.png" alt="Just a logo"/></div>
<div class="welcome_text">
<h1>Welcome,
<?php
echo $_SESSION['SESS_FIRST_NAME'];
?>
</h1>
</div>
示例8: restrictAccess
<?php
require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess('1000');
$userName = $_SESSION['SESS_USERNAME'];
$aid = $_GET['aid'];
global $currentPath;
$request = $currentPath . "apptViewREST.php?";
$request .= "u=" . urlencode($userName);
$request .= "&key=" . urlencode($_SESSION['SESS_AUTH_KEY']);
$request .= "&aid=" . urlencode($aid);
//echo $request;
//format and send request
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$RESToutput = curl_exec($ch);
//send URL Request to RESTServer... returns string
curl_close($ch);
//string from server has been returned <XML> closethe channel
//die($RESToutput);
if ($RESToutput == '') {
die("CONNECTION ERROR");
}
$status = $wsResponse[$wsIndices['STATUS'][0]]['value'];
//parse return string
$parser = xml_parser_create();
xml_parse_into_struct($parser, $RESToutput, $wsResponse, $wsIndices);