Add form
This commit is contained in:
14
static/config/config.inc.php
Normal file
14
static/config/config.inc.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
//database settings
|
||||
define ("DB_USER", "sampleuser");
|
||||
define ("DB_HOST", "localhost");
|
||||
define ("DB_PW", "samplepassword");
|
||||
define ("DB_DATABASE", "moanos_gartensia");
|
||||
|
||||
//database tables:
|
||||
define ("TABLE_USER", "lib_user");
|
||||
|
||||
define("MODULE_PATH", $_SERVER['DOCUMENT_ROOT']);
|
||||
|
||||
?>
|
45
static/config/db_array.inc.php
Normal file
45
static/config/db_array.inc.php
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
<?php
|
||||
require_once(__dir__."/config.inc.php");
|
||||
|
||||
$aData[TABLE_USER] = array(
|
||||
'user_ID' => array(
|
||||
'type' => 'INT',
|
||||
'size' => 11,
|
||||
'unique' => 'TRUE',
|
||||
'standard' => 'NOT NULL',
|
||||
'extra' => 'AUTO_INCREMENT PRIMARY KEY'
|
||||
|
||||
),
|
||||
'name' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
),
|
||||
'email' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
),
|
||||
|
||||
'signal' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
),
|
||||
'sms' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
),
|
||||
'telegram' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
),
|
||||
'threema' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'size' => 255,
|
||||
'standard' => 'NOT NULL'
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user