Changeset 2229 for branches

Show
Ignore:
Timestamp:
11/17/10 13:49:30 (18 months ago)
Author:
nick_ramsay
Message:

[1.4.2] Restored hotaru_feedback function and calls from install.

Location:
branches/1.4
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.4/install/index.php

    r2227 r2229  
    750750        $phpinfo = $cage->post->getAlpha('phpinfo');        // delete install folder. 
    751751 
     752        if (!$phpinfo) {  
     753                //send feedback report  
     754                $systeminfo = new SystemInfo();  
     755                $systeminfo->hotaru_feedback($h);  
     756        } 
     757 
    752758        echo html_header(); 
    753759 
     
    819825 
    820826        echo "<br/><div class='install_content'>" . $lang['upgrade_step3_details'] . "<br/><br/>\n"; 
     827 
     828        //send feedback report 
     829        $systeminfo = new SystemInfo(); 
     830        $systeminfo->hotaru_feedback($h); 
    821831 
    822832        echo "<br/>" . $lang['upgrade_step3_instructions'] . "<br/><br/>\n"; 
  • branches/1.4/libs/SystemInfo.php

    r2222 r2229  
    2727{ 
    2828        /** 
     29        * Calls external site to provide system info feedback report 
     30        * 
     31        * @return bool true 
     32        */ 
     33        public function hotaru_feedback($h, $format = 'json') 
     34        { 
     35                $report = $h->generateReport("object"); 
     36                 
     37                $query_vals = array( 
     38                        'api_key' => '', 
     39                        'format' => $format, 
     40                        'method' => 'hotaru.systemFeedback.add', 
     41                        'args' => serialize($report) 
     42                ); 
     43                 
     44                $info = $this->sendApiRequest($h, $query_vals, 'http://api.hotarucms.org/index.php?page=api'); 
     45                 
     46                return true; 
     47        } 
     48 
     49 
     50        /** 
    2951         * Get system data 
    3052         *