Changeset 5888

Show
Ignore:
Timestamp:
07/02/08 15:01:17 (2 months ago)
Author:
lazytt
Message:

#1784

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/disa/install.php

    r4767 r5888  
    22 
    33global $db; 
     4global $amp_conf;  
     5 
     6$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
     7 
     8$sql = "CREATE TABLE IF NOT EXISTS disa (  
     9        disa_id INTEGER NOT NULL PRIMARY KEY $autoincrement, 
     10        displayname VARCHAR( 50 ),  
     11        pin VARCHAR ( 50 ),  
     12        cid VARCHAR ( 50 ),  
     13        context VARCHAR ( 50 ),  
     14        digittimeout INTEGER,  
     15        resptimeout INTEGER,  
     16        needconf VARCHAR( 10 )  
     17);"; 
     18 
     19$check = $db->query($sql); 
     20if (DB::IsError($check)) { 
     21        die( "Can not create `disa` table: " . $check->getMessage() .  "\n"); 
     22} 
     23 
    424 
    525// Manage upgrade from DISA 1.0 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads