Permalink
Browse files

Changing PUN_ROOT to use absolute paths, this solves some issues with…

… APC when stat=0, as well as generally being good practice.
  • Loading branch information...
1 parent 62b80a1 commit f5ee8363628ebb668214fab17c73f7c7cef7c2bc @reines reines committed Dec 7, 2010
Showing with 33 additions and 33 deletions.
  1. +1 −1 admin_bans.php
  2. +1 −1 admin_categories.php
  3. +1 −1 admin_censoring.php
  4. +1 −1 admin_forums.php
  5. +1 −1 admin_groups.php
  6. +1 −1 admin_index.php
  7. +1 −1 admin_loader.php
  8. +1 −1 admin_maintenance.php
  9. +1 −1 admin_options.php
  10. +1 −1 admin_permissions.php
  11. +1 −1 admin_prune.php
  12. +1 −1 admin_ranks.php
  13. +2 −2 admin_reports.php
  14. +1 −1 admin_users.php
  15. +1 −1 db_update.php
  16. +1 −1 delete.php
  17. +1 −1 edit.php
  18. +1 −1 extern.php
  19. +1 −1 help.php
  20. +1 −1 index.php
  21. +1 −1 install.php
  22. +1 −1 login.php
  23. +1 −1 misc.php
  24. +1 −1 moderate.php
  25. +1 −1 post.php
  26. +2 −2 profile.php
  27. +1 −1 register.php
  28. +1 −1 search.php
  29. +1 −1 userlist.php
  30. +1 −1 viewforum.php
  31. +1 −1 viewtopic.php
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
@@ -11,7 +11,7 @@
// Tell common.php that we don't want output buffering
define('PUN_DISABLE_BUFFERING', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
@@ -173,4 +173,4 @@
</div>
<?php
-require PUN_ROOT.'footer.php';
+require PUN_ROOT.'footer.php';
View
@@ -9,7 +9,7 @@
// Tell header.php to use the admin template
define('PUN_ADMIN_CONSOLE', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/common_admin.php';
View
@@ -34,7 +34,7 @@
if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
exit('You are running PHP version '.PHP_VERSION.'. FluxBB '.UPDATE_TO.' requires at least PHP '.MIN_PHP_VERSION.' to run properly. You must upgrade your PHP installation before you can continue.');
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
// Attempt to load the configuration file config.php
if (file_exists(PUN_ROOT.'config.php'))
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -57,7 +57,7 @@
define('PUN_QUIET_VISIT', 1);
if (!defined('PUN_ROOT'))
- define('PUN_ROOT', './');
+ define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
// The length at which topic subjects will be truncated (for HTML output)
View
@@ -9,7 +9,7 @@
// Tell header.php to use the help template
define('PUN_HELP', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -20,7 +20,7 @@
define('PUN_SEARCH_MAX_WORD', 20);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
// If we've been passed a default language, use it
$default_lang = isset($_POST['req_default_lang']) ? trim($_POST['req_default_lang']) : 'English';
View
@@ -9,7 +9,7 @@
if (isset($_GET['action']))
define('PUN_QUIET_VISIT', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -9,7 +9,7 @@
if (isset($_GET['action']))
define('PUN_QUIET_VISIT', 1);
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
// Include UTF-8 function
@@ -1734,4 +1734,4 @@
<?php
require PUN_ROOT.'footer.php';
-}
+}
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -9,7 +9,7 @@
// The contents of this file are very much inspired by the file search.php
// from the phpBB Group forum software phpBB2 (http://www.phpbb.com)
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
// Load the search.php language file
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
View
@@ -6,7 +6,7 @@
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
-define('PUN_ROOT', './');
+define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';

0 comments on commit f5ee836

Please sign in to comment.