Changeset 888
- Timestamp:
- 09/20/05 15:41:52 (3 years ago)
- Files:
-
- 1 modified
-
trunk/rss/init.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/init.php
r858 r888 39 39 } 40 40 41 //////////////////////////////////////////////////////////////////////////////// 41 42 // my-hacks support 43 // 44 42 45 if (file_exists(dirname(__FILE__) . '/rss_extra.php')) { 43 46 rss_require('rss_extra.php'); 44 47 } 48 49 //////////////////////////////////////////////////////////////////////////////// 50 // Base includes 51 // 45 52 46 53 rss_require('constants.php'); … … 50 57 rss_require('db.php'); 51 58 rss_require('config.php'); 59 60 61 //////////////////////////////////////////////////////////////////////////////// 62 // Error reporting 63 // 52 64 53 65 if (getConfig('rss.meta.debug')) { … … 61 73 } 62 74 75 //////////////////////////////////////////////////////////////////////////////// 76 // Classes 77 // 78 63 79 _pf('parsing classes:'); 64 80 rss_require('cls/errorhandler.php'); _pf(' ... errorhandler.php'); 65 81 rss_require('cls/items.php'); _pf(' ... items.php'); 66 82 rss_require("cls/channels.php"); _pf(' ... channels.php'); 67 rss_require('cls/sidemenu.php'); _pf(' ... sidemenu.php');83 rss_require('cls/sidemenu.php'); _pf(' ... sidemenu.php'); 68 84 rss_require("cls/header.php"); _pf(' ... header.php'); 69 85 rss_require("cls/nav.php"); _pf(' ... nav.php'); … … 77 93 rss_require('tags.php'); 78 94 79 95 //////////////////////////////////////////////////////////////////////////////// 96 // Localization 97 // 80 98 $lang = getConfig('rss.output.lang'); 81 99 … … 85 103 rss_require('intl/en.php'); 86 104 } 105 106 // Theme specific l10n handling 107 $theme = defined('THEME_OVERRIDE')? 108 constant("THEME_OVERRIDE"):getConfig('rss.output.theme'); 109 if (isset($_REQUEST['theme'])) { 110 $theme = preg_replace('/[^a-zA-Z0-9_]/','',$_REQUEST['theme']); 111 } 112 113 if (file_exists(RSS_THEME_DIR."/$theme/intl/$lang.php")) { 114 rss_require(RSS_THEME_DIR."/$theme/intl/$lang.php"); 115 } elseif ($lang != "en" && file_exists(RSS_THEME_DIR."/$theme/intl/en.php")) { 116 rss_require(RSS_THEME_DIR."/$theme/intl/en.php"); 117 } 118 119 87 120 88 121 // Load the right locale
