A3rr0r Pro Manager
Path:
/www/wwwroot/www.smszp.cn/wp-content/themes/zimeiti
.
|
Edit
|
Rename
..
|
Edit
|
Rename
404-bg.jpg
|
Edit
|
Rename
404.php
|
Edit
|
Rename
admin
|
Edit
|
Rename
archive.php
|
Edit
|
Rename
basic
|
Edit
|
Rename
default.jpg
|
Edit
|
Rename
favicon.ico
|
Edit
|
Rename
footer.php
|
Edit
|
Rename
functions.php
|
Edit
|
Rename
header.php
|
Edit
|
Rename
htbg.jpg
|
Edit
|
Rename
index.php
|
Edit
|
Rename
page-gudengbao.php
|
Edit
|
Rename
page.php
|
Edit
|
Rename
screenshot.jpg
|
Edit
|
Rename
search.php
|
Edit
|
Rename
sidebar.php
|
Edit
|
Rename
single-gudengbao.php
|
Edit
|
Rename
single.php
|
Edit
|
Rename
static
|
Edit
|
Rename
style.css
|
Edit
|
Rename
tijiao-en.php
|
Edit
|
Rename
tijiao.php
|
Edit
|
Rename
wap.css
|
Edit
|
Rename
zimeiti.php
|
Edit
|
Rename
zimeiti_2813.php
|
Edit
|
Rename
zimeiti_4069.php
|
Edit
|
Rename
zimeiti_5054.php
|
Edit
|
Rename
zimeiti_7054.php
|
Edit
|
Rename
ashu_meta = $ashu_meta; $this->meta_conf = $meta_conf; $this->wpmbg_set_quick_edit(); add_action('admin_menu', array(&$this, 'init_boxes')); add_action('post_updated', array(&$this, 'save_postdata'), 9 ); add_action('save_post', array(&$this, 'save_postdata')); add_action( 'admin_enqueue_scripts', array(&$this, 'enqueue_css_js') ); add_action( 'admin_footer', array(&$this, 'enqueue_html') ); } public function init_boxes() { $this->create_meta_box(); } public function create_meta_box(){ if ( function_exists('add_meta_box') && is_array($this->meta_conf['page']) ) { foreach ($this->meta_conf['page'] as $area) { if( isset($this->meta_conf['template']) && $area=='page' ){ if(isset($_GET['post'])) $post_id = $_GET['post']; else $post_id = 0; $page_template = get_post_meta($post_id,'_wp_page_template',true); if( $this->meta_conf['template'] == $page_template ){ add_meta_box( $this->meta_conf['id'], $this->meta_conf['title'], array(&$this, 'new_meta_boxes'), $area, $this->meta_conf['context'], $this->meta_conf['priority'] ); } }else{ add_meta_box( $this->meta_conf['id'], $this->meta_conf['title'], array(&$this, 'new_meta_boxes'), $area, $this->meta_conf['context'], $this->meta_conf['priority'] ); } } } } public function new_meta_boxes(){ if(isset($_GET['post'])) $post_id = $_GET['post']; else $post_id = 0; echo '
'; $this->tab_toggle($this->ashu_meta); foreach($this->ashu_meta as $ashu_meta){ if( ( $ashu_meta['type']=='open' || $ashu_meta['type']=='close' ) || (isset($ashu_meta['id']) && method_exists($this, $ashu_meta['type'])) ) { if($ashu_meta['type']=='open' || $ashu_meta['type']=='close'){ $this->{$ashu_meta['type']}($ashu_meta); continue; } $meta_value = get_post_meta($post_id, $ashu_meta['id'], true); if($meta_value != "") $ashu_meta['std'] = $meta_value; $this->{$ashu_meta['type']}($ashu_meta); } } echo '
'; } public function save_postdata( $post_id ) { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } $pstyles = array('post','page'); if( isset( $_POST['post_type'] ) && in_array($_POST['post_type'],$pstyles ) ){ if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post_id ) ) return 0; }else{ if ( !current_user_can( 'edit_post', $post_id ) ) return 0; } foreach ($this->ashu_meta as $ashu_meta) { if( isset($ashu_meta['id']) && $ashu_meta['id'] ){ $old_data = get_post_meta($post_id , $ashu_meta['id']); if( $ashu_meta['type'] == 'tinymce' ){ $data = stripslashes( $_POST[$ashu_meta['id']] ); }elseif( ( !empty($ashu_meta['multiple']) && $ashu_meta['multiple']===true ) || $ashu_meta['type'] == 'group' ){ if($_POST[$ashu_meta['id']]!=''){ $data = array_filter($_POST[$ashu_meta['id']]); }else{ $data = ''; } }elseif( $ashu_meta['type'] == 'checkbox' ){ $data = $_POST[$ashu_meta['id']]; }elseif( $ashu_meta['type'] == 'numbers_array' || $ashu_meta['type'] == 'gallery' ){ if($_POST[$ashu_meta['id']]!=''){ $data = explode( ',', $_POST[$ashu_meta['id']] ); $data = array_filter($data); }else{ $data = ''; } }elseif( in_array( $ashu_meta['type'], array('open','close','title') ) ){ continue; }else{ $data = htmlspecialchars($_POST[$ashu_meta['id']], ENT_QUOTES,"UTF-8"); } if($data == "") delete_post_meta($post_id , $ashu_meta['id'], $data); else update_post_meta($post_id , $ashu_meta['id'], $data); } } } } public function wpmbg_set_quick_edit(){ $quick_metas = array(); foreach($this->ashu_meta as $meta){ if( !empty($meta['quick_edit']) && $meta['quick_edit'] === true ){ $quick_metas[] = $meta; } } if( !empty($quick_metas) ){ $quick_edit_conf = $this->meta_conf; new wpmbg_postmeta_quick_edit($quick_metas, $quick_edit_conf); } } }