admin_skin.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 176 行
PHP
176 行
<?php/*+--------------------------------------------------------------------------| Invision Power Board v2.1.5| =============================================| by Matthew Mecham| (c) 2001 - 2005 Invision Power Services, Inc.| | =============================================| Web: | Time: Wed, 01 Mar 2006 19:11:29 GMT| Release: | Licence Info: +---------------------------------------------------------------------------| > $Date: 2006-02-03 16:54:26 +0000 (Fri, 03 Feb 2006) $| > $Revision: 137 $| > $Author: bfarber $+---------------------------------------------------------------------------|| > Admin HTML stuff library| > Script written by Matt Mecham| > Date started: 1st march 2002|| > DBA Checked: Tue 25th May 2004+--------------------------------------------------------------------------*/class admin_skin{ # Global var $ipsclass; var $base_url; var $img_url; var $has_title; var $td_widths = array(); var $td_header = array(); var $td_colspan; var $valid_hostnames = array(); function init_admin_skin() { $this->base_url = $this->ipsclass->base_url; $this->img_url = $this->ipsclass->skin_url; } /*-------------------------------------------------------------------------*/ // Print the global ACP header /*-------------------------------------------------------------------------*/ function print_top($title="",$desc="") { return $this->ipsclass->skin_global_acp->global_header( $title, $desc ); } /*-------------------------------------------------------------------------*/ // Print the nav wrapper /*-------------------------------------------------------------------------*/ function wrap_nav($links) { return $this->ipsclass->skin_global_acp->global_wrap_nav( $links ); } /*-------------------------------------------------------------------------*/ // Print the global ACP footer /*-------------------------------------------------------------------------*/ function print_foot() { return $this->ipsclass->skin_global_acp->global_footer( date("Y") ); } /*-------------------------------------------------------------------------*/ // Print the global ACP menu header /*-------------------------------------------------------------------------*/ function menu_top() { return $this->ipsclass->skin_global_acp->global_menu_header(); } /*-------------------------------------------------------------------------*/ // Print the global ACP menu footer /*-------------------------------------------------------------------------*/ function menu_foot() { return $this->ipsclass->skin_global_acp->global_menu_footer(); } /*-------------------------------------------------------------------------*/ // Print the global ACP frameset /*-------------------------------------------------------------------------*/ function frame_set() { //----------------------------------------- // Carry on //----------------------------------------- $extra_query = 'act=index'; if ( $this->ipsclass->input['act'] != 'idx' ) { $extra_query = str_replace( '&', '&', $this->ipsclass->parse_clean_value($_SERVER['QUERY_STRING']) ); $extra_query = str_replace( "{$this->ipsclass->vars['board_url']}" , "" , $extra_query ); $extra_query = preg_replace( "!/?admin\.{$this->ipsclass->vars['php_ext']}!i", "" , $extra_query ); $extra_query = preg_replace( "!^\?!" , "" , $extra_query ); $extra_query = str_replace( "printframes=1" , "" , $extra_query ); $extra_query = preg_replace( "!adsess=(\w){32}!" , "" , $extra_query ); $extra_query = preg_replace( "!s=(\w){32}!" , "" , $extra_query ); } return $this->ipsclass->skin_global_acp->global_frame_set( $extra_query ); } /*-------------------------------------------------------------------------*/ // Print the global menu cat wrap /*-------------------------------------------------------------------------*/ function menu_cat_wrap($show, $name="", $links="", $id = "", $desc, $color='#FFF', $extra='') { return $this->ipsclass->skin_global_acp->global_menu_cat_wrap($show, $name, $links, $id, $desc, $color, $extra); } /*-------------------------------------------------------------------------*/ // Print the global menu cat link /*-------------------------------------------------------------------------*/ function menu_cat_link($pid, $cid, $url="", $name="", $urltype=0, $isredirect=0, $no_access=0) { if ( $urltype == 1 ) { $theurl = $this->ipsclass->vars['board_url'].'/index.'.$this->ipsclass->vars['php_ext'].'?'; } else { $theurl = $this->ipsclass->base_url; } if ( $isredirect ) { $icon = "<img src='{$this->ipsclass->skin_url}/images/menu_shortcut.gif' border='0' alt='' valign='absmiddle' />"; $extra_css = ';font-style:italic'; } else { $icon = "<img src='{$this->ipsclass->skin_url}/images/item.gif' border='0' alt='' valign='absmiddle' />"; $extra_css = ""; } if ( $no_access ) { $extra_css .= ";color:#777"; } return $this->ipsclass->skin_global_acp->global_menu_cat_link( $cid, $pid, $icon, $extra_css, $name, $url, $theurl ); } /*-------------------------------------------------------------------------*/ // JS Make button /*-------------------------------------------------------------------------*/ function js_make_button($text="", $url="", $css='realbutton', $title="") { return "<input type='button' class='{$css}' value='{$text}' onclick='self.location.href=\"{$url}\"' title='$title' />"; } /*-------------------------------------------------------------------------*/ // JS Help Link /*-------------------------------------------------------------------------*/ function js_help_link($help="", $text="蹇
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?