Changeset 843 in ExiteCMS
- Timestamp:
- 09/27/07 19:34:07 (4 years ago)
- Location:
- trunk
- Files:
-
- 81 added
- 80 deleted
- 19 edited
-
forum/viewthread.php (modified) (1 diff)
-
includes/Smarty-2.6.18/Smarty.class.php (modified) (1 diff)
-
includes/Smarty-2.6.18/custom-plugins/function.buttonlink.php (modified) (1 diff)
-
includes/core_functions.php (modified) (4 diffs)
-
includes/templates (added)
-
includes/templates/admin.administrators.tpl (added)
-
includes/templates/admin.adverts.addclient.tpl (added)
-
includes/templates/admin.adverts.delclient.tpl (added)
-
includes/templates/admin.adverts.edit.tpl (added)
-
includes/templates/admin.adverts.images.tpl (added)
-
includes/templates/admin.adverts.overview.tpl (added)
-
includes/templates/admin.adverts.tpl (added)
-
includes/templates/admin.article_cats.tpl (added)
-
includes/templates/admin.articles.tpl (added)
-
includes/templates/admin.blacklist.tpl (added)
-
includes/templates/admin.comments.tpl (added)
-
includes/templates/admin.custom_pages.tpl (added)
-
includes/templates/admin.db_backup.tpl (added)
-
includes/templates/admin.download_cats.tpl (added)
-
includes/templates/admin.downloads.tpl (added)
-
includes/templates/admin.faq.tpl (added)
-
includes/templates/admin.forum_polls.tpl (added)
-
includes/templates/admin.forums.tpl (added)
-
includes/templates/admin.images.tpl (added)
-
includes/templates/admin.index.tpl (added)
-
includes/templates/admin.members.tpl (added)
-
includes/templates/admin.modules.tpl (added)
-
includes/templates/admin.news.tpl (added)
-
includes/templates/admin.news_cats.tpl (added)
-
includes/templates/admin.panel_editor.tpl (added)
-
includes/templates/admin.panels.tpl (added)
-
includes/templates/admin.redirects.tpl (added)
-
includes/templates/admin.settings_forum.tpl (added)
-
includes/templates/admin.settings_image.tpl (added)
-
includes/templates/admin.settings_languages.tpl (added)
-
includes/templates/admin.settings_links.tpl (added)
-
includes/templates/admin.settings_main.tpl (added)
-
includes/templates/admin.settings_messages.tpl (added)
-
includes/templates/admin.settings_misc.tpl (added)
-
includes/templates/admin.settings_registration.tpl (added)
-
includes/templates/admin.settings_time.tpl (added)
-
includes/templates/admin.shoutbox.tpl (added)
-
includes/templates/admin.site_links.tpl (added)
-
includes/templates/admin.upgrade.tpl (added)
-
includes/templates/admin.user_groups.tpl (added)
-
includes/templates/forum.index.tpl (added)
-
includes/templates/forum.options.tpl (added)
-
includes/templates/forum.poll.tpl (added)
-
includes/templates/forum.post.move.tpl (added)
-
includes/templates/forum.post.tpl (added)
-
includes/templates/forum.renderpost.tpl (added)
-
includes/templates/forum.resultdialog.tpl (added)
-
includes/templates/forum.viewforum.tpl (added)
-
includes/templates/forum.viewthread.tpl (added)
-
includes/templates/include.comments.tpl (added)
-
includes/templates/include.ratings.tpl (added)
-
includes/templates/main.advertising.tpl (added)
-
includes/templates/main.article_cats.tpl (added)
-
includes/templates/main.contact.message.tpl (added)
-
includes/templates/main.contact.tpl (added)
-
includes/templates/main.downloads.tpl (added)
-
includes/templates/main.edit_profile.tpl (added)
-
includes/templates/main.faq.tpl (added)
-
includes/templates/main.login.tpl (added)
-
includes/templates/main.lostpassword.tpl (added)
-
includes/templates/main.maintenance.tpl (added)
-
includes/templates/main.members.tpl (added)
-
includes/templates/main.news.readmore.tpl (added)
-
includes/templates/main.news.tpl (added)
-
includes/templates/main.news_cats.tpl (added)
-
includes/templates/main.pm.options.tpl (added)
-
includes/templates/main.pm.post.tpl (added)
-
includes/templates/main.pm.renderpm.tpl (added)
-
includes/templates/main.pm.tpl (added)
-
includes/templates/main.print.tpl (added)
-
includes/templates/main.profile.groups.tpl (added)
-
includes/templates/main.profile.members.tpl (added)
-
includes/templates/main.readarticle.tpl (added)
-
includes/templates/main.register.activate.tpl (added)
-
includes/templates/main.register.tpl (added)
-
includes/templates/main.search.tpl (added)
-
includes/templates/main.setup.tpl (added)
-
includes/templates/main.setuser.tpl (added)
-
includes/templates/main.viewpage.tpl (added)
-
includes/templates/main.webshop.tpl (added)
-
includes/theme_functions.php (modified) (3 diffs)
-
locale/English/admin/settings.php (modified) (1 diff)
-
locale/English/forum/main.php (modified) (1 diff)
-
locale/English/global.php (modified) (1 diff)
-
news_cats.php (modified) (1 diff)
-
profile.php (modified) (1 diff)
-
themes/PLiTheme/templates/source/_header.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_message_side_panel.simple.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_message_side_panel.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_message_table_panel.simple.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_message_table_panel.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_openside.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_openside_x.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_opentable.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/_query_debug.tpl (modified) (1 diff)
-
themes/PLiTheme/templates/source/admin.administrators.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.addclient.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.delclient.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.edit.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.images.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.overview.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.adverts.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.article_cats.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.articles.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.blacklist.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.comments.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.custom_pages.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.db_backup.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.download_cats.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.downloads.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.faq.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.forum_polls.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.forums.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.images.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.index.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.members.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.modules.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.news.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.news_cats.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.panel_editor.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.panels.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.redirects.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_forum.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_image.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_languages.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_links.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_main.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_messages.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_misc.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_registration.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.settings_time.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.shoutbox.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.site_links.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.upgrade.tpl (deleted)
-
themes/PLiTheme/templates/source/admin.user_groups.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.index.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.options.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.poll.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.post.move.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.post.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.renderpost.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.resultdialog.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.viewforum.tpl (deleted)
-
themes/PLiTheme/templates/source/forum.viewthread.tpl (deleted)
-
themes/PLiTheme/templates/source/include.comments.tpl (deleted)
-
themes/PLiTheme/templates/source/include.ratings.tpl (deleted)
-
themes/PLiTheme/templates/source/main.advertising.tpl (deleted)
-
themes/PLiTheme/templates/source/main.article_cats.tpl (deleted)
-
themes/PLiTheme/templates/source/main.contact.message.tpl (deleted)
-
themes/PLiTheme/templates/source/main.contact.tpl (deleted)
-
themes/PLiTheme/templates/source/main.downloads.tpl (deleted)
-
themes/PLiTheme/templates/source/main.edit_profile.tpl (deleted)
-
themes/PLiTheme/templates/source/main.faq.tpl (deleted)
-
themes/PLiTheme/templates/source/main.login.tpl (deleted)
-
themes/PLiTheme/templates/source/main.lostpassword.tpl (deleted)
-
themes/PLiTheme/templates/source/main.maintenance.tpl (deleted)
-
themes/PLiTheme/templates/source/main.members.tpl (deleted)
-
themes/PLiTheme/templates/source/main.news.readmore.tpl (deleted)
-
themes/PLiTheme/templates/source/main.news.tpl (deleted)
-
themes/PLiTheme/templates/source/main.news_cats.tpl (deleted)
-
themes/PLiTheme/templates/source/main.pm.options.tpl (deleted)
-
themes/PLiTheme/templates/source/main.pm.post.tpl (deleted)
-
themes/PLiTheme/templates/source/main.pm.renderpm.tpl (deleted)
-
themes/PLiTheme/templates/source/main.pm.tpl (deleted)
-
themes/PLiTheme/templates/source/main.print.tpl (deleted)
-
themes/PLiTheme/templates/source/main.profile.groups.tpl (deleted)
-
themes/PLiTheme/templates/source/main.profile.members.tpl (deleted)
-
themes/PLiTheme/templates/source/main.readarticle.tpl (deleted)
-
themes/PLiTheme/templates/source/main.register.activate.tpl (deleted)
-
themes/PLiTheme/templates/source/main.register.tpl (deleted)
-
themes/PLiTheme/templates/source/main.search.tpl (deleted)
-
themes/PLiTheme/templates/source/main.setup.tpl (deleted)
-
themes/PLiTheme/templates/source/main.setuser.tpl (deleted)
-
themes/PLiTheme/templates/source/main.viewpage.tpl (deleted)
-
themes/PLiTheme/templates/source/main.webshop.tpl (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/viewthread.php
r834 r843 117 117 define("iMOD", false); 118 118 } 119 120 // check if this user is allowed to blacklist 121 $variables['user_can_blacklist'] = checkrights("B"); 119 122 120 123 // get information about the current thread -
trunk/includes/Smarty-2.6.18/Smarty.class.php
r841 r843 73 73 * @var string 74 74 */ 75 var $template_dir = 'templates';75 var $template_dir = array('templates'); 76 76 77 77 /** -
trunk/includes/Smarty-2.6.18/custom-plugins/function.buttonlink.php
r838 r843 57 57 } 58 58 59 return "<input type='button' class='button' value='$name' ".($title?"title='$title' ":"")."on Click='".($script ? ($link."'") : ($new ? "window.open(\"$link\");'" : "window.location=\"$link\";'"))." />";59 return "<input type='button' class='button' value='$name' ".($title?"title='$title' ":"")."onclick='".($script ? ($link."'") : ($new ? "window.open(\"$link\");'" : "window.location=\"$link\";'"))." />"; 60 60 } 61 61 -
trunk/includes/core_functions.php
r834 r843 498 498 499 499 $text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";:\+]*?)(\.swf)\[/flash\]#si', '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://active.macromedia.com/flash6/cabs/swflash.cab#version=6,0,0,0\' id=\'\3\4\' width=\'\1\' height=\'\2\'><param name=movie value=\'\3\4\'><param name=\'quality\' value=\'high\'><param name=\'bgcolor\' value=\'#ffffff\'><embed src=\'\3\4\' quality=\'high\' bgcolor=\'#ffffff\' width=\'\1\' height=\'\2\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>', $text); 500 $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<img src=\'\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4\' style=\'border:0px\' />'",$text);500 $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<img src=\'\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4\' style=\'border:0px\' alt=\'\' />'",$text); 501 501 502 502 $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); … … 711 711 global $settings; 712 712 713 // ask the user for authentication 713 714 header('WWW-Authenticate: Basic realm="'.$settings['sitename'].'"'); 714 715 header('HTTP/1.0 401 Unauthorized'); 715 echo "Pressed cancel. Need to replace this with something useful"; 716 // if the user cancels, redirect to the homepage 717 echo "<script type='text/javascript'>document.location.href='".BASEDIR."index.php'</script>\n"; 716 718 exit; 717 719 } … … 735 737 } 736 738 if ($data['user_status'] == 0) { 737 // HV - set the 'remember me' status value into a cookie738 739 if (isset($_POST['remember_me'])) { 739 740 setcookie("remember_me", "yes", time() + 31536000, "/", "", "0"); … … 743 744 $cookie_exp = time() + 60*30; 744 745 } 745 // HV - end of code change746 746 header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'"); 747 747 setcookie("userinfo", $cookie_value, $cookie_exp, "/", "", "0"); -
trunk/includes/theme_functions.php
r841 r843 27 27 $template->compile_check = true; 28 28 29 // set the compile ID for this website 30 $template->compile_id = $_SERVER['SERVER_NAME']; 31 29 32 // caching required? 30 33 $template->caching = 0; … … 44 47 // and finaly, use the default Smarty plugins 45 48 $plugins_dir[] = 'smarty-plugins'; 49 46 50 $template->plugins_dir = $plugins_dir; 51 52 // templates, where to find them? 53 $template_dir = array(); 54 // first check if there's one defined in the current theme 55 if (is_dir(PATH_THEME."templates/source")) $template_dir[] = PATH_THEME."templates/source"; 56 // next, check the CMS template directory 57 $template_dir[] = PATH_INCLUDES.'templates'; 58 59 $template->template_dir = $template_dir; 47 60 48 61 // PHP in Templates? Don't think so! … … 158 171 } 159 172 160 // if this is a module template...173 //if this is a module template... 161 174 $tpl_parts = explode(".", $panel['template']); 162 175 if ($tpl_parts[0] == "modules") { 163 // check if there is a customized version for the current theme 164 if (!file_exists($template->template_dir."/".$panel['template'])) { 165 // if not, add the module template to smarty's source list, so the default template can be found 166 $template->template_dir = array(PATH_MODULES.$tpl_parts[1].'/templates', $template->template_dir); 167 } 168 } 176 // store the current template directories, we need to restore them later 177 $td = $template->template_dir; 178 $template->template_dir = array_merge(array(PATH_MODULES.$tpl_parts[1].'/templates'), $template->template_dir); 179 } else { 180 // we shouldn't get here 181 } 182 169 183 // if a template is defined, load the template, 170 184 if (isset($panel['template'])) $template->display($panel['template']); 171 172 // restore the template direc tory if needed173 $template->template_dir = PATH_THEME.'templates/source';185 186 // restore the template direcory if needed 187 if (isset($td) && is_array($td)) $template->template_dir = $td; 174 188 } 175 189 } -
trunk/locale/English/admin/settings.php
r814 r843 93 93 $locale['661'] = "Leave empty for immediate upload/download of backups."; 94 94 $locale['662'] = "Use TinyMCE HTML editor?"; 95 $locale['663'] = " For article and news admin only.";96 $locale['664'] = "SMTP Host ";95 $locale['663'] = "Leave blank if your SMTP host does not require authentication"; 96 $locale['664'] = "SMTP Host:"; 97 97 $locale['665'] = "Leave empty if sendmail is enabled."; 98 $locale['666'] = "SMTP Username ";99 $locale['667'] = " SMTP Password";98 $locale['666'] = "SMTP Username and Password:"; 99 $locale['667'] = "In seconds.Only one post per interval is allowed."; 100 100 $locale['668'] = "Use external download statistics:"; 101 101 $locale['669'] = "Maintenance mode background color:"; 102 $locale['670'] = "If yes, an external program has to update the download counters."; 102 103 // Private Message Settings 103 104 $locale['700'] = "Private Messages"; -
trunk/locale/English/forum/main.php
r835 r843 78 78 $locale['569'] = "Quote"; 79 79 $locale['570'] = "IP Address"; 80 $locale['570a'] = ". Click to blacklist this ".$locale['570']; 80 81 $locale['571'] = "pm"; 81 82 $locale['571a'] = "Send Private Message"; -
trunk/locale/English/global.php
r814 r843 130 130 $locale['110'] = "View"; 131 131 $locale['111'] = "View Poll"; 132 $locale['112'] = "(Poll)"; 132 133 // Shoutbox 133 134 $locale['120'] = "Shoutbox"; -
trunk/news_cats.php
r834 r843 16 16 require_once PATH_ROOT."/includes/theme_functions.php"; 17 17 18 define('NC_OVERVIEW_LIMIT', 10);18 define('NC_OVERVIEW_LIMIT', 5); 19 19 20 20 // load this module's locales -
trunk/profile.php
r834 r843 136 136 } 137 137 $data['cc_flag'] = $cc_flag; 138 $data['user_level'] = getuserlevel($data['user_level']);139 138 $members[] = $data; 140 139 } -
trunk/themes/PLiTheme/templates/source/_header.tpl
r841 r843 197 197 <a href='.' onclick='fontGroter(-0.1); return false' title='Decrease font-size'><img src='{$smarty.const.THEME}images/minus.gif' alt='' border='0' /></a><a href='.' onclick='fontReset(0.7); return false' title='Restore default font-sizes'><img src='{$smarty.const.THEME}images/reset.gif' hspace='2' alt='' border='0' /></a><a href='.' onclick='fontGroter(0.1); return false' title='Increase font-size'><img src='{$smarty.const.THEME}images/plus.gif' alt='' border='0' /></a> 198 198 {section name=index loop=$headermenu} 199 {if !$smarty.section.index.first} ·{/if} <a href='{$headermenu[index].link_url}' {if $headermenu[index].link_window == 1}target='_blank' {/if} alt=''><span class='small'>{$headermenu[index].link_name}</span></a>199 {if !$smarty.section.index.first} ·{/if} <a href='{$headermenu[index].link_url}' {if $headermenu[index].link_window == 1}target='_blank' {/if}><span class='small'>{$headermenu[index].link_name}</span></a> 200 200 {/section} 201 201 </td> -
trunk/themes/PLiTheme/templates/source/_message_side_panel.simple.tpl
r747 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS template: _message_side_panel.simple.tpl*}3 {* ExiteCMS template: _message_side_panel.simple.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_message_side_panel.tpl
r735 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS template: _message_side_panel.tpl*}3 {* ExiteCMS template: _message_side_panel.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_message_table_panel.simple.tpl
r743 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS template: _message_table_panel.simple.tpl*}3 {* ExiteCMS template: _message_table_panel.simple.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_message_table_panel.tpl
r735 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS template: _message_table_panel.tpl*}3 {* ExiteCMS template: _message_table_panel.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_openside.tpl
r735 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS include template: _openside.tpl*}3 {* ExiteCMS include template: _openside.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_openside_x.tpl
r735 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS include template: _openside_x.tpl*}3 {* ExiteCMS include template: _openside_x.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_opentable.tpl
r735 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS include template: _opentable.tpl*}3 {* ExiteCMS include template: _opentable.tpl *} 4 4 {* *} 5 5 {***************************************************************************} -
trunk/themes/PLiTheme/templates/source/_query_debug.tpl
r778 r843 1 1 {***************************************************************************} 2 2 {* *} 3 {* PLi-Fusion CMS template: _query_debug.tpl*}3 {* ExiteCMS template: _query_debug.tpl *} 4 4 {* *} 5 5 {***************************************************************************}
Note: See TracChangeset
for help on using the changeset viewer.
