Added base_path settings (which you normally don't need to touch)
authorRoland Häder <roland@mxchange.org>
Wed, 30 Mar 2016 09:00:32 +0000 (11:00 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Mar 2016 09:00:32 +0000 (11:00 +0200)
index.php

index 78e5ff4..61c6488 100644 (file)
--- a/index.php
+++ b/index.php
                // Website title
                'title' => 'strace.club',
 
-               // Directory to store uploaded files
+               // Base path (auto-detection)
+               'base_path' => dirname(__FILE__) . DIRECTORY_SEPARATOR,
+
+               // Directory to store uploaded files (relative to base_path)
                'uploaddir' => '.',
 
                // Display list uploaded files
        $data['ignores'][] = basename($data['scriptname']);
 
        // Use canonized path
-       $data['uploaddir'] = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . $settings['uploaddir']);
+       $data['uploaddir'] = realpath($settings['base_path'] . $settings['uploaddir']);
 
        // Maximum upload size, set by system
        $data['max_upload_size'] = ini_get('upload_max_filesize');