mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Changes to include location + some other misc stuff
git-svn-id: file:///svn/phpbb/trunk@646 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -23,9 +23,8 @@
|
||||
***************************************************************************/
|
||||
|
||||
//
|
||||
// Define some basic configuration arrays
|
||||
// this also prevents malicious rewriting
|
||||
// of language array values via URI params
|
||||
// Define some basic configuration arrays this also prevents
|
||||
// malicious rewriting of language array values via URI params
|
||||
//
|
||||
$board_config = Array();
|
||||
$userdata = Array();
|
||||
@@ -33,38 +32,45 @@ $theme = Array();
|
||||
$images = Array();
|
||||
$lang = Array();
|
||||
|
||||
include('config.'.$phpEx);
|
||||
include('includes/constants.'.$phpEx);
|
||||
if(empty($phpbb_root_path))
|
||||
{
|
||||
$phpbb_root_path = "./";
|
||||
}
|
||||
include($phpbb_root_path . 'config.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/constants.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/template.inc');
|
||||
include($phpbb_root_path . 'includes/error.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/message.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/auth.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/functions.'.$phpEx);
|
||||
include($phpbb_root_path . 'includes/db.'.$phpEx);
|
||||
|
||||
//
|
||||
// This would probably be best moved to a template
|
||||
// specific file, eg "images.tpl"
|
||||
//
|
||||
$url_images = "images";
|
||||
|
||||
$images['quote'] = "$url_images/icon_quote.gif";
|
||||
$images['edit'] = "$url_images/icon_edit.gif";
|
||||
$images['search_icon'] = "$url_images/search_icon.gif";
|
||||
$images['search_icon'] = "$url_images/icon_search.gif";
|
||||
$images['profile'] = "$url_images/icon_profile.gif";
|
||||
$images['privmsg'] = "$url_images/icon_pm.gif";
|
||||
$images['email'] = "$url_images/icon_email.gif";
|
||||
$images['delpost'] = "$url_images/edit.gif";
|
||||
$images['delpost'] = "$url_images/icon_delete.gif";
|
||||
$images['ip'] = "$url_images/icon_ip.gif";
|
||||
$images['www'] = "$url_images/icon_www.gif";
|
||||
$images['icq'] = "$url_images/icon_icq_add.gif";
|
||||
$images['aim'] = "$url_images/icon_aim.gif";
|
||||
$images['yim'] = "$url_images/icon_yim.gif";
|
||||
$images['msnm'] = "$url_images/icon_msnm.gif";
|
||||
$images['posticon'] = "$url_images/posticon.gif";
|
||||
$images['posticon'] = "$url_images/icon_minipost.gif";
|
||||
$images['folder'] = "$url_images/folder.gif";
|
||||
$images['new_folder'] = "$url_images/red_folder.gif";
|
||||
$images['latest_reply'] = "$url_images/latest_reply.gif";
|
||||
$images['new_folder'] = "$url_images/folder_new.gif";
|
||||
$images['latest_reply'] = "$url_images/icon_latest_reply.gif";
|
||||
$images['locked_folder'] = "$url_images/folder_lock.gif";
|
||||
|
||||
include('includes/template.inc');
|
||||
|
||||
include('includes/error.'.$phpEx);
|
||||
include('includes/message.'.$phpEx);
|
||||
include('includes/sessions.'.$phpEx);
|
||||
include('includes/auth.'.$phpEx);
|
||||
include('includes/functions.'.$phpEx);
|
||||
include('includes/db.'.$phpEx);
|
||||
|
||||
//
|
||||
// Obtain and encode users IP
|
||||
//
|
||||
@@ -140,7 +146,13 @@ else
|
||||
$board_config['smtp_host'] = $config['smtp_host'];
|
||||
}
|
||||
|
||||
include('language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
|
||||
//
|
||||
// This doesn't need to be here, it's only neccesary
|
||||
// for the following if loop because a language file
|
||||
// will be loaded post-session initialisation (or the default
|
||||
// English one will load if a CRITICAL_ERROR occurs)
|
||||
//
|
||||
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
|
||||
|
||||
if($board_config['board_disable'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user