Ejemplo n.º 1
0
<?php

namespace Core\Extensions;

use Core\Libraries\FreedomCore\System\Manager;
use Core\Libraries\FreedomCore\System\Database;
use Core\Libraries\FreedomCore\System\Text;
use Core\Libraries\FreedomCore\System\File;
use PDO;
Manager::LoadExtension('DatabaseManager');
use Core\Extensions\DatabaseManager as DBManager;
class Installer
{
    /**
     * Smarty Template Manager Variable
     * @var
     */
    private $TM;
    /**
     * Reference to DatabaseManager Class
     * @var
     */
    private $DBManager;
    /**
     * Website Connection PDO Object
     * @var
     */
    private $Connection = null;
    /**
     * Installer Class Constructor
     * @param null $TemplatesManager
Ejemplo n.º 2
0
<?php

define('IDS', DIRECTORY_SEPARATOR);
define('BASE_DIRECTORY', str_replace(IDS . 'Install', IDS, getcwd()));
chdir(BASE_DIRECTORY);
if ($_SERVER['REQUEST_URI'] != '/Install/complete?true') {
    $_ENV['installation_in_progress'] = true;
}
if (strstr($_SERVER['REQUEST_URI'], 'ajax') || strstr($_SERVER['REQUEST_URI'], 'finalize')) {
    unset($_ENV['installation_in_progress']);
}
require_once 'Core' . IDS . 'Core.php';
use Core\Libraries\FreedomCore\System\Manager;
Manager::LoadExtension('Installer', [$Smarty]);
use Core\Extensions\Installer;
$Installer = new Installer();
$Smarty->translate('Installation');
Ejemplo n.º 3
0
<?php

require_once 'Core/Classes/Bootstrap.Class.php';
use Core\Classes\Bootstrap;
use Core\Classes\ErrorHandler;
use Core\Libraries\FreedomCore\System\Manager;
use Core\Libraries\FreedomCore\System\Session;
use Core\Extensions\User;
use Core\Extensions\Account;
if (isset($_ENV['installation_in_progress'])) {
    Bootstrap::Initialize(false);
} else {
    Bootstrap::Initialize();
    $Session = new Session();
    Manager::LoadExtension('DatabaseManager');
    $User = Manager::LoadExtension('User', $Smarty, true);
    $Account = Manager::LoadExtension('Account', $Smarty, true);
    $Website = Manager::LoadExtension('Website', $Smarty, true);
}
new ErrorHandler($Smarty);
Ejemplo n.º 4
0
 /**
  * This Method Is Used To Load System Extensions
  */
 private function InitializeSystem()
 {
     Manager::LoadSystemExtension("Security");
     Manager::LoadSystemExtension("Session");
     Manager::LoadSystemExtension("Debugger");
     Manager::LoadSystemExtension("Utilities");
     Manager::LoadSystemExtension("Text");
     Manager::LoadSystemExtension("Database");
     Manager::LoadSystemExtension("Page");
     Manager::LoadSystemExtension("File");
 }