예제 #1
0
 private function getUrl()
 {
     $url = isset($_GET["url"]) ? $_GET["url"] : "";
     unset($_GET["url"]);
     $url = explode("/", trim($url, "/"), 3);
     if (count($url) > 0) {
         $url[0] = str_replace(" ", "", ucwords($url[0]));
         Config::Write("control", ($url[0] != "" ? $url[0] : "Index") . "Control");
         Config::Write("function", isset($url[1]) ? str_replace(" ", "", $url[1]) : "index");
         Config::Write("parametros", isset($url[2]) ? $url[2] : "");
     }
 }
예제 #2
0
파일: config.php 프로젝트: lfjaimesb/sic
<?php

use Core\Config;
Config::Write("CACHE", false);
Config::Write("BD_HOST", "localhost");
Config::Write("BD_NAME", "erp");
Config::Write("BD_USER", "root");
Config::Write("BD_PASS", "bm9ybWFu");
Config::Write("BD_DRIVE", "mysql");
Config::Write('control', "indexControl");
Config::Write('function', "index");
Config::Write('parametros', '');
/*****  Selección de plantillas *****/
Config::Write("FPLANTILLA", "boot");
Config::Write("Admin", "admin");
Config::Write("Page", array("panel" => "cliente"));
Config::Write("IMG", array("images", "banners"));
Config::Write("SESSION", "MANAGER");
Config::Write("Formatos", array("image/png", "image/pjpeg", "image/jpg", "image/jpeg", "image/gif"));
Config::Write("SizeImage", array("Logo" => 2));
Config::Write("DimImage", array("Logo" => array(250, 250)));
Config::Write("SALT", "secret");