Plugin Directory

Changeset 1365009


Ignore:
Timestamp:
03/06/2016 12:25:55 PM (10 years ago)
Author:
igor-lemon
Message:

tagging version 1.7.12

Location:
stacksight
Files:
15 edited
12 copied

Legend:

Unmodified
Added
Removed
  • stacksight/tags/1.7.12/inc/wp-health-backups.php

    r1295919 r1365009  
    1313    );
    1414
     15    public $last_months = 1;
     16
    1517    public function getBackupsData(){
    1618        $backup_list = UpdraftPlus_Options::get_updraft_option('updraft_backup_history');
     
    2022
    2123        foreach($backup_list as $timestamp => $backups_info){
     24            $time_mm =  strtotime("+$this->last_months month");
     25            // If date more than 1 month - skip it
     26            if(date('Y-m-d', $timestamp) < date('Y-m-d', $time_mm))
     27                continue;
     28
    2229            $this->backups_size = 0;
    2330            $this->backup_files = array();
  • stacksight/tags/1.7.12/readme.txt

    r1361764 r1365009  
    44Requires at least: 3.5
    55Tested up to: 4.3
    6 Stable tag: 1.7.11
     6Stable tag: 1.7.12
    77License: GPLv2 or later
    88
  • stacksight/tags/1.7.12/stacksight-php-sdk/SSClientBase.php

    r1316922 r1365009  
    2525    private $curl_obj = array();
    2626
     27    public $stacksight_bot_name = 'Stacksight BOT';
     28    public $stacksight_bot_ico = 'https://s3-us-west-2.amazonaws.com/slack-files2/avatars/2015-08-26/9685505874_5c499cefd86aa883b7f4_68.jpg';
     29
    2730    public function __construct($token, $platform, $app_id = false, $group = false) {
    2831        $this->token = $token;
     
    104107    }
    105108
     109    public function sendSlackNotify($message, $type){
     110        $color = false;
     111        switch($type){
     112            case 'error':
     113                $pretext = "Error";
     114                $color = 'danger';
     115                break;
     116            case 'warn':
     117                $pretext = "Warning";
     118                $color = 'warning';
     119                break;
     120            default:
     121                $pretext = "Info";
     122                $color = '#28D7E5';
     123                break;
     124        }
     125
     126        $data = array(
     127            "attachments" => array(
     128                array(
     129                    "pretext" => SSUtilities::currentPageURL(),
     130//                  "author_name" => $this->stacksight_bot_name,
     131//                  "author_icon" => $this->stacksight_bot_ico,
     132                    "text" => $message,
     133                    "title" => $pretext,
     134                    "color" => $color
     135                )
     136            )
     137        );
     138        if (strlen(json_encode($data)) > $this->socket_limit)
     139            $response = $this->request_curl->sendSlackNotify($data);
     140        else
     141            $response = $this->request_socket->sendSlackNotify($data);
     142    }
     143
    106144    public function sendUpdates($data, $isMulticURL = false) {
    107145        $this->_setAppParams($data);
  • stacksight/tags/1.7.12/stacksight-php-sdk/SSHttpRequest.php

    r1316922 r1365009  
    2525    }
    2626
     27    public function sendSlackNotify($data) {
     28        $incoming_url = parse_url(STACKSIGHT_INCOMING_SLACK_URL);
     29        $this->host = $incoming_url['host'];
     30        $this->api_path = ltrim($incoming_url['path'], '/');
     31        $this->createSocket(true);
     32        $this->sendRequest($data, false);
     33    }
     34
    2735    public function sendUpdates($data) {
    2836        $this->sendRequest($data, self::UPDATE_URL);
  • stacksight/tags/1.7.12/stacksight-php-sdk/SSLogsTracker.php

    r1274850 r1365009  
    3333
    3434        $message = $errstr.' in '.$errfile.' on line '.$errline;
    35 
    3635        switch ($errno) {
    3736            case E_ERROR: // 1 //
    38                 $this->client->sendLog('E_ERROR: ' . $message, 'error'); break;
     37                $this->client->sendLog('E_ERROR: ' . $message, 'error');
     38                $this->_sendSlackMessage($message, 'error');
     39                break;
    3940            case E_WARNING: // 2 //
    40                 $this->client->sendLog('E_WARNING: ' . $message, 'warn'); break;
     41                $this->client->sendLog('E_WARNING: ' . $message, 'warn');
     42                $this->_sendSlackMessage($message, 'warn');
     43                break;
    4144            case E_PARSE: // 4 //
    42                 $this->client->sendLog('E_PARSE: ' . $message, 'error'); break;
     45                $this->client->sendLog('E_PARSE: ' . $message, 'error');
     46                $this->_sendSlackMessage($message, 'error');
     47                break;
    4348            case E_NOTICE: // 8 //
    44                 $this->client->sendLog('E_NOTICE: ' . $message, 'info'); break;
     49                $this->client->sendLog('E_NOTICE: ' . $message, 'info');
     50                $this->_sendSlackMessage($message, 'info');
     51                break;
    4552            case E_CORE_ERROR: // 16 //
    46                 $this->client->sendLog('E_CORE_ERROR: ' . $message, 'error'); break;
     53                $this->client->sendLog('E_CORE_ERROR: ' . $message, 'error');
     54                $this->_sendSlackMessage($message, 'error');
     55                break;
    4756            case E_CORE_WARNING: // 32 //
    48                 $this->client->sendLog('E_CORE_WARNING: ' . $message, 'warn'); break;
     57                $this->client->sendLog('E_CORE_WARNING: ' . $message, 'warn');
     58                $this->_sendSlackMessage($message, 'warn');
     59                break;
    4960            case E_COMPILE_ERROR: // 64 //
    50                 $this->client->sendLog('E_COMPILE_ERROR: ' . $message, 'error'); break;
     61                $this->client->sendLog('E_COMPILE_ERROR: ' . $message, 'error');
     62                $this->_sendSlackMessage($message, 'error');
     63                break;
    5164            case E_COMPILE_WARNING: // 128 //
    52                 $this->client->sendLog('E_COMPILE_WARNING: ' . $message, 'warn'); break;
     65                $this->client->sendLog('E_COMPILE_WARNING: ' . $message, 'warn');
     66                $this->_sendSlackMessage($message, 'warn');
     67                break;
    5368            case E_USER_ERROR: // 256 //
    54                 $this->client->sendLog('E_USER_ERROR: ' . $message, 'error'); break;
     69                $this->client->sendLog('E_USER_ERROR: ' . $message, 'error');
     70                $this->_sendSlackMessage($message, 'error');
     71                break;
    5572            case E_USER_WARNING: // 512 //
    56                 $this->client->sendLog('E_USER_WARNING: ' . $message, 'warn'); break;
     73                $this->client->sendLog('E_USER_WARNING: ' . $message, 'warn');
     74                $this->_sendSlackMessage($message, 'warn');
     75                break;
    5776            case E_USER_NOTICE: // 1024 //
    58                 $this->client->sendLog('E_USER_NOTICE: ' . $message, 'info'); break;
     77                $this->client->sendLog('E_USER_NOTICE: ' . $message, 'info');
     78                $this->_sendSlackMessage($message, 'info');
     79                break;
    5980            case E_STRICT: // 2048 //
    60                 $this->client->sendLog('E_STRICT: ' . $message, 'info'); break;
     81                $this->client->sendLog('E_STRICT: ' . $message, 'info');
     82                $this->_sendSlackMessage($message, 'info');
     83                break;
    6184            case E_RECOVERABLE_ERROR: // 4096 //
    62                 $this->client->sendLog('E_RECOVERABLE_ERROR: ' . $message, 'error'); break;
     85                $this->client->sendLog('E_RECOVERABLE_ERROR: ' . $message, 'error');
     86                $this->_sendSlackMessage($message, 'error');
     87                break;
    6388        }
    6489
     
    7398        }
    7499
     100
     101
    75102        return false;
    76103    }
     104
     105    private function _sendSlackMessage($message, $type){
     106        if((defined('STACKSIGHT_INCOMING_SLACK_URL') && defined('STACKSIGHT_SEND_TO_SLACK_EVENTS'))){
     107            $types = unserialize(STACKSIGHT_SEND_TO_SLACK_EVENTS);
     108            if(in_array($type, $types)){
     109                $this->client->sendSlackNotify($message, $type);
     110            }
     111        }
     112    }
    77113}
  • stacksight/tags/1.7.12/stacksight-php-sdk/SSUtilities.php

    r1274850 r1365009  
    2727        return str_replace(array_keys($params), $params, $str);
    2828    }
     29
     30    static function currentPageURL() {
     31        $pageURL = 'http';
     32        if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
     33        $pageURL .= "://";
     34        if ($_SERVER["SERVER_PORT"] != "80") {
     35            $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
     36        } else {
     37            $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
     38        }
     39        return $pageURL;
     40    }
    2941}
  • stacksight/tags/1.7.12/stacksight-php-sdk/requests/SSHttpInterface.php

    r1282300 r1365009  
    44    public function publishEvent($data);
    55    public function sendLog($data);
     6    public function sendSlackNotify($data);
    67    public function sendUpdates($data);
    78    public function sendHealth($data);
  • stacksight/tags/1.7.12/stacksight-php-sdk/requests/SSHttpRequestCurl.php

    r1282300 r1365009  
    44    public function sendRequest($data, $url = false){
    55        $data_string = json_encode($data);
    6         $ch = ($url) ? curl_init(INDEX_ENDPOINT_01.$url) : curl_init(INDEX_ENDPOINT_01.'/'.$data['index'].'/'.$data['eType']);
     6        $total_url = ($url) ? INDEX_ENDPOINT_01.$url : INDEX_ENDPOINT_01.'/'.$data['index'].'/'.$data['eType'];
     7        $ch = curl_init($total_url);
     8
    79        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    810        curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
  • stacksight/tags/1.7.12/stacksight-php-sdk/requests/SSHttpRequestSockets.php

    r1327555 r1365009  
    2020    }
    2121
    22     private function createSocket(){
     22    public function createSocket($recreate = false){
    2323        $flags = STREAM_CLIENT_ASYNC_CONNECT;
    24         if(!$this->_socket){
     24        if(!$this->_socket || $recreate === true){
    2525            if($this->_socket = @stream_socket_client($this->protocol . "://" . $this->host. ':' . $this->port, $errno, $errstr, $this->timeout, $flags)){
    2626                stream_set_blocking($this->_socket, false);
     
    3434            }
    3535        }
    36 
    3736    }
    3837
     
    4241    }
    4342
    44     public function sendRequest($data, $url = false){
     43    public function sendRequest($data, $url = null){
    4544        if($this->_state_socket === true){
    46             if($url === false)
     45            if($url === null)
    4746                $url = $this->api_path.'/'.$data['index'].'/'.$data['eType'];
    4847            else
     
    5049
    5150            $content = json_encode($data);
     51
    5252            $req = "";
    5353            $req.= "POST /$url HTTP/1.1\r\n";
     
    5959            $req.= $content;
    6060
    61             if(!fwrite($this->_socket, $req)){
     61            if(!@fwrite($this->_socket, $req)){
    6262                $sended = false;
    6363                for($i = 0; $i <= $this->max_retry; $i++){
    6464                    usleep(200000);
    65                     if(fwrite($this->_socket, $req)){
     65                    if(@fwrite($this->_socket, $req)){
     66                        SSUtilities::error_log("Error fwrire socket. Tried $i timeы...", 'error_socket_connection');
    6667                        $sended = true;
    6768                        break;
     
    7273                    usleep(200000);
    7374                    $this->createSocket();
    74                     if(!fwrite($this->_socket, $req)){
     75                    if(!@fwrite($this->_socket, $req)){
     76                        SSUtilities::error_log("Error fwrire socket after sleep.", 'error_socket_connection');
    7577                        $cURL = new SSHttpRequestCurl();
    76                         $cURL->sendRequest($data, $url);
     78                        $cURL->sendRequest($data);
    7779                    }
    7880                }
  • stacksight/tags/1.7.12/wp-stacksight.php

    r1361764 r1365009  
    44 * Plugin URI: http://mean.io
    55 * Description: Stacksight wordpress support (featuring events, error logs and updates)
    6  * Version: 1.7.11
     6 * Version: 1.7.12
    77 * Author: Stacksight LTD
    88 * Author URI: http://stacksight.io
     
    291291     */
    292292    public function create_admin_page() {
     293        $this->cron_do_main_job();
    293294        ?>
    294295        <div class="ss-wrap">
  • stacksight/trunk/inc/wp-health-backups.php

    r1295919 r1365009  
    1313    );
    1414
     15    public $last_months = 1;
     16
    1517    public function getBackupsData(){
    1618        $backup_list = UpdraftPlus_Options::get_updraft_option('updraft_backup_history');
     
    2022
    2123        foreach($backup_list as $timestamp => $backups_info){
     24            $time_mm =  strtotime("+$this->last_months month");
     25            // If date more than 1 month - skip it
     26            if(date('Y-m-d', $timestamp) < date('Y-m-d', $time_mm))
     27                continue;
     28
    2229            $this->backups_size = 0;
    2330            $this->backup_files = array();
  • stacksight/trunk/readme.txt

    r1361764 r1365009  
    44Requires at least: 3.5
    55Tested up to: 4.3
    6 Stable tag: 1.7.11
     6Stable tag: 1.7.12
    77License: GPLv2 or later
    88
  • stacksight/trunk/stacksight-php-sdk/SSClientBase.php

    r1316922 r1365009  
    2525    private $curl_obj = array();
    2626
     27    public $stacksight_bot_name = 'Stacksight BOT';
     28    public $stacksight_bot_ico = 'https://s3-us-west-2.amazonaws.com/slack-files2/avatars/2015-08-26/9685505874_5c499cefd86aa883b7f4_68.jpg';
     29
    2730    public function __construct($token, $platform, $app_id = false, $group = false) {
    2831        $this->token = $token;
     
    104107    }
    105108
     109    public function sendSlackNotify($message, $type){
     110        $color = false;
     111        switch($type){
     112            case 'error':
     113                $pretext = "Error";
     114                $color = 'danger';
     115                break;
     116            case 'warn':
     117                $pretext = "Warning";
     118                $color = 'warning';
     119                break;
     120            default:
     121                $pretext = "Info";
     122                $color = '#28D7E5';
     123                break;
     124        }
     125
     126        $data = array(
     127            "attachments" => array(
     128                array(
     129                    "pretext" => SSUtilities::currentPageURL(),
     130//                  "author_name" => $this->stacksight_bot_name,
     131//                  "author_icon" => $this->stacksight_bot_ico,
     132                    "text" => $message,
     133                    "title" => $pretext,
     134                    "color" => $color
     135                )
     136            )
     137        );
     138        if (strlen(json_encode($data)) > $this->socket_limit)
     139            $response = $this->request_curl->sendSlackNotify($data);
     140        else
     141            $response = $this->request_socket->sendSlackNotify($data);
     142    }
     143
    106144    public function sendUpdates($data, $isMulticURL = false) {
    107145        $this->_setAppParams($data);
  • stacksight/trunk/stacksight-php-sdk/SSHttpRequest.php

    r1316922 r1365009  
    2525    }
    2626
     27    public function sendSlackNotify($data) {
     28        $incoming_url = parse_url(STACKSIGHT_INCOMING_SLACK_URL);
     29        $this->host = $incoming_url['host'];
     30        $this->api_path = ltrim($incoming_url['path'], '/');
     31        $this->createSocket(true);
     32        $this->sendRequest($data, false);
     33    }
     34
    2735    public function sendUpdates($data) {
    2836        $this->sendRequest($data, self::UPDATE_URL);
  • stacksight/trunk/stacksight-php-sdk/SSLogsTracker.php

    r1274850 r1365009  
    3333
    3434        $message = $errstr.' in '.$errfile.' on line '.$errline;
    35 
    3635        switch ($errno) {
    3736            case E_ERROR: // 1 //
    38                 $this->client->sendLog('E_ERROR: ' . $message, 'error'); break;
     37                $this->client->sendLog('E_ERROR: ' . $message, 'error');
     38                $this->_sendSlackMessage($message, 'error');
     39                break;
    3940            case E_WARNING: // 2 //
    40                 $this->client->sendLog('E_WARNING: ' . $message, 'warn'); break;
     41                $this->client->sendLog('E_WARNING: ' . $message, 'warn');
     42                $this->_sendSlackMessage($message, 'warn');
     43                break;
    4144            case E_PARSE: // 4 //
    42                 $this->client->sendLog('E_PARSE: ' . $message, 'error'); break;
     45                $this->client->sendLog('E_PARSE: ' . $message, 'error');
     46                $this->_sendSlackMessage($message, 'error');
     47                break;
    4348            case E_NOTICE: // 8 //
    44                 $this->client->sendLog('E_NOTICE: ' . $message, 'info'); break;
     49                $this->client->sendLog('E_NOTICE: ' . $message, 'info');
     50                $this->_sendSlackMessage($message, 'info');
     51                break;
    4552            case E_CORE_ERROR: // 16 //
    46                 $this->client->sendLog('E_CORE_ERROR: ' . $message, 'error'); break;
     53                $this->client->sendLog('E_CORE_ERROR: ' . $message, 'error');
     54                $this->_sendSlackMessage($message, 'error');
     55                break;
    4756            case E_CORE_WARNING: // 32 //
    48                 $this->client->sendLog('E_CORE_WARNING: ' . $message, 'warn'); break;
     57                $this->client->sendLog('E_CORE_WARNING: ' . $message, 'warn');
     58                $this->_sendSlackMessage($message, 'warn');
     59                break;
    4960            case E_COMPILE_ERROR: // 64 //
    50                 $this->client->sendLog('E_COMPILE_ERROR: ' . $message, 'error'); break;
     61                $this->client->sendLog('E_COMPILE_ERROR: ' . $message, 'error');
     62                $this->_sendSlackMessage($message, 'error');
     63                break;
    5164            case E_COMPILE_WARNING: // 128 //
    52                 $this->client->sendLog('E_COMPILE_WARNING: ' . $message, 'warn'); break;
     65                $this->client->sendLog('E_COMPILE_WARNING: ' . $message, 'warn');
     66                $this->_sendSlackMessage($message, 'warn');
     67                break;
    5368            case E_USER_ERROR: // 256 //
    54                 $this->client->sendLog('E_USER_ERROR: ' . $message, 'error'); break;
     69                $this->client->sendLog('E_USER_ERROR: ' . $message, 'error');
     70                $this->_sendSlackMessage($message, 'error');
     71                break;
    5572            case E_USER_WARNING: // 512 //
    56                 $this->client->sendLog('E_USER_WARNING: ' . $message, 'warn'); break;
     73                $this->client->sendLog('E_USER_WARNING: ' . $message, 'warn');
     74                $this->_sendSlackMessage($message, 'warn');
     75                break;
    5776            case E_USER_NOTICE: // 1024 //
    58                 $this->client->sendLog('E_USER_NOTICE: ' . $message, 'info'); break;
     77                $this->client->sendLog('E_USER_NOTICE: ' . $message, 'info');
     78                $this->_sendSlackMessage($message, 'info');
     79                break;
    5980            case E_STRICT: // 2048 //
    60                 $this->client->sendLog('E_STRICT: ' . $message, 'info'); break;
     81                $this->client->sendLog('E_STRICT: ' . $message, 'info');
     82                $this->_sendSlackMessage($message, 'info');
     83                break;
    6184            case E_RECOVERABLE_ERROR: // 4096 //
    62                 $this->client->sendLog('E_RECOVERABLE_ERROR: ' . $message, 'error'); break;
     85                $this->client->sendLog('E_RECOVERABLE_ERROR: ' . $message, 'error');
     86                $this->_sendSlackMessage($message, 'error');
     87                break;
    6388        }
    6489
     
    7398        }
    7499
     100
     101
    75102        return false;
    76103    }
     104
     105    private function _sendSlackMessage($message, $type){
     106        if((defined('STACKSIGHT_INCOMING_SLACK_URL') && defined('STACKSIGHT_SEND_TO_SLACK_EVENTS'))){
     107            $types = unserialize(STACKSIGHT_SEND_TO_SLACK_EVENTS);
     108            if(in_array($type, $types)){
     109                $this->client->sendSlackNotify($message, $type);
     110            }
     111        }
     112    }
    77113}
  • stacksight/trunk/stacksight-php-sdk/SSUtilities.php

    r1274850 r1365009  
    2727        return str_replace(array_keys($params), $params, $str);
    2828    }
     29
     30    static function currentPageURL() {
     31        $pageURL = 'http';
     32        if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
     33        $pageURL .= "://";
     34        if ($_SERVER["SERVER_PORT"] != "80") {
     35            $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
     36        } else {
     37            $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
     38        }
     39        return $pageURL;
     40    }
    2941}
  • stacksight/trunk/stacksight-php-sdk/requests/SSHttpInterface.php

    r1282300 r1365009  
    44    public function publishEvent($data);
    55    public function sendLog($data);
     6    public function sendSlackNotify($data);
    67    public function sendUpdates($data);
    78    public function sendHealth($data);
  • stacksight/trunk/stacksight-php-sdk/requests/SSHttpRequestCurl.php

    r1282300 r1365009  
    44    public function sendRequest($data, $url = false){
    55        $data_string = json_encode($data);
    6         $ch = ($url) ? curl_init(INDEX_ENDPOINT_01.$url) : curl_init(INDEX_ENDPOINT_01.'/'.$data['index'].'/'.$data['eType']);
     6        $total_url = ($url) ? INDEX_ENDPOINT_01.$url : INDEX_ENDPOINT_01.'/'.$data['index'].'/'.$data['eType'];
     7        $ch = curl_init($total_url);
     8
    79        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    810        curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
  • stacksight/trunk/stacksight-php-sdk/requests/SSHttpRequestSockets.php

    r1327555 r1365009  
    2020    }
    2121
    22     private function createSocket(){
     22    public function createSocket($recreate = false){
    2323        $flags = STREAM_CLIENT_ASYNC_CONNECT;
    24         if(!$this->_socket){
     24        if(!$this->_socket || $recreate === true){
    2525            if($this->_socket = @stream_socket_client($this->protocol . "://" . $this->host. ':' . $this->port, $errno, $errstr, $this->timeout, $flags)){
    2626                stream_set_blocking($this->_socket, false);
     
    3434            }
    3535        }
    36 
    3736    }
    3837
     
    4241    }
    4342
    44     public function sendRequest($data, $url = false){
     43    public function sendRequest($data, $url = null){
    4544        if($this->_state_socket === true){
    46             if($url === false)
     45            if($url === null)
    4746                $url = $this->api_path.'/'.$data['index'].'/'.$data['eType'];
    4847            else
     
    5049
    5150            $content = json_encode($data);
     51
    5252            $req = "";
    5353            $req.= "POST /$url HTTP/1.1\r\n";
     
    5959            $req.= $content;
    6060
    61             if(!fwrite($this->_socket, $req)){
     61            if(!@fwrite($this->_socket, $req)){
    6262                $sended = false;
    6363                for($i = 0; $i <= $this->max_retry; $i++){
    6464                    usleep(200000);
    65                     if(fwrite($this->_socket, $req)){
     65                    if(@fwrite($this->_socket, $req)){
     66                        SSUtilities::error_log("Error fwrire socket. Tried $i timeы...", 'error_socket_connection');
    6667                        $sended = true;
    6768                        break;
     
    7273                    usleep(200000);
    7374                    $this->createSocket();
    74                     if(!fwrite($this->_socket, $req)){
     75                    if(!@fwrite($this->_socket, $req)){
     76                        SSUtilities::error_log("Error fwrire socket after sleep.", 'error_socket_connection');
    7577                        $cURL = new SSHttpRequestCurl();
    76                         $cURL->sendRequest($data, $url);
     78                        $cURL->sendRequest($data);
    7779                    }
    7880                }
  • stacksight/trunk/wp-stacksight.php

    r1361764 r1365009  
    44 * Plugin URI: http://mean.io
    55 * Description: Stacksight wordpress support (featuring events, error logs and updates)
    6  * Version: 1.7.11
     6 * Version: 1.7.12
    77 * Author: Stacksight LTD
    88 * Author URI: http://stacksight.io
     
    291291     */
    292292    public function create_admin_page() {
     293        $this->cron_do_main_job();
    293294        ?>
    294295        <div class="ss-wrap">
Note: See TracChangeset for help on using the changeset viewer.