网站 PHP加密文件 破解,200分送上

2024-12-12 19:58:58
推荐回答(1个)
回答1:

breadcrumb.php---------------------->
$post = $posts[0];
;echo ' ';if (is_home()) {;echo ' You are here: ';bloginfo('name');;echo '
';}elseif(is_category()) {;echo ' You are here: Home > ';single_cat_title();;echo ' ';}elseif (is_search()) {;echo ' You are here: Home > ';echo $s;;echo ' ';}elseif(is_tag()) {;echo ' You are here: Home > ';single_tag_title();;echo ' ';}elseif (is_day()) {;echo ' You are here: Home >';the_time('Y, F jS');;echo ' ';}elseif (is_month()) {;echo ' You are here: Home >';the_time('Y, F');;echo ' ';}elseif (is_year()) {;echo ' You are here: Home >';the_time('Y');;echo ' ';}elseif (is_author()) {;echo ' You are here: Home >
';}elseif (is_single()) {;echo ' You are here: Home > ';the_category(', ') ;echo ' > ';the_title();;echo ' ';}elseif (is_page()) {;echo ' You are here: Home > ';the_title();;echo ' ';}elseif (is_404()) {;echo ' You are here: Home > 404 Error
';}elseif (isset($_GET['paged']) &&!empty($_GET['paged'])) {;echo ' You are here: Home > Archive
';};echo '';wp_reset_query();?>

footer.php----------------------------------->
echo '










';wp_footer();;echo '

';if (get_option('wpyou_customer')) {;echo '


Customer Service



';echo get_option('wpyou_customer');;echo '


Close



';};echo '

';?>

functions.php------------------------------------>

if ( function_exists('register_sidebars') )
{
register_sidebar(array(
'name'=>'侧边栏',
'before_title'=>'

',
'after_title'=>'

'
));
}
if ( function_exists( 'add_theme_support')) {add_theme_support( 'post-thumbnails');}
if ( function_exists('add_custom_background')) {add_custom_background();}
if ( function_exists('register_nav_menus')) {register_nav_menus(array('primary'=>'顶部菜单 设置'));}
if ( function_exists('register_nav_menus')) {register_nav_menus(array('footmenu'=>'底部菜单 设置'));}
function catch_post_image() {
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('//i',$post->post_content,$matches);
$first_img = $matches [1] [0];
if(empty($first_img)){
$site_url = bloginfo('template_url');
$first_img = "$site_url/images/no-thumb.jpg";
}
return $first_img;
}
function post_is_in_descendant_category( $cats,$_post = null )
{
foreach ( (array) $cats as $cat ) {
$descendants = get_term_children( (int) $cat,'category');
if ( $descendants &&in_category( $descendants,$_post ) )
return true;
}
return false;
}
function wpyou_strimwidth($str ,$start ,$width ,$trimmarker ){
$output = preg_replace('/^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$start.'}((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$width.'}).*/s','\1',$str);
return $output.$trimmarker;
}
function wpyou_pagenavi($range = 9){
global $paged,$wp_query;
if ( !$max_page ) {$max_page = $wp_query->max_num_pages;}
if($max_page >1){if(!$paged){$paged = 1;}
if($paged != 1){echo "First";}
previous_posts_link('Previous');
if($max_page >$range){
if($paged <$range){for($i = 1;$i <= ($range +1);$i++){echo "if($i==$paged)echo " class='current'";echo ">$i";}}
elseif($paged >= ($max_page -ceil(($range/2)))){
for($i = $max_page -$range;$i <= $max_page;$i++){echo "if($i==$paged)echo " class='current'";echo ">$i";}}
elseif($paged >= $range &&$paged <($max_page -ceil(($range/2)))){
for($i = ($paged -ceil($range/2));$i <= ($paged +ceil(($range/2)));$i++){echo "$i";}}}
else{for($i = 1;$i <= $max_page;$i++){echo "if($i==$paged)echo " class='current'";echo ">$i";}}
next_posts_link('Next');
if($paged != $max_page){echo "Last";}
}
}
function custom_comment($comment,$args,$depth) {
$GLOBALS['comment'] = $comment;;echo '



  • ';;echo '

    ';printf(__('%s'),get_comment_author_link()) ;echo ' ';edit_comment_link(__('(Edit)'),' ','') ;echo '

    ';printf(__('%1$s at %2$s'),get_comment_date('Y/m/d '),get_comment_time(' H:i:s')) ;echo '


    ';comment_reply_link(array_merge( $args,array('depth'=>$depth,'max_depth'=>$args['max_depth']))) ;echo '


    ';if ($comment->comment_approved == '0') : ;echo ' ';_e('Your comment is awaiting moderation.') ;echo '


    ';endif;;echo ' ';comment_text() ;echo '

    ';};echo '';
    $themename = "当前主题";
    $theme_dir=get_bloginfo('template_url');
    if ( is_admin() ){
    wp_enqueue_style("functions",$theme_dir."/options/css/wpyouthemeoption.css",false,"all");
    }
    function wpyou_add_option() {
    global $themename;
    add_menu_page($themename.'设置',''.$themename.'设置',10,'theme-setup','wpyou_options',get_bloginfo('template_url').'/options/images/icon_wpyou.png','3');
    add_submenu_page('theme-setup','主题设置','主题设置',10,'theme-setup','wpyou_options');
    add_action( 'admin_init','register_mysettings');
    }
    function register_mysettings() {
    register_setting( 'wpyou-settings','wpyou_cnsite_url');
    register_setting( 'wpyou-settings','wpyou_ensite_url');
    register_setting( 'wpyou-settings','wpyou_news_id');
    register_setting( 'wpyou-settings','wpyou_news_perpage');
    register_setting( 'wpyou-settings','wpyou_products_id');
    register_setting( 'wpyou-settings','wpyou_products_perpage');
    register_setting( 'wpyou-settings','wpyou_customer');
    register_setting( 'wpyou-settings','wpyou_aboutus');
    register_setting( 'wpyou-settings','wpyou_newposts_homepage');
    register_setting( 'wpyou-settings','wpyou_hotposts_homepage');
    register_setting( 'wpyou-settings','wpyou_if_seo');
    register_setting( 'wpyou-settings','wpyou_homepage_title');
    register_setting( 'wpyou-settings','wpyou_homepage_description');
    register_setting( 'wpyou-settings','wpyou_homepage_keywords');
    register_setting( 'wpyou-settings','wpyou_homepage_keywords_separater');
    register_setting( 'wpyou-settings','wpyou_if_friendlink');
    register_setting( 'wpyou-settings','wpyou_footer');
    }
    function wpyou_options() {
    global $themename;
    ;echo '



    WPTradeD外贸主题设置




    ';settings_fields('wpyou-settings');;echo '






    基本设置



    本主题共有2个自定义菜单,分别为: 顶部菜单、底部菜单