X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-admin
var
/
softaculous
/
sitepad
/
editor
/
site-admin
/
ðŸ“
..
📄
admin-ajax.php
(4.32 KB)
📄
admin-footer.php
(2.3 KB)
📄
admin-header.php
(13.74 KB)
📄
admin-post.php
(1.66 KB)
📄
admin.php
(11.1 KB)
📄
async-upload.php
(3.63 KB)
📄
comment.php
(10.66 KB)
📄
cookie-consent.php
(17.06 KB)
ðŸ“
css
📄
custom-background.php
(20.06 KB)
📄
custom-header.php
(46.28 KB)
📄
customize.php
(8.69 KB)
📄
edit-form-advanced.php
(30.63 KB)
📄
edit-form-blocks.php
(12.82 KB)
📄
edit-form-comment.php
(7.32 KB)
📄
edit-tag-form.php
(9.28 KB)
📄
edit-tags.php
(21.41 KB)
📄
edit.php
(21.76 KB)
📄
export.php
(10.69 KB)
📄
features.php
(3.22 KB)
ðŸ“
fonts
📄
google-analytics.php
(2.79 KB)
ðŸ“
images
📄
import.php
(7.28 KB)
ðŸ“
includes
📄
index.php
(12.53 KB)
ðŸ“
js
📄
load-scripts.php
(1.62 KB)
📄
load-styles.php
(2.27 KB)
📄
mailchimp.php
(4.51 KB)
📄
media-new.php
(3.12 KB)
📄
media-upload.php
(3.3 KB)
📄
media.php
(5.54 KB)
📄
menu-header.php
(7.63 KB)
📄
menu.php
(9.83 KB)
📄
nav-menus.php
(38.34 KB)
📄
options-discussion.php
(14.83 KB)
📄
options-general.php
(15.83 KB)
📄
options-head.php
(492 B)
📄
options-media.php
(6.05 KB)
📄
options-permalink.php
(9.34 KB)
📄
options-reading.php
(9.05 KB)
📄
options.php
(11.6 KB)
📄
plans.php
(9.21 KB)
📄
post-new.php
(3.56 KB)
📄
post.php
(10.65 KB)
📄
privacy.php
(6.81 KB)
📄
profile.php
(298 B)
📄
revision.php
(5.06 KB)
📄
seo.php
(3.98 KB)
📄
setup.php
(22.96 KB)
📄
sitemap.php
(7.88 KB)
📄
smtp-mail.php
(12.7 KB)
📄
term.php
(2.07 KB)
📄
themes.php
(20.72 KB)
📄
themes_setup.php
(18.26 KB)
📄
upload.php
(13.46 KB)
📄
user-edit.php
(21.36 KB)
📄
user-new.php
(21.56 KB)
📄
users.php
(18.62 KB)
Editing: features.php
<?php /** * Tools Administration Screen. * * @package SitePad * @subpackage Administration */ /** SitePad Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); } // Documentations $opts['documentor'] = ['t' => 'Enable Docs', 'e' => 'You can write documentations about your product(s) and API, if this feature is enabled']; // Kkart $opts['kkart-pro'] = ['t' => 'Enable Kkart E-Commerce', 'e' => 'If you would like to convert your site to a shopping cart, please enable this feature', 'comp' => function(){ $ret = array(); if(version_compare(PHP_VERSION, '7.2.0') < 0){ $ret['error'][] = __('PHP version must be at least 7.2.0 to enable Kkart. And your current PHP version: ') . PHP_VERSION . "\n"; } return $ret; }]; if(!empty($sitepad['dev'])){ // HR Monitor $opts['workviewer'] = ['t' => 'WorkViewer', 'e' => 'Tracker office work']; // Speedify $opts['speedify'] = ['t' => 'Speedify', 'e' => 'Cached pages and WebP support']; // Google Site Kit $opts['google-site-kit'] = ['t' => 'Google Site Kit', 'e' => 'Connect with Google Services']; // AMP $opts['amp'] = ['t' => 'AMP', 'e' => 'Accelerated Mobile Pages (by Google)']; } $message = array(); if(isset($_REQUEST['submit'])){ // Check nonce check_admin_referer( 'sitepad-options' ); $success = false; foreach($opts as $v => $r){ $enable = get_option('enable_'.$v); $new_enable = isset($_POST['enable_'.$v]) ? (bool)$_POST['enable_'.$v] : false; if( !empty($new_enable) && isset($r['comp']) && is_callable($r['comp']) ){ $ret = $r['comp'](); if( !empty($ret) && isset($ret['error']) ){ foreach($ret['error'] as $note){ $message[] = '<div id="message" class="error notice is-dismissible"><p>'.$note.'</p></div>'; } continue; } } $success = true; update_option('enable_'.$v, $new_enable); if(!empty($new_enable) && empty($enable)){ activate_plugin($v.'/'.$v.'.php'); } } if($success){ $message[] = '<div id="message" class="updated notice is-dismissible"><p>'.__('Your preferences have been updated successfully !').'</p></div>'; set_transient('features_message', $message ); wp_safe_redirect(admin_url('features.php')); exit; } } $transient = get_transient('features_message'); if(!empty($transient)){ $message = $transient; set_transient('features_message', array() ); } $title = __( 'SitePad Feature Management' ); include( ABSPATH . 'site-admin/admin-header.php' ); echo '<div class="wrap" style="margin: 0px;"> <h1>'.$title.'</h1> <hr />'; foreach($message as $msg){ echo $msg; } ?> <form method="post" action=""> <?php wp_nonce_field('sitepad-options') ?> <table class="form-table"> <?php foreach($opts as $k => $v){ echo '<tr> <th scope="row"><label for="full-width-blog">'.$v['t'].'</label></th> <td> <input name="enable_'.$k.'" type="checkbox" id="enable_documentor" value="1" '; echo checked('1', get_option('enable_'.$k)); echo ' /> <p class="description">'. _( $v['e'] ).'</p><br/> </td> </tr>'; } ?> </table> <?php submit_button(); ?> </form> <?php include( ABSPATH . 'site-admin/admin-footer.php' );
Upload File
Create Folder