<?php
define("DEBUG",true);
define("ROOT", dirname(__DIR__));
define('WWW', ROOT.'/');
define("APP", ROOT.'/app');
define("CORE", ROOT.'/vendor/ishop/core');
define("LIBS", ROOT.'/vendor/ishop/core/libs');
define("CACHE", ROOT.'/tmp/cache');
define("CONF", ROOT.'/config');
define("LAYOUT", ROOT.'default');
//http://phpmaster.localhost/public/index.php
//$app_path = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
//
////http://phpmaster.localhost/public/
//$app_path = preg_replace("#[^/]+$#",'', $app_path);
//
////http://phpmaster.localhost/
//$app_path = str_replace('public/', '', $app_path);
//
//define('PATH', $app_path);
//define('ADMIN', PATH. '/admin');
