本文整理汇总了PHP中no_auth函数的典型用法代码示例。如果您正苦于以下问题:PHP no_auth函数的具体用法?PHP no_auth怎么用?PHP no_auth使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了no_auth函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: is_oto_all
function is_oto_all($menu, $link_oto, $userid = '')
{
check_logged_in($this->session->userdata('userid'));
$userid == '' ? $uid = $this->session->userdata('userid') : ($uid = $userid);
if ($uid == 'Superuser') {
$link_oto;
} else {
if ($this->is_oto($menu, 'c', $uid) == 'Y' || $this->is_oto($menu, 'e', $uid) == 'Y' || $this->is_oto($menu, 'v', $uid) == 'Y' || $this->is_oto($menu, 'p', $uid) == 'Y' || $this->is_oto($menu, 'd', $uid) == 'Y') {
$link_oto;
} else {
//$this->load->view("admin/no_authorisation");
no_auth();
}
}
}
示例2: exit
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_master.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_master.frm');
$path = 'application/views/laporan/transaksi';
calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js', 'asset/js');
link_js('lap_kas.js', $path . '/js');
panel_begin('Laporan Kas');
panel_multi('laporankas', 'block', false);
if ($all_laporankas != '') {
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm1');
$zfm->BuildForm('filterlapkas', true, '60%');
$zfm->BuildFormButton('Process', 'filter', 'button', 2);
} else {
no_auth();
}
panel_multi_end();
panel_end();
示例3: printStep2
function printStep2()
{
$user_default_config = Minz_Configuration::get('default_user');
?>
<?php
$s2 = checkStep2();
if ($s2['all'] == 'ok') {
?>
<p class="alert alert-success"><span class="alert-head"><?php
echo _t('gen.short.ok');
?>
</span> <?php
echo _t('install.conf.ok');
?>
</p>
<?php
} elseif (!empty($_POST)) {
?>
<p class="alert alert-error"><?php
echo _t('install.fix_errors_before');
?>
</p>
<?php
}
?>
<form action="index.php?step=2" method="post">
<legend><?php
echo _t('install.conf');
?>
</legend>
<div class="form-group">
<label class="group-name" for="old_entries"><?php
echo _t('install.delete_articles_after');
?>
</label>
<div class="group-controls">
<input type="number" id="old_entries" name="old_entries" required="required" min="1" max="1200" value="<?php
echo isset($_SESSION['old_entries']) ? $_SESSION['old_entries'] : $user_default_config->old_entries;
?>
" tabindex="2" /> <?php
echo _t('gen.date.month');
?>
</div>
</div>
<div class="form-group">
<label class="group-name" for="default_user"><?php
echo _t('install.default_user');
?>
</label>
<div class="group-controls">
<input type="text" id="default_user" name="default_user" required="required" size="16" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" value="<?php
echo isset($_SESSION['default_user']) ? $_SESSION['default_user'] : '';
?>
" placeholder="<?php
echo httpAuthUser() == '' ? 'alice' : httpAuthUser();
?>
" tabindex="3" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="auth_type"><?php
echo _t('install.auth.type');
?>
</label>
<div class="group-controls">
<select id="auth_type" name="auth_type" required="required" onchange="auth_type_change(true)" tabindex="4">
<?php
function no_auth($auth_type)
{
return !in_array($auth_type, array('form', 'persona', 'http_auth', 'none'));
}
$auth_type = isset($_SESSION['auth_type']) ? $_SESSION['auth_type'] : '';
?>
<option value="form"<?php
echo $auth_type === 'form' || no_auth($auth_type) ? ' selected="selected"' : '', cryptAvailable() ? '' : ' disabled="disabled"';
?>
><?php
echo _t('install.auth.form');
?>
</option>
<option value="persona"<?php
echo $auth_type === 'persona' ? ' selected="selected"' : '';
?>
><?php
echo _t('install.auth.persona');
?>
</option>
<option value="http_auth"<?php
echo $auth_type === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : '';
?>
><?php
echo _t('install.auth.http');
?>
(REMOTE_USER = '<?php
echo httpAuthUser();
?>
//.........这里部分代码省略.........