//error_reporting( E_ALL ^ E_DEPRECATED ); unset( $config, $aMenuTypes, $aPhotoTypes, $lang, $aBanners, $aBoxes ); /* * Directories */ $config['dir_core'] = 'core/'; $config['dir_db'] = 'db/'; $config['dir_libraries']= 'libraries/'; $config['dir_lang'] = 'lang/'; $config['dir_templates']= 'templates/'; $config['dir_themes'] = $config['dir_templates'].'themes/'; $config['dir_files'] = 'files/'; $config['dir_plugins'] = 'plugins/'; /* * Rewrite */ $config['friendly_links'] = null; define( 'FRIENDLY_LINKS', $config['friendly_links'] ); if( FRIENDLY_LINKS == true ) $config['redirect'] = null; else $config['redirect'] = $_SERVER['PHP_SELF']; define( 'REDIRECT', $config['redirect'] ); /* * Link to page limit */ $config['iLTPLimit'] = 4; $config['hidden_shows'] = false; /* * If You want embed PHP code in template files * set this variable true but it is not recommended and * script will be slower */ $config['embed_php'] = true; /* * Add minutes difference between your local time and server time */ $config['time_diff'] = 0; /* * Administrator login and password */ $config['login'] = "admin"; $config['pass'] = "ofestivalen2014"; /* * Default language */ $config['default_lang'] = "no"; /* * If should be use wysiwyg editor or default */ $config['users_plugin_active'] = false; $config['hide_authorized_pages'] = true; $config['wysiwyg'] = true; /* * If should be text size change option on pages */ $config['text_size'] = false; /* * If files should be copied if use the same */ $config['copy_the_same_files'] = true; /* * If should be language parameter added to url */ $config['language_in_url'] = false; /* * Language separator in url */ $config['language_separator'] = '_'; define( 'LANGUAGE_IN_URL', $config['language_in_url'] ); define( 'LANGUAGE_SEPARATOR', $config['language_separator'] ); /* * Leave code below! */ require_once $config['dir_core'].'common.php'; $config['cookie_admin'] = defined( 'CUSTOMER_PAGE' ) ? null : 'A'; if( defined( 'CUSTOMER_PAGE' ) && !isset( $sLang ) && LANGUAGE_IN_URL === true ) $sLang = getLanguageFromUrl( ); if( isset( $sLang ) && is_file( $config['dir_lang'].$sLang.'.php' ) && strlen( $sLang ) == 2 ){ setCookie( 'sLanguage'.$config['cookie_admin'], $sLang, time( ) + 86400 ); define( 'LANGUAGE', $sLang ); } else{ if( !empty( $_COOKIE['sLanguage'.$config['cookie_admin']] ) && is_file( $config['dir_lang'].$_COOKIE['sLanguage'.$config['cookie_admin']].'.php' ) && strlen( $_COOKIE['sLanguage'.$config['cookie_admin']] ) == 2 ) define( 'LANGUAGE', $_COOKIE['sLanguage'.$config['cookie_admin']] ); else define( 'LANGUAGE', $config['default_lang'] ); } $config['config'] = 'config/general.php'; $config['config_lang'] = 'config/lang_'.LANGUAGE.'.php'; $config_db['pages'] = $config['dir_db'].LANGUAGE.'_pages.php'; $config_db['pages_ext'] = $config['dir_db'].LANGUAGE.'_pages_ext.php'; $config_db['pages_files'] = $config['dir_db'].LANGUAGE.'_pages_files.php'; $config_db['users'] = $config['dir_db'].'users.php'; $config_db['users_pages'] = $config['dir_db'].LANGUAGE.'_users_pages.php'; $config_db['users_groups'] = $config['dir_db'].'users_groups.php'; $config_db['users_to_groups'] = $config['dir_db'].'users_to_groups.php'; $config_db['admins'] = $config['dir_db'].'admins.php'; $config_db['admins_privilages'] = $config['dir_db'].'admins_privilages.php'; $config_db['banners'] = $config['dir_db'].'banners.php'; $config_db['banners_stats'] = $config['dir_db'].'banners_stats.php'; $config_db['boxes'] = $config['dir_db'].LANGUAGE.'_boxes.php'; $config_db['pages_comments'] = $config['dir_db'].LANGUAGE.'_pages_comments.php'; $config_db['newsletter'] = $config['dir_db'].'newsletter.php'; $config_db['pages_tags'] = $config['dir_db'].LANGUAGE.'_pages_tags.php'; $config_db['pages_stats'] = $config['dir_db'].LANGUAGE.'_pages_stats.php'; $config_db['searched_words'] = $config['dir_db'].LANGUAGE.'_searched_words.php'; $config_db['poll_questions'] = $config['dir_db'].LANGUAGE.'_poll_questions.php'; $config_db['poll_answers'] = $config['dir_db'].LANGUAGE.'_poll_answers.php'; $config_db['poll_votes'] = $config['dir_db'].LANGUAGE.'_poll_votes.php'; $config['poll_max_answers'] = 7; $config['language'] = LANGUAGE; $config['version'] = '2.7'; $config['last_login'] = 1397646241; $config['before_last_login'] = 1397129746; $config['failed_login_time'] = "1398077956"; $config['failed_login_count'] = 3; $config['newsletter'] = true; $config['pages_images_sizes'] = Array( 0 => 100, 1 => 150, 2 => 200, 3 => 250, 4 => 300, 4 => 540); $config['max_dimension_of_image'] = 900; $config['display_all_files'] = true; $config['display_expanded_menu'] = false; $config['change_files_names'] = false; define( 'DIR_CORE', $config['dir_core'] ); define( 'DIR_DB', $config['dir_db'] ); define( 'DIR_FILES', $config['dir_files'] ); define( 'DIR_BACKUP', DIR_FILES.'backup/' ); define( 'DIR_LIBRARIES', $config['dir_libraries'] ); define( 'DIR_PLUGINS', $config['dir_plugins'] ); define( 'DIR_LANG', $config['dir_lang'] ); define( 'DIR_TEMPLATES', $config['dir_templates'] ); define( 'DIR_THEMES', $config['dir_themes'] ); define( 'DB_PAGES', $config_db['pages'] ); define( 'DB_PAGES_EXT', $config_db['pages_ext'] ); define( 'DB_PAGES_FILES', $config_db['pages_files'] ); define( 'DB_USERS', $config_db['users'] ); define( 'DB_USERS_PAGES', $config_db['users_pages'] ); define( 'DB_USERS_GROUPS', $config_db['users_groups'] ); define( 'DB_USERS_TO_GROUPS', $config_db['users_to_groups'] ); define( 'HIDE_AUTHORIZED_PAGES', $config['hide_authorized_pages'] ); define( 'DB_POLL_QUESTIONS', $config_db['poll_questions'] ); define( 'DB_POLL_ANSWERS', $config_db['poll_answers'] ); define( 'DB_POLL_VOTES', $config_db['poll_votes'] ); define( 'DB_ADMINS', $config_db['admins'] ); define( 'DB_ADMINS_PRIVILAGES', $config_db['admins_privilages'] ); define( 'DB_BANNERS', $config_db['banners'] ); define( 'DB_BANNERS_STATS', $config_db['banners_stats'] ); define( 'DB_BOXES', $config_db['boxes'] ); define( 'DB_PAGES_COMMENTS', $config_db['pages_comments'] ); define( 'DB_NEWSLETTER', $config_db['newsletter'] ); define( 'DB_PAGES_STATS', $config_db['pages_stats'] ); define( 'DB_SEARCHED_WORDS', $config_db['searched_words'] ); define( 'DB_PAGES_TAGS', $config_db['pages_tags'] ); define( 'DB_CONFIG', $config['config'] ); define( 'DB_CONFIG_LANG', $config['config_lang'] ); define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] ); define( 'POLL_MAX_ANSWERS', $config['poll_max_answers'] ); define( 'POLL_COOKIE_NAME', 'iPollAnswer' ); define( 'HIDDEN_SHOWS', $config['hidden_shows'] ); define( 'DISPLAY_EXPANDED_MENU', $config['display_expanded_menu'] ); define( 'WYSIWYG', $config['wysiwyg'] ); define( 'COPY_THE_SAME_FILES', $config['copy_the_same_files'] ); define( 'VERSION', $config['version'] ); define( 'TIME_DIFF', $config['time_diff'] ); define( 'SESSION_KEY_NAME', dirname( $_SERVER['REQUEST_URI'] ) ); ?>
Warning: require(DB_CONFIG_LANG) [function.require]: failed to open stream: No such file or directory in /var/www/web/wno456468/modumorientering.no/index.php on line 10

Fatal error: require() [function.require]: Failed opening required 'DB_CONFIG_LANG' (include_path='.:/usr/share/pear') in /var/www/web/wno456468/modumorientering.no/index.php on line 10