giving this it's own home
This commit is contained in:
29
install.php
Normal file
29
install.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
global $db;
|
||||
global $amp_conf;
|
||||
|
||||
if (! function_exists("out")) {
|
||||
function out($text) {
|
||||
echo $text."<br />";
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists("outn")) {
|
||||
function outn($text) {
|
||||
echo $text;
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "CREATE TABLE IF NOT EXISTS HelloWorld_settings (
|
||||
hwid varchar(32) NOT NULL default '',
|
||||
hwset varchar(32) NOT NULL default '',
|
||||
PRIMARY KEY (hwid)
|
||||
);";
|
||||
|
||||
$check = $db->query($sql);
|
||||
if (DB::IsError($check)) {
|
||||
die_freepbx( "Can not create `HelloWorld` table: " . $check->getMessage() . "\n");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user