文件操作 - class-gdpr-view.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kplay/public_html/wp-content/plugins/gdpr-cookie-compliance/class-gdpr-view.php
编辑文件内容
<?php /** * GDPR_View File Doc Comment * * @category GDPR_View * @package gdpr-cookie-compliance * @author Moove Agency */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly /** * GDPR_View Class Doc Comment * * @category Class * @package GDPR_View * @author Moove Agency */ class GDPR_View { /** * Load and update view * * Parameters: * * @param string $view // the view to load, dot used as directory separator, no file extension given. * @param mixed $content // The data to display in the view (could be anything, even an object). */ public static function load( $view, $content ) { $view_file_origin = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'views'; $view_name = str_replace( '.', DIRECTORY_SEPARATOR, $view ) . '.php'; if ( file_exists( $view_file_origin . DIRECTORY_SEPARATOR . $view_name ) ) : ob_start(); include $view_file_origin . DIRECTORY_SEPARATOR . $view_name; return ob_get_clean(); endif; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件