Refactor project structure
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include dirname(__FILE__).'/config.php';
|
||||
include(CLIENT_APP_PATH.'../lib/adodb512/adodb.inc.php');
|
||||
include(CLIENT_APP_PATH.'../core/lib/adodb512/adodb.inc.php');
|
||||
|
||||
$isConfigFileExists = file_exists(CLIENT_APP_PATH."config.php");
|
||||
$configData = file_get_contents(CLIENT_APP_PATH."config.php");
|
||||
@@ -94,7 +94,7 @@ if($action == "TEST_DB"){
|
||||
|
||||
|
||||
//Run create table script
|
||||
$insql = file_get_contents(CLIENT_APP_PATH."../scripts/".APP_ID."db.sql");
|
||||
$insql = file_get_contents(CLIENT_APP_PATH."../core/scripts/".APP_ID."db.sql");
|
||||
$sql_list = preg_split('/;/',$insql);
|
||||
foreach($sql_list as $sql){
|
||||
if (preg_match('/^\s+$/', $sql) || $sql == '') { # skip empty lines
|
||||
@@ -104,7 +104,7 @@ if($action == "TEST_DB"){
|
||||
}
|
||||
|
||||
//Run create table script
|
||||
$insql = file_get_contents(CLIENT_APP_PATH."../scripts/".APP_ID."_master_data.sql");
|
||||
$insql = file_get_contents(CLIENT_APP_PATH."../core/scripts/".APP_ID."_master_data.sql");
|
||||
$sql_list = preg_split('/;/',$insql);
|
||||
foreach($sql_list as $sql){
|
||||
if (preg_match('/^\s+$/', $sql) || $sql == '') { # skip empty lines
|
||||
|
||||
Reference in New Issue
Block a user