diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-19 13:30:47 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-19 13:30:47 +0000 |
commit | 28cb3849947f08b9322150f97a85b475ee94c0f5 (patch) | |
tree | 5394ab59f2018f4831a5037f53571b5b873d550e | |
parent | 329b5e116bb7fb526e0a7153c2323fce54e39c77 (diff) | |
download | forums-28cb3849947f08b9322150f97a85b475ee94c0f5.tar forums-28cb3849947f08b9322150f97a85b475ee94c0f5.tar.gz forums-28cb3849947f08b9322150f97a85b475ee94c0f5.tar.bz2 forums-28cb3849947f08b9322150f97a85b475ee94c0f5.tar.xz forums-28cb3849947f08b9322150f97a85b475ee94c0f5.zip |
Moved defaults to common + dir move changes
git-svn-id: file:///svn/phpbb/trunk@184 89ea8834-ac86-4346-8a33-228a782c2dd0
-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"; - ?> |