public function action()
 {
     $information = array();
     self::$mainwpChildReports = false;
     if (function_exists('mainwp_wp_stream_query') && class_exists('MainWP_WP_Stream')) {
         self::$mainwpChildReports = true;
     } else {
         if (function_exists('wp_stream_query') && class_exists('WP_Stream')) {
             self::$streamVersionNumber = 149;
         } else {
             if (function_exists('wp_stream_get_instance') && class_exists('WP_Stream\\Plugin')) {
                 self::$streamVersionNumber = 3;
             } else {
                 $information['error'] = 'NO_STREAM';
                 MainWP_Helper::write($information);
             }
         }
     }
     if (isset($_POST['mwp_action'])) {
         switch ($_POST['mwp_action']) {
             case 'save_sucuri_stream':
                 $information = $this->save_sucuri_stream();
                 break;
             case 'save_backup_stream':
                 $information = $this->save_backup_stream();
                 break;
             case 'get_stream':
                 $information = $this->get_stream();
                 break;
             case 'set_showhide':
                 $information = $this->set_showhide();
                 break;
         }
     }
     MainWP_Helper::write($information);
 }
Ejemplo n.º 2
0
 function client_report()
 {
     MainWP_Client_Report::Instance()->action();
 }