Changeset 401
- Timestamp:
- 07/03/09 15:37:34 (13 years ago)
- Location:
- dev
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin/admin_kill_export.php
r361 r401 3 3 require_once('common/includes/class.parser.php'); 4 4 require_once('common/includes/class.kill.php'); 5 require_once('common/includes/class.killlist.php'); 5 6 require_once('common/admin/admin_menu.php'); 6 7 -
dev/common/admin/admin_troubleshooting.php
r361 r401 105 105 //yes this is a mess, pew pew and programming dont mix =P 106 106 function find_SQL_Version() { 107 $output = shell_exec('mysql -V'); 108 preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version); 109 return $version[0]; 107 $conn = new DBConnection_mysqli; 108 $value = (float) mysqli_get_server_info($conn->id_); 109 return $value; 110 // shell_exec is often not supported so ask the connection instead. 111 // $output = shell_exec('mysql -V'); 112 // preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version); 113 // return $version[0]; 110 114 } 111 115 -
dev/common/includes/db.php
r400 r401 13 13 $conn = new DBConnection; 14 14 $value = (float) mysql_get_server_info($conn->id_); 15 if ($value > 4.1)15 if ($value >= 4.1) 16 16 { 17 17 define('KB_MYSQL41', true); -
dev/common/includes/globals.php
r399 r401 7 7 else 8 8 { 9 $svn_rev = ' 399';9 $svn_rev = '401'; 10 10 } 11 11 define('SVN_REV', $svn_rev); -
dev/mods/apiuser/comments.php
r365 r401 32 32 } 33 33 $comments->addComment($name, $comment); 34 //Remove cached file. 35 if(KB_CACHE) cache::deleteCache(); 36 //Redirect to avoid refresh reposting comments. 37 header('Location: '.$_SERVER['REQUEST_URI'],TRUE,303); 38 die(); 34 39 } 35 40 }