<?php require_once '../frame.php'; require_role('admin'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>Manage : Forbeschina</title> <?php css_include_tag('admin', 'colorbox'); use_jquery(); js_include_tag('jquery.cookie.js', 'pubfun', 'jquery.colorbox-min'); ?> </head> <body style="background:url(/images/admin/bg.jpg) repeat-x;"> <div id=admin_body> <div id=part1> <div id=nav>欢迎你: <?php echo $_SESSION["admin_nick_name"]; ?> [<a href="/login/logout.post.php">退出</a>]</div> <div id=title><?php echo $site_name; ?> 后台管理</div> <div id=index><a href="/index.php" target="_blank">动态主页</a></div> </div> <div id=part2>
function judge_role() { return require_role('admin'); }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>迅傲信息</title> <?php require_once '../../frame.php'; $debug_tag = false; use_jquery(); require_role(); ?> </head> <?php $dir = '/dbscript/'; $files = dir_files($dir, false); if ($files === false) { die('执行失败'); } $db = get_db(); $db->query("select file_name from db_migrate"); if ($db->move_first() === false) { die('执行成功,无新脚本'); } do { $executed_files[] = $db->field_by_name('file_name'); } while ($db->move_next()); $doing_files = array_diff($files, $executed_files); $done_files = array(); $fail_files = array(); $fail_scripts = array();
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>福布斯中文网-角色管理</title> <?php require_once('../../frame.php'); require_role('sys_admin'); css_include_tag('admin'); use_jquery(); js_include_tag('admin_pub'); $db = get_db(); $roles = $db->query("select * from fb_role"); $count = count($roles); ?> </head> <body> <div id=icaption> <div id=title>角色管理</div> <a href="edit.php" id=btn_add></a> </div> <div id="itable"> <table cellspacing=1 border="0"> <tr class="itable_title"> <td width="20%">角色标识</td><td width="20%">角色名称</td><td width="40%">说明</td><td width="20%">操作</td> </tr> <?php for($i=0;$i<$count;$i++){ ?> <tr class="tr3" id="<?php echo $records[$i]->id;?>"> <td><?php echo $roles[$i]->name;?></td>