Submit
Path:
~
/
home
/
getwphos
/
public_html
/
deerguard
/
wp-content
/
plugins
/
garland-addon
/
maintenance
/
File Content:
maintenance.php
<?php /** * Template maintenance */ // Activate Maintenance or Coming Soon Mode add_action( 'template_redirect', 'garland_activate_maintenance_mode' ); function garland_activate_maintenance_mode(){ $maintenance_mode = Garland_Theme_Option::garland_options('maintenance-opt'); $maintenance_mode = $maintenance_mode ? true : false; if( $maintenance_mode && ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) ): $maintenance_type = Garland_Theme_Option::garland_options('maintenance-type'); $maintenance_type = $maintenance_type ? $maintenance_type : "cs"; if( $maintenance_type == 'cs' ){ require_once( GARLAND_ADDON_DIR . 'maintenance/templates/coming-soon.php' ); die; }elseif( $maintenance_type == 'mn' ){ require_once( GARLAND_ADDON_DIR . 'maintenance/templates/maintenance-mode.php' ); die; }elseif( $maintenance_type == 'cus' ){ $current_page_id = get_the_ID(); $maintenance_custom = Garland_Theme_Option::garland_options('maintenance-custom'); $maintenance_page_url = $maintenance_custom ? get_permalink( $maintenance_custom ) : ''; if( $current_page_id != $maintenance_custom ){ wp_redirect( $maintenance_page_url ); } }else{ die; } endif; // Maintenance Mode Check }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
templates
---
0755
footer.php
190 bytes
0644
header.php
1374 bytes
0644
maintenance.php
1322 bytes
0644
N4ST4R_ID | Naxtarrr