require_once(ABS_PATH . "/autoload.php"); require_once(LIBS_PATH."/third-party/smarty/libs/Smarty.class.php"); include LIBS_PATH . "/classes/core/constants.php"; include LIBS_PATH . "/classes/core/connection.php"; include LIBS_PATH . "/classes/core/database.php"; include LIBS_PATH . "/classes/core/functions.php"; require_once(ABS_PATH . '/app.php');*/ $CrudGen = new CrudGenUtility(); if ($CrudGen->writeablePathsCreated() == false) { echo "Please create and fill the following Settings on vnd_site_settings: TemplatesWriteablePath, SrcWriteablePath, ClassesWriteablePath"; exit; } $Settings = new Settings(); $table_created = isset($_SESSION['crudgen']['table_created']) ? $_SESSION['crudgen']['table_created'] : ""; if (isset($_REQUEST['doSetTable'])) { $use_table = isset($_REQUEST['use_table']) ? trim($_REQUEST['use_table'] . chr(32)) : ""; $_SESSION['crudgen']['table_created'] = $use_table; } else { if (isset($_REQUEST['doRun'])) { if (!is_writable($Settings->settings['TemplatesWriteablePath']) || !is_writable($Settings->settings['SrcWriteablePath']) || !is_writable($Settings->settings['ClassesWriteablePath'])) { echo "One of the following paths needs to be writable but is not: " . $Settings->settings['TemplatesWriteablePath'] . ", " . $Settings->settings['SrcWriteablePath'] . ", " . $Settings->settings['ClassesWriteablePath']; exit; } $includeArr = isset($_REQUEST['include_fields']) ? trim($_REQUEST['include_fields'] . chr(32)) : "";