remove static locations

This commit is contained in:
flash 2015-04-06 16:15:20 +00:00
parent 90a36eab15
commit 8f8694f18a
10 changed files with 63 additions and 63 deletions

View file

@ -8,10 +8,10 @@
namespace Sakura;
// Define Sakura version
define('SAKURA_VERSION', '20150405');
define('SAKURA_VERSION', '20150406');
// Define Sakura Path
define('ROOT', str_replace('_sakura', '', dirname(__FILE__)));
define('ROOT', str_replace(basename(__DIR__), '', dirname(__FILE__)));
// Error Reporting: 0 for production and -1 for testing
error_reporting(-1);

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Print page contents
print Main::tplRender('errors/http404.tpl', $renderData);

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Add page specific things
$renderData['page'] = [

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Set Content type
header('Content-Type: application/octet-stream');

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Add page specific things
$renderData['page'] = [

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Set default variables
$renderData['page'] = [

View file

@ -7,7 +7,7 @@
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Add page specific things
$renderData['newsPosts'] = Main::getNewsPosts((isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])) ? $_GET['id'] : null, (isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])));