Changeset 401

Show
Ignore:
Timestamp:
07/03/09 15:37:34 (11 years ago)
Author:
kovell
Message:

Fixes: missing kill_export include included, troubleshooting shell_exec replaced, db.php allows >=4.1 instead of >4.1, apiuser mod comments update kill_details cache, ships names updated.

Location:
dev
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin/admin_kill_export.php

    r361 r401  
    33require_once('common/includes/class.parser.php'); 
    44require_once('common/includes/class.kill.php'); 
     5require_once('common/includes/class.killlist.php'); 
    56require_once('common/admin/admin_menu.php'); 
    67 
  • dev/common/admin/admin_troubleshooting.php

    r361 r401  
    105105//yes this is a mess, pew pew and programming dont mix =P 
    106106function 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]; 
    110114} 
    111115 
  • dev/common/includes/db.php

    r400 r401  
    1313$conn = new DBConnection; 
    1414$value = (float) mysql_get_server_info($conn->id_); 
    15 if ($value > 4.1) 
     15if ($value >= 4.1) 
    1616{ 
    1717        define('KB_MYSQL41', true); 
  • dev/common/includes/globals.php

    r399 r401  
    77else 
    88{ 
    9         $svn_rev = '399'; 
     9        $svn_rev = '401'; 
    1010} 
    1111define('SVN_REV', $svn_rev); 
  • dev/mods/apiuser/comments.php

    r365 r401  
    3232            } 
    3333            $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(); 
    3439        } 
    3540    }