Changeset 1182 in ExiteCMS
- Timestamp:
- 12/25/07 17:32:57 (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 14 edited
-
administration/modules.php (modified) (3 diffs)
-
administration/panel_editor.php (modified) (10 diffs)
-
administration/tools/language_pack_English.php (modified) (2 diffs)
-
administration/tools/localefix.php (deleted)
-
administration/upgrade/rev01172.php (modified) (1 diff)
-
administration/upgrade/rev01176.php (added)
-
files/locales (modified) (1 prop)
-
files/locales/en.main.global.php (modified) (2 diffs)
-
files/locales/en.main.setup.php (modified) (1 diff)
-
includes/dbsetup_include.php (modified) (8 diffs)
-
includes/templates/admin.db_backup.tpl (modified) (9 diffs)
-
includes/templates/admin.panel_editor.tpl (modified) (7 diffs)
-
includes/templates/forum.renderpost.tpl (modified) (1 diff)
-
includes/theme_functions.php (modified) (4 diffs)
-
includes/user_functions.php (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_stylesheets.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/modules.php
r1166 r1182 84 84 85 85 // determine to which menu panel this link needs to be added 86 $link_panel = ($mod_link['panel'] != "" ? ($mod_link['panel']."_") : "").'menu_panel'; 87 88 // check if this panel is installed 89 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 90 if (dbrows($result) == 0) { 91 // if the panel doesn't exist, try to find another menu panel (if multiple are installed, pick the first one in the ordered list) 92 $result = dbquery("SELECT panel_filename FROM ".$db_prefix."panels WHERE panel_filename LIKE '%_menu_panel' ORDER BY panel_order LIMIT 1"); 93 if (dbrows($result)) { 94 $data = dbarray($result); 95 $link_panel = $data['panel_filename']; 96 } else { 97 // if still not found, fall back to the CMS default 98 $link_panel = "main_menu_panel"; 99 } 86 if (isset($mod_link['panel']) && $mod_link['panel'] != "") { 87 if (substr($mod_link['panel'],-4) != ".php") { 88 $link_panel = $mod_link['panel']."/".$mod_link['panel'].".php"; 89 } 90 // check if this panel is installed 91 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 92 if (dbrows($result) == 0) { 93 // if the panel doesn't exist, try to find another menu panel (if multiple are installed, pick the first one in the ordered list) 94 $result = dbquery("SELECT panel_filename FROM ".$db_prefix."panels WHERE panel_filename LIKE '%_menu_panel.php' ORDER BY panel_order LIMIT 1"); 95 if (dbrows($result)) { 96 $data = dbarray($result); 97 $link_panel = $data['panel_filename']; 98 } else { 99 // if still not found, fall back to the CMS default 100 $link_panel = "main_menu_panel/main_menu_panel.php"; 101 } 102 } 103 } else { 104 // use the CMS default 105 $link_panel = "main_menu_panel/main_menu_panel.php"; 100 106 } 101 107 … … 213 219 if ($link_url{0} == "/") $link_url = substr($link_url,1); 214 220 215 // determine to which menu panel this link has been added 216 $link_panel = ($mod_link['panel'] != "" ? ($mod_link['panel']."_") : "").'menu_panel'; 221 // determine to which menu panel this link needs to be added 222 if (isset($mod_link['panel']) && $mod_link['panel'] != "") { 223 if (substr($mod_link['panel'],-4) != ".php") { 224 $link_panel = $mod_link['panel']."/".$mod_link['panel'].".php"; 225 } 226 // check if this panel is installed 227 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 228 if (dbrows($result) == 0) { 229 // if the panel doesn't exist, try to find another menu panel (if multiple are installed, pick the first one in the ordered list) 230 $result = dbquery("SELECT panel_filename FROM ".$db_prefix."panels WHERE panel_filename LIKE '%_menu_panel.php' ORDER BY panel_order LIMIT 1"); 231 if (dbrows($result)) { 232 $data = dbarray($result); 233 $link_panel = $data['panel_filename']; 234 } else { 235 // if still not found, fall back to the CMS default 236 $link_panel = "main_menu_panel/main_menu_panel.php"; 237 } 238 } 239 } else { 240 // use the CMS default 241 $link_panel = "main_menu_panel/main_menu_panel.php"; 242 } 217 243 218 244 // if this panel doesn't exist (anymore), use the default menu panel 219 245 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 220 if (dbrows($result) == 0) $link_panel = "main_menu_panel ";246 if (dbrows($result) == 0) $link_panel = "main_menu_panel/main_menu_panel.php"; 221 247 222 248 // check if we have a menu entry for this link … … 334 360 335 361 // determine to which menu panel this link needs to be added 336 $link_panel = ($mod_link['panel'] != "" ? ($mod_link['panel']."_") : "").'menu_panel'; 362 if (isset($mod_link['panel']) && $mod_link['panel'] != "") { 363 if (substr($mod_link['panel'],-4) != ".php") { 364 $link_panel = $mod_link['panel']."/".$mod_link['panel'].".php"; 365 } 366 // check if this panel is installed 367 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 368 if (dbrows($result) == 0) { 369 // if the panel doesn't exist, try to find another menu panel (if multiple are installed, pick the first one in the ordered list) 370 $result = dbquery("SELECT panel_filename FROM ".$db_prefix."panels WHERE panel_filename LIKE '%_menu_panel.php' ORDER BY panel_order LIMIT 1"); 371 if (dbrows($result)) { 372 $data = dbarray($result); 373 $link_panel = $data['panel_filename']; 374 } else { 375 // if still not found, fall back to the CMS default 376 $link_panel = "main_menu_panel/main_menu_panel.php"; 377 } 378 } 379 } else { 380 // use the CMS default 381 $link_panel = "main_menu_panel/main_menu_panel.php"; 382 } 337 383 338 384 // if the panel doesn't exist, use the default menu panel 339 385 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 340 if (dbrows($result) == 0) $link_panel = "main_menu_panel ";386 if (dbrows($result) == 0) $link_panel = "main_menu_panel/main_menu_panel.php"; 341 387 342 388 // check if the menu link is already defined -
trunk/administration/panel_editor.php
r1158 r1182 52 52 } 53 53 54 // make a list of all installed module panels54 // scan all installed modules and make a list of available panels 55 55 $panel_list = array(); 56 $result = dbquery("SELECT mod_folder FROM ".$db_prefix."modules WHERE mod_folder like '%_panel'"); 56 $current_folder = ""; 57 $result = dbquery("SELECT mod_folder FROM ".$db_prefix."modules ORDER BY mod_folder"); 57 58 while ($data = dbarray($result)) { 58 $panel_list[] = $data['mod_folder']; 59 } 60 sort($panel_list); array_unshift($panel_list, "none"); 59 // get the list of panel php files in the module directory 60 foreach(glob(PATH_MODULES.$data['mod_folder']."/*_panel.php") as $panelname) { 61 if ($data['mod_folder'] != $current_folder) { 62 $data['new_module'] = true; 63 $current_folder = $data['mod_folder']; 64 } else { 65 $data['new_module'] = false; 66 } 67 $data['selected'] = false; 68 $data['panel_name'] = basename($panelname, ".php"); 69 $data['panel_filename'] = $data['mod_folder']."/".$data['panel_name'].".php"; 70 $panel_list[] = $data; 71 } 72 } 73 array_unshift($panel_list, array('mod_folder' => "", 'new_module' => true, 'panel_name' => "", 'panel_filename' => "", 'selected' => false)); 61 74 62 75 if (isset($_POST['save'])) { 63 64 76 $error = ""; 65 77 $panel_usermod = $_POST['panel_usermod']; … … 67 79 $panel_name = stripinput($_POST['panel_name']); 68 80 if ($panel_name == "") $error .= $locale['470']."<br>"; 69 if ($_POST['panel_filename'] == " none") {81 if ($_POST['panel_filename'] == "") { 70 82 $panel_filename = ""; 71 83 $panel_code = addslash($_POST['panel_code']); … … 120 132 } 121 133 if ($panel_type == "dynamic" && $panel_template == "") $error .= $locale['472']."<br>"; 122 if ($panel_type == "file" && $panel_filename == " none") $error .= $locale['473']."<br>";134 if ($panel_type == "file" && $panel_filename == "") $error .= $locale['473']."<br>"; 123 135 if ($error == "") { 124 136 $result = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='$panel_side'".($where!=""?(" AND ".$where):"")." ORDER BY panel_order DESC LIMIT 1"); … … 146 158 if (isset($_POST['preview'])) { 147 159 $panel_name = stripinput($_POST['panel_name']); 148 $panel_filename = $_POST['panel_filename'];160 $panel_filename = stripinput($_POST['panel_filename']); 149 161 $panel_code = isset($_POST['panel_code']) ? $_POST['panel_code'] : ""; 150 162 $panel_template = isset($_POST['panel_template']) ? $_POST['panel_template'] : ""; … … 157 169 $panel_code = stripslash($panel_code); 158 170 $panel_template = stripslash($panel_template); 159 if ($panel_filename == " none") {171 if ($panel_filename == "") { 160 172 $panel_type = "dynamic"; 161 173 eval($panel_code); … … 175 187 } else { 176 188 $panel_type = "file"; 177 @include PATH_MODULES.$panel_filename ."/".$panel_filename.".php";189 @include PATH_MODULES.$panel_filename; 178 190 if ($panel_side == 0) { 179 $template_panels[] = array('type' => 'header', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");191 $template_panels[] = array('type' => 'header', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 180 192 } if ($panel_side == 1) { 181 $template_panels[] = array('type' => 'left', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");193 $template_panels[] = array('type' => 'left', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 182 194 } elseif ($panel_side == 2) { 183 $template_panels[] = array('type' => 'upper', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");195 $template_panels[] = array('type' => 'upper', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 184 196 } elseif ($panel_side == 3) { 185 $template_panels[] = array('type' => 'lower', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");197 $template_panels[] = array('type' => 'lower', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 186 198 } elseif ($panel_side == 4) { 187 $template_panels[] = array('type' => 'right', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");199 $template_panels[] = array('type' => 'right', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 188 200 } elseif ($panel_side == 5) { 189 $template_panels[] = array('type' => 'footer', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.". $panel_filename.".tpl");201 $template_panels[] = array('type' => 'footer', 'name' => 'admin.panel_editor.preview', 'title' => $panel_name, 'state' => ($panel_state == 2 ? 0 : $panel_state), 'template' => "modules.".basename($panel_filename,".php").".tpl"); 190 202 } 191 203 } … … 201 213 $data = dbarray($result); 202 214 $panel_name = $data['panel_name']; 215 $panel_type = $data['panel_type']; 203 216 $panel_filename = $data['panel_filename']; 217 if ($panel_type == "file" && @is_dir(PATH_MODULES.$panel_filename)) { 218 $panel_filename = $panel_filename."/".$panel_filename; 219 } 204 220 $panel_code = phpentities(stripslashes($data['panel_code'])); 205 221 $panel_template = phpentities(stripslashes($data['panel_template'])); 206 $panel_type = $data['panel_type'];207 222 $panel_access = $data['panel_access']; 208 223 $panel_side = $data['panel_side']; … … 218 233 $action = FUSION_SELF.$aidlink."&panel_id=$panel_id"; 219 234 $title = $locale['450']; 220 $panelon = "";221 $panelopts = "";235 // $panelon = ""; 236 // $panelopts = ""; 222 237 } else { 223 238 $action = FUSION_SELF.$aidlink; … … 237 252 } 238 253 } 254 255 // 256 foreach ($panel_list as $key => $value) { 257 if ($value['panel_filename'] == $panel_filename) { 258 $panel_list[$key]['selected'] = true; 259 break; 260 } 261 } 239 262 $variables['action'] = $action; 240 263 $variables['panel_id'] = isset($panel_id) ? $panel_id : 0; … … 251 274 $variables['panelopts'] = $panelopts; 252 275 $variables['panelon'] = $panelon; 253 276 // 254 277 $user_groups = getusergroups(); 255 278 $variables['user_groups'] = array(); -
trunk/administration/tools/language_pack_English.php
r1173 r1182 746 746 $localestrings['472'] = "Panel content not defined"; 747 747 $localestrings['473'] = "Panel filename not defined"; 748 $localestrings['474'] = "Module:"; 748 749 $localestrings['480'] = "Update Panel"; 749 750 $localestrings['481'] = "Could not update Panel"; … … 2414 2415 $localestrings['039'] = "There are %u unread posts in %u threads."; 2415 2416 $localestrings['039a'] = "There is 1 unread post in 1 thread."; 2417 $localestrings['039b'] = "There are %u unread posts in 1 thread."; 2416 2418 $localestrings['040'] = "Posted by "; 2417 2419 $localestrings['041'] = "on "; -
trunk/administration/upgrade/rev01172.php
r1173 r1182 22 22 // register this revision update 23 23 $revisions[] = array('revision' => $_revision, 24 'date' => mktime(1 6,00,0,12,2,2007),24 'date' => mktime(18,00,0,12,16,2007), 25 25 'title' => "Required updates for ExiteCMS v7.0 rev.".$_revision, 26 26 'description' => "Added User Activation admin module."); -
trunk/files/locales
-
Property
svn:ignore
set to
*.php
-
Property
svn:ignore
set to
-
trunk/files/locales/en.main.global.php
r1145 r1182 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Wed Nov 21 2007, 16:35:07CET5 // generated on : Tue Dec 25 2007, 15:30:41 CET 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- … … 41 41 $locale['039'] = "There are %u unread posts in %u threads."; 42 42 $locale['039a'] = "There is 1 unread post in 1 thread."; 43 $locale['039b'] = "There are %u unread posts in 1 thread."; 43 44 $locale['040'] = "Posted by "; 44 45 $locale['041'] = "on "; -
trunk/files/locales/en.main.setup.php
r1106 r1182 1 1 <?php 2 2 // ---------------------------------------------------------- 3 // locale : en3 // locale : English 4 4 // locale name : main.setup 5 // generated on : Sat Nov 10 2007, 22:09:36CET5 // generated on : Wed Nov 28 2007, 19:16:14 CET 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/includes/dbsetup_include.php
r1112 r1182 2 2 //---------------------------------------------------------- 3 3 // ExiteCMS file : dbsetup_include.php 4 // Date generated : ` 11/11/2007 12:53`4 // Date generated : `25/12/2007 15:32` 5 5 //---------------------------------------------------------- 6 6 7 7 define('CMS_VERSION', '7.00'); 8 define('CMS_REVISION', '1 091');8 define('CMS_REVISION', '1182'); 9 9 10 10 if ($step == 1) { … … 19 19 $result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."CMSconfig ( 20 20 `cfg_id` smallint(5) unsigned NOT NULL auto_increment, 21 `cfg_name` varchar( 25) NOT NULL default '',21 `cfg_name` varchar(50) NOT NULL default '', 22 22 `cfg_value` text NOT NULL, 23 23 PRIMARY KEY (`cfg_id`) … … 83 83 `article_cat_id` smallint(5) unsigned NOT NULL auto_increment, 84 84 `article_cat_name` varchar(100) NOT NULL default '', 85 `article_cat_locale` varchar(8) NOT NULL default '', 85 86 `article_cat_description` varchar(200) NOT NULL default '', 86 87 `article_cat_image` varchar(100) NOT NULL default '', … … 106 107 `article_breaks` char(1) NOT NULL default '', 107 108 `article_name` smallint(5) unsigned NOT NULL default '1', 109 `article_locale` varchar(8) NOT NULL default '', 108 110 `article_datestamp` int(10) unsigned NOT NULL default '0', 109 111 `article_reads` smallint(5) unsigned NOT NULL default '0', … … 191 193 `page_id` smallint(5) NOT NULL auto_increment, 192 194 `page_title` varchar(200) NOT NULL default '', 193 `page_seo_url` varchar(255) NOT NULL default '',194 195 `page_access` tinyint(3) unsigned NOT NULL default '0', 195 196 `page_content` text NOT NULL, … … 210 211 `download_cat_id` smallint(5) unsigned NOT NULL auto_increment, 211 212 `download_cat_name` varchar(100) NOT NULL default '', 213 `download_cat_locale` varchar(8) NOT NULL default '', 212 214 `download_cat_description` text NOT NULL, 213 215 `download_cat_sorting` varchar(50) NOT NULL default 'download_title ASC', … … 552 554 `panel_id` smallint(5) unsigned NOT NULL auto_increment, 553 555 `panel_name` varchar(100) NOT NULL default '', 556 `panel_locale` varchar(8) NOT NULL default '', 554 557 `panel_filename` varchar(100) NOT NULL default '', 555 558 `panel_code` text NOT NULL, … … 742 745 `link_id` smallint(5) unsigned NOT NULL auto_increment, 743 746 `link_name` varchar(100) NOT NULL default '', 747 `link_locale` varchar(8) NOT NULL default '', 744 748 `link_url` varchar(200) NOT NULL default '', 745 749 `panel_name` varchar(200) NOT NULL default '', -
trunk/includes/templates/admin.db_backup.tpl
r864 r1182 47 47 <!-- 48 48 function tableSelectAll(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=true;}} 49 function tableSelectCore(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=(document.restoreform.elements['list_tbl[]'].options[i].text).match(/^{/literal}{$db_prefix}{literal}/);}} 49 50 function tableSelectNone(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=false;}} 50 51 function populateSelectAll(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=true;}} 52 function populateSelectCore(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=(document.restoreform.elements['list_ins[]'].options[i].text).match(/^{/literal}{$db_prefix}{literal}/);}} 51 53 function populateSelectNone(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=false;}} 52 54 //--> … … 57 59 <tr> 58 60 <td colspan='2' class='tbl2'> 59 {$locale.430}61 <b>{$locale.430}</b> 60 62 </td> 61 63 </tr> … … 82 84 </tr> 83 85 <tr> 84 <td valign='top' class='tbl'>86 <td valign='top' align='center' class='tbl'> 85 87 {$locale.433} 86 88 <br /> 87 <select style='width: 180px;' class='textbox' id='list_tbl' name='list_tbl[]' size='{$maxrows}' multiple="multiple">89 <select style='width:250px;' class='textbox' id='list_tbl' name='list_tbl[]' size='{$maxrows}' multiple="multiple"> 88 90 {foreach from=$info_tables item=table} 89 91 <option value='{$table}' selected="selected">{$table}</option> 90 92 {/foreach} 91 93 </select> 92 <br /> {$locale.435} 93 <div style='display:inline; '>94 <br /><br />{$locale.435} 95 <div style='display:inline;text-align:center;vertical-align:top;'> 94 96 <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:tableSelectAll()" /> 97 <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:tableSelectCore()" /> 95 98 <input type='button' class='button' name='{$locale.437}' value='{$locale.437}' onclick="javascript:tableSelectNone()" /> 96 99 </div> 97 100 </td> 98 <td valign='top' class='tbl'>101 <td valign='top' align='center' class='tbl'> 99 102 {$locale.434} 100 103 <br /> 101 <select style='width: 180px;' class='textbox' id='list_ins' name='list_ins[]' size='{$maxrows}' multiple="multiple">104 <select style='width:250px;' class='textbox' id='list_ins' name='list_ins[]' size='{$maxrows}' multiple="multiple"> 102 105 {section name=id loop=$info_inserts} 103 106 <option value='{$info_inserts[id].id}'{if $info_inserts[id].selected} selected="selected"{/if}>{$info_inserts[id].name}</option> 104 107 {/section} 105 108 </select> 106 <br /> {$locale.435} 107 <div style='display:inline; '>109 <br /><br />{$locale.435} 110 <div style='display:inline;text-align:center;vertical-align:top;'> 108 111 <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:populateSelectAll()" /> 112 <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:populateSelectCore()" /> 109 113 <input type='button' class='button' name='{$locale.437}' value='{$locale.437}' onclick="javascript:populateSelectNone()" /> 110 114 </div> … … 116 120 </tr> 117 121 <tr> 118 <td align=' left' colspan='2' class='tbl2'>119 {$locale.406}122 <td align='center' colspan='2' class='tbl2'> 123 <b>{$locale.406}</b> 120 124 </td> 121 125 </tr> … … 154 158 <table align='center' cellspacing='0' cellpadding='0'> 155 159 <tr> 156 <td colspan='2' class='tbl2' align=' left'>157 {$locale.451}160 <td colspan='2' class='tbl2' align='center'> 161 <b>{$locale.451}</b> 158 162 </td> 159 163 </tr> … … 194 198 </tr> 195 199 <tr> 196 <td align='left' colspan='2' class='tbl2'>197 {$locale.454}200 <td colspan='2' class='tbl2' align='center'> 201 <b>{$locale.454}</b> 198 202 </td> 199 203 </tr> … … 244 248 </tr> 245 249 <tr> 246 <td align='left' colspan='2' class='tbl2'>247 {$locale.406}250 <td colspan='2' class='tbl2' align='center'> 251 <b>{$locale.406}</b> 248 252 </td> 249 253 </tr> … … 262 266 <tr> 263 267 <td class='tbl2'> 264 {$locale.457}268 <b>{$locale.457}</b> 265 269 </td> 266 270 </tr> … … 273 277 </select> 274 278 <br />{$locale.435} 275 <div style='display:inline;text-align:center;vertical-align: middle;'>279 <div style='display:inline;text-align:center;vertical-align:top;'> 276 280 <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:backupSelectCore()" /> 277 281 <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:backupSelectAll()" /> -
trunk/includes/templates/admin.panel_editor.tpl
r1158 r1182 28 28 </td> 29 29 <td class='tbl'> 30 <input type='text' name='panel_name' value='{$panel_name}' class='textbox' style='width: 200px;' />30 <input type='text' name='panel_name' value='{$panel_name}' class='textbox' style='width:300px;' /> 31 31 </td> 32 32 </tr> … … 37 37 </td> 38 38 <td class='tbl'> 39 <select name='panel_filename' class='textbox' style='width:200px;'> 40 {foreach from=$panel_list item=panel_file} 41 <option{if $panel_filename == $panel_file} selected="selected"{/if}>{$panel_file}</option> 42 {/foreach} 39 <select name='panel_filename' class='textbox' style='width:250px;'> 40 {section name=id loop=$panel_list} 41 {if $panel_list[id].new_module} 42 {if !$smarty.section.id.first}</optgroup>{/if} 43 <optgroup label='{if $panel_list[id].mod_folder != ""}{$locale.474} {$panel_list[id].mod_folder}{/if}'> 44 {assign var='hasvalues' value=false} 45 {/if} 46 <option value='{$panel_list[id].panel_filename}' {if $panel_list[id].selected}selected='selected'{/if}>{$panel_list[id].panel_name}</option> 47 {assign var='hasvalues' value=true} 48 {if $smarty.section.id.last && $hasvalues}</optgroup>{/if} 49 {/section} 43 50 </select> 44 {if $panel_id == 0} <span class='small2'>{$locale.454}</span>{/if}51 {if $panel_id == 0}<br /><span class='small2'>{$locale.454}</span>{/if} 45 52 </td> 46 53 </tr> … … 52 59 </td> 53 60 <td class='tbl'> 54 <textarea name='panel_code' cols='80' rows='15' class='textbox' >{$panel_code}</textarea>61 <textarea name='panel_code' cols='80' rows='15' class='textbox' style='width:450px;'>{$panel_code}</textarea> 55 62 </td> 56 63 </tr> … … 60 67 </td> 61 68 <td class='tbl'> 62 <textarea name='panel_template' cols='80' rows='15' class='textbox' >{$panel_template}</textarea>69 <textarea name='panel_template' cols='80' rows='15' class='textbox' style='width:450px;'>{$panel_template}</textarea> 63 70 </td> 64 71 </tr> … … 83 90 <tr> 84 91 <td class='tbl'> 92 {$locale.462} 93 </td> 94 <td class='tbl'> 95 <select name='panel_state' class='textbox' style='width:150px;'> 96 <option value='0'{if $panel_state == "0"} selected="selected"{/if}>{$locale.463}</option> 97 <option value='1'{if $panel_state == "1"} selected="selected"{/if}>{$locale.464}</option> 98 </select> 99 </td> 100 </tr> 101 <tr> 102 <td class='tbl'> 85 103 {$locale.461} 86 104 </td> … … 89 107 <option value='0'{if $panel_usermod == "0"} selected="selected"{/if}>{$locale.447}</option> 90 108 <option value='1'{if $panel_usermod == "1"} selected="selected"{/if}>{$locale.448}</option> 91 </select>92 </td>93 </tr>94 <tr>95 <td class='tbl'>96 {$locale.462}97 </td>98 <td class='tbl'>99 <select name='panel_state' class='textbox' style='width:150px;'>100 <option value='0'{if $panel_state == "0"} selected="selected"{/if}>{$locale.463}</option>101 <option value='1'{if $panel_state == "1"} selected="selected"{/if}>{$locale.464}</option>102 109 </select> 103 110 </td> … … 156 163 <script type='text/javascript'> 157 164 function showopts(panelside) { 158 if (panelside == 1 || panelside == 4) { 165 if (panelside == 2 || panelside == 3) { 166 document.getElementById('panelopts').style.display = 'block'; 167 } else { 159 168 document.getElementById('panelopts').style.display = 'none'; 160 } else {161 document.getElementById('panelopts').style.display = 'block';162 169 } 163 170 } -
trunk/includes/templates/forum.renderpost.tpl
r1159 r1182 21 21 </tr> 22 22 <tr> 23 <td width='140' class='tbl_top_left' >23 <td width='140' class='tbl_top_left' style='white-space:nowrap'> 24 24 {$posts[pid].post_datestamp|date_format:"forumdate"} 25 25 </td> -
trunk/includes/theme_functions.php
r1158 r1182 49 49 // set the compile ID for this website/theme (themes can have different templates!) 50 50 if (isset($userdata['user_theme']) && $userdata['user_theme'] != "Default") { 51 $this->compile_id = $_SERVER['SERVER_NAME']." .".$userdata['user_theme'];51 $this->compile_id = $_SERVER['SERVER_NAME']."~".$userdata['user_theme']; 52 52 } else { 53 $this->compile_id = $_SERVER['SERVER_NAME']." .".$settings['theme'];53 $this->compile_id = $_SERVER['SERVER_NAME']."~".$settings['theme']; 54 54 } 55 55 … … 84 84 $_return = $auto_base . DIRECTORY_SEPARATOR; 85 85 86 if(isset($auto_id)) {87 // make auto_id safe for directory names88 $auto_id = str_replace('%7C',$_compile_dir_sep,(urlencode($auto_id)));89 }90 91 86 if(isset($auto_source)) { 92 87 // make source name safe for filename … … 95 90 $auto_source = md5($auto_source); 96 91 } 97 $_crc32 = sprintf('%08X', crc32($auto_source)); 98 // prepend %% to avoid name conflicts with 99 // with $params['auto_id'] names 100 $_crc32 = substr($_crc32, 0, 2) . $_compile_dir_sep . 101 substr($_crc32, 0, 3) . $_compile_dir_sep . $_crc32; 92 $_return .= $auto_source."~"; 102 93 } 103 return $_return.(isset($auto_source)?($auto_source."."):"").(isset($auto_id)?($auto_id."."):"").(isset($_crc32)?$_crc32:""); 94 95 if(isset($auto_id)) { 96 // make auto_id safe for directory names 97 $auto_id = str_replace('%7C',$_compile_dir_sep,(urlencode($auto_id))); 98 $auto_id = str_replace('%7E','~',$auto_id); 99 $_return .= $auto_id; 100 } 101 102 return $_return; 104 103 } 105 104 … … 357 356 $_panel['type'] = $column; 358 357 $_panel['title'] = $p_data['panel_name']; 359 $_panel['name'] = 'modules.'.$p_data['panel_filename'];360 358 $_panel['panel_type'] = $p_data['panel_type']; 361 359 switch($p_data['panel_type']) { 362 360 case "file": 363 $_panel['template'] = 'modules.'.$p_data['panel_filename'].".tpl"; 364 $_panel['panel_code'] = PATH_MODULES.$p_data['panel_filename']."/".$p_data['panel_filename'].".php"; 361 // check for module directory for backward compatibility 362 if (@is_dir(PATH_MODULES.$p_data['panel_filename'])) { 363 $_panel['name'] = 'modules.'.$p_data['panel_filename']; 364 $_panel['template'] = 'modules.'.$p_data['panel_filename'].".tpl"; 365 $_panel['panel_code'] = PATH_MODULES.$p_data['panel_filename']."/".$p_data['panel_filename'].".php"; 366 } else { 367 $_panel['template'] = 'modules.'.substr(basename($p_data['panel_filename']),0,-4).".tpl"; 368 $_panel['name'] = 'modules.'.substr(basename($p_data['panel_filename']),0,-4); 369 $_panel['panel_code'] = PATH_MODULES.$p_data['panel_filename']; 370 } 365 371 break; 366 372 case "dynamic": -
trunk/includes/user_functions.php
r1158 r1182 102 102 define("PATH_THEME", PATH_THEMES.$settings['theme']."/"); 103 103 define("THEME", THEMES.$settings['theme']."/"); 104 // make sure the default theme exists! 105 if (!file_exists(PATH_THEMES.$settings['theme']."/theme.php")) { 106 die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>FATAL ERROR: Unable to load the default theme</b></div>"); 107 } 104 108 } 105 109 if ($userdata['user_offset'] <> 0) { -
trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl
r1135 r1182 36 36 /* horizontal lines */ 37 37 hr { border:none; color:#bbb; background-color:#bbb; height:1px; } 38 39 /* dropdowns with options */ 40 optgroup { padding-bottom:5px; font-style:normal; } 38 41 39 42 /* --- HTML form settings ---------------------------------- */ … … 77 80 78 81 /* title bars within a panel */ 79 .infobar { font-weight:normal; font-family:"trebuchet ms", Verdana, Arial, Sans-serif; color:#333; background-color:# eee; padding:3px 4px 3px 4px; }82 .infobar { font-weight:normal; font-family:"trebuchet ms", Verdana, Arial, Sans-serif; color:#333; background-color:#ddd; padding:3px 4px 3px 4px; } 80 83 81 84 /* --- Browser window centered div ------------------------- */ … … 110 113 111 114 /* labels and separators in side panels */ 112 .side-label { color:#333; background-color:# eee; margin:2px 0px 2px 0px; padding:1px 0px 1px 8px; white-space:nowrap;overflow:hidden; }115 .side-label { color:#333; background-color:#ddd; margin:2px 0px 2px 0px; padding:1px 0px 1px 8px; white-space:nowrap;overflow:hidden; } 113 116 114 117 /* labels and separators in body panels */ 115 .main-label { color:#333; background-color:# eee; padding:4px 4px 4px 4px; margin:0px 0px 5px 0px; white-space:nowrap;overflow:hidden; }118 .main-label { color:#333; background-color:#ddd; padding:4px 4px 4px 4px; margin:0px 0px 5px 0px; white-space:nowrap;overflow:hidden; } 116 119 117 120 /* links in side panels */
Note: See TracChangeset
for help on using the changeset viewer.
