Show
Ignore:
Timestamp:
11/04/06 05:44:08 (14 years ago)
Author:
exi
Message:

Added Custom Shipvalue System, to be enabled in options, as always with autoupgrade(tm) ;)
Changed commenttablefield id to lowercase via autoupgrade.php, compat added in comments.php
Disabled immediate portrait update on IGB-Access

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/autoupgrade.php

    r44 r47  
    88    if ($result) 
    99    { 
    10         check_commenttablerow(); 
     10        check_commenttablerow(); 
    1111        return; 
    1212    } 
     
    2929    if ($result) 
    3030    { 
    31         check_commenttablerow(); 
     31        $query = 'ALTER TABLE `kb3_comments` CHANGE `ID` `id` INT( 11 ) NOT NULL AUTO_INCREMENT'; 
     32        $qry->execute($query); 
    3233        return; 
    3334    } 
     
    3536    $qry->execute($query); 
    3637} 
     38 
     39function check_shipvaltable() 
     40{ 
     41    $qry = new DBQuery(); 
     42    $query = 'select count(*) from kb3_ships_values'; 
     43    $result = mysql_query($query); 
     44    if ($result) 
     45    { 
     46        return; 
     47    } 
     48    $query = 'CREATE TABLE `kb3_ships_values` ( 
     49`shp_id` INT( 11 ) NOT NULL , 
     50`shp_value` BIGINT( 4 ) NOT NULL , 
     51INDEX ( `shp_id` ) 
     52) TYPE = MYISAM ;'; 
     53    $qry->execute($query); 
     54} 
     55 
    3756?>