Example #1
0
<?php

class Config
{
    public static $host = '127.0.0.1';
    public static $user = '******';
    public static $pass = '';
    public static $base = 'siit';
    public static $home = '';
    public static $home_lib = '';
    public static $home_bin = '';
    public static $url = '';
    public static $ds = '';
    public static $debug = false;
    //depurar base
    public static $driver = 'mysql';
}
$pageURL = 'http';
if (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") {
    $pageURL .= "s";
}
$pageURL .= "://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
Config::$ds = DIRECTORY_SEPARATOR;
Config::$home = dirname(__FILE__);
Config::$home_lib = Config::$home . Config::$ds . 'lib' . Config::$ds;
Config::$home_bin = Config::$home . Config::$ds . 'bin' . Config::$ds;
Config::$url = $pageURL;
Example #2
0
 public function url($url = NULL)
 {
     parent::url('login.php');
 }
Example #3
0
 public function url($url = NULL)
 {
     parent::url('index.php');
 }
Example #4
0
<div class="utilitybar">
	<span style="float: left;">
		You are not logged in, <a href="<?php 
echo Config::url('login');
?>
">click here</a> to login now
	</span>
	<form method="POST" class="utilitybar search">
		<input type="text" name="search"/> <input type="image" src="<?php 
echo $theme->assets->images['utilitybar_search']->url;
?>
"/>
	</form>
</div>
 public function url($url = NULL)
 {
     parent::url('register_form.php');
 }