diff --git a/config.default.php b/config.default.php
index ae54c5c4..59c602b3 100644
--- a/config.default.php
+++ b/config.default.php
@@ -225,6 +225,11 @@ if (!defined('HEADER_EXPANDER')) define('HEADER_EXPANDER', false);
*/
if (!defined('SYSTEM_SORT_MINUTES')) define ('SYSTEM_SORT_MINUTES',5);
+/**
+ * Allow page refreshing
+ */
+if (!defined('ALLOW_PAGE_REFRESH')) define ('ALLOW_PAGE_REFRESH',true);
+
/**
* Database configuration for queXS
*/
diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php
index 4651887f..93eb525c 100644
--- a/functions/functions.xhtml.php
+++ b/functions/functions.xhtml.php
@@ -56,7 +56,7 @@ print "";
foreach ($css as $c) print "";
if ($javascript)
foreach ($javascript as $j) print "";
- if ($refresh)
+ if ($refresh && ALLOW_PAGE_REFRESH)
{
print "