Changeset 1071 in ExiteCMS
- Timestamp:
- 11/06/07 17:12:56 (4 years ago)
- Location:
- trunk
- Files:
-
- 62 edited
-
administration/administrators.php (modified) (2 diffs)
-
administration/article_cats.php (modified) (3 diffs)
-
administration/articles.php (modified) (5 diffs)
-
administration/blacklist.php (modified) (3 diffs)
-
administration/comments.php (modified) (2 diffs)
-
administration/custom_pages.php (modified) (4 diffs)
-
administration/db_backup.php (modified) (2 diffs)
-
administration/download_cats.php (modified) (2 diffs)
-
administration/downloads.php (modified) (2 diffs)
-
administration/faq.php (modified) (3 diffs)
-
administration/forum_polls.php (modified) (2 diffs)
-
administration/forums.php (modified) (3 diffs)
-
administration/forums_prune.php (modified) (1 diff)
-
administration/images.php (modified) (3 diffs)
-
administration/index.php (modified) (2 diffs)
-
administration/members.php (modified) (2 diffs)
-
administration/modules.php (modified) (2 diffs)
-
administration/news.php (modified) (2 diffs)
-
administration/news_cats.php (modified) (3 diffs)
-
administration/panel_editor.php (modified) (2 diffs)
-
administration/panels.php (modified) (2 diffs)
-
administration/redirects.php (modified) (2 diffs)
-
administration/settings_forum.php (modified) (2 diffs)
-
administration/settings_image.php (modified) (2 diffs)
-
administration/settings_languages.php (modified) (4 diffs)
-
administration/settings_main.php (modified) (2 diffs)
-
administration/settings_messages.php (modified) (2 diffs)
-
administration/settings_misc.php (modified) (2 diffs)
-
administration/settings_registration.php (modified) (2 diffs)
-
administration/settings_time.php (modified) (2 diffs)
-
administration/site_links.php (modified) (2 diffs)
-
administration/tools.php (modified) (2 diffs)
-
administration/upgrade.php (modified) (2 diffs)
-
administration/upgrade/rev01067.php (modified) (1 diff)
-
administration/user_groups.php (modified) (3 diffs)
-
article_cats.php (modified) (2 diffs)
-
contact.php (modified) (2 diffs)
-
downloads.php (modified) (2 diffs)
-
edit_profile.php (modified) (3 diffs)
-
faq.php (modified) (2 diffs)
-
feeds.php (modified) (1 diff)
-
forum/index.php (modified) (2 diffs)
-
forum/options.php (modified) (9 diffs)
-
forum/post.php (modified) (4 diffs)
-
forum/viewforum.php (modified) (2 diffs)
-
forum/viewthread.php (modified) (2 diffs)
-
includes/comments_include.php (modified) (2 diffs)
-
includes/forum_functions_include.php (modified) (1 diff)
-
includes/locale_functions.php (modified) (5 diffs)
-
includes/ratings_include.php (modified) (2 diffs)
-
includes/theme_functions.php (modified) (4 diffs)
-
locale/English/admin/main.php (modified) (1 diff)
-
lostpassword.php (modified) (5 diffs)
-
members.php (modified) (2 diffs)
-
news_cats.php (modified) (2 diffs)
-
pm.php (modified) (4 diffs)
-
print.php (modified) (2 diffs)
-
profile.php (modified) (3 diffs)
-
register.php (modified) (3 diffs)
-
search.php (modified) (2 diffs)
-
setup.php (modified) (5 diffs)
-
viewpage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/administrators.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/admins.php";19 locale_load("admin.admins"); 20 20 21 21 // temp storage for template variables … … 129 129 130 130 // define the admin body panel 131 $template_panels[] = array('type' => 'body', 'name' => 'admin.administrators', 'template' => 'admin.administrators.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/admins.php");131 $template_panels[] = array('type' => 'body', 'name' => 'admin.administrators', 'template' => 'admin.administrators.tpl', 'locale' => "admin.admins"); 132 132 $template_variables['admin.administrators'] = $variables; 133 133 -
trunk/administration/article_cats.php
r834 r1071 17 17 18 18 // load the locale for this module 19 require_once PATH_LOCALE.LOCALESET."admin/news-articles.php";19 locale_load("admin.news-articles"); 20 20 21 21 // temp storage for template variables … … 38 38 // define the message panel variables 39 39 $variables['bold'] = true; 40 $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");40 $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 41 41 $template_variables['admin.article_cats.status'] = $variables; 42 42 $variables = array(); … … 118 118 119 119 // define the admin body panel 120 $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats', 'title' => $title, 'template' => 'admin.article_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");120 $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats', 'title' => $title, 'template' => 'admin.article_cats.tpl', 'locale' => "admin.news-articles"); 121 121 $template_variables['admin.article_cats'] = $variables; 122 122 -
trunk/administration/articles.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/news-articles.php";19 locale_load("admin.news-articles"); 20 20 21 21 // temp storage for template variables … … 41 41 // define the message panel variables 42 42 $variables['bold'] = true; 43 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");43 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 44 44 $template_variables['admin.article.status'] = $variables; 45 45 $variables = array(); … … 52 52 $variables['message'] = $locale['518']."<br />".$locale['519']."<br /><a href='article_cats.php".$aidlink."'>".$locale['520']."</a>".$locale['521']; 53 53 $variables['bold'] = true; 54 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.no_cats', 'title' => $locale['517'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");54 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.no_cats', 'title' => $locale['517'], 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 55 55 $template_variables['admin.article.no_cats'] = $variables; 56 56 $variables = array(); … … 101 101 $ratings = isset($_POST['article_ratings']); 102 102 $variables['message'] = $bodypreview; 103 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview1', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");103 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview1', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.news-articles"); 104 104 $template_variables['admin.article.preview1'] = $variables; 105 105 $variables['message'] = $body2preview; 106 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview2', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");106 $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview2', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.news-articles"); 107 107 $template_variables['admin.article.preview2'] = $variables; 108 108 $variables = array(); … … 163 163 164 164 // define the admin body panel 165 $template_panels[] = array('type' => 'body', 'name' => 'admin.articles', 'template' => 'admin.articles.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");165 $template_panels[] = array('type' => 'body', 'name' => 'admin.articles', 'template' => 'admin.articles.tpl', 'locale' => "admin.news-articles"); 166 166 $template_variables['admin.articles'] = $variables; 167 167 } -
trunk/administration/blacklist.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/blacklist.php";19 locale_load("admin.blacklist"); 20 20 21 21 // temp storage for template variables … … 39 39 $variables['bold'] = true; 40 40 // define the admin body panel 41 $template_panels[] = array('type' => 'body', 'name' => 'blacklist.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/blacklist.php");41 $template_panels[] = array('type' => 'body', 'name' => 'blacklist.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.blacklist"); 42 42 $template_variables['blacklist.status'] = $variables; 43 43 } … … 88 88 89 89 // define the admin body panel 90 $template_panels[] = array('type' => 'body', 'name' => 'admin.blacklist', 'template' => 'admin.blacklist.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/blacklist.php");90 $template_panels[] = array('type' => 'body', 'name' => 'admin.blacklist', 'template' => 'admin.blacklist.tpl', 'locale' => "admin.blacklist"); 91 91 $template_variables['admin.blacklist'] = $variables; 92 92 -
trunk/administration/comments.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/comments.php";19 locale_load("admin.comments"); 20 20 21 21 // temp storage for template variables … … 67 67 68 68 // define the admin body panel 69 $template_panels[] = array('type' => 'body', 'name' => 'admin.comments', 'template' => 'admin.comments.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/comments.php");69 $template_panels[] = array('type' => 'body', 'name' => 'admin.comments', 'template' => 'admin.comments.tpl', 'locale' => "admin.comments"); 70 70 $template_variables['admin.comments'] = $variables; 71 71 -
trunk/administration/custom_pages.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/custom_pages.php";19 locale_load("admin.custom_pages"); 20 20 21 21 // temp storage for template variables … … 47 47 // define the message panel variables 48 48 $variables['bold'] = true; 49 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php");49 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.custom_pages"); 50 50 $template_variables['admin.custom_pages.status'] = $variables; 51 51 $variables = array(); … … 91 91 92 92 $variables['message'] = $page_content; 93 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.preview', 'title' => $page_title, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php");93 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.preview', 'title' => $page_title, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.custom_pages"); 94 94 $template_variables['admin.custom_pages.preview'] = $variables; 95 95 //$page_content = stripinput((QUOTES_GPC ? addslashes($page_content) : $page_content)); … … 147 147 148 148 // define the admin body panel 149 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages', 'template' => 'admin.custom_pages.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php");149 $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages', 'template' => 'admin.custom_pages.tpl', 'locale' => "admin.custom_pages"); 150 150 $template_variables['admin.custom_pages'] = $variables; 151 151 } -
trunk/administration/db_backup.php
r1070 r1071 125 125 126 126 // load the locale for this module 127 include PATH_LOCALE.LOCALESET."admin/db-backup.php";127 locale_load("admin.db-backup"); 128 128 129 129 // make sure the parameter is valid … … 299 299 300 300 // define the admin body panel 301 $template_panels[] = array('type' => 'body', 'name' => 'admin.db_backup', 'template' => 'admin.db_backup.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/db-backup.php");301 $template_panels[] = array('type' => 'body', 'name' => 'admin.db_backup', 'template' => 'admin.db_backup.tpl', 'locale' => "admin.db-backup"); 302 302 $template_variables['admin.db_backup'] = $variables; 303 303 -
trunk/administration/download_cats.php
r992 r1071 17 17 18 18 // load the locale for this module 19 require_once PATH_LOCALE.LOCALESET."admin/downloads.php";19 locale_load("admin.downloads"); 20 20 21 21 //check if the user has a right to be here. If not, bail out … … 182 182 183 183 // panel definitions 184 $template_panels[] = array('type' => 'body', 'name' => 'admin.download_cats', 'title' => $title, 'template' => 'admin.download_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/downloads.php");184 $template_panels[] = array('type' => 'body', 'name' => 'admin.download_cats', 'title' => $title, 'template' => 'admin.download_cats.tpl', 'locale' => "admin.downloads"); 185 185 $template_variables['admin.download_cats'] = $variables; 186 186 -
trunk/administration/downloads.php
r1030 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/downloads.php";19 locale_load("admin.downloads"); 20 20 21 21 // TODO - WANWIZARD - 20070718 - NEED TO MOVE THIS TO SETTINGS … … 231 231 232 232 // panel definitions 233 $template_panels[] = array('type' => 'body', 'name' => 'admin.downloads', 'title' => $title, 'template' => 'admin.downloads.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/downloads.php");233 $template_panels[] = array('type' => 'body', 'name' => 'admin.downloads', 'title' => $title, 'template' => 'admin.downloads.tpl', 'locale' => "admin.downloads"); 234 234 $template_variables['admin.downloads'] = $variables; 235 235 -
trunk/administration/faq.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/faq.php";19 locale_load("admin.faq"); 20 20 21 21 // temp storage for template variables … … 44 44 // define the message panel variables 45 45 $variables['bold'] = true; 46 $template_panels[] = array('type' => 'body', 'name' => 'admin.faq.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/faq.php");46 $template_panels[] = array('type' => 'body', 'name' => 'admin.faq.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.faq"); 47 47 $template_variables['admin.faq.status'] = $variables; 48 48 $variables = array(); … … 175 175 176 176 // define the admin body panel 177 $template_panels[] = array('type' => 'body', 'name' => 'admin.faq', 'template' => 'admin.faq.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/faq.php");177 $template_panels[] = array('type' => 'body', 'name' => 'admin.faq', 'template' => 'admin.faq.tpl', 'locale' => "admin.faq"); 178 178 $template_variables['admin.faq'] = $variables; 179 179 -
trunk/administration/forum_polls.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/forum_polls.php";19 locale_load("admin.forum_polls"); 20 20 21 21 // temp storage for template variables … … 258 258 259 259 // define the admin body panel 260 $template_panels[] = array('type' => 'body', 'name' => 'admin.forum_polls', 'template' => 'admin.forum_polls.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forum_polls.php");260 $template_panels[] = array('type' => 'body', 'name' => 'admin.forum_polls', 'template' => 'admin.forum_polls.tpl', 'locale' => "admin.forum_polls"); 261 261 $template_variables['admin.forum_polls'] = $variables; 262 262 -
trunk/administration/forums.php
r864 r1071 17 17 18 18 // load the locales for this module 19 include PATH_LOCALE.LOCALESET."admin/forums.php";20 include PATH_LOCALE.LOCALESET."admin/forum_polls.php";19 locale_load("admin.forums"); 20 locale_load("admin.forum_polls"); 21 21 22 22 // temp storage for template variables … … 116 116 // define the message panel variables 117 117 $variables['bold'] = true; 118 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forums.php");118 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.forums"); 119 119 $template_variables['admin.forums.status'] = $variables; 120 120 $variables = array(); … … 551 551 552 552 // define the admin body panel 553 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums', 'template' => 'admin.forums.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."admin/forums.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php"));553 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums', 'template' => 'admin.forums.tpl', 'locale' => array("admin.forums","admin.forum_polls")); 554 554 $template_variables['admin.forums'] = $variables; 555 555 -
trunk/administration/forums_prune.php
r863 r1071 50 50 $variables['bold'] = true; 51 51 $variables['message'] =$locale['801'].$delposts."<br />".$locale['802'].$delthreads."<br />".$locale['803'].$delattach."<br />"; 52 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums_prune', 'title' => $locale['800'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");52 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums_prune', 'title' => $locale['800'], 'template' => '_message_table_panel.tpl', 'locale' => "admin.settings"); 53 53 $template_variables['admin.forums_prune'] = $variables; 54 54 ?> -
trunk/administration/images.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/image_uploads.php";19 locale_load("admin.image_uploads"); 20 20 21 21 // temp storage for template variables … … 55 55 // define the message panel variables 56 56 $variables['bold'] = true; 57 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forums.php");57 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.forums"); 58 58 $template_variables['admin.forums.status'] = $variables; 59 59 $variables = array(); … … 105 105 106 106 // define the admin body panel 107 $template_panels[] = array('type' => 'body', 'name' => 'admin.images', 'template' => 'admin.images.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/image_uploads.php");107 $template_panels[] = array('type' => 'body', 'name' => 'admin.images', 'template' => 'admin.images.tpl', 'locale' => "admin.image_uploads"); 108 108 $template_variables['admin.images'] = $variables; 109 109 -
trunk/administration/index.php
r1068 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/main.php";19 locale_load("admin.main"); 20 20 21 21 // temp storage for template variables … … 96 96 97 97 // define the body panel variables 98 $template_panels[] = array('type' => 'body', 'name' => 'admin.index', 'template' => 'admin.index.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/main.php");98 $template_panels[] = array('type' => 'body', 'name' => 'admin.index', 'template' => 'admin.index.tpl', 'locale' => "admin.main"); 99 99 $template_variables['admin.index'] = $variables; 100 100 -
trunk/administration/members.php
r1060 r1071 22 22 23 23 //load the locale for this module 24 include PATH_LOCALE.LOCALESET."admin/members.php";25 include PATH_LOCALE.LOCALESET."user_fields.php";24 locale_load("admin.members"); 25 locale_load("main.user_fields"); 26 26 27 27 // load the GeoIP include module … … 207 207 $variables['step'] = $step; 208 208 $variables['user_id'] = $user_id; 209 $template_panels[] = array('type' => 'body', 'name' => 'admin.members', 'template' => 'admin.members.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."admin/members.php", PATH_LOCALE.LOCALESET."user_fields.php"));209 $template_panels[] = array('type' => 'body', 'name' => 'admin.members', 'template' => 'admin.members.tpl', 'locale' => array("admin.members", "main.user_fields")); 210 210 $template_variables['admin.members'] = $variables; 211 211 -
trunk/administration/modules.php
r922 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/modules.php";19 locale_load("admin.modules"); 20 20 21 21 // temp storage for template variables … … 414 414 415 415 // define the admin body panel 416 $template_panels[] = array('type' => 'body', 'name' => 'admin.modules', 'template' => 'admin.modules.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/modules.php");416 $template_panels[] = array('type' => 'body', 'name' => 'admin.modules', 'template' => 'admin.modules.tpl', 'locale' => "admin.modules"); 417 417 $template_variables['admin.modules'] = $variables; 418 418 -
trunk/administration/news.php
r967 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/news-articles.php";19 locale_load("admin.news-articles"); 20 20 21 21 // temp storage for template variables … … 320 320 321 321 // store the info to generate the panel 322 $template_panels[] = array('type' => 'body', 'name' => 'admin.news', 'title' => $title, 'template' => 'admin.news.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");322 $template_panels[] = array('type' => 'body', 'name' => 'admin.news', 'title' => $title, 'template' => 'admin.news.tpl', 'locale' => "admin.news-articles"); 323 323 $template_variables['admin.news'] = $variables; 324 324 -
trunk/administration/news_cats.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/news-articles.php";19 locale_load("admin.news-articles"); 20 20 21 21 // temp storage for template variables … … 39 39 // define the message panel variables 40 40 $variables['bold'] = true; 41 $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats.delete', 'title' => $locale['430'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");41 $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats.delete', 'title' => $locale['430'], 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 42 42 $template_variables['admin.news_cats.delete'] = $variables; 43 43 $variables = array(); … … 84 84 85 85 // define the admin body panel 86 $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats', 'title' => $title, 'template' => 'admin.news_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");86 $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats', 'title' => $title, 'template' => 'admin.news_cats.tpl', 'locale' => "admin.news-articles"); 87 87 $template_variables['admin.news_cats'] = $variables; 88 88 -
trunk/administration/panel_editor.php
r864 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/panels.php";19 locale_load("admin.panels"); 20 20 21 21 // temp storage for template variables … … 227 227 228 228 // define the admin body panel 229 $template_panels[] = array('type' => 'body', 'name' => 'admin.panel_editor', 'title' => $title, 'template' => 'admin.panel_editor.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/panels.php");229 $template_panels[] = array('type' => 'body', 'name' => 'admin.panel_editor', 'title' => $title, 'template' => 'admin.panel_editor.tpl', 'locale' => "admin.panels"); 230 230 $template_variables['admin.panel_editor'] = $variables; 231 231 -
trunk/administration/panels.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/panels.php";19 locale_load("admin.panels"); 20 20 21 21 // temp storage for template variables … … 159 159 160 160 // define the admin body panel 161 $template_panels[] = array('type' => 'body', 'name' => 'admin.panels', 'template' => 'admin.panels.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/panels.php");161 $template_panels[] = array('type' => 'body', 'name' => 'admin.panels', 'template' => 'admin.panels.tpl', 'locale' => "admin.panels"); 162 162 $template_variables['admin.panels'] = $variables; 163 163 -
trunk/administration/redirects.php
r834 r1071 14 14 15 15 // load the locale for this module 16 include PATH_LOCALE.LOCALESET."admin/redirects.php";16 locale_load("admin.redirects"); 17 17 18 18 // temp storage for template variables … … 168 168 169 169 // define the admin body panel 170 $template_panels[] = array('type' => 'body', 'name' => 'admin.redirects', 'title' => $title, 'template' => 'admin.redirects.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/redirects.php");170 $template_panels[] = array('type' => 'body', 'name' => 'admin.redirects', 'title' => $title, 'template' => 'admin.redirects.tpl', 'locale' => "admin.redirects"); 171 171 $template_variables['admin.redirects'] = $variables; 172 172 -
trunk/administration/settings_forum.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 48 48 49 49 // define the admin body panel 50 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_forum', 'template' => 'admin.settings_forum.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");50 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_forum', 'template' => 'admin.settings_forum.tpl', 'locale' => "admin.settings"); 51 51 $template_variables['admin.settings_forum'] = $variables; 52 52 -
trunk/administration/settings_image.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 49 49 50 50 // define the admin body panel 51 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_image', 'template' => 'admin.settings_image.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");51 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_image', 'template' => 'admin.settings_image.tpl', 'locale' => "admin.settings"); 52 52 $template_variables['admin.settings_image'] = $variables; 53 53 -
trunk/administration/settings_languages.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 29 29 30 30 if (isset($_POST['savesettings'])) { 31 $ localeset= stripinput($_POST['localeset']);31 $settings['locale'] = stripinput($_POST['localeset']); 32 32 $old_localeset = stripinput($_POST['old_localeset']); 33 $result = dbquery("UPDATE ".$db_prefix."CMSconfig SET cfg_value = '".$ localeset."' WHERE cfg_name = 'locale'");34 if ($ localeset!= $old_localeset) {35 include PATH_LOCALE.$localeset."/admin/main.php";33 $result = dbquery("UPDATE ".$db_prefix."CMSconfig SET cfg_value = '".$settings['locale']."' WHERE cfg_name = 'locale'"); 34 if ($settings['locale'] != $old_localeset) { 35 locale_load("admin.main"); 36 36 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['201']."' WHERE admin_link='administrators.php'"); 37 37 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['202']."' WHERE admin_link='article_cats.php'"); … … 50 50 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['235']."' WHERE admin_link='news_cats.php'"); 51 51 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['217']."' WHERE admin_link='panels.php'"); 52 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['218']."' WHERE admin_link='photoalbums.php'");53 52 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['219']."' WHERE admin_link='phpinfo.php'"); 54 53 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['220']."' WHERE admin_link='polls.php'"); 55 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['221']."' WHERE admin_link='shoutbox.php'");56 54 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['222']."' WHERE admin_link='site_links.php'"); 57 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['223']."' WHERE admin_link=' submissions.php'");55 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['223']."' WHERE admin_link='tools.php'"); 58 56 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['224']."' WHERE admin_link='upgrade.php'"); 59 57 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['225']."' WHERE admin_link='user_groups.php'"); 60 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['226']."' WHERE admin_link='weblink_cats.php'");61 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['227']."' WHERE admin_link='weblinks.php'");62 58 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['228']."' WHERE admin_link='settings_main.php'"); 63 59 $result = dbquery("UPDATE ".$db_prefix."admin SET admin_title='".$locale['229']."' WHERE admin_link='settings_time.php'"); … … 86 82 87 83 // define the admin body panel 88 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_languages', 'template' => 'admin.settings_languages.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");84 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_languages', 'template' => 'admin.settings_languages.tpl', 'locale' => "admin.settings"); 89 85 $template_variables['admin.settings_languages'] = $variables; 90 86 -
trunk/administration/settings_main.php
r974 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 59 59 60 60 // define the admin body panel 61 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_main', 'template' => 'admin.settings_main.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");61 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_main', 'template' => 'admin.settings_main.tpl', 'locale' => "admin.settings"); 62 62 $template_variables['admin.settings_main'] = $variables; 63 63 -
trunk/administration/settings_messages.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 63 63 64 64 // define the admin body panel 65 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_messages', 'template' => 'admin.settings_messages.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");65 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_messages', 'template' => 'admin.settings_messages.tpl', 'locale' => "admin.settings"); 66 66 $template_variables['admin.settings_messages'] = $variables; 67 67 -
trunk/administration/settings_misc.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 55 55 56 56 // define the admin body panel 57 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_misc', 'template' => 'admin.settings_misc.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");57 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_misc', 'template' => 'admin.settings_misc.tpl', 'locale' => "admin.settings"); 58 58 $template_variables['admin.settings_misc'] = $variables; 59 59 -
trunk/administration/settings_registration.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 44 44 45 45 // define the admin body panel 46 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_registration', 'template' => 'admin.settings_registration.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");46 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_registration', 'template' => 'admin.settings_registration.tpl', 'locale' => "admin.settings"); 47 47 $template_variables['admin.settings_registration'] = $variables; 48 48 -
trunk/administration/settings_time.php
r909 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/settings.php";19 locale_load("admin.settings"); 20 20 21 21 // temp storage for template variables … … 71 71 72 72 // define the admin body panel 73 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_time', 'template' => 'admin.settings_time.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/settings.php");73 $template_panels[] = array('type' => 'body', 'name' => 'admin.settings_time', 'template' => 'admin.settings_time.tpl', 'locale' => "admin.settings"); 74 74 $template_variables['admin.settings_time'] = $variables; 75 75 -
trunk/administration/site_links.php
r853 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/sitelinks.php";19 locale_load("admin.sitelinks"); 20 20 21 21 // temp storage for template variables … … 325 325 326 326 // define the admin body panel 327 $template_panels[] = array('type' => 'body', 'name' => 'admin.site_links', 'title' => $title, 'template' => 'admin.site_links.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/sitelinks.php");327 $template_panels[] = array('type' => 'body', 'name' => 'admin.site_links', 'title' => $title, 'template' => 'admin.site_links.tpl', 'locale' => "admin.sitelinks"); 328 328 $template_variables['admin.site_links'] = $variables; 329 329 -
trunk/administration/tools.php
r1068 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/main.php";19 locale_load("admin.main"); 20 20 21 21 // check for the proper admin access rights … … 47 47 48 48 // define the body panel variables 49 $template_panels[] = array('type' => 'body', 'name' => 'admin.tools', 'template' => 'admin.tools.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/main.php");49 $template_panels[] = array('type' => 'body', 'name' => 'admin.tools', 'template' => 'admin.tools.tpl', 'locale' => "admin.main"); 50 50 $template_variables['admin.tools'] = $variables; 51 51 -
trunk/administration/upgrade.php
r1060 r1071 54 54 55 55 // load the locale for this module 56 include PATH_LOCALE.LOCALESET."admin/upgrade.php";56 locale_load("admin.upgrade"); 57 57 58 58 // temp storage for template variables … … 152 152 $variables['new_upgrades'] = false; 153 153 154 $template_panels[] = array('type' => 'body', 'name' => 'admin.upgrade', 'template' => 'admin.upgrade.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/upgrade.php");154 $template_panels[] = array('type' => 'body', 'name' => 'admin.upgrade', 'template' => 'admin.upgrade.tpl', 'locale' => "admin.upgrade"); 155 155 $template_variables['admin.upgrade'] = $variables; 156 156 -
trunk/administration/upgrade/rev01067.php
r1068 r1071 33 33 // Need a locale from the setup locale file 34 34 $oldlocale = $locale; $locale = array(); 35 include PATH_LOCALE.LOCALESET."/setup.php";35 locale_load("main.setup"); 36 36 37 37 // Add the admin record for the webmaster toolbox to the admin table -
trunk/administration/user_groups.php
r858 r1071 20 20 21 21 //load the locale for this module 22 include PATH_LOCALE.LOCALESET."admin/user_groups.php";22 locale_load("admin.user_groups"); 23 23 24 24 //check if the user has a right to be here. If not, bail out … … 74 74 // define the message panel variables 75 75 $variables['bold'] = true; 76 $template_panels[] = array('type' => 'body', 'name' => 'admin. article_cats.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php");77 $template_variables['admin. article_cats.status'] = $variables;76 $template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.user_groups"); 77 $template_variables['admin.user_groups.status'] = $variables; 78 78 $variables = array(); 79 79 } … … 317 317 318 318 // define the admin body panel 319 $template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups', 'title' => $title, 'template' => 'admin.user_groups.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/user_groups.php");319 $template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups', 'title' => $title, 'template' => 'admin.user_groups.tpl', 'locale' => "admin.user_groups"); 320 320 $template_variables['admin.user_groups'] = $variables; 321 321 -
trunk/article_cats.php
r834 r1071 18 18 define('AC_OVERVIEW_LIMIT', 5); 19 19 20 include PATH_LOCALE.LOCALESET."article_cats.php"; 20 // load the locale for this module 21 locale_load("main.article_cats"); 21 22 22 23 // make sure the cat_id is valid … … 80 81 81 82 // define the body panel variables 82 $template_panels[] = array('type' => 'body', 'name' => 'article_cats', 'template' => 'main.article_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."article_cats.php");83 $template_panels[] = array('type' => 'body', 'name' => 'article_cats', 'template' => 'main.article_cats.tpl', 'locale' => "main.article_cats"); 83 84 $template_variables['article_cats'] = $variables; 84 85 -
trunk/contact.php
r834 r1071 31 31 32 32 // load the locale for this module 33 include PATH_LOCALE.LOCALESET."contact.php";33 locale_load("main.contact"); 34 34 35 35 if (isset($_POST['sendmessage'])) { … … 64 64 // define the body panel variables 65 65 $variables['target'] = $target; 66 $template_panels[] = array('type' => 'body', 'name' => 'main.contact', 'template' => 'main.contact.tpl', 'locale' => PATH_LOCALE.LOCALESET.'contact.php');66 $template_panels[] = array('type' => 'body', 'name' => 'main.contact', 'template' => 'main.contact.tpl', 'locale' => "main.contact"); 67 67 $template_variables['main.contact'] = $variables; 68 68 } -
trunk/downloads.php
r991 r1071 21 21 22 22 // load this module's locales 23 include PATH_LOCALE.LOCALESET."downloads.php";23 locale_load("main.downloads"); 24 24 25 25 function countdownloads($cat_id) { … … 121 121 122 122 // define the body panel variables 123 $template_panels[] = array('type' => 'body', 'name' => 'downloads', 'template' => 'main.downloads.tpl', 'locale' => PATH_LOCALE.LOCALESET."downloads.php");123 $template_panels[] = array('type' => 'body', 'name' => 'downloads', 'template' => 'main.downloads.tpl', 'locale' => "main.downloads"); 124 124 $template_variables['downloads'] = $variables; 125 125 -
trunk/edit_profile.php
r1060 r1071 26 26 27 27 // load the locates for this module 28 include PATH_LOCALE.LOCALESET."members-profile.php";29 include PATH_LOCALE.LOCALESET."user_fields.php";28 locale_load("main.members-profile"); 29 locale_load("main.user_fields"); 30 30 31 31 // admin function check … … 223 223 224 224 if (isset($check_message)) { 225 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile_message', 'title' => $locale['424'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."members-profile.php");225 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile_message', 'title' => $locale['424'], 'template' => '_message_table_panel.tpl', 'locale' => "main.members-profile"); 226 226 $template_variables['edit_profile_message'] = array('message' => $check_message, 'bold' => true); 227 227 } … … 259 259 260 260 // define the search body panel variables 261 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile', 'template' => 'main.edit_profile.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php"));261 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile', 'template' => 'main.edit_profile.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 262 262 $template_variables['edit_profile'] = $variables; 263 263 -
trunk/faq.php
r834 r1071 24 24 25 25 // load this module's locales 26 include PATH_LOCALE.LOCALESET."faq.php";26 locale_load("main.faq"); 27 27 28 28 // temp storage for template variables … … 62 62 $variables['cat_id'] = $cat_id; 63 63 // define the body panel variables 64 $template_panels[] = array('type' => 'body', 'name' => 'faq', 'title' => $title, 'template' => 'main.faq.tpl', 'locale' => PATH_LOCALE.LOCALESET."faq.php");64 $template_panels[] = array('type' => 'body', 'name' => 'faq', 'title' => $title, 'template' => 'main.faq.tpl', 'locale' => "main.faq"); 65 65 $template_variables['faq'] = $variables; 66 66 -
trunk/feeds.php
r886 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."feeds.php";19 locale_load("main.feeds"); 20 20 21 21 // define how many items we want per RSS feed -
trunk/forum/index.php
r1012 r1071 23 23 24 24 // load the locale for this forum module 25 include PATH_LOCALE.LOCALESET."forum/main.php";25 locale_load("forum.main"); 26 26 27 27 // load the advertisement include module and get an ad for this forum page … … 88 88 89 89 // define the search body panel variables 90 $template_panels[] = array('type' => 'body', 'name' => 'forum.index', 'template' => 'forum.index.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/main.php");90 $template_panels[] = array('type' => 'body', 'name' => 'forum.index', 'template' => 'forum.index.tpl', 'locale' => "forum.main"); 91 91 $template_variables['forum.index'] = $variables; 92 92 -
trunk/forum/options.php
r834 r1071 20 20 21 21 // load the locale for this forum module 22 include PATH_LOCALE.LOCALESET."forum/options.php";22 locale_load("forum.options"); 23 23 24 24 // validate parameters … … 69 69 } 70 70 // define the body panel variables 71 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.renew', 'title' => $locale['458'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");71 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.renew', 'title' => $locale['458'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 72 72 $template_variables['forum.options.renew'] = $variables; 73 73 } … … 109 109 } 110 110 // define the body panel variables 111 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.delete', 'title' => $locale['400'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");111 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.delete', 'title' => $locale['400'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 112 112 $template_variables['forum.options.delete'] = $variables; 113 113 } … … 117 117 $result = dbquery("UPDATE ".$db_prefix."threads SET thread_locked='1' WHERE thread_id='$thread_id'"); 118 118 // define the body panel variables 119 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.lock', 'title' => $locale['410'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");119 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.lock', 'title' => $locale['410'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 120 120 $template_variables['forum.options.lock'] = $variables; 121 121 } … … 125 125 $result = dbquery("UPDATE ".$db_prefix."threads SET thread_locked='0' WHERE thread_id='$thread_id'"); 126 126 // define the body panel variables 127 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.unlock', 'title' => $locale['420'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");127 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.unlock', 'title' => $locale['420'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 128 128 $template_variables['forum.options.unlock'] = $variables; 129 129 } … … 133 133 $result = dbquery("UPDATE ".$db_prefix."threads SET thread_sticky='1' WHERE thread_id='$thread_id'"); 134 134 // define the body panel variables 135 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.sticky', 'title' => $locale['430'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");135 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.sticky', 'title' => $locale['430'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 136 136 $template_variables['forum.options.sticky'] = $variables; 137 137 } … … 141 141 $result = dbquery("UPDATE ".$db_prefix."threads SET thread_sticky='0' WHERE thread_id='$thread_id'"); 142 142 // define the body panel variables 143 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.sticky', 'title' => $locale['440'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");143 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.sticky', 'title' => $locale['440'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 144 144 $template_variables['forum.options.sticky'] = $variables; 145 145 } … … 233 233 234 234 // define the body panel variables 235 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.move', 'title' => $locale['450'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");235 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.move', 'title' => $locale['450'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 236 236 $template_variables['forum.options.move'] = $variables; 237 237 } … … 261 261 } 262 262 // define the body panel variables 263 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.merge', 'title' => $locale['455'], 'template' => 'forum.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/options.php");263 $template_panels[] = array('type' => 'body', 'name' => 'forum.options.merge', 'title' => $locale['455'], 'template' => 'forum.options.tpl', 'locale' => "forum.options"); 264 264 $template_variables['forum.options.merge'] = $variables; 265 265 } -
trunk/forum/post.php
r1055 r1071 45 45 46 46 // load the locales for this forum module 47 include PATH_LOCALE.LOCALESET."forum/main.php";48 include PATH_LOCALE.LOCALESET."forum/post.php";47 locale_load("forum.main"); 48 locale_load("forum.post"); 49 49 50 50 // shared forum functions includes … … 893 893 894 894 // define the panel 895 $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.2', 'template' => 'forum.post.move.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php"));895 $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.2', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post")); 896 896 $template_variables['forum.movepost.2'] = $variables; 897 897 … … 930 930 931 931 // define the panel 932 $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php"));932 $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post")); 933 933 $template_variables['forum.movepost.1'] = $variables; 934 934 } … … 1081 1081 $variables['attachtypes'] = str_replace(',', ' ', $settings['attachtypes']); 1082 1082 // define the panel 1083 $template_panels[] = array('type' => 'body', 'name' => 'forum.post', 'title' => $title, 'template' => 'forum.post.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php", PATH_LOCALE.LOCALESET."admin/forum_polls.php"));1083 $template_panels[] = array('type' => 'body', 'name' => 'forum.post', 'title' => $title, 'template' => 'forum.post.tpl', 'locale' => array("forum.main", "forum.post", "admin.forum_polls")); 1084 1084 $template_variables['forum.post'] = $variables; 1085 1085 break; -
trunk/forum/viewforum.php
r1012 r1071 26 26 27 27 // load the locales for this forum module 28 require_once PATH_LOCALE.LOCALESET."forum/main.php";29 require_once PATH_LOCALE.LOCALESET."admin/forum_polls.php";28 locale_load("forum.main"); 29 locale_load("admin.forum_polls"); 30 30 31 31 // needed for localisation functions … … 181 181 182 182 // define the search body panel variables 183 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewforum', 'template' => 'forum.viewforum.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php"));183 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewforum', 'template' => 'forum.viewforum.tpl', 'locale' => array("forum.main","admin.forum_polls")); 184 184 $template_variables['forum.viewforum'] = $variables; 185 185 -
trunk/forum/viewthread.php
r948 r1071 20 20 21 21 // load the locales for this forum module 22 require_once PATH_LOCALE.LOCALESET."forum/main.php";23 require_once PATH_LOCALE.LOCALESET."admin/forum_polls.php";22 locale_load("forum.main"); 23 locale_load("admin.forum_polls"); 24 24 25 25 // needed for localisation functions … … 389 389 390 390 // define the search body panel variables 391 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewthread', 'template' => 'forum.viewthread.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php"));391 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewthread', 'template' => 'forum.viewthread.tpl', 'locale' => array("forum.main","admin.forum_polls")); 392 392 $template_variables['forum.viewthread'] = $variables; 393 393 -
trunk/includes/comments_include.php
r863 r1071 16 16 17 17 // load the locale for this include 18 include PATH_LOCALE.LOCALESET."comments.php";18 locale_load("main.comments"); 19 19 20 20 // function to display the comments panel … … 79 79 80 80 // define the body panel variables 81 $template_panels[] = array('type' => 'body', 'name' => 'comments_include', 'template' => 'include.comments.tpl', 'locale' => PATH_LOCALE.LOCALESET."comments.php");81 $template_panels[] = array('type' => 'body', 'name' => 'comments_include', 'template' => 'include.comments.tpl', 'locale' => "main.comments"); 82 82 $template_variables['comments_include'] = $variables; 83 83 } -
trunk/includes/forum_functions_include.php
r957 r1071 257 257 // define the search body panel variables 258 258 $template_panels[] = array('type' => 'body', 'name' => 'forum.resultdialog', 'title' => $title, 'template' => 'forum.resultdialog.tpl', 259 'locale' => array( PATH_LOCALE.LOCALESET."forum/main.php",PATH_LOCALE.LOCALESET."forum/post.php", PATH_LOCALE.LOCALESET."admin/forum_polls.php"));259 'locale' => array("forum.main", "forum.post", "admin.forum_polls")); 260 260 $template_variables['forum.resultdialog'] = $variables; 261 261 } -
trunk/includes/locale_functions.php
r1070 r1071 54 54 } 55 55 56 // locale defines (no longer needed once we moved to the new locale system!) 57 56 // locale defines 58 57 define("PATH_LOCALE", PATH_ROOT."locale/"); 59 60 // locale detection - step 3 - use the website's default 61 if (!defined('LOCALESET')) { 62 define("LOCALESET", $settings['locale']."/"); 63 } 58 if (!defined('LOCALESET')) define("LOCALESET", $settings['locale']."/"); 64 59 65 60 // Initialise the $locale array … … 75 70 76 71 global $settings, $locale; 77 72 78 73 // assemble the locale filename 79 $locales_file = PATH_ROOT."files/ ".$locale['locale'].".".$locale_name.".php";74 $locales_file = PATH_ROOT."files/locales/".$locale['locale'].".".$locale_name.".php"; 80 75 81 76 // check if we need to recompile from the database … … 109 104 fwrite($handle, "?>"."\n"); 110 105 fclose($handle); 106 } else { 107 trigger_error("ExiteCMS locales error: no write access to ".$locales_file."!", E_USER_ERROR); 111 108 } 112 109 } … … 127 124 break; 128 125 126 case "forum": // forum modules 127 $locales_file = PATH_LOCALE.$settings['locale']."/forum/".$nameparts[1].".php"; 128 break; 129 129 130 case "main": // main modules 130 131 $locales_file = PATH_LOCALE.$settings['locale']."/".$nameparts[1].".php"; … … 141 142 default: 142 143 // unknown module type 144 trigger_error("ExiteCMS locales error: unknown or invalid module type specified in ".$locale_name."!", E_USER_ERROR); 143 145 } 144 146 } 145 147 146 // if a locales file could be assembled, and it exists, load it 147 if (!empty($locales_file) && file_exists($locales_file)) { 148 include $locales_file; 148 // if a locales file could be assembled... 149 if (!empty($locales_file)) { 150 if (file_exists($locales_file)) { 151 // and it exists, load it 152 require_once $locales_file; 153 } else { 154 // otherwise, if the locale is not English, try to load the English version 155 if ($settings['locale'] != "English") { 156 $current_locale = $settings['locale']; 157 $settings['locale'] = "English"; 158 locale_load($locale_name); 159 $settings['locale'] = $current_locale; 160 } else { 161 trigger_error("ExiteCMS locales error: unable to locate a locale for ".$locale_name."!", E_USER_ERROR); 162 } 163 } 149 164 } 150 165 -
trunk/includes/ratings_include.php
r863 r1071 16 16 17 17 // load the locale for this include 18 include PATH_LOCALE.LOCALESET."ratings.php";18 locale_load("main.ratings"); 19 19 20 20 // function to display the ratings panel … … 73 73 $variables['ratings'] = $ratings; 74 74 // define the body panel variables 75 $template_panels[] = array('type' => 'body', 'name' => 'ratings_include', 'template' => 'include.ratings.tpl', 'locale' => PATH_LOCALE.LOCALESET."ratings.php");75 $template_panels[] = array('type' => 'body', 'name' => 'ratings_include', 'template' => 'include.ratings.tpl', 'locale' => "main.ratings"); 76 76 $template_variables['ratings_include'] = $variables; 77 77 } -
trunk/includes/theme_functions.php
r1068 r1071 162 162 +-----------------------------------------------------*/ 163 163 function load_templates($_type='', $_name='') { 164 global $settings, $ userdata, $db_prefix, $aidlink,164 global $settings, $locale, $userdata, $db_prefix, $aidlink, 165 165 $template, $template_panels, $template_variables, 166 166 $_loadstats, $_headparms, $_bodyparms, $_last_updated; 167 167 168 // store the current locales. We need to restore them later 169 $current_locale = $locale; 170 168 171 // reset all assigned template variables 169 172 $template->clear_all_assign(); … … 173 176 174 177 // Load the global language file 175 include PATH_LOCALE.LOCALESET."global.php";178 locale_load("main.global"); 176 179 177 180 // assign CMS website settings to the template … … 223 226 224 227 // if one or more locales are assigned to this panel, load them first 225 if (isset($panel['locale']) && (is_array($panel['locale']) || $panel['locale'] != "")){228 if (isset($panel['locale']) { 226 229 if (is_array($panel['locale'])) { 227 230 foreach($panel['locale'] as $panel_locale) { 228 include $panel_locale;231 locale_load($panel_locale); 229 232 } 230 233 } else { 231 include $panel['locale'];234 locale_load($panel['locale']); 232 235 } 233 236 } … … 286 289 } 287 290 } 291 292 // restore the current locales. 293 $locale = $current_locale; 288 294 } 289 295 -
trunk/locale/English/admin/main.php
r1068 r1071 19 19 $locale['216'] = "News"; 20 20 $locale['217'] = "Panels"; 21 $locale['218'] = " Photo Albums";21 $locale['218'] = "x"; 22 22 $locale['219'] = "PHP Info"; 23 23 $locale['220'] = "Polls"; 24 $locale['221'] = " Shoutbox";24 $locale['221'] = "x"; 25 25 $locale['222'] = "Menu System"; 26 $locale['223'] = " Submissions";26 $locale['223'] = "Webmaster Toolbox"; 27 27 $locale['224'] = "Upgrade"; 28 28 $locale['225'] = "User Groups"; 29 $locale['226'] = " Web Link Categories";30 $locale['227'] = " Web Links";29 $locale['226'] = "x"; 30 $locale['227'] = "x"; 31 31 $locale['228'] = "Main Settings"; 32 32 $locale['229'] = "Time and Date Settings"; -
trunk/lostpassword.php
r963 r1071 20 20 21 21 // load the locale for this module 22 include PATH_LOCALE.LOCALESET."lostpassword.php";22 locale_load("main.lostpassword"); 23 23 24 24 // get the sendmail include … … 47 47 $variables['message'] = $locale['402']; 48 48 $variables['bold'] = true; 49 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php");49 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 50 50 $template_variables['lostpassword'] = $variables; 51 51 } else { … … 69 69 $variables['linktext'] = $locale['403']; 70 70 $variables['bold'] = true; 71 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php");71 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 72 72 $template_variables['lostpassword'] = $variables; 73 73 } else { … … 77 77 $variables['linktext'] = $locale['406']; 78 78 $variables['bold'] = true; 79 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php");79 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 80 80 $template_variables['lostpassword'] = $variables; 81 81 } … … 86 86 $variables['linktext'] = $locale['403']; 87 87 $variables['bold'] = true; 88 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php");88 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 89 89 $template_variables['lostpassword'] = $variables; 90 90 } 91 91 } else { 92 92 // define the body panel variables 93 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => 'main.lostpassword.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php");93 $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => 'main.lostpassword.tpl', 'locale' => "main.lostpassword"); 94 94 $template_variables['lostpassword'] = $variables; 95 95 } -
trunk/members.php
r1068 r1071 20 20 21 21 //load the locale for this module 22 require_once PATH_LOCALE.LOCALESET."members-profile.php";22 locale_load("main.members-profile"); 23 23 24 24 // load the GeoIP include module … … 98 98 } 99 99 100 $template_panels[] = array('type' => 'body', 'name' => 'members', 'template' => 'main.members.tpl', 'locale' => PATH_LOCALE.LOCALESET."members-profile.php");100 $template_panels[] = array('type' => 'body', 'name' => 'members', 'template' => 'main.members.tpl', 'locale' => "main.members-profile"); 101 101 $template_variables['members'] = $variables; 102 102 -
trunk/news_cats.php
r843 r1071 19 19 20 20 // load this module's locales 21 include PATH_LOCALE.LOCALESET."news_cats.php";21 locale_load("main.news_cats"); 22 22 23 23 // make sure the cat_id is valid … … 79 79 80 80 // define the body panel variables 81 $template_panels[] = array('type' => 'body', 'name' => 'news_cats', 'template' => 'main.news_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."news_cats.php");81 $template_panels[] = array('type' => 'body', 'name' => 'news_cats', 'template' => 'main.news_cats.tpl', 'locale' => "main.news_cats"); 82 82 $template_variables['news_cats'] = $variables; 83 83 -
trunk/pm.php
r1060 r1071 17 17 18 18 // load the locale for this module 19 require_once PATH_LOCALE.LOCALESET."pm.php";19 locale_load("main.pm"); 20 20 21 21 // include the forum functions … … 1013 1013 } 1014 1014 // define the panel and assign the template variables 1015 $template_panels[] = array('type' => 'body', 'name' => 'pm.post', 'title' => $title, 'template' => 'main.pm.post.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php");1015 $template_panels[] = array('type' => 'body', 'name' => 'pm.post', 'title' => $title, 'template' => 'main.pm.post.tpl', 'locale' => "main.pm"); 1016 1016 $template_variables['pm.post'] = $variables; 1017 1017 … … 1030 1030 $variables['totals'] = $totals; 1031 1031 // define the panel and assign the template variables 1032 $template_panels[] = array('type' => 'body', 'name' => 'pm.options', 'title' => $locale['400'].' - '.$locale['425'], 'template' => 'main.pm.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php");1032 $template_panels[] = array('type' => 'body', 'name' => 'pm.options', 'title' => $locale['400'].' - '.$locale['425'], 'template' => 'main.pm.options.tpl', 'locale' => "main.pm"); 1033 1033 $template_variables['pm.options'] = $variables; 1034 1034 … … 1092 1092 $variables['pagenav_url'] = FUSION_SELF."?folder=".$folder."&"; 1093 1093 // define the panel and assign the template variables 1094 $template_panels[] = array('type' => 'body', 'name' => 'pm', 'title' => $locale['400'].' - '.$title, 'template' => 'main.pm.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php");1094 $template_panels[] = array('type' => 'body', 'name' => 'pm', 'title' => $locale['400'].' - '.$title, 'template' => 'main.pm.tpl', 'locale' => "main.pm"); 1095 1095 $template_variables['pm'] = $variables; 1096 1096 } -
trunk/print.php
r954 r1071 20 20 21 21 // load the locale for this module 22 include PATH_LOCALE.LOCALESET."print.php";22 locale_load("main.print"); 23 23 24 24 if (!isset($item_id) || !isNum($item_id)) fallback("index.php"); … … 56 56 57 57 // define the first body panel variables 58 $template_panels[] = array('type' => 'body', 'name' => 'print', 'template' => 'main.print.tpl', 'locale' => PATH_LOCALE.LOCALESET."print.php");58 $template_panels[] = array('type' => 'body', 'name' => 'print', 'template' => 'main.print.tpl', 'locale' => "main.print"); 59 59 $template_variables['print'] = $variables; 60 60 -
trunk/profile.php
r1060 r1071 23 23 24 24 // load the locales for this module 25 include PATH_LOCALE.LOCALESET."members-profile.php";26 include PATH_LOCALE.LOCALESET."user_fields.php";25 locale_load("main.members-profile"); 26 locale_load("main.user_fields"); 27 27 28 28 // temp storage for template variables … … 113 113 // define the body panel variables 114 114 $variables['data'] = $data; 115 $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.members.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php"));115 $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.members.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 116 116 $template_variables['profile'] = $variables; 117 117 } … … 145 145 // define the body panel variables 146 146 $variables['members'] = $members; 147 $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.groups.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php"));147 $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.groups.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 148 148 $template_variables['profile'] = $variables; 149 149 } -
trunk/register.php
r1052 r1071 26 26 27 27 // load the locales for this module 28 include PATH_LOCALE.LOCALESET."register.php";29 include PATH_LOCALE.LOCALESET."user_fields.php";28 locale_load("main.register"); 29 locale_load("main.user_fields"); 30 30 31 31 // check whether we allow registrations … … 48 48 } 49 49 // define the body panel variables 50 $template_panels[] = array('type' => 'body', 'name' => 'register.activate', 'template' => 'main.register.activate.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."register.php", PATH_LOCALE.LOCALESET."user_fields.php"));50 $template_panels[] = array('type' => 'body', 'name' => 'register.activate', 'template' => 'main.register.activate.tpl', 'locale' => array("main.register", "main.user_fields")); 51 51 $template_variables['register.activate'] = $variables; 52 52 } else { … … 216 216 $variables['theme_files'] = $theme_files; 217 217 // define the body panel variables 218 $template_panels[] = array('type' => 'body', 'name' => 'register', 'template' => 'main.register.tpl', 'locale' => array( PATH_LOCALE.LOCALESET."register.php", PATH_LOCALE.LOCALESET."user_fields.php"));218 $template_panels[] = array('type' => 'body', 'name' => 'register', 'template' => 'main.register.tpl', 'locale' => array("main.register", "main.user_fields")); 219 219 $template_variables['register'] = $variables; 220 220 } -
trunk/search.php
r954 r1071 32 32 33 33 // load the locale for this module 34 include PATH_LOCALE.LOCALESET."search.php";34 locale_load("main.search"); 35 35 36 36 // validate the possible parameters … … 155 155 156 156 // define the search body panel variables 157 $template_panels[] = array('type' => 'body', 'name' => 'search', 'template' => 'main.search.tpl', 'locale' => PATH_LOCALE.LOCALESET."search.php");157 $template_panels[] = array('type' => 'body', 'name' => 'search', 'template' => 'main.search.tpl', 'locale' => "main.search"); 158 158 $template_variables['search'] = $variables; 159 159 -
trunk/setup.php
r1068 r1071 85 85 define("PATH_ADMIN", PATH_ROOT."administration/"); 86 86 define("PATH_THEMES", PATH_ROOT."themes/"); 87 define("PATH_THEME", PATH_ROOT."themes/PLiTheme/"); 88 define("PATH_LOCALE", PATH_ROOT."locale/"); 87 define("PATH_THEME", PATH_ROOT."themes/ExiteCMS/"); 89 88 define("PATH_PHOTOS", PATH_ROOT."images/photoalbum/"); 90 89 define("PATH_IMAGES", PATH_ROOT."images/"); … … 97 96 define("PATH_INCLUDES", PATH_ROOT."includes/"); 98 97 define("PATH_MODULES", PATH_ROOT."modules/"); 99 define("PATH_ATTACHMENTS", PATH_ROOT."files/ ");98 define("PATH_ATTACHMENTS", PATH_ROOT."files/attachments"); 100 99 101 100 define("FUSION_SELF", isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] != "" ? basename($_SERVER['REDIRECT_URL']) : basename($_SERVER['PHP_SELF'])); … … 111 110 $step = (isset($_GET['step']) ? $_GET['step'] : "0"); 112 111 $variables['step'] = $step; 113 $localeset = (isset($_GET['localeset']) ? $_GET['localeset'] : "English"); 114 $variables['localeset'] = $localeset; 115 define("LOCALESET", $localeset.'/'); 112 $settings = array("locale" => (isset($_GET['localeset']) ? $_GET['localeset'] : "English")); 113 $variables['localeset'] = $settings['locale']; 116 114 117 115 // check if the cache directories are writeable … … 156 154 157 155 require_once PATH_ROOT."includes/theme_functions.php"; 156 require_once PATH_ROOT."includes/locale_functions.php"; 158 157 159 158 // load the locale for this module 160 include PATH_LOCALE.$localeset."/setup.php";159 locale_load("main.setup"); 161 160 162 161 // process the different setup steps … … 392 391 393 392 // define the setup body panel variables 394 $template_panels[] = array('type' => 'body', 'name' => 'setup', 'template' => 'main.setup.tpl', 'locale' => PATH_LOCALE.$localeset."/setup.php");393 $template_panels[] = array('type' => 'body', 'name' => 'setup', 'template' => 'main.setup.tpl', 'locale' => "main.setup"); 395 394 $template_variables['setup'] = $variables; 396 395 -
trunk/viewpage.php
r834 r1071 17 17 18 18 // load the locale for this module 19 include PATH_LOCALE.LOCALESET."custom_pages.php";19 locale_load("main.custom_pages"); 20 20 21 21 // temp storage for template variables … … 47 47 48 48 // define the search body panel variables 49 $template_panels[] = array('type' => 'body', 'name' => 'viewpage', 'title' => $title, 'template' => 'main.viewpage.tpl', 'locale' => PATH_LOCALE.LOCALESET."custom_pages.php");49 $template_panels[] = array('type' => 'body', 'name' => 'viewpage', 'title' => $title, 'template' => 'main.viewpage.tpl', 'locale' => "main.custom_pages"); 50 50 $template_variables['viewpage'] = $variables; 51 51
Note: See TracChangeset
for help on using the changeset viewer.
