Changeset 1281 in ExiteCMS


Ignore:
Timestamp:
02/14/08 15:10:07 (4 years ago)
Author:
hverton
Message:

Fixed typo in edit_profile.php, updated language file

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/modules.php

    r1182 r1281  
    4444 
    4545    // 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); 
    4748 
    4849    // load the module installer 
     
    9596                    if (dbrows($result)) { 
    9697                        $data = dbarray($result); 
    97                         $link_panel = $data['panel_filename']; 
     98                        $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 
    9899                    } else { 
    99100                        // 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']; 
    102105                } 
    103106            } else { 
    104107                // use the CMS default 
    105                 $link_panel = "main_menu_panel/main_menu_panel.php"; 
     108                $link_panel = "main_menu_panel"; 
    106109            } 
    107110 
     
    218221            $link_url = str_replace("../","",MODULES).$mod_folder."/".$mod_link['url']; 
    219222            if ($link_url{0} == "/") $link_url = substr($link_url,1); 
    220              
     223 
    221224            // determine to which menu panel this link needs to be added 
    222225            if (isset($mod_link['panel']) && $mod_link['panel'] != "") { 
     
    231234                    if (dbrows($result)) { 
    232235                        $data = dbarray($result); 
    233                         $link_panel = $data['panel_filename']; 
     236                        $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 
    234237                    } else { 
    235238                        // 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']; 
    238243                } 
    239244            } else { 
    240245                // 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            } 
    247248 
    248249            // check if we have a menu entry for this link 
     
    371372                    if (dbrows($result)) { 
    372373                        $data = dbarray($result); 
    373                         $link_panel = $data['panel_filename']; 
     374                        $link_panel = substr($data['panel_filename'],0,strpos($data['panel_filename'], "/")); 
    374375                    } else { 
    375376                        // 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']; 
    378381                } 
    379382            } else { 
    380383                // use the CMS default 
    381                 $link_panel = "main_menu_panel/main_menu_panel.php"; 
     384                $link_panel = "main_menu_panel"; 
    382385            } 
    383386 
     
    391394                // determine the next order in the menu for this link 
    392395                $link_order = dbresult(dbquery("SELECT MAX(link_order) FROM ".$db_prefix."site_links WHERE panel_name = '$link_panel'"),0) + 1; 
    393      
     396 
    394397                // 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 
    397411            } else { 
    398412                // do nothing 
  • trunk/administration/tools/language_pack_English.php

    r1280 r1281  
    30773077        $localestrings['u033'] = "Open"; 
    30783078        $localestrings['u034'] = "Closed"; 
    3079         $localestrings['u035'] = "Show your own posts as unread"; 
     3079        $localestrings['u035'] = "Show your own posts as unread:"; 
    30803080        $localestrings['u036'] = ""; 
    30813081        $localestrings['u037'] = "Html"; 
  • trunk/edit_profile.php

    r1280 r1281  
    186186        } 
    187187        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']."'"); 
    189189        if ($user_theme != $userdata['user_theme']) redirect(FUSION_SELF."?status=1"); 
    190190        $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$this_userdata['user_id']."'"); 
  • trunk/files/locales/en.main.global.php

    r1258 r1281  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Sun Feb 10 2008, 16:52:12 CET 
     5// generated on : Thu Feb 14 2008, 15:05:23 CET 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl

    r1274 r1281  
    3535 
    3636                        /* 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; } 
     37a.wiki_link:link,a.wiki_link:visited { color:#9c0204; text-decoration:none; border-width:0px 0px 1px 0px; border-style:dotted; border-color:#9c0204; } 
    3938 
    4039                        /* horizontal lines */ 
  • trunk/themes/ExiteCMS/wikka.css

    r1164 r1281  
    553553    padding: 2px; 
    554554} 
     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.