Changeset 1281 in ExiteCMS
- Timestamp:
- 02/14/08 15:10:07 (4 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
administration/modules.php (modified) (6 diffs)
-
administration/tools/language_pack_English.php (modified) (1 diff)
-
edit_profile.php (modified) (1 diff)
-
files/locales/en.main.global.php (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_stylesheets.tpl (modified) (1 diff)
-
themes/ExiteCMS/wikka.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/modules.php
r1182 r1281 44 44 45 45 // check if it exists, if so, bail out 46 if (dbrows($result)) fallback(FUSION_SELF.$aidlink); 46 $result = dbquery("SELECT * FROM ".$db_prefix."modules WHERE mod_folder='$module'"); 47 if (dbrows($result) || !is_dir(PATH_MODULES.$module)) fallback(FUSION_SELF.$aidlink); 47 48 48 49 // load the module installer … … 95 96 if (dbrows($result)) { 96 97 $data = dbarray($result); 97 $link_panel = $data['panel_filename'];98 $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 98 99 } else { 99 100 // if still not found, fall back to the CMS default 100 $link_panel = "main_menu_panel/main_menu_panel.php"; 101 } 101 $link_panel = "main_menu_panel"; 102 } 103 } else { 104 $link_panel = $mod_link['panel']; 102 105 } 103 106 } else { 104 107 // use the CMS default 105 $link_panel = "main_menu_panel /main_menu_panel.php";108 $link_panel = "main_menu_panel"; 106 109 } 107 110 … … 218 221 $link_url = str_replace("../","",MODULES).$mod_folder."/".$mod_link['url']; 219 222 if ($link_url{0} == "/") $link_url = substr($link_url,1); 220 223 221 224 // determine to which menu panel this link needs to be added 222 225 if (isset($mod_link['panel']) && $mod_link['panel'] != "") { … … 231 234 if (dbrows($result)) { 232 235 $data = dbarray($result); 233 $link_panel = $data['panel_filename'];236 $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 234 237 } else { 235 238 // if still not found, fall back to the CMS default 236 $link_panel = "main_menu_panel/main_menu_panel.php"; 237 } 239 $link_panel = "main_menu_panel"; 240 } 241 } else { 242 $link_panel = $mod_link['panel']; 238 243 } 239 244 } else { 240 245 // use the CMS default 241 $link_panel = "main_menu_panel/main_menu_panel.php"; 242 } 243 244 // if this panel doesn't exist (anymore), use the default menu panel 245 $result = dbquery("SELECT panel_id FROM ".$db_prefix."panels WHERE panel_filename = '$link_panel'"); 246 if (dbrows($result) == 0) $link_panel = "main_menu_panel/main_menu_panel.php"; 246 $link_panel = "main_menu_panel"; 247 } 247 248 248 249 // check if we have a menu entry for this link … … 371 372 if (dbrows($result)) { 372 373 $data = dbarray($result); 373 $link_panel = $data['panel_filename'];374 $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 374 375 } else { 375 376 // if still not found, fall back to the CMS default 376 $link_panel = "main_menu_panel/main_menu_panel.php"; 377 } 377 $link_panel = "main_menu_panel"; 378 } 379 } else { 380 $link_panel = $mod_link['panel']; 378 381 } 379 382 } else { 380 383 // use the CMS default 381 $link_panel = "main_menu_panel /main_menu_panel.php";384 $link_panel = "main_menu_panel"; 382 385 } 383 386 … … 391 394 // determine the next order in the menu for this link 392 395 $link_order = dbresult(dbquery("SELECT MAX(link_order) FROM ".$db_prefix."site_links WHERE panel_name = '$link_panel'"),0) + 1; 393 396 394 397 // add the new link 395 $result = dbquery("INSERT INTO ".$db_prefix."site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) 396 VALUES ('".$mod_link['name']."', '$link_url', '".$mod_link['visibility']."', '1', '0', '$link_order', '$link_panel')"); 398 switch ($settings['sitelinks_localisation']) { 399 case "multiple": 400 $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_active = '1'"); 401 while ($data = dbarray($result)) { 402 $result = dbquery("INSERT INTO ".$db_prefix."site_links (link_name, link_locale, link_url, link_visibility, link_position, link_window, link_order, panel_name) 403 VALUES ('".$mod_link['name']."', '".$data['locale_code']."', '$link_url', '".$mod_link['visibility']."', '1', '0', '$link_order', '$link_panel')"); 404 } 405 break; 406 default: 407 $result = dbquery("INSERT INTO ".$db_prefix."site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) 408 VALUES ('".$mod_link['name']."', '$link_url', '".$mod_link['visibility']."', '1', '0', '$link_order', '$link_panel')"); 409 } 410 397 411 } else { 398 412 // do nothing -
trunk/administration/tools/language_pack_English.php
r1280 r1281 3077 3077 $localestrings['u033'] = "Open"; 3078 3078 $localestrings['u034'] = "Closed"; 3079 $localestrings['u035'] = "Show your own posts as unread ";3079 $localestrings['u035'] = "Show your own posts as unread:"; 3080 3080 $localestrings['u036'] = ""; 3081 3081 $localestrings['u037'] = "Html"; -
trunk/edit_profile.php
r1280 r1281 186 186 } 187 187 if ($user_newpassword != "") { $newpass = " user_password=md5(md5('$user_newpassword')), "; } else { $newpass = " "; } 188 $result = dbquery("UPDATE ".$db_prefix."users SET user_name='$username', user_fullname='$user_fullname', ".$newpass."user_email='".$_POST['user_email']."', user_bad_email = '0', user_hide_email='$user_hide_email', user_location='$user_location', user_birthdate='$user_birthdate', user_aim='$user_aim', user_icq='$user_icq', user_msn='$user_msn', user_yahoo='$user_yahoo', user_web='$user_web', user_forum_fullscreen='$user_forum_fullscreen', user_posts_unread='$user_ forum_posts_unread', user_newsletters='$user_newsletters', user_theme='$user_theme', user_offset='$user_offset', ".$set_avatar."user_sig='$user_sig', user_locale='".$_POST['user_locale']."' WHERE user_id='".$this_userdata['user_id']."'");188 $result = dbquery("UPDATE ".$db_prefix."users SET user_name='$username', user_fullname='$user_fullname', ".$newpass."user_email='".$_POST['user_email']."', user_bad_email = '0', user_hide_email='$user_hide_email', user_location='$user_location', user_birthdate='$user_birthdate', user_aim='$user_aim', user_icq='$user_icq', user_msn='$user_msn', user_yahoo='$user_yahoo', user_web='$user_web', user_forum_fullscreen='$user_forum_fullscreen', user_posts_unread='$user_posts_unread', user_newsletters='$user_newsletters', user_theme='$user_theme', user_offset='$user_offset', ".$set_avatar."user_sig='$user_sig', user_locale='".$_POST['user_locale']."' WHERE user_id='".$this_userdata['user_id']."'"); 189 189 if ($user_theme != $userdata['user_theme']) redirect(FUSION_SELF."?status=1"); 190 190 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$this_userdata['user_id']."'"); -
trunk/files/locales/en.main.global.php
r1258 r1281 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Sun Feb 10 2008, 16:52:12CET5 // generated on : Thu Feb 14 2008, 15:05:23 CET 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl
r1274 r1281 35 35 36 36 /* wiki links */ 37 a.wiki_link:link, a.wiki_link:visited 38 { text-decoration:none; border-width:0px 0px 2px 0px; border-style:dotted; border-color:#9c0204; } 37 a.wiki_link:link,a.wiki_link:visited { color:#9c0204; text-decoration:none; border-width:0px 0px 1px 0px; border-style:dotted; border-color:#9c0204; } 39 38 40 39 /* horizontal lines */ -
trunk/themes/ExiteCMS/wikka.css
r1164 r1281 553 553 padding: 2px; 554 554 } 555 556 /* sidenote.css */ 557 /* Contains css for tip, note and warn actions. */ 558 559 /* postit note-style information box */ 560 #note { 561 clear: both; 562 font-size: 10pt; 563 float: left; 564 width: 200px; 565 border: 1px solid #AAAAAA; 566 margin: 15px 10px 0px 0px; 567 padding: 0px; 568 background-color: #FFF900; 569 text-align: justify; 570 vertical-align: top; 571 } 572 573 #note hr { 574 height: 1px; 575 border: 1px solid #AAAAAA; 576 width: 100%; 577 } 578 579 #note .title { 580 text-align: center; 581 font-weight: bold; 582 background-color: #EEE800; 583 border-bottom: 1px solid #AAAAAA; 584 color: #000000; 585 } 586 587 #note #text { 588 padding: 4px; 589 color: #000000; 590 } 591 592 /* tip information box */ 593 #tip { 594 clear: both; 595 font-size: 10pt; 596 float: left; 597 width: 200px; 598 border: 1px solid #AAAAAA; 599 margin: 15px 10px 0px 0px; 600 padding: 0px; 601 background-color: #FFFFFF; 602 text-align: justify; 603 vertical-align: top; 604 } 605 606 #tip hr { 607 height: 1px; 608 border: 1px solid #AAAAAA; 609 width: 100%; 610 } 611 612 #tip .title { 613 text-align: center; 614 font-weight: bold; 615 background-color: #EFEFEF; 616 border-bottom: 1px solid #AAAAAA; 617 color: #000000; 618 } 619 620 #tip #text { 621 padding: 4px; 622 color: #000000; 623 } 624 625 /* warning information box */ 626 #warn { 627 clear: both; 628 font-size: 10pt; 629 float: left; 630 width: 200px; 631 border: 1px solid #AAAAAA; 632 margin: 15px 10px 0px 0px; 633 padding: 0px; 634 background-color: #FFAAAA; 635 text-align: justify; 636 vertical-align: top; 637 } 638 639 #warn hr { 640 height: 1px; 641 border: 1px solid #AAAAAA; 642 width: 100%; 643 } 644 645 #warn .title { 646 color: #FFFFFF; 647 text-align: center; 648 font-weight: bold; 649 background-color: #FF0000; 650 border-bottom: 1px solid #AAAAAA; 651 } 652 653 #warn #text { 654 padding: 4px; 655 color: #000000; 656 }
Note: See TracChangeset
for help on using the changeset viewer.
