From f27dfa4efbf6565dfc649e1f7f5fbf8e07128dcb Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 17 Sep 2009 12:25:32 +0000 Subject: [PATCH] Logic change: include "load-yourls.php" instead of "config.php" to start engine git-svn-id: http://yourls.googlecode.com/svn/trunk@170 12232710-3e20-11de-b438-597f59cd7555 --- admin/index.php | 4 ++-- admin/index_ajax.php | 2 +- admin/tools.php | 2 +- admin/upgrade.php | 2 +- includes/load-yourls.php | 10 +++++++--- sample-public-front-page.php | 2 +- yourls-api.php | 2 +- yourls-go.php | 2 +- yourls-infos.php | 2 +- 9 files changed, 16 insertions(+), 12 deletions(-) diff --git a/admin/index.php b/admin/index.php index 61f6878..35bef2b 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,6 +1,6 @@ config.php. Please read the readme.html to learn how to install YOURLS'); + +require_once (dirname(__FILE__).'/config.php'); require_once (dirname(__FILE__).'/version.php'); require_once (dirname(__FILE__).'/functions.php'); require_once (dirname(__FILE__).'/functions-baseconvert.php'); @@ -25,7 +29,7 @@ yourls_db_connect(); } -// Read option right from start +// Read options right from start yourls_get_all_options(); // Check if upgrade is needed. diff --git a/sample-public-front-page.php b/sample-public-front-page.php index 6274fb2..1f42323 100644 --- a/sample-public-front-page.php +++ b/sample-public-front-page.php @@ -14,7 +14,7 @@

YOURLS: Your Own URL Shortener