XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 15, 2016, 9:52:13 AM (8 years ago)
Author:
toemon
Message:

PHP7 対応 Fix #431
thx nao-pon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/admin/index.php

    r835 r860  
    165165        include(dirname(__FILE__) . '/../wp-includes/version.php'); 
    166166        require_once dirname(dirname( __FILE__ )).'/include/memory_limit.php' ; 
     167        $db =& XoopsDatabaseFactory::getDatabaseConnection(); 
    167168 
    168169        if ($is_report) { 
     
    173174                if (defined('LIBXML_DOTTED_VERSION')) echo LIBXML_DOTTED_VERSION ; else echo "Can't detect."; 
    174175                echo "<br />\n";; 
    175                 echo "MySQL Version:   " . mysql_get_server_info() . "</text><br />"; 
     176                echo "MySQL Version:   " . mysqli_get_server_info($db->conn) . "</text><br />"; 
    176177                echo "XOOPS Version:   " . XOOPS_VERSION . "</text><br />"; 
    177178                echo "XPressME Version:   " . $xoopsModule->getInfo('version') . ' ' . $xoopsModule->getInfo('codename') . "<br />\n"; 
     
    247248                if (defined('LIBXML_DOTTED_VERSION')) echo LIBXML_DOTTED_VERSION ; else echo "Can't detect."; 
    248249                echo "</text><br />"; 
    249                 echo "<label>" . "<strong>MySQL Version:</strong>" . ":</label><text>" . mysql_get_server_info() . "</text><br />"; 
     250                echo "<label>" . "<strong>MySQL Version:</strong>" . ":</label><text>" . mysqli_get_server_info($db->conn) . "</text><br />"; 
    250251                echo "<label>" . "<strong>XOOPS Version:</strong>" . ":</label><text>" . XOOPS_VERSION . "</text><br />"; 
    251252                echo "<label>" . "<strong>XPressME Version:</strong>" . ":</label><text>" . $xoopsModule->getInfo('version') . ' ' . $xoopsModule->getInfo('codename') . "</text><br />"; 
Note: See TracChangeset for help on using the changeset viewer.