public function view() { $this->__lib('Message'); $mg = new \ULib\Message(); $req = req()->_plain(); $data = ['content' => '', 'error' => '']; try { $data['content'] = $mg->read($req->req('id'), login_user()->getId()); $this->theme->header_add($this->theme->css(get_bootstrap_plugin_url("markdown/markdown.min.css"))); $this->theme->header_add($this->theme->js(['src' => get_bootstrap_plugin_url("markdown/markdown.js")])); $this->theme->header_add($this->theme->js(['src' => get_style("message_action.js")])); } catch (\Exception $ex) { $data['error'] = $ex->getMessage(); } $this->theme->setBreadcrumb("查看消息"); $this->theme->setTitle("查看消息"); $this->__view("User/header.php"); $this->__view("Message/view.php", $data); $this->__view("User/footer.php"); }
function load_module($page_information) { //check user style $style = get_style(); //set ajax load widget by page information para if (isset($page_information['u2_data'])) { $page_para = unserialize($page_information['u2_data']); } if (isset($page_para) && $page_para != '') { //print_r($page_para); global_page_info($page_para); $data['pid'] = $page_information['id']; $data['tag'] = $page_information['u2_tag']; $data['widgets'] = $page_para['widgets']; $data['is_system'] = $page_information['u2_is_system']; $data['page_location_info'] = serialize($page_para['widgets']); $data['ci_top_title'] = $data['tag']; $data['num_widgets'] = is_admin() ? count($data['widgets'], COUNT_RECURSIVE) - count($data['widgets']) : 999; //load module by page information and style } else { $data = array(); } layout($data, 'riki'); }
function update_db() { global $C, $F, $I, $db, $memcached; $dbversion = (int) get_setting('dbversion'); if ($dbversion < $C['dbversion'] || get_setting('msgencrypted') != $C['msgencrypted']) { if ($dbversion < 2) { $db->exec("CREATE TABLE IF NOT EXISTS {$C['prefix']}ignored (id int(10) unsigned NOT NULL AUTO_INCREMENT, ignored tinytext NOT NULL, `by` tinytext NOT NULL, PRIMARY KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); } if ($dbversion < 3) { $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('rulestxt', '');"); } if ($dbversion < 4) { $db->exec("ALTER TABLE {$C['prefix']}members ADD incognito TINYINT(1) UNSIGNED NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}sessions ADD incognito TINYINT(1) UNSIGNED NOT NULL;"); } if ($dbversion < 5) { $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('globalpass', '');"); } if ($dbversion < 6) { $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('dateformat', 'm-d H:i:s');"); } if ($dbversion < 7) { $db->exec("ALTER TABLE {$C['prefix']}captcha ADD code TINYTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;"); } if ($dbversion < 8) { $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('captcha', '0'), ('englobalpass', '0');"); $ga = (int) get_setting('guestaccess'); if ($ga === -1) { update_setting('guestaccess', 0); update_setting('englobalpass', 1); } elseif ($ga === 4) { update_setting('guestaccess', 1); update_setting('englobalpass', 2); } } if ($dbversion < 9) { $db->exec("INSERT INTO {$C['prefix']}settings (setting,value) VALUES ('msgencrypted', '0');"); $db->exec("ALTER TABLE {$C['prefix']}settings MODIFY value text NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}messages DROP postid;"); } if ($dbversion < 10) { $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('css', 'a:visited{color:#B33CB4;} a:active{color:#FF0033;} a:link{color:#0000FF;} input,select,textarea{color:#FFFFFF;background-color:#000000;} a img{width:15%} a:hover img{width:35%} .error{color:#FF0033;} .delbutton{background-color:#660000;} .backbutton{background-color:#004400;} #exitbutton{background-color:#AA0000;}'), ('memberexpire', '60'), ('guestexpire', '15'), ('kickpenalty', '10'), ('entrywait', '120'), ('messageexpire', '14400'), ('messagelimit', '150'), ('maxmessage', 2000), ('captchatime', '600');"); $db->exec("ALTER TABLE {$C['prefix']}sessions ADD ip tinytext NOT NULL;"); } if ($dbversion < 11) { $db->exec("ALTER TABLE {$C['prefix']}captcha CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}filter CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}ignored CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}members CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}messages CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}notes CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}sessions CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}settings CHARACTER SET utf8 COLLATE utf8_bin;"); $db->exec("CREATE TABLE IF NOT EXISTS {$C['prefix']}linkfilter (id int(10) unsigned NOT NULL, `match` tinytext NOT NULL, `replace` tinytext NOT NULL, regex tinyint(1) unsigned NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;"); $db->exec("ALTER TABLE {$C['prefix']}linkfilter ADD PRIMARY KEY (id), MODIFY id int(10) unsigned NOT NULL AUTO_INCREMENT;"); $db->exec("ALTER TABLE {$C['prefix']}sessions DROP fontinfo, DROP displayname;"); $db->exec("ALTER TABLE {$C['prefix']}members ADD style TEXT NOT NULL;"); $result = $db->query("SELECT * FROM {$C['prefix']}members;"); $stmt = $db->prepare("UPDATE {$C['prefix']}members SET style=? WHERE id=?;"); while ($temp = $result->fetch(PDO::FETCH_ASSOC)) { if (isset($F[$temp['fontface']])) { $fontface = $F[$temp['fontface']]; } else { $fontface = ''; } $style = get_style("#{$temp['colour']} {$fontface} <{$temp['fonttags']}>"); $stmt->execute(array($style, $temp['id'])); } $db->exec("ALTER TABLE {$C['prefix']}members DROP colour, DROP fontface, DROP fonttags;"); $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('colbg', '000000'), ('coltxt', 'FFFFFF'), ('maxname', '20'), ('minpass', '5'), ('defaultrefresh', '20'), ('dismemcaptcha', '0'), ('suguests', '0'), ('imgembed', '1'), ('timestamps', '1'), ('trackip', '0'), ('captchachars', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), ('memkick', '1'), ('forceredirect', '0'), ('redirect', ''), ('incognito', '1');"); } if ($dbversion < 12) { $db->exec("ALTER TABLE {$C['prefix']}captcha MODIFY code char(5) NOT NULL, DROP INDEX id, ADD PRIMARY KEY (id) USING BTREE;"); $db->exec("ALTER TABLE {$C['prefix']}captcha ENGINE=MEMORY;"); $db->exec("ALTER TABLE {$C['prefix']}filter MODIFY id int(10) unsigned NOT NULL AUTO_INCREMENT, MODIFY `match` varchar(255) NOT NULL, MODIFY replace varchar(20000) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}ignored MODIFY ignored varchar(50) NOT NULL, MODIFY `by` varchar(50) NOT NULL, ADD INDEX(ignored) USING BTREE, ADD INDEX(`by`) USING BTREE;"); $db->exec("ALTER TABLE {$C['prefix']}linkfilter MODIFY match varchar(255) NOT NULL, MODIFY replace varchar(255) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}members MODIFY id int(10) unsigned NOT NULL AUTO_INCREMENT, MODIFY nickname varchar(50) NOT NULL, MODIFY passhash char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY bgcolour char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY boxwidth tinyint(3) NOT NULL DEFAULT '40', MODIFY boxheight tinyint(3) NOT NULL DEFAULT '3', MODIFY notesboxheight tinyint(3) NOT NULL DEFAULT '30', MODIFY notesboxwidth tinyint(3) NOT NULL DEFAULT '80', MODIFY regedby varchar(50) NOT NULL, MODIFY embed tinyint(1) NOT NULL DEFAULT '1', MODIFY incognito tinyint(1) NOT NULL DEFAULT '0', MODIFY style varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, ADD UNIQUE(nickname) USING BTREE;"); $db->exec("ALTER TABLE {$C['prefix']}messages MODIFY poster varchar(50) NOT NULL, MODIFY recipient varchar(50) NOT NULL, MODIFY text varchar(20000) NOT NULL, ADD INDEX(poster) USING BTREE, ADD INDEX(recipient) USING BTREE, ADD INDEX(postdate) USING BTREE, ADD INDEX(poststatus) USING BTREE;"); $db->exec("ALTER TABLE {$C['prefix']}notes MODIFY type char(5) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY editedby varchar(50) NOT NULL, MODIFY text varchar(20000) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}sessions MODIFY session char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY nickname varchar(50) NOT NULL, MODIFY style varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY passhash char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY postid char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '000000', MODIFY boxwidth tinyint(3) unsigned NOT NULL DEFAULT '40', MODIFY boxheight tinyint(3) unsigned NOT NULL DEFAULT '3', MODIFY notesboxheight tinyint(3) unsigned NOT NULL DEFAULT '30', MODIFY notesboxwidth tinyint(3) unsigned NOT NULL DEFAULT '80', MODIFY bgcolour char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY useragent varchar(255) NOT NULL, MODIFY kickmessage varchar(255) NOT NULL, MODIFY embed tinyint(1) unsigned NOT NULL DEFAULT '1', MODIFY incognito tinyint(1) unsigned NOT NULL DEFAULT '0', MODIFY ip varchar(45) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, ADD UNIQUE(session) USING BTREE, ADD UNIQUE(nickname) USING BTREE, ADD INDEX(status) USING BTREE, ADD INDEX(lastpost) USING BTREE;"); $db->exec("ALTER TABLE {$C['prefix']}sessions ENGINE=MEMORY;"); $db->exec("ALTER TABLE {$C['prefix']}settings MODIFY id int(10) unsigned NOT NULL, MODIFY setting varchar(50) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, MODIFY value varchar(20000) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}settings DROP PRIMARY KEY, DROP id, ADD PRIMARY KEY(setting) USING BTREE;"); $db->exec("INSERT INTO {$C['prefix']}settings (setting, value) VALUES ('enablejs', '0'), ('chatname', 'My Chat'), ('topic', ''), ('msgsendall', '{$I['sendallmsg']}'), ('msgsendmem', '{$I['sendmemmsg']}'), ('msgsendmod', '{$I['sendmodmsg']}'), ('msgsendadm', '{$I['sendadmmsg']}'), ('msgsendprv', '{$I['sendprvmsg']}'), ('numnotes', '3');"); } if ($dbversion < 13) { $db->exec("ALTER TABLE {$C['prefix']}filter CHANGE `match` filtermatch varchar(255) NOT NULL, CHANGE `replace` filterreplace varchar(20000) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}ignored CHANGE ignored ign varchar(50) NOT NULL, CHANGE `by` ignby varchar(50) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}linkfilter CHANGE `match` filtermatch varchar(255) NOT NULL, CHANGE `replace` filterreplace varchar(255) NOT NULL;"); $db->exec("ALTER TABLE {$C['prefix']}sessions MODIFY ip varchar(45) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL;"); } if ($dbversion < 14) { if ($C['memcached']) { $memcached->delete("{$C['dbname']}-{$C['prefix']}members"); $memcached->delete("{$C['dbname']}-{$C['prefix']}ignored"); } if ($C['dbdriver'] === 0) { //MySQL $db->exec("CREATE TABLE IF NOT EXISTS {$C['prefix']}captcha (id int(10) unsigned NOT NULL AUTO_INCREMENT, time int(10) unsigned NOT NULL, code char(5) NOT NULL, PRIMARY KEY (id) USING BTREE) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_bin;"); } } if (get_setting('msgencrypted') != $C['msgencrypted']) { $result = $db->query("SELECT id, text FROM {$C['prefix']}messages;"); $stmt = $db->prepare("UPDATE {$C['prefix']}messages SET text=? WHERE id=?;"); while ($message = $result->fetch(PDO::FETCH_ASSOC)) { if ($C['msgencrypted']) { $message['text'] = openssl_encrypt($message['text'], 'aes-256-cbc', $C['encryptkey'], 0, '1234567890123456'); } else { $message['text'] = openssl_decrypt($message['text'], 'aes-256-cbc', $C['encryptkey'], 0, '1234567890123456'); } $stmt->execute(array($message['text'], $message['id'])); } $result = $db->query("SELECT id, text FROM {$C['prefix']}notes;"); $stmt = $db->prepare("UPDATE {$C['prefix']}notes SET text=? WHERE id=?;"); while ($message = $result->fetch(PDO::FETCH_ASSOC)) { if ($C['msgencrypted']) { $message['text'] = openssl_encrypt($message['text'], 'aes-256-cbc', $C['encryptkey'], 0, '1234567890123456'); } else { $message['text'] = openssl_decrypt($message['text'], 'aes-256-cbc', $C['encryptkey'], 0, '1234567890123456'); } $stmt->execute(array($message['text'], $message['id'])); } update_setting('msgencrypted', (int) $C['msgencrypted']); } update_setting('dbversion', $C['dbversion']); send_update(); } }
function show_message($type = "info", $message = "UNKNOWN") { global $graphs, $graphs_on, $url_graphs; global $css_file, $menu_conf, $menu_css; $style_content['css'] = ""; $style_content['conf'] = ""; $style_content['table'] = ""; if ($css_file) { $style_content['css'] = "class=\"{$msgbox_css}\""; } else { $style_content['conf'] = get_style("msgbox", "norm"); $style_content['table'] = get_style("msgbox", "table"); } print "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"60%\" align=\"center\" " . $style_content['table'] . ">\n"; print "<tr><td valign=\"top\" " . $style_content['css'] . ">"; if ($graphs_on == 1) { print "<img src=\"" . $url_graphs . $graphs[$type] . "\" border=\"0\">"; } else { print "temp"; } print "</td><td align=\"left\" valign=\"center\" width=\"100%\">" . $style_content['conf'][0] . transform_line($message) . $style_content['conf'][1] . "</td></tr>\n"; print "</table>\n"; }
<!doctype html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $pageTitle; ?> </title> <meta name="description" content="<?php echo $metaDesc; ?> "> <!-- all compiled css --> <link rel="stylesheet" type="text/css" href="<?php get_style(); ?> "> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head>
<html> <head> <meta charset="UTF-8"> <title>Dashboard - Alejandro Cervantes</title> <link rel="stylesheet" id="Ubuntu-css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,700,300italic,400italic,700italic&subset=latin,latin-ext" type="text/css" media="all"> <?php get_style('css/style-admin.css'); ?> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> < ![endif]--> </head> <body> <header class="header"> <nav class="content-header"> <img src="<?php echo public_url(); ?> images/alex_me.jpg" class="borde-circular"> <h1 class="logo"><a href="<?php echo site_url(); ?> admin/">Admin - </a> <a href="<?php echo site_url(); ?> ">Ver sitio</a></h1> <?php if (is_login()) { ?> <ul class="nav"> <li><a href="<?php
function check_style_exists($style_id) { global $db, $config, $template, $images, $all_styles_array; $style_exists = false; if (!empty($all_styles_array[$style_id])) { $style_exists = true; } else { $template_row = array(); $style_id = (int) $style_id; $template_row = get_style($style_id, true); $style_exists = !empty($template_row) ? true : false; } return $style_exists; }
?> "/> <link rel="stylesheet" type="text/css" href="<?php echo get_style('style.css'); ?> "/> <script src="<?php echo get_js_url('jquery.min.js'); ?> " type="text/javascript"></script> <script src="<?php echo get_bootstrap_url('js/bootstrap.min.js'); ?> " type="text/javascript"></script> <script src="<?php echo get_style('home.js'); ?> " type="text/javascript"></script> <!--[if lt IE 9]> <script src="<?php echo get_js_url('ie8-responsive-file-warning.js'); ?> "></script> <script src="<?php echo get_js_url('html5shiv.min.js'); ?> "></script> <script src="<?php echo get_js_url('respond.min.js'); ?>
/** * ajax call */ protected function _draw_ajax() { $html = $this->load_style ? get_style() : null; $html .= $this->load_javascript ? get_javascript() : null; die($html); }
<script src="<?php echo get_style("pagination.js"); ?> "></script> <div id="Select_user_pic"> <div class="well well-sm form-inline clearfix"> <button class="btn btn-primary pic_add" type="button">添加选中</button> <button class="btn btn-warning pic_edit" type="button">编辑</button> <button class="btn btn-default pull-right s_x" type="button">反选</button> <button class="btn btn-default pull-right s_n" type="button">全不选</button> <button class="btn btn-default pull-right s_a" type="button">全选</button> <label class="sr-only control-label" for="Page_number_select">选择每页显示数量</label> <select name="one_page" id="Page_number_select" class="pull-right form-control"> <option value="100">每页100</option> <option value="50" selected>每页50</option> <option value="30">每页30</option> <option value="20">每页20</option> <option value="10">每页10</option> <option value="5">每页5</option> </select> </div> <div class="well well-sm clearfix nav_list"> </div> <form class="well well-sm form-inline clearfix" onsubmit="return false;"> <span class="text-primary glyphicon glyphicon-search">搜索:</span> <input type="text" placeholder="标签搜索" name="tag" class="form-control"> <label class="sr-only control-label" for="Tag_search_select">标签搜索类型</label> <select id="Tag_search_select" name="tag_like" class="form-control"> <option value="all">完整匹配</option> <option value="like">模糊查询</option> </select>
function obtain_default_style($from_cache = false) { global $db, $config; if (($default_style = $this->get('config_style')) === false) { $default_style = array(); $style_id = (int) $config['default_style']; $default_style = get_style($style_id, $from_cache); $this->put('config_style', $default_style); } return $default_style; }
private function publish_cdn() { if (cdn_info('status')) { $hook = hook(); if (cdn_info('filed', 'get_static_style_url')) { $hook->add('get_static_style_url', function () { return cdn_info('filed', 'get_static_style_url') . path_of_style() . "/" . get_style(); }); } if (cdn_info('filed', 'get_bootstrap_url')) { $hook->add('get_bootstrap_url', function () { return cdn_info('filed', 'get_bootstrap_url'); }); } if (cdn_info('filed', 'get_bootstrap_plugin_url')) { $hook->add('get_bootstrap_plugin_url', function () { return cdn_info('filed', 'get_bootstrap_plugin_url') . path_of_bootstrap_plugin(); }); } if (cdn_info('filed', 'get_js_url')) { $hook->add('get_js_url', function () { return cdn_info('filed', 'get_js_url') . path_of_js(); }); } } }
/** * 获取一个用于存储当前主题的文件夹可设置外部信息 * 推荐加载主题静态资源时使用 * @return string */ function get_static_style_url() { static $url = NULL; if ($url === NULL) { $url = hook()->apply("get_static_style_url", get_style_url() . get_style()); } return clean_url($url . "/" . implode("/", func_get_args()) . add_src_version(func_get_args())); }
<th><a href="#id">ID</a></th> <th><a href="#name">用户名</a></th> <th><a href="#aliases">别名</a></th> <th><a href="#email">邮箱</a></th> <th>主页</th> <th>状态</th> <th>上次登录</th> <th>操作</th> </tr> </thead> <tbody> </tbody> </table> <script src="<?php echo get_style('control_user.js'); ?> "></script> <script> //@ sourceURL=Control_user_html_page $(function () { var cu = new Control_user(API_URL + '/user_list', '#Control_user', 20); cu.load(function (data) { var pg = new Pagination("#user_list_page_nav"); pg.set_page_nav_url(cu.get_nav_url(pg.get_page_param())); pg.load_param(1, data['page'] - 1, data['page'], 1 + data['page'], data['page_count']); return pg; }); $("#Control_user_search").submit(function () { var n = +$("#Search_InputNumber").val(); if (n < 1) {
function build_html($id) { global $dir_html, $allow_html, $site_name, $allow_edit, $auto_link; list($color, $bgcolor) = get_style($id); $navi = get_navi($id, $allow_edit); # Check. if (file_exists("{$dir_html}/{$id}.html")) { return; } # Read. $fil = FETCH($id); $caption = array_shift($fil); $caption = rtrim(htmlspecialchars($caption)); $content = implode('', $fil); if (!$allow_html) { $content = htmlspecialchars($content); if (strpos(strtolower($content), '=nbsp\\n') !== -1) { $content = preg_replace('/=nbsp\\n/i', '', $content); $content = str_replace(' ', ' ', $content); } $content = preg_replace("/=pre\n?/i", '<pre>', $content); $content = preg_replace('/=\\/pre\\n?/i', '</pre>', $content); $content = preg_replace('/(\\n\\n+)/', "\n\n", $content); $content = str_replace("\n\n", '</p><p>', $content); $content = str_replace("\n", '<br />', $content); } if ($auto_link) { $content = preg_replace('/(https?|ftp|news)(\\:\\/\\/[[:alnum:]\\+\\$\\;\\?\\.%,!#~*\\/\\:@&=_-]+)/i', '<a href="$1$2" target="_blank">$1$2</a>', $content); } # Write. if (!($wfil = fopen("{$dir_html}/{$id}.html", "wb"))) { print_error("build to {$id}"); } fwrite($wfil, get_header("{$caption} - {$site_name}", $caption, $color, $bgcolor, $navi, "")); fwrite($wfil, "<p>{$content}</p>"); fwrite($wfil, get_footer()); fclose($wfil); }
public function time_line() { if (!is_login()) { redirect_to_login(); } $this->theme->setTitle("时间线"); $this->theme->footer_add($this->theme->js(['src' => get_style("time_line.js")])); $this->theme->footer_add($this->theme->js(['src' => get_js_url("jquery.form.js")])); $this->__view("Home/header.php"); $this->__view("Show/time_line.php"); $this->__view("Home/footer.php"); }
?> " type="text/javascript"></script> <script src="<?php echo get_bootstrap_url('js/bootstrap.min.js'); ?> " type="text/javascript"></script> <script src="<?php echo get_style('home.js'); ?> "></script> <script src="<?php echo get_style('control.js'); ?> "></script> <script src="<?php echo get_style('pagination.js'); ?> "></script> <script src="<?php echo get_js_url('pnotify/jquery.pnotify.js'); ?> "></script> <script src="<?php echo get_js_url('jquery.form.js'); ?> "></script> <!--[if lt IE 9]> <script src="<?php echo get_js_url('ie8-responsive-file-warning.js'); ?>
?> " type="text/javascript"></script> <script src="<?php echo get_bootstrap_url('js/bootstrap.min.js'); ?> " type="text/javascript"></script> <script src="<?php echo get_js_url('pnotify/jquery.pnotify.js'); ?> "></script> <script src="<?php echo get_style('home.js'); ?> "></script> <script src="<?php echo get_style('user.js'); ?> "></script> <script src="<?php echo get_js_url('jquery.form.js'); ?> "></script> <!--[if lt IE 9]> <script src="<?php echo get_js_url('ie8-responsive-file-warning.js'); ?> "></script> <script src="<?php echo get_js_url('html5shiv.min.js'); ?>