コード例 #1
0
// Options TRUE | FALSE bool
$dev_env = FALSE;
require_once "db-settings.php";
//Require DB connection
require_once "funcs.php";
require_once "error_functions.php";
require_once "template_functions.php";
require_once "password.php";
require_once "db_functions.php";
require_once "validation/Validator.php";
require_once "table_builder.php";
require_once "form_builder.php";
// Set validation parameters
Valitron\Validator::langDir(__DIR__ . '/validation/lang');
// always set langDir before lang.
Valitron\Validator::lang('en');
//Retrieve basic configuration settings
$settings = fetchConfigParameters();
//Grab plugin settings, used in plugin like so:
//$pvalue = $plugin_settings['variable_name']['config_value'];
/*
$pvalue = $plugin_settings['$pmsystem']['value'];
if ($pvalue != 1){
   // Forward to index page
   addAlert("danger", "Whoops, looks like the private message system is not enabled");
   header("Location: ".SITE_ROOT."account/index.php");
   exit();
}
*/
$plugin_settings = fetchConfigParametersPlugins();
//Set Settings
コード例 #2
0
ファイル: init.app.php プロジェクト: BatyaMedic/bgpanelv2
      */
     require APP_DIR . '/core/session.class.php';
     // Start new or resume existing session
     $coreSessionHandler = new Core_SessionHandler();
     session_set_save_handler($coreSessionHandler, TRUE);
     session_start();
     $_SESSION['TIMESTAMP'] = time();
 }
 /**
  * VALITRON Configuration
  * Valitron is a simple, minimal and elegant stand-alone validation library with NO dependencies
  *
  * @link https://github.com/vlucas/valitron#usage
  */
 Valitron\Validator::langDir(LIBS_DIR . '/valitron/lang');
 Valitron\Validator::lang($lang);
 /**
  * LOGGING Configuration
  * Apache Log4php configuration
  *
  * @link http://logging.apache.org/log4php/docs/configuration.html
  */
 if (CONF_LOGS_DIR != 'default' && is_writable(CONF_LOGS_DIR)) {
     // Override default configuration
     define('REAL_LOGGING_DIR', CONF_LOGS_DIR);
 } else {
     // Default configuration
     define('REAL_LOGGING_DIR', LOGS_DIR);
 }
 function bgp_log4php_def_conf()
 {