本文整理汇总了PHP中System::check_func方法的典型用法代码示例。如果您正苦于以下问题:PHP System::check_func方法的具体用法?PHP System::check_func怎么用?PHP System::check_func使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System::check_func方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
break;
}
//缓存系统用户组
Cached::table('system', 'sys:group', array('jsonde' => array('config'), 'serialize' => array('module', 'widget')));
}
//search
$s = getgpc("s");
$q = getgpc('q');
?>
<div id="search">
<form name="form1" method="get" action="?">
<span class="action">
<?php
if (System::check_func('system-group-add')) {
?>
<button type="button" class="button" onclick="location.href='group.edit.php';">添加分组</button>
<?php
}
?>
<button type="button" class="button" onclick="if(confirm('确定现在要更新缓存吗?')){location.href='?action=create';}">更新缓存</button>
</span>
<select name="s" id="s" size="1">
<option value="name">组名称</option>
<option value="account">用户名</option>
<option value="id">ID</option>
</select>
<input name="q" type="text" class="text" title="请输入关键字" id="q" value="<?php
echo $q;
示例2: html_start
<?php
/*
* Copyright VeryIDE 2009-2012
* http://www.veryide.com/
*/
require '../../source/dialog/loader.php';
html_start("系统设置 - VeryIDE");
?>
<?php
require_once VI_ROOT . 'source/class/setting.php';
//检查权限
$func = 'system-system-set';
System::check_func($func, FALSE);
$do = getgpc('do');
if (!$do) {
ob_end_clean();
header("location:?do=global");
exit;
}
$active = array('global', 'attach', 'mail');
if (in_array($do, $active)) {
$_GalSet = new Setting(VI_ROOT . 'config/' . $do . '.php', VI_ROOT . 'config/' . $do . '.xml', $do);
if ($_GET["action"] == "update" && !empty($_POST)) {
//var_dump($_POST);
//exit;
if ($_GalSet->save('POST')) {
//连接数据库
System::connect();
//写入日志
示例3:
<button type="submit" class="submit">开始扫描</button>
</p>
</td>
</tr>
</table>
</form>
<?php
}
?>
<?php
if (System::check_func('system-cache')) {
?>
<div class="item">系统清理工具</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
<tr class="thead">
<td width="120">工具</td>
<td>目录</td>
<td>大小</td>
<td>作用</td>
<td width="70"></td>
</tr>
<tr class="line">
<td>清除查询缓存</td>
示例4: rawurlencode
} else {
echo '<td>无</td>';
}
echo "</tr>";
}
if ($x == 1) {
echo '<tr> <td colspan="6" class="notice">更新清单暂时没有记录</td> </tr>';
} else {
echo '<tr> <td colspan="6" class="choice">请按版本顺序安装更新</td> </tr>';
}
?>
</table>
<?php
if (System::check_func('system-update-sql')) {
?>
<div class="item">执行 SQL 查询</div>
<form action="?jump=<?php
echo rawurlencode($jump);
?>
" method="post" name="edit-form" data-mode="edit" data-valid="true">
<p>
<textarea name="sql" style="width:700px;" rows="6" id="sql"></textarea>
</p>
<p class="highlight">
注意: 为确保升级成功,请不要修改官方发布的 SQL 语句任何部分。
示例5: Mo
<tr>
<td></td>
<td>
<input name="action" type="hidden" id="action" value="create" />
<button type="submit" name="Submit" class="submit">创建此备份</button>
</td>
</tr>
</table>
</form>
<?php
} else {
echo System::check_func('system-backup-add', true);
}
?>
<script type="text/javascript">
//绑定表单事件
Mo("button[type=button]").bind( 'click', function( index, e ){
if( Mo( this ).attr('data-target') == '_blank' ){
window.open( Mo( this ).attr('data-href') );
}else{
if( confirm('此操作不可撤消,确定要这么做吗?') ){
示例6: foreach
';
}
?>
<tr>
<th>电子邮箱:</th>
<td><input name="email" type="text" class="text" value="<?php
echo $row["email"];
?>
" size="35" data-valid-name="电子邮箱" data-valid-empty="yes" />
用来接收邮件通知
</td>
</tr>
<?php
if (System::check_func('system-account-gid')) {
?>
<tr>
<th>用户分组:</th>
<td>
<?php
foreach ($_CACHE['system']['group'] as $key => $value) {
echo '<label><input type="radio" class="radio" name="gid" value="' . $key . '" ' . ($key == $row["gid"] ? 'checked="checked"' : '') . ' data-valid-name="用户级别" data-valid-empty="yes" /><img src="' . VI_BASE . 'static/image/medal/mini_' . $value["medal"] . '" />' . $value["name"] . '</label>';
}
?>
</td>
</tr>
<?php
}
?>
示例7: switch
switch ($execute) {
//本地环境检测
case "status":
if (System::check_func('system-system-set') === FALSE) {
exit;
}
$status = System::check_status();
$upgrade = System::check_upgrade();
$install = System::check_install();
$filehash = System::check_filehash();
echo $callback . '( { "status" : ' . $status['stat'] . ', "upgrade" : ' . $upgrade['stat'] . ', "install" : ' . $install['stat'] . ', "filehash" : ' . $filehash['stat'] . ' } );';
break;
//云平台通知
//云平台通知
case "notified":
if (System::check_func('system-module-set') === FALSE) {
exit;
}
require_once VI_ROOT . 'source/class/cloud.php';
$module = array();
foreach ($_CACHE['system']['module'] as $appid => $app) {
$module[$appid] = array('signed' => $app['signed'], 'version' => $app['version']);
}
$command = array('execute' => $execute, 'charset' => $_G['product']['charset'], 'engine' => $_G['product']['version'], 'module' => $module, 'serial' => $_G['licence']['module']);
$content = Cloud::request($command);
echo $callback . '(' . json_encode($content) . ');';
break;
}
}
break;
}
示例8: foreach
<div id="search">
<!--用于日志操作-->
<form name="post-form" id="post-form" method="post" action="?">
<input name="list" id="list" type="hidden" value="">
<input name="action" id="action" type="hidden" value="" />
<input name="url" id="url" type="hidden" value="" />
</form>
<!--用于日志操作-->
<form name="find-form" id="find-form" method="get" action="?">
<span class="action">
<?php
if (System::check_func('system-event')) {
?>
<button class="button" type="button" onclick="Mo('#account').value(<?php
echo $_G['manager']['id'];
?>
);Mo('#find-form').item(0).submit();">我的日志</button>
<select name="account" id="account" onchange="Mo('#find-form').item(0).submit();" ignore="true">
<optgroup label="选择用户" />
<option value="">所有用户</option>
<?php
foreach ($_CACHE['system']['admin'] as $aid => $row) {
echo '<option value="' . $aid . '">' . $row['account'] . '</option>';
}
?>
</select>
<script> Mo("#account").value("<?php
示例9: delete
public static function delete($file, $param = array())
{
global $_G;
//检查权限
if (System::check_func('system-upload-del') == false) {
return FALSE;
}
//查询数据库
$sql = "SELECT id, type, remote from `sys:attach` WHERE ( name='{$file}' ) LIMIT 0, 1";
$row = System::$db->getOne($sql);
if ($row) {
$res = $row['remote'] ? self::delete_remote($file, $param) : self::delete_locale($file, $param);
//删除数据
System::$db->execute("DELETE FROM `sys:attach` WHERE id=" . $row['id']);
return $res;
} else {
return FALSE;
}
}
示例10: foreach
?>
<p><strong>文件读写权限缺失</strong></p>
<ul>
<?php
foreach ($notice['directory'] as $item) {
echo '<li>' . $item . '</li>';
}
?>
</ul>
<p>请创建或更改以上文件权限,<a href="http://www.veryide.com/guide.php?appid=system&id=3" target="_blank">参考手册 »</a></p>
<?php
}
?>
<p> <button type="button" onclick="location.reload();">再试试</button> </p>
</dd>
</dl>
<!--调试界面_开始-->
</div>
<?php
exit;
} else {
//加载扩展模板
if ($_G['manager']['id'] && System::check_func('system-module-set') && GetIP() != '127.0.0.1') {
require VI_ROOT . 'source/dialog/extend.php';
}
}
示例11: getnum
$parent = $parent ? getnum("category", 0) : $parent;
$sql = "INSERT INTO `mod:common_category`(appid,name,parent,sort,state,dateline) VALUES('system-district','" . $name . "'," . $parent . "," . $sort . ",1," . time() . ")";
System::$db->execute($sql);
$_G['project']['message'] = "新增区域成功!";
break;
}
//更新分类数组缓存
Cached::multi('system', "SELECT id,name,parent,state FROM `mod:common_category` WHERE appid = 'system-district' ORDER BY sort ASC", 'table.district', array('alias' => 'district'));
//更新分类脚本缓存
Cached::script('system', "SELECT id,name,parent FROM `mod:common_category` WHERE appid = 'system-district' ORDER BY sort ASC", "DISTRICT", "mod.district", array('unicode' => array('name')));
}
Cached::loader('system', 'table.district');
?>
<?php
echo System::check_func('system-system-set', true);
?>
<div id="search">
<form name="find-form" id="find-form" method="post" data-mode="edit" data-valid="true">
<span class="action">
<input type="button" value="更新缓存" onclick="if(confirm('确定现在更新分类缓存吗?')){location.href='?action=create';}" class='button'>
</span>
区域:<input name="name" type="text" class="text" value="" size="20" data-valid-name="分类名称" data-valid-empty="yes" />
排序:<input name="sort" type="text" class="text digi" value="" data-valid-name="分类排序" data-valid-number="no" />
<var data-type="tip">从小到大依次排序</var>
<label>
<input type="radio" class="radio" name="parent" id="parent" value="0" onclick="Mo('#category').disabled();" checked>
大分类