diff options
-rw-r--r-- | phpBB/common.php | 34 | ||||
-rw-r--r-- | phpBB/config.php | 21 |
2 files changed, 30 insertions, 25 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 7028adf626..beb485fa30 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -25,6 +25,32 @@ include('config.'.$phpEx); include('includes/constants.'.$phpEx); +// +// Default variable values - most if not all +// of these have equivalents in a DB table but +// for situations where the DB cannot be read or where +// data is missing this data is used instead +// +//$date_format = "m-d-Y H:i:s"; // American datesformat +$date_format = "d M Y h:i:s a"; // European datesformat + +$url_images = "images"; +$image_quote = "$url_images/quote.gif"; + +$image_edit = "$url_images/edit.gif"; +$image_profile = "$url_images/profile.gif"; +$image_email = "$url_images/email.gif"; +$image_pmsg = "$url_images/pm.gif"; +$image_delpost = "$url_images/edit.gif"; + +$image_ip = "$url_images/ip_logged.gif"; + +$image_www = "$url_images/www_icon.gif"; +$image_icq = "$url_images/icq_add.gif"; +$image_aim = "$url_images/aim.gif"; +$image_yim = "$url_images/yim.gif"; +$image_msnm = "$url_images/msnm.gif"; + // Find Users real IP (if possible) $user_ip = ($HTTP_X_FORWARDED_FOR) ? $HTTP_X_FORWARDED_FOR : $REMOTE_ADDR; @@ -32,10 +58,10 @@ $user_ip = ($HTTP_X_FORWARDED_FOR) ? $HTTP_X_FORWARDED_FOR : $REMOTE_ADDR; include('includes/template.inc'); $template = new Template("./templates/Default"); -include('functions/error.'.$phpEx); -include('functions/sessions.'.$phpEx); -include('functions/auth.'.$phpEx); -include('functions/functions.'.$phpEx); +include('includes/error.'.$phpEx); +include('includes/sessions.'.$phpEx); +include('includes/auth.'.$phpEx); +include('includes/functions.'.$phpEx); include('includes/db.'.$phpEx); // Initalize to keep safe diff --git a/phpBB/config.php b/phpBB/config.php index 9820a6cf02..e55278aef6 100644 --- a/phpBB/config.php +++ b/phpBB/config.php @@ -37,28 +37,7 @@ $dbname = ""; $dbuser = ""; $dbpasswd = ""; -// Date format (needs to go into DB) -//$date_format = "m-d-Y H:i:s"; // American datesformat -$date_format = "d M Y h:i:s a"; // European datesformat - // DB table prefix $table_prefix = "phpbb_"; -$url_images = "images"; -$image_quote = "$url_images/quote.gif"; - -$image_edit = "$url_images/edit.gif"; -$image_profile = "$url_images/profile.gif"; -$image_email = "$url_images/email.gif"; -$image_pmsg = "$url_images/pm.gif"; -$image_delpost = "$url_images/edit.gif"; - -$image_ip = "$url_images/ip_logged.gif"; - -$image_www = "$url_images/www_icon.gif"; -$image_icq = "$url_images/icq_add.gif"; -$image_aim = "$url_images/aim.gif"; -$image_yim = "$url_images/yim.gif"; -$image_msnm = "$url_images/msnm.gif"; - ?> |