From 1137ff3cee1ea992945e2e4ff3eb1e0a52ddfc6a Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 29 Mar 2015 23:07:55 +0200 Subject: [PATCH] fix --- main/imageserve.php | 4 ++-- main/index.php | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/main/imageserve.php b/main/imageserve.php index dbdfa21..77642ed 100644 --- a/main/imageserve.php +++ b/main/imageserve.php @@ -6,8 +6,8 @@ // Declare Namespace namespace Sakura; -// Define Sakura Path -define('ROOT_DIRECTORY', str_replace('main', '', dirname(__FILE__))); +// Include components +require_once '/var/www/flashii.net/_sakura/sakura.php'; // Set Content type header('Content-Type: application/octet-stream'); diff --git a/main/index.php b/main/index.php index ba9a087..9a6b82a 100644 --- a/main/index.php +++ b/main/index.php @@ -6,11 +6,8 @@ // Declare Namespace namespace Sakura; -// Define Sakura Path -define('ROOT_DIRECTORY', str_replace('main', '', dirname(__FILE__))); - // Include components -require_once ROOT_DIRECTORY .'_sakura/sakura.php'; +require_once '/var/www/flashii.net/_sakura/sakura.php'; // Add page specific things $renderData['page'] = [