文件操作 - permission-denied.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/templates/permission-denied.php
编辑文件内容
<?php /** * Display Permission denied * * @package Tutor\Templates * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $is_legacy_learning_mode = tutor_utils()->is_legacy_learning_mode(); tutor_utils()->tutor_custom_header(); ?> <?php if ( $is_legacy_learning_mode ) : ?> <div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied"> <div class="tutor-container"> <div class="tutor-row tutor-justify-center"> <div class="tutor-col-md-8 tutor-col-lg-6 tutor-col-xl-5"> <div class="tutor-card"> <div class="tutor-px-40 tutor-py-64 tutor-text-center"> <div class="tutor-d-flex tutor-justify-center"> <img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>"> </div> <div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mt-n32 tutor-mb-12"><?php echo isset( $message ) ? esc_html( $message ) : esc_html__( 'You don\'t have permission to access this page', 'tutor' ); ?></div> <div class="tutor-fs-6 tutor-color-muted tutor-mb-36"><?php echo isset( $description ) ? esc_html( $description ) : esc_html__( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?></div> <?php if ( ! isset( $button ) ) { $button = array( 'url' => get_home_url(), 'text' => 'Homepage', ); } ?> <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary"> <?php echo esc_html( $button['text'] ); ?> </a> </div> </div> </div> </div> </div> </div> <?php else : ?> <div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied tutor-my-8 tutor-ml-auto tutor-mr-auto" style="max-width: 550px;"> <div class="tutor-card tutor-text-center tutor-px-10 tutor-py-14 tutor-m-5"> <div class="tutor-flex tutor-justify-center"> <img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>"> </div> <div class="tutor-h4"><?php echo isset( $message ) ? esc_html( $message ) : esc_html__( 'You don\'t have permission to access this page', 'tutor' ); ?></div> <div class="tutor-text-medium tutor-text-muted tutor-mt-5"><?php echo isset( $description ) ? esc_html( $description ) : esc_html__( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?></div> <?php if ( ! isset( $button ) ) { $button = array( 'url' => get_home_url(), 'text' => 'Homepage', ); } ?> <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary tutor-mt-10"> <?php echo esc_html( $button['text'] ); ?> </a> </div> </div> <?php endif ?> <?php tutor_utils()->tutor_custom_footer();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件