XPressME Integration Kit

Trac

Changeset 746


Ignore:
Timestamp:
May 19, 2011, 5:31:23 PM (13 years ago)
Author:
toemon
Message:

WPダウンロードURL問い合わせサイトURL修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php

    r744 r746  
    165165        public function get_download_info($locale='') 
    166166        { 
    167                 $sql_version = preg_replace('/[^0-9.].*/', '', $this->mysql_version); 
     167                $local_package = ''; 
     168                $mysql_version = preg_replace('/[^0-9.].*/', '', $this->mysql_version); 
    168169                $php_version = $this->php_version; 
     170 
    169171                if (empty($locale)) $locale = $this->wp_Lang; 
    170                 $url = "http://api.wordpress.org/core/version-check/1.5/?php=" . $php_version . "&locale=" . $locale . "&mysql=" . $sql_version; 
    171  
     172 
     173/* test          
     174                $mysql_version='4.0.27'; 
     175                $php_version = '4.1.1'; 
     176*/ 
     177                // wprdpress original option 
     178                // ?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 
     179                $option = "?php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 
     180                $url = "http://api.wordpress.org/core/version-check/1.5/" .$option; 
    172181                $handle = @fopen($url,'r'); 
    173182                if ($handle) { 
     
    199208                                $en_download_url = $ans[1][2]; 
    200209                        } 
     210                        $ret = $this->text_indent('(Check URL: '.$url.')',3); 
    201211                        if ($locale == $download_lang){ 
    202                                 $ret = $this->text_indent(sprintf(_AM_XP2_WP_INFO_1,$locale),2); 
     212                                $ret .= $this->text_indent(sprintf(_AM_XP2_WP_INFO_1,$locale),2); 
    203213                                $ret .= $this->text_indent('<a href="'.$download_url.'">' . $download_url .'</a>' ,3); 
    204214                                if (!empty($en_download_url)){ 
     
    207217                                } 
    208218                        } else { 
    209                                 $ret = $this->text_indent(sprintf(_AM_XP2_WP_INFO_2,$locale)); 
     219                                $ret .= $this->text_indent(sprintf(_AM_XP2_WP_INFO_2,$locale)); 
    210220                                $ret .= $this->text_indent(_AM_XP2_WP_INFO_3,2); 
    211221                                $ret .= $this->text_indent('<a href="http://codex.wordpress.org/WordPress_in_Your_Language" target="    _blank">WordPress_in_Your_Language</a>' ,3); 
Note: See TracChangeset for help on using the changeset viewer.