Changeset 1295 in ExiteCMS


Ignore:
Timestamp:
02/20/08 23:47:36 (4 years ago)
Author:
hverton
Message:

added an admin module to edit the 404 pages
fixed error in viewthread.php that caused the country flag of the superadmin to be displayed for every post author
fixed calculation error in datediff() when displaying the time difference within 24 hours
fixed HTML error in admin.custom_pages.tpl

Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/tools/language_pack_English.php

    r1291 r1295  
    2323        $localestrings['404page'] = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" align=\"center\"> <tbody><tr><td width=\"10\"> </td><td><div align=\"center\"><font size=\"6\"><span class=\"shoutboxname\"><br />404 - Page Not Found</span><br /></font></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">We are sorry, but the document you requested cannot be found on this server.<br /></div><br /><div align=\"center\">Most likely, this is a result of yet another reorganization of this Website to reflect our constant evolution and ongoing development, coupled with a transition from an old server with lots of legacy files to a shiny new server.<br /></div><br /><div align=\"center\">But then again, it might just be a completely random event and the result of too many cosmic rays. Who knows?<br /></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">Your best bet for finding what you seek is to start at our home page (<a href=\"/\">click here to jump to the home page</a>), check out our menu, or use the search menu option.<br /></div><br /><div align=\"center\">If that doesn't work, and you think it's a document that should be here, please send a PM to the webmaster and let us know about it (registered users only).</div></td><td width=\"10\"> </td></tr></tbody></table><br />"; 
    2424        load_localestrings($localestrings, LP_LOCALE, "404page", $step); 
     25 
     26        $localestrings = array(); 
     27        $localestrings['400'] = "Edit 404 Page"; 
     28        $localestrings['401'] = "404 page for the locale '%s' is updated"; 
     29        $localestrings['402'] = "Error saving the 404 Page"; 
     30        $localestrings['403'] = "Current 404 Pages"; 
     31        $localestrings['404'] = "Edit"; 
     32        $localestrings['405'] = "Page Content:"; 
     33        $localestrings['406'] = "Preview Page"; 
     34        $localestrings['407'] = "Save Page"; 
     35        load_localestrings($localestrings, LP_LOCALE, "admin.404pages", $step); 
    2536 
    2637        $localestrings = array(); 
     
    469480        $localestrings['225'] = "User Groups"; 
    470481        $localestrings['226'] = "Blogs"; 
    471         $localestrings['227'] = "x"; 
     482        $localestrings['227'] = "404 Pages"; 
    472483        $localestrings['228'] = "Main Settings"; 
    473484        $localestrings['229'] = "Time and Date Settings"; 
  • trunk/files/locales/en.main.global.php

    r1291 r1295  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Mon Feb 18 2008, 14:35:18 CET 
     5// generated on : Wed Feb 20 2008, 23:43:29 CET 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/forum/viewthread.php

    r1280 r1295  
    292292        // country flag 
    293293        if ($settings['forum_flags']) { 
    294             if ($settings['hide_webmaster'] && iSUPERADMIN) { 
     294            // swap flags if we're hiding the webmasters true country of origin 
     295            if ($settings['hide_webmaster'] && $post['user_level'] == 103) { 
    295296                $data['cc_flag'] = GeoIP_Code2Flag($settings['country']); 
    296297            } else { 
  • trunk/includes/core_functions.php

    r1291 r1295  
    762762    if ($difference < 60) { 
    763763        // if difference is less than 60 seconds, seconds is a good interval of choice 
    764         $interval = "h"; 
     764        $interval = "s"; 
    765765    } elseif ($difference >= 60 && $difference<60*60) { 
    766766        // if difference is between 60 seconds and 60 minutes, minutes is a good interval 
     
    824824        case "h": 
    825825            $datediff = floor($difference / 60 / 60); 
     826            $difference =  $difference - $datediff * 60 * 60; 
    826827            $res .= sprintf("%02d:", $datediff); 
    827828 
    828829        case "n": 
    829830            $datediff = floor($difference / 60); 
     831            $difference =  $difference - $datediff * 60; 
    830832            $res .= sprintf("%02d:", $datediff); 
    831833 
  • trunk/includes/templates/admin.custom_pages.tpl

    r1140 r1295  
    2121        <select name='page_id' class='textbox' style='width:250px;'> 
    2222        {section name=id loop=$pages} 
    23             <option value='{$pages[id].page_id}{if $pages[id].selected} selected{/if}'>{$pages[id].page_title}</option> 
     23            <option value='{$pages[id].page_id}'{if $pages[id].selected} selected='selected'{/if}>{$pages[id].page_title}</option> 
    2424        {/section} 
    2525        </select> 
Note: See TracChangeset for help on using the changeset viewer.