Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f5ee8363628ebb668214fab17c73f7c7cef7c2bc 1 parent 62b80a1
@reines reines authored
View
2  admin_bans.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
2  admin_categories.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
2  admin_censoring.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
2  admin_forums.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
2  admin_groups.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
2  admin_index.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
2  admin_loader.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
2  admin_maintenance.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
2  admin_options.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
2  admin_permissions.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
2  admin_prune.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
2  admin_ranks.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
4 admin_reports.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';
@@ -173,4 +173,4 @@
</div>
<?php
-require PUN_ROOT.'footer.php';
+require PUN_ROOT.'footer.php';
View
2  admin_users.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
2  db_update.php
@@ -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
2  delete.php
@@ -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
2  edit.php
@@ -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
2  extern.php
@@ -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
2  help.php
@@ -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
2  index.php
@@ -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
2  install.php
@@ -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
2  login.php
@@ -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
2  misc.php
@@ -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
2  moderate.php
@@ -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
2  post.php
@@ -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
4 profile.php
@@ -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
2  register.php
@@ -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
2  search.php
@@ -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
2  userlist.php
@@ -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
2  viewforum.php
@@ -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
2  viewtopic.php
@@ -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';
Please sign in to comment.
Something went wrong with that request. Please try again.