public static function run() { // INI AYARLAR YAPILANDIRILIYOR... $iniSet = Config::get('Ini', 'settings'); if (!empty($iniSet)) { Config::iniSet($iniSet); } // ---------------------------------------------------------------------- // HTACCESS DOSYASI OLUŞTURULUYOR... if (Config::get('Htaccess', 'createFile') === true) { createHtaccessFile(); } // ---------------------------------------------------------------------- // COMPOSER DOSYASI OLUŞTURULUYOR... $composer = Config::get('Composer', 'autoload'); if ($composer === true) { $path = 'vendor/autoload.php'; if (file_exists($path)) { require_once $path; } else { report('Error', getMessage('Error', 'fileNotFound', $path), 'AutoloadComposer'); die(getErrorMessage('Error', 'fileNotFound', $path)); } } elseif (file_exists($composer)) { require_once $composer; } elseif (!empty($composer)) { report('Error', getMessage('Error', 'fileNotFound', $composer), 'AutoloadComposer'); die(getErrorMessage('Error', 'fileNotFound', $composer)); } // ---------------------------------------------------------------------- }
public function __construct() { Config::iniSet(Config::get('Session', 'settings')); $this->config = Config::get('Session'); if (!isset($_SESSION)) { session_start(); } }
public function __construct() { Config::iniSet(Config::get('Upload', 'settings')); }
// Set Error Handler //-------------------------------------------------------------------------------------------------- // // Yakanalan hata set ediliyor. // //-------------------------------------------------------------------------------------------------- if (PROJECT_MODE !== 'publication') { set_error_handler('Exceptions::table'); } //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- // INI Ayarlarını Yapılandırma İşlemi //-------------------------------------------------------------------------------------------------- $iniSet = Config::get('Htaccess', 'ini')['settings']; if (!empty($iniSet)) { Config::iniSet($iniSet); } //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- // Htaccess Dosyası Oluşturma İşlemi //-------------------------------------------------------------------------------------------------- if (Config::get('Htaccess', 'createFile') === true) { internalCreateHtaccessFile(); } //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- // Robots Dosyası Oluşturma İşlemi //-------------------------------------------------------------------------------------------------- if (Config::get('Robots', 'createFile') === true) { internalCreateRobotsFile(); }