Пример #1
0
 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));
     }
     // ----------------------------------------------------------------------
 }
Пример #2
0
// Telif Hakkı: Copyright (c) 2012-2016, zntr.net
//
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
// INI Ayarlarını Yapılandırma İşlemi
//----------------------------------------------------------------------------------------------------
$iniSet = Config::get('Ini', 'settings');
if (!empty($iniSet)) {
    Config::iniSet($iniSet);
}
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
// Htaccess Dosyası Oluşturma İşlemi
//----------------------------------------------------------------------------------------------------
if (Config::get('Htaccess', 'createFile') === true) {
    createHtaccessFile();
}
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
// Fonksiyon Yükleme İşlemleri
//----------------------------------------------------------------------------------------------------
$starting = Config::get('Starting');
if ($starting['autoload']['status'] === true) {
    $startingAutoload = Folder::allFiles(AUTOLOAD_DIR, $starting['autoload']['recursive']);
    //------------------------------------------------------------------------------------------------
    // Otomatik Olarak Yüklenen Fonksiyonlar
    //------------------------------------------------------------------------------------------------
    if (!empty($startingAutoload)) {
        foreach ($startingAutoload as $file) {
            $file = restorationPath(suffix($file, '.php'));
            if (is_file($file)) {