X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-content/plugins/xagio/models
home
/
katmhsmi
/
public_html
/
wp-content
/
plugins
/
xagio
/
models
/
📁
..
📄
.htaccess
(420 B)
📄
wp_affiliate.php
(14.41 KB)
📄
wp_api.php
(131.08 KB)
📄
wp_batches.php
(3.67 KB)
📄
wp_bulk_image_converter.php
(2.25 KB)
📄
wp_captcha.php
(2.33 KB)
📄
wp_captcha_comment.php
(1.8 KB)
📄
wp_captcha_login.php
(976 B)
📄
wp_captcha_register.php
(819 B)
📄
wp_clone.php
(21.76 KB)
📄
wp_comments.php
(1.26 KB)
📄
wp_default.php
(6.98 KB)
📄
wp_exif.php
(11.1 KB)
📄
wp_extend_widgets.php
(4.21 KB)
📄
wp_freshstart.php
(16.03 KB)
📄
wp_groups.php
(30.02 KB)
📄
wp_keywords.php
(52.68 KB)
📄
wp_log404.php
(19.68 KB)
📄
wp_migration.php
(16.26 KB)
📄
wp_redirects.php
(5.16 KB)
📄
wp_rescue.php
(17.66 KB)
📄
wp_review.php
(3.2 KB)
📄
wp_reviewr.php
(3.76 KB)
📄
wp_reviews.php
(16.82 KB)
📄
wp_schema.php
(16.12 KB)
📄
wp_seo.php
(79.76 KB)
📄
wp_settings.php
(32.76 KB)
📄
wp_sync.php
(1.74 KB)
📄
wp_tinymce_buttons.php
(6.23 KB)
📄
wp_troubleshooting.php
(2.91 KB)
📄
wp_update.php
(7.9 KB)
Editing: wp_troubleshooting.php
<?php if ( ! class_exists( 'MXAG_Troubleshooting' ) ) { class MXAG_Troubleshooting extends MXAG_Model { public static function initialize() { add_action('admin_post_xag_troubleshooting', array('MXAG_Troubleshooting', 'doTroubleshooting')); } public static function doTroubleshooting() { $status_messages = array(); /** * Set the memory limit to Unlimited */ if (isset($_POST['ts_memory_limit'])) { if ($_POST['ts_memory_limit'] == 1) { update_option('prs_ts_memory_limit', TRUE); $status_messages[] = 'Lifted memory limit successfully.'; } else { update_option('prs_ts_memory_limit', FALSE); } } /** * Regenerate Table Structure */ if (isset($_POST['ts_update_tables'])) { if ($_POST['ts_update_tables'] == 1) { XAG_Init::createTables(); $status_messages[] = 'Updated Table Structure.'; } } /** * Fix Stuck Keywords in Queue */ if (isset($_POST['ts_fix_queued_keywords'])) { if ($_POST['ts_fix_queued_keywords'] == 1) { MXAG_Keywords::updateData([ 'queued' => 0 ]); $status_messages[] = 'Fixed queued keywords.'; } } /** * Fix Stuck Keywords in Queue */ if (isset($_POST['ts_fix_defaults'])) { if ($_POST['ts_fix_defaults'] == 1) { update_option('ps_defaults', false); update_option('ps_defaults_magic_page_' . XAG_CURRENT_VERSION, false); $status_messages[] = 'Fixed defaults.'; } } /** * Regenerate Table Structure */ if (isset($_POST['ts_alternative_api'])) { $api_file = XAG_PATH . '/ext/xagio-api.php'; $root_api_file = ABSPATH . 'xagio-api.php'; if ($_POST['ts_alternative_api'] == 1) { // Drop the file $result = self::deployApiFile(); if ($result == true) { update_option('prs_ts_alternative_api', TRUE); $status_messages[] = 'Successfully copied V3 API file to the root of your WordPress installation.'; } else { update_option('prs_ts_alternative_api', FALSE); $status_messages[] = 'There was a problem while copying V3 API file to the root of your WordPress installation.'; } } else { // Remove the file self::deployApiFile( true); update_option('prs_ts_alternative_api', FALSE); } } XAG_Init::json('success', 'Operation completed!', $status_messages); } public static function deployApiFile ($remove = false) { $api_file = XAG_PATH . '/ext/xagio-api.php'; $root_api_file = ABSPATH . 'xagio-api.php'; if (file_exists($root_api_file)) { @unlink($root_api_file); } if ($remove == false) { if (copy($api_file, $root_api_file)) { return true; } else { return false; } } return true; } } }
Upload File
Create Folder