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'] = [