+ Changed from MySQL to MySQLi native driver.
+ Added 2 new functions in DataBase class: fetch($query) and num_rows($query) git-svn-id: https://svn.pioder.pl/uf-svn/uF@20 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -47,7 +47,7 @@ function check_size_md5($file)
|
||||
function mysqlversion()
|
||||
{
|
||||
$temp = '';
|
||||
$result = mysql_fetch_array(DataBase::sql_query("SELECT VERSION() AS mysql_version",'GENERAL','Could not read mysql version.'));
|
||||
$result = DataBase::fetch(DataBase::sql_query("SELECT VERSION() AS mysql_version",'GENERAL','Could not read mysql version.'));
|
||||
$result = $result['mysql_version'];
|
||||
for($i=0;$i<5;$i++)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ function db_size()
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
$db_size = 0;
|
||||
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain database size');
|
||||
while ($result = @mysql_fetch_array($query))
|
||||
while ($result = DataBase::fetch($query))
|
||||
{
|
||||
$db_size += $result['Index_length'];
|
||||
}
|
||||
@@ -146,7 +146,12 @@ $skin=array(
|
||||
//php version
|
||||
'L.php_version'=>$lng['php_version'],
|
||||
'PHP.version'=>phpversion(),
|
||||
'PHP.value' => (phpversion()>='4.3.10') ? '<font color="green">OK</font>' : ' <font color="red">Error - No OK</font>',
|
||||
'PHP.value' => (phpversion()>='5.0.7') ? '<font color="green">OK</font>' : ' <font color="red">Error - No OK</font>',
|
||||
|
||||
//extension MySQLi loaded?
|
||||
'L.mySQLi_loaded'=>$lng['mysqli_loaded'],
|
||||
'mySQLi_loaded'=>(extension_loaded('mysqli')) ? $lng['yes'] : $lng['no'],
|
||||
'mySQLi_loaded.value'=> (extension_loaded('mysqli')) ? '<font color="green">OK</font>' : ' <font color="red">Error - No OK</font>',
|
||||
|
||||
//mysql version
|
||||
'mySQL.version'=>$sql_version,
|
||||
|
||||
Reference in New Issue
Block a user