Файловый менеджер - Редактировать - /home/lakoyani/lakoyani.com.fj/toolbox.tar
Назад
beta_test.tpl.php 0000644 00000006302 14711306414 0010027 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; // Existing public version list $v_list = array( '4.4', '4.3', '4.2', '4.1', ); ?> <?php $this->form_action( Router::ACTION_DEBUG2, Debug2::TYPE_BETA_TEST ); ?> <h3 class="litespeed-title"> <?php echo __( 'Try GitHub Version', 'litespeed-cache' ); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#beta-test-tab' ); ?> </h3> <div class="litespeed-desc"><?php echo __( 'Use this section to switch plugin versions. To beta test a GitHub commit, enter the commit URL in the field below.', 'litespeed-cache' ); ?></div> <div class="litespeed-desc"><?php echo __( 'Example', 'litespeed-cache' ); ?>: <code>https://github.com/litespeedtech/lscache_wp/commit/e9cb446dfb66d133264d3ebec0535aaed5c932c0</code></div> <input type="text" name="<?php echo Debug2::BETA_TEST_URL; ?>" class="litespeed-input-long" id='litespeed-beta-test'> <p><a href="javascript:;" class="button litespeed-btn-success" onclick="document.getElementById('litespeed-beta-test').value='dev';"><?php echo __( 'Use latest GitHub Dev commit', 'litespeed-cache' ); ?></a> <code>dev</code></p> <p><a href="javascript:;" class="button litespeed-btn-success" onclick="document.getElementById('litespeed-beta-test').value='master';"><?php echo __( 'Use latest GitHub Master commit', 'litespeed-cache' ); ?></a> <code>master</code></p> <p><a href="javascript:;" class="button litespeed-btn-success" onclick="document.getElementById('litespeed-beta-test').value='latest';"><?php echo __( 'Use latest WordPress release version', 'litespeed-cache' ); ?></a> <code><?php echo Debug2::BETA_TEST_URL_WP; ?></code> <?php echo __( 'OR', 'litespeed-cache' ) ?> <code>latest</code></p> <p> <?php foreach ( $v_list as $v ) : ?> <a href="javascript:;" class="button litespeed-btn-success" onclick="document.getElementById('litespeed-beta-test').value='<?php echo $v; ?>';"><?php echo $v; ?></a> <?php endforeach; ?> <a href="javascript:;" class="button litespeed-btn-danger" onclick="document.getElementById('litespeed-beta-test').value='3.6.4';">3.6.4</a> <span class="litespeed-danger"> 🚨 <?php echo __( 'Downgrade not recommended. May cause fatal error due to refactored code.', 'litespeed-cache' ); ?> </span> </p> <div class="litespeed-desc"><?php echo sprintf( __( 'Press the %s button to use the most recent GitHub commit. Master is for release candidate & Dev is for experimental testing.', 'litespeed-cache' ), '<code>' . __( 'Use latest GitHub Dev/Master commit', 'litespeed-cache' ) . '</code>' ); ?></div> <div class="litespeed-desc"><?php echo sprintf( __( 'Press the %s button to stop beta testing and go back to the current release from the WordPress Plugin Directory.', 'litespeed-cache' ), '<code>' . __( 'Use latest WordPress release version', 'litespeed-cache' ) . '</code>' ); ?></div> <p class="litespeed-danger"> 🚨 <?php echo sprintf( __( 'In order to avoid an upgrade error, you must be using %1$s or later before you can upgrade to %2$s versions.', 'litespeed-cache' ), '<code>v3.6.4</code>', '<code>dev/master/v4+</code>' ); ?> </p> <button type="submit" class="button button-primary"><?php echo __('Upgrade', 'litespeed-cache'); ?></button> </form> edit_htaccess.tpl.php 0000644 00000007650 14711306415 0010667 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $readonly = Htaccess::cls()->writable() ? '' : 'readonly'; $content = null; try { $content = Htaccess::cls()->htaccess_read(); } catch( \Exception $e ) { echo '<div class="notice notice-error is-dismissible"><p>'. $e->getMessage() . '</p></div>'; } $htaccess_path = Htaccess::get_frontend_htaccess(); // Check if there is `ExpiresDefault` in .htaccess if ( defined( 'LITESPEED_ON' ) ) { if ( $content && stripos( $content, "\nExpiresDefault" ) !== false ) { $is_dismissed = GUI::get_option( self::DB_DISMISS_MSG ); if ( $is_dismissed !== self::RULECONFLICT_DISMISSED ) { // Need to add a notice for browser cache compatibility if ( $is_dismissed !== self::RULECONFLICT_ON ) { GUI::update_option( self::DB_DISMISS_MSG, self::RULECONFLICT_ON ); } require_once LSCWP_DIR . 'tpl/inc/show_rule_conflict.php'; } } // don't dismiss the msg automatically // elseif ( $is_dismissed === Cache_Admin_Display::RULECONFLICT_ON ) { // update_option( self::DISMISS_MSG, Cache_Admin_Display::RULECONFLICT_DISMISSED ); // } } ?> <h3 class="litespeed-title"> <?php echo __('LiteSpeed Cache Edit .htaccess', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#edit-htaccess-tab' ); ?> </h3> <div class="litespeed-callout notice notice-error inline"> <h4>🚨 <?php echo __('This page is meant for advanced users.', 'litespeed-cache'); ?></h4> <p> <?php echo __('Any changes made to the .htaccess file may break the site.', 'litespeed-cache'); ?> <?php echo __('Please consult the host/server admin before making any changes.', 'litespeed-cache'); ?> </p> </div> <?php $this->form_action( $this->_is_network_admin ? Router::ACTION_SAVE_SETTINGS_NETWORK : false ); ?> <h3 class="litespeed-title-short"> <?php echo __( '.htaccess Path Settings', 'litespeed-cache' ); ?> </h3> <table class="wp-list-table striped litespeed-table"><tbody> <tr> <th> <?php $id = Base::O_MISC_HTACCESS_FRONT; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-long' ); ?> <div class="litespeed-desc"> <?php echo __( 'Specify the frontend .htaccess path.', 'litespeed-cache' ); ?> <?php echo __( 'Leave empty to auto detect', 'litespeed-cache' ); ?>: <code><?php echo Htaccess::get_frontend_htaccess( true ); ?></code> <?php $this->_validate_htaccess_path( $id ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HTACCESS_BACK; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-long' ); ?> <div class="litespeed-desc"> <?php echo __( 'Specify the backend .htaccess path.', 'litespeed-cache' ); ?> <?php echo __( 'Leave empty to auto detect', 'litespeed-cache' ); ?>: <code><?php echo Htaccess::get_backend_htaccess( true ); ?></code> <?php $this->_validate_htaccess_path( $id ); ?> </div> </td> </tr> </tbody></table> <?php $this->form_end( $this->_is_network_admin ); ?> <?php if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) : ?> <div class="litespeed-h3"><?php echo __('File editing is disabled in configuration.', 'litespeed-cache'); ?></div> <?php elseif( $content !== null ) : ?> <?php $this->form_action( Router::ACTION_SAVE_HTACCESS ); ?> <h3 class="litespeed-title"><?php echo sprintf(__('Current %s Contents', 'litespeed-cache'), '.htaccess'); ?></h3> <p><span class="attention"><?php echo sprintf(__('DO NOT EDIT ANYTHING WITHIN %s', 'litespeed-cache'), '<code>' . Htaccess::LS_MODULE_DONOTEDIT . '</code>' ); ?></span></p> <h4><?php echo $htaccess_path; ?></h4> <textarea name="<?php echo Htaccess::EDITOR_TEXTAREA_NAME; ?>" wrap="off" rows="50" class="large-text" <?php echo $readonly; ?> ><?php echo esc_textarea($content); ?></textarea> <p><button type="submit" class="button button-primary"><?php echo __('Save .htaccess', 'litespeed-cache'); ?></button></p> </form> <?php endif; ?> heartbeat.tpl.php 0000644 00000007576 14711306415 0010033 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $this->form_action(); ?> <h3 class="litespeed-title-short"> <?php echo __( 'Heartbeat Control', 'litespeed-cache' ); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#heartbeat-tab' ); ?> </h3> <div class="litespeed-callout notice notice-warning inline"> <h4><?php echo __( 'NOTICE:', 'litespeed-cache' ); ?></h4> <p><?php echo __( 'Disable WordPress interval heartbeat to reduce server load.', 'litespeed-cache' ); ?> <span class="litespeed-warning"> 🚨 <?php echo __( 'Disabling this may cause WordPress tasks triggered by AJAX to stop working.', 'litespeed-cache' ); ?> </span></p> </div> <table class="wp-list-table striped litespeed-table"><tbody> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_FRONT; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Turn ON to control heartbeat on frontend.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_FRONT_TTL; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-short'); ?> <?php $this->readable_seconds(); ?> <div class="litespeed-desc"> <?php echo sprintf( __( 'Specify the %s heartbeat interval in seconds.', 'litespeed-cache' ), 'frontend' ); ?> <?php echo sprintf( __( 'WordPress valid interval is %s seconds.', 'litespeed-cache' ), '<code>15</code> - <code>120</code>' ); ?><br /> <?php echo sprintf( __( 'Set to %1$s to forbid heartbeat on %2$s.', 'litespeed-cache' ), '<code>0</code>', 'frontend' ); ?><br /> <?php $this->recommended( $id ); ?> <?php $this->_validate_ttl( $id, 15, 120, true ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_BACK; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Turn ON to control heartbeat on backend.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_BACK_TTL; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-short'); ?> <?php $this->readable_seconds(); ?> <div class="litespeed-desc"> <?php echo sprintf( __( 'Specify the %s heartbeat interval in seconds.', 'litespeed-cache' ), 'backend' ); ?> <?php echo sprintf( __( 'WordPress valid interval is %s seconds', 'litespeed-cache' ), '<code>15</code> ~ <code>120</code>' ); ?><br /> <?php echo sprintf( __( 'Set to %1$s to forbid heartbeat on %2$s.', 'litespeed-cache' ), '<code>0</code>', 'backend' ); ?><br /> <?php $this->recommended( $id ); ?> <?php $this->_validate_ttl( $id, 15, 120, true ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_EDITOR; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Turn ON to control heartbeat in backend editor.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_MISC_HEARTBEAT_EDITOR_TTL; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-short'); ?> <?php $this->readable_seconds(); ?> <div class="litespeed-desc"> <?php echo sprintf( __( 'Specify the %s heartbeat interval in seconds.', 'litespeed-cache' ), 'backend editor' ); ?> <?php echo sprintf( __( 'WordPress valid interval is %s seconds', 'litespeed-cache' ), '<code>15</code> ~ <code>120</code>' ); ?><br /> <?php echo sprintf( __( 'Set to %1$s to forbid heartbeat on %2$s.', 'litespeed-cache' ), '<code>0</code>', 'frontend' ); ?><br /> <?php $this->recommended( $id ); ?> <?php $this->_validate_ttl( $id, 15, 120, true ); ?> </div> </td> </tr> </tbody></table> <?php $this->form_end(); ?> purge.tpl.php 0000644 00000023721 14711306416 0007205 0 ustar 00 <?php namespace LiteSpeed ; defined( 'WPINC' ) || exit ; $_panels = array( array( 'title' => __( 'Purge Front Page', 'litespeed-cache' ), 'desc' => __( 'This will Purge Front Page only', 'litespeed-cache' ), 'icon' => 'purge-front', 'append_url' => Purge::TYPE_PURGE_FRONTPAGE, ), array( 'title' => __( 'Purge Pages', 'litespeed-cache' ), 'desc' => __( 'This will Purge Pages only', 'litespeed-cache' ), 'icon' => 'purge-pages', 'append_url' => Purge::TYPE_PURGE_PAGES, ), array( 'title' => sprintf( __( 'Purge %s Error', 'litespeed-cache' ), '403' ), 'desc' => sprintf( __( 'Purge %s error pages', 'litespeed-cache' ), '403' ), 'icon' => 'purge-403', 'append_url' => Purge::TYPE_PURGE_ERROR . '403', ), array( 'title' => sprintf( __( 'Purge %s Error', 'litespeed-cache' ), '404' ), 'desc' => sprintf( __( 'Purge %s error pages', 'litespeed-cache' ), '404' ), 'icon' => 'purge-404', 'append_url' => Purge::TYPE_PURGE_ERROR . '404', ), array( 'title' => sprintf( __( 'Purge %s Error', 'litespeed-cache' ), '500' ), 'desc' => sprintf( __( 'Purge %s error pages', 'litespeed-cache' ), '500' ), 'icon' => 'purge-500', 'append_url' => Purge::TYPE_PURGE_ERROR . '500', ), array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - LSCache', 'desc' => __( 'Purge the LiteSpeed cache entries created by this plugin', 'litespeed-cache' ), 'icon' => 'purge-all', 'append_url' => Purge::TYPE_PURGE_ALL_LSCACHE, ), array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'CSS/JS Cache', 'litespeed-cache' ), 'desc' => __( 'This will purge all minified/combined CSS/JS entries only', 'litespeed-cache' ), 'icon' => 'purge-cssjs', 'append_url' => Purge::TYPE_PURGE_ALL_CSSJS, ), ) ; if ( defined( 'LSCWP_OBJECT_CACHE' ) ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'Object Cache', 'litespeed-cache' ), 'desc' => __( 'Purge all the object caches', 'litespeed-cache' ), 'icon' => 'purge-object', 'append_url' => Purge::TYPE_PURGE_ALL_OBJECT, ) ; } if ( Router::opcache_enabled() ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'Opcode Cache', 'litespeed-cache' ), 'desc' => __( 'Reset the entire opcode cache', 'litespeed-cache' ), 'icon' => 'purge-opcache', 'append_url' => Purge::TYPE_PURGE_ALL_OPCACHE, ) ; } if ( $this->has_cache_folder( 'ccss' ) ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'Critical CSS', 'litespeed-cache' ), 'desc' => __( 'This will delete all generated critical CSS files', 'litespeed-cache' ), 'icon' => 'purge-cssjs', 'append_url' => Purge::TYPE_PURGE_ALL_CCSS, ) ; } if ( $this->has_cache_folder( 'ucss' ) ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'Unique CSS', 'litespeed-cache' ), 'desc' => __( 'This will delete all generated unique CSS files', 'litespeed-cache' ), 'icon' => 'purge-cssjs', 'append_url' => Purge::TYPE_PURGE_ALL_UCSS, ) ; } if ( $this->has_cache_folder( 'lqip' ) ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'LQIP Cache', 'litespeed-cache' ), 'desc' => __( 'This will delete all generated image LQIP placeholder files', 'litespeed-cache' ), 'icon' => 'purge-front', 'append_url' => Purge::TYPE_PURGE_ALL_LQIP, ) ; } if ( $this->has_cache_folder( 'avatar' ) ) { $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ) . ' - ' . __( 'Gravatar Cache', 'litespeed-cache' ), 'desc' => __( 'This will delete all cached Gravatar files', 'litespeed-cache' ), 'icon' => 'purge-cssjs', 'append_url' => Purge::TYPE_PURGE_ALL_AVATAR, ) ; } $_panels[] = array( 'title' => __( 'Purge All', 'litespeed-cache' ), 'desc' => __( 'Purge the cache entries created by this plugin except for Critical CSS & LQIP caches', 'litespeed-cache' ), 'icon' => 'purge-all', 'title_cls' => 'litespeed-warning', 'newline' => true, 'append_url' => Purge::TYPE_PURGE_ALL, ) ; if ( ! is_multisite() || is_network_admin() ) { $_panels[] = array( 'title' => __( 'Empty Entire Cache', 'litespeed-cache' ), 'desc' => __( 'Clears all cache entries related to this site, <i>including other web applications</i>.', 'litespeed-cache' ) . ' <b>' . __('This action should only be used if things are cached incorrectly.', 'litespeed-cache') . '</b>', 'tag' => Core::ACTION_PURGE_EMPTYCACHE, 'icon' => 'empty-cache', 'title_cls' => 'litespeed-danger', 'cfm' => esc_html( __( 'This will clear EVERYTHING inside the cache.', 'litespeed-cache' ) ) . ' ' . esc_html( __( 'This may cause heavy load on the server.', 'litespeed-cache' ) ) . ' ' . esc_html( __( 'If only the WordPress site should be purged, use Purge All.', 'litespeed-cache' ) ) ) ; } ?> <?php include_once LSCWP_DIR . "tpl/inc/check_cache_disabled.php" ; ?> <h3 class="litespeed-title"> <?php echo __('Purge', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#purge-tab' ); ?> </h3> <div class="litespeed-panel-wrapper litespeed-cards-wrapper"> <?php foreach ( $_panels as $v ): ?> <?php $tag = ! empty( $v[ 'tag' ] ) ? $v[ 'tag' ] : Router::ACTION_PURGE ; ?> <?php $append_url = ! empty( $v[ 'append_url' ] ) ? $v[ 'append_url' ] : false ; ?> <?php if ( ! empty( $v[ 'newline' ] ) ) : ?> <div class='litespeed-col-br'></div> <?php endif; ?> <a class="litespeed-panel postbox" href="<?php echo Utility::build_url( $tag, $append_url ) ; ?>" <?php if ( ! empty( $v[ 'cfm' ] ) ) echo 'data-litespeed-cfm="' . $v[ 'cfm' ] . '"' ; ?> > <section class="litespeed-panel-wrapper-icon"> <span class="litespeed-panel-icon-<?php echo $v[ 'icon' ] ; ?>"></span> </section> <section class="litespeed-panel-content"> <div class="litespeed-h3 <?php if ( ! empty( $v[ 'title_cls' ] ) ) echo $v[ 'title_cls' ] ; ?>"> <?php echo $v[ 'title' ] ; ?> </div> <span class="litespeed-panel-para"><?php echo $v[ 'desc' ] ; ?></span> </section> </a> <?php endforeach; ?> </div> <?php if (!is_multisite() || !is_network_admin()): ?> <h3 class="litespeed-title"><?php echo __('Purge By...', 'litespeed-cache'); ?></h3> <p class="litespeed-description"> <?php echo __('Select below for "Purge by" options.', 'litespeed-cache'); ?> <?php Doc::one_per_line() ; ?> </p> <?php $purgeby_option = false; $_option_field = Admin_Display::PURGEBYOPT_SELECT; if(!empty($_REQUEST[$_option_field])){ $purgeby_option = $_REQUEST[$_option_field]; } if( !in_array($purgeby_option, array( Admin_Display::PURGEBY_CAT, Admin_Display::PURGEBY_PID, Admin_Display::PURGEBY_TAG, Admin_Display::PURGEBY_URL, )) ) { $purgeby_option = Admin_Display::PURGEBY_CAT; } ?> <?php $this->form_action( Core::ACTION_PURGE_BY ) ; ?> <div class="litespeed-row"> <div class="litespeed-switch litespeed-mini litespeed-right20 litespeed-margin-bottom10"> <?php $val = Admin_Display::PURGEBY_CAT;?> <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_category" value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?> /> <label for="purgeby_option_category"><?php echo __('Category', 'litespeed-cache'); ?></label> <?php $val = Admin_Display::PURGEBY_PID;?> <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_postid" value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?> /> <label for="purgeby_option_postid"><?php echo __('Post ID', 'litespeed-cache'); ?></label> <?php $val = Admin_Display::PURGEBY_TAG;?> <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_tag" value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?> /> <label for="purgeby_option_tag"><?php echo __('Tag', 'litespeed-cache'); ?></label> <?php $val = Admin_Display::PURGEBY_URL;?> <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_url" value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?> /> <label for="purgeby_option_url"><?php echo __('URL', 'litespeed-cache'); ?></label> </div> <div class="litespeed-cache-purgeby-text litespeed-desc"> <div class="<?php if($purgeby_option != Admin_Display::PURGEBY_CAT) echo 'litespeed-hide'; ?>" data-purgeby="<?php echo Admin_Display::PURGEBY_CAT; ?>"> <?php echo sprintf(__('Purge pages by category name - e.g. %2$s should be used for the URL %1$s.', "litespeed-cache"), '<code>http://example.com/category/category-name/</code>', '<code>category-name</code>'); ?> </div> <div class="<?php if($purgeby_option != Admin_Display::PURGEBY_PID) echo 'litespeed-hide'; ?>" data-purgeby="<?php echo Admin_Display::PURGEBY_PID; ?>"> <?php echo __("Purge pages by post ID.", "litespeed-cache"); ?> </div> <div class="<?php if($purgeby_option != Admin_Display::PURGEBY_TAG) echo 'litespeed-hide'; ?>" data-purgeby="<?php echo Admin_Display::PURGEBY_TAG; ?>"> <?php echo sprintf(__('Purge pages by tag name - e.g. %2$s should be used for the URL %1$s.', "litespeed-cache"), '<code>http://example.com/tag/tag-name/</code>', '<code>tag-name</code>'); ?> </div> <div class="<?php if($purgeby_option != Admin_Display::PURGEBY_URL) echo 'litespeed-hide'; ?>" data-purgeby="<?php echo Admin_Display::PURGEBY_URL; ?>"> <?php echo __('Purge pages by relative or full URL.', 'litespeed-cache'); ?> <?php echo sprintf(__('e.g. Use %s or %s.', 'litespeed-cache'), '<code>/2016/02/24/hello-world/</code>', '<code>http://www.myexamplesite.com/2016/02/24/hello-world/</code>'); ?> </div> </div> </div> <p> <textarea name="<?php echo Admin_Display::PURGEBYOPT_LIST; ?>" rows="5" class="litespeed-textarea"></textarea> </p> <p> <button type="submit" class="button button-primary"><?php echo __('Purge List', 'litespeed-cache'); ?></button> </p> </form> <?php endif; ?> log_viewer.tpl.php 0000644 00000001611 14711306417 0010220 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; ?> <h3 class="litespeed-title"> <?php echo __('Debug Log', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#log-view-tab' ); ?> <a href="<?php echo Utility::build_url( Router::ACTION_DEBUG2, Debug2::TYPE_CLEAR_LOG ); ?>" class="button button-primary" litespeed-accesskey='D'> <?php echo __( 'Clear Log', 'litespeed-cache' ); ?> </a> </h3> <?php $file = LSCWP_CONTENT_DIR . '/debug.log'; $lines = File::count_lines( $file ); $start = $lines > 1000 ? $lines - 1000 : 0; $logs = File::read( $file, $start ); $logs = $logs ? implode( "\n", $logs ) : ''; echo nl2br( htmlspecialchars( $logs ) ); ?> <a href="<?php echo Utility::build_url( Router::ACTION_DEBUG2, Debug2::TYPE_CLEAR_LOG ); ?>" class="button button-primary"> <?php echo __( 'Clear Log', 'litespeed-cache' ); ?> </a> settings-debug.tpl.php 0000644 00000010270 14711306417 0011003 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $this->form_action( $this->_is_network_admin ? Router::ACTION_SAVE_SETTINGS_NETWORK : false ); ?> <h3 class="litespeed-title-short"> <?php echo __('Debug Settings', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#debug-settings-tab' ); ?> </h3> <table class="wp-list-table striped litespeed-table"><tbody> <tr> <th> <?php $id = Base::O_DEBUG_DISABLE_ALL; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'This will disable LSCache and all optimization features for debug purpose.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id, array( __( 'OFF', 'litespeed-cache' ), __( 'ON', 'litespeed-cache' ), __( 'Admin IP Only', 'litespeed-cache' ) ) ); ?> <div class="litespeed-desc"> <?php echo __( 'Outputs to WordPress debug log.', 'litespeed-cache' ); ?> <?php echo __( 'To prevent filling up the disk, this setting should be OFF when everything is working.', 'litespeed-cache' ); ?> <?php echo __( 'The Admin IP option will only output log messages on requests from admin IPs.', 'litespeed-cache' ); ?> <?php echo sprintf( __( 'The logs will be output to %s.', 'litespeed-cache' ), '<code>wp-content/debug.log</code>' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_IPS; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_textarea( $id, 50 ); ?> <div class="litespeed-desc"> <?php echo __( 'Allows listed IPs (one per line) to perform certain actions from their browsers.', 'litespeed-cache' ); ?> <?php echo __( 'Your IP', 'litespeed-cache' ); ?>: <code><?php echo Router::get_ip(); ?></code> <?php $this->_validate_ip( $id ); ?> <br /> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/admin/#admin-ip-commands', __( 'More information about the available commands can be found here.', 'litespeed-cache' ) ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_LEVEL; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id, array( __( 'Basic', 'litespeed-cache' ), __( 'Advanced', 'litespeed-cache' ) ) ); ?> <div class="litespeed-desc"> <?php echo __( 'Advanced level will log more details.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_FILESIZE; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_input( $id, 'litespeed-input-short' ); ?> <?php echo __( 'MB', 'litespeed-cache' ); ?> <div class="litespeed-desc"> <?php echo __( 'Specify the maximum size of the log file.', 'litespeed-cache' ); ?> <?php $this->recommended( $id ); ?> <?php $this->_validate_ttl( $id, 3, 3000 ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_COOKIE; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Log requested cookie values.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_COLLAPS_QS; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Shorten query strings in the debug log to improve readability.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_INC; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_textarea( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Only log listed pages.', 'litespeed-cache' ); ?> <?php $this->_uri_usage_example(); ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_DEBUG_EXC; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_textarea( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Prevent any debug log of listed pages.', 'litespeed-cache' ); ?> <?php $this->_uri_usage_example(); ?> </div> </td> </tr> </tbody></table> <?php $this->form_end(); entry.tpl.php 0000644 00000003222 14711306417 0007217 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $menu_list = array( 'purge' => __( 'Purge', 'litespeed-cache' ), ); if ( ! $this->_is_network_admin ) { $menu_list[ 'import_export' ] = __( 'Import / Export', 'litespeed-cache' ); } if ( ! $this->_is_multisite || $this->_is_network_admin ) { $menu_list[ 'edit_htaccess' ] = __( 'Edit .htaccess', 'litespeed-cache' ); } if ( ! $this->_is_network_admin ) { $menu_list[ 'heartbeat' ] = __( 'Heartbeat', 'litespeed-cache' ); // todo: will add this to network level later $menu_list[ 'report' ] = __( 'Report', 'litespeed-cache' ); } if ( ! $this->_is_multisite || $this->_is_network_admin ) { $menu_list[ 'settings-debug' ] = __( 'Debug Settings', 'litespeed-cache' ); $menu_list[ 'log_viewer' ] = __( 'Log View', 'litespeed-cache' ); $menu_list[ 'beta_test' ] = __( 'Beta Test', 'litespeed-cache' ); } ?> <div class="wrap"> <h1 class="litespeed-h1"> <?php echo __( 'LiteSpeed Cache Toolbox', 'litespeed-cache' ); ?> </h1> <span class="litespeed-desc"> v<?php echo Core::VER; ?> </span> <hr class="wp-header-end"> </div> <div class="litespeed-wrap"> <h2 class="litespeed-header nav-tab-wrapper"> <?php $i = 1; foreach ($menu_list as $tab => $val){ $accesskey = $i <= 9 ? "litespeed-accesskey='$i'" : ''; echo "<a class='litespeed-tab nav-tab' href='#$tab' data-litespeed-tab='$tab' $accesskey>$val</a>"; $i ++; } ?> </h2> <div class="litespeed-body"> <?php // include all tpl for faster UE foreach ($menu_list as $tab => $val) { echo "<div data-litespeed-layout='$tab'>"; require LSCWP_DIR . "tpl/toolbox/$tab.tpl.php"; echo "</div>"; } ?> </div> </div> report.tpl.php 0000644 00000011565 14711306420 0007374 0 ustar 00 <?php namespace LiteSpeed ; defined( 'WPINC' ) || exit ; $_report = Report::cls() ; $report = $_report->generate_environment_report(); $env_ref = Report::get_summary() ; // Detect password less plugin $link = ''; $has_pswdless_plugin = false; if ( function_exists( 'dologin_gen_link' ) ) { $has_pswdless_plugin = true; if ( ! empty( $_GET[ 'dologin_gen_link' ] ) ) { unset( $_GET[ 'dologin_gen_link' ] ); $link = dologin_gen_link( 'Litespeed Report' ); ?> <script>window.history.pushState( 'remove_gen_link', document.title, window.location.href.replace( '&dologin_gen_link=1', '' ) );</script> <?php } } $install_link = Utility::build_url( Router::ACTION_ACTIVATION, Activation::TYPE_INSTALL_3RD, false, null, array( 'plugin' => 'dologin' ) ); ?> <?php if ( ! $has_pswdless_plugin ) : ?> <div class="litespeed-callout notice notice-warning inline"> <h4><?php echo __( 'NOTICE:', 'litespeed-cache' ); ?></h4> <p> <?php echo sprintf( __( 'To generate a passwordless link for LiteSpeed Support Team access, you must install %s.', 'litespeed-cache' ), '<a href="https://wordpress.org/plugins/dologin/" target="_blank">DoLogin Security</a>' ); ?> </p> <p> <a href="<?php echo $install_link; ?>" class="button litespeed-btn litespeed-right20"><?php echo __( 'Install DoLogin Security', 'litespeed-cache' ); ?></a> <a href="plugin-install.php?s=dologin+security&tab=search&type=term" target="_blank"><?php echo __( 'Go to plugins list', 'litespeed-cache' ); ?></a> </p> </div> <?php endif; ?> <h3 class="litespeed-title"> <?php echo __('LiteSpeed Report', 'litespeed-cache') ; ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#report-tab' ); ?> </h3> <p><?php echo __('Report number', 'litespeed-cache') ; ?>: <b><?php echo ! empty( $env_ref[ 'num' ] ) ? $env_ref[ 'num' ] : '-' ; ?></b></p> <p><?php echo __('Report date', 'litespeed-cache') ; ?>: <b><?php echo ! empty( $env_ref[ 'dateline' ] ) ? date( 'm/d/Y H:i:s', $env_ref[ 'dateline' ] ) : '-' ; ?></b></p> <p class="litespeed-desc"> <?php echo __( 'The environment report contains detailed information about the WordPress configuration.', 'litespeed-cache' ); ?> <br /> <?php echo __('If you run into any issues, please refer to the report number in your support message.', 'litespeed-cache'); ?> </p> <form action="<?php echo Utility::build_url( Router::ACTION_REPORT, Report::TYPE_SEND_REPORT ); ?>" method="post" class="litespeed-relative"> <table class="wp-list-table striped litespeed-table"><tbody> <tr> <th><?php echo __( 'System Information', 'litespeed-cache' ) ; ?></th> <td> <textarea id="litespeed-report" rows="20" cols="100" readonly><?php echo $report; ?></textarea> </td> </tr> <tr> <th><?php echo __( 'Passwordless Link', 'litespeed-cache' ) ; ?></th> <td> <input type="text" class="litespeed-regular-text" id="litespeed-report-link" name="link" value="<?php echo $link; ?>" style="width:500px;" /> <?php if ( $has_pswdless_plugin ) : ?> <a href="<?php echo admin_url( 'admin.php?page=litespeed-toolbox&dologin_gen_link=1' ); ?>" class="button button-secondary"><?php echo __( 'Generate Link for Current User', 'litespeed-cache' ) ; ?></a> <?php else: ?> <button type="button" class="button button-secondary" disabled><?php echo __( 'Generate Link for Current User', 'litespeed-cache' ) ; ?></button> <?php endif; ?> <div class="litespeed-desc"> <?php echo __( 'To grant wp-admin access to the LiteSpeed Support Team, please generate a passwordless link for the current logged-in user to be sent with the report.', 'litespeed-cache' ) ; ?> <?php if ( $link ) : ?> <br /><strong>🚨 <?php echo __('Please do NOT share the above passwordless link with anyone.', 'litespeed-cache'); ?></strong> <strong><?php echo sprintf( __('Generated links may be managed under <a %s>Settings</a>.', 'litespeed-cache'), 'href="' . menu_page_url( 'dologin', 0 ) . '"' ); ?></strong> <?php endif; ?> </div> </td> </tr> <tr> <th><?php echo __( 'Notes', 'litespeed-cache' ) ; ?></th> <td> <textarea name="notes" rows="10" cols="100"></textarea> <div class="litespeed-desc"> <?php echo __( 'Optional', 'litespeed-cache' ); ?>: <?php echo __( 'provide more information here to assist the LiteSpeed team with debugging.', 'litespeed-cache' ); ?> </div> </td> </tr> </tbody></table> <div class='litespeed-top20'></div> <button class="button button-primary" type="submit"><?php echo __( 'Send to LiteSpeed', 'litespeed-cache' ) ; ?></button> <button class="button button-primary litespeed-float-submit" type="submit"><?php echo __( 'Send to LiteSpeed', 'litespeed-cache' ) ; ?></button> <p class="litespeed-top30 litespeed-left10 litespeed-desc"> <?php echo __( 'Send this report to LiteSpeed. Refer to this report number when posting in the WordPress support forum.', 'litespeed-cache' ) ; ?> </p> </form> <?php include_once LSCWP_DIR . "tpl/inc/api_key.php" ; ?> import_export.tpl.php 0000644 00000004457 14711306420 0010776 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $summary = Import::get_summary(); ?> <h3 class="litespeed-title"> <?php echo __('Export Settings', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#importexport-tab' ); ?> </h3> <div><a href="<?php echo Utility::build_url( Router::ACTION_IMPORT, Import::TYPE_EXPORT ); ?>" class="button button-primary"> <?php echo __( 'Export', 'litespeed-cache' ); ?> </a></div> <?php if ( ! empty( $summary[ 'export_file' ] ) ) : ?> <div class="litespeed-desc"> <?php echo __( 'Last exported', 'litespeed-cache' ); ?>: <code><?php echo $summary[ 'export_file' ]; ?></code> <?php echo Utility::readable_time( $summary[ 'export_time' ]); ?> </div> <?php endif; ?> <div class="litespeed-desc"> <?php echo __( 'This will export all current LiteSpeed Cache settings and save them as a file.', 'litespeed-cache' ); ?> </div> <h3 class="litespeed-title"><?php echo __('Import Settings', 'litespeed-cache'); ?></h3> <?php $this->form_action( Router::ACTION_IMPORT, Import::TYPE_IMPORT, true ); ?> <div class="litespeed-div"> <input type="file" name="ls_file" class="litespeed-input" /> </div> <div class="litespeed-div"> <?php submit_button(__('Import', 'litespeed-cache'), 'button button-primary', 'litespeed-submit'); ?> </div> </form> <?php if ( ! empty( $summary[ 'import_file' ] ) ) : ?> <div class="litespeed-desc"> <?php echo __( 'Last imported', 'litespeed-cache' ); ?>: <code><?php echo $summary[ 'import_file' ]; ?></code> <?php echo Utility::readable_time( $summary[ 'import_time' ]); ?> </div> <?php endif; ?> <div class="litespeed-desc"> <?php echo __( 'This will import settings from a file and override all current LiteSpeed Cache settings.', 'litespeed-cache' ); ?> </div> <h3 class="litespeed-title"><?php echo __('Reset All Settings', 'litespeed-cache'); ?></h3> <div><p>🚨 <?php echo __( 'This will reset all settings to default settings.', 'litespeed-cache' ); ?></p> </div> <div><a href="<?php echo Utility::build_url( Router::ACTION_IMPORT, Import::TYPE_RESET ); ?>" data-litespeed-cfm="<?php echo __( 'Are you sure you want to reset all settings back to the default settings?', 'litespeed-cache' ); ?>" class="button litespeed-btn-danger-bg"> <?php echo __( 'Reset Settings', 'litespeed-cache' ); ?> </a></div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка