diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/update.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/db/update.php b/db/update.php index 992ce715..ad72ec05 100644 --- a/db/update.php +++ b/db/update.php @@ -1,9 +1,9 @@ <?php -require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'bootstrap.php'); -require_once ('includes/mysql_provider.php'); -require_once('config/config.default.php'); -if(file_exists('config/config.php')) - require_once ('config/config.php'); + +require_once realpath(__DIR__ . '/../includes/mysql_provider.php'); +require_once realpath(__DIR__ . '/../config/config.default.php'); +if(file_exists(realpath(__DIR__ . '/../config/config.php'))) + require_once realpath(__DIR__ . '/../config/config.php'); sql_connect($config['host'], $config['user'], $config['pw'], $config['db']); error_reporting(E_ALL | E_NOTICE); |