Changeset 1518 in ExiteCMS


Ignore:
Timestamp:
07/02/08 22:32:48 (4 years ago)
Author:
hverton
Message:

made the houskeeping queries low-priority
fixed transparancy in some admin index images
removed more unused images from the template
fixed transparancy in the external_link image
update the report template to allow a report process to return an error message

Location:
trunk
Files:
1 added
4 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/admin.reports.tpl

    r1498 r1518  
    5252            {/if} 
    5353              
    54             {imagelink link=$smarty.const.BASEDIR|cat:"reports.php"|cat:$aidlink|cat:"&action=select&report_id="|cat:$reports[id].report_id image="image_view.gif" alt=$locale.411 title=$locale.411} 
     54            {imagelink link=$smarty.const.BASEDIR|cat:"reports.php"|cat:$aidlink|cat:"&report_id="|cat:$reports[id].report_id image="image_view.gif" alt=$locale.411 title=$locale.411} 
    5555        </td> 
    5656    </tr> 
  • trunk/includes/templates/admin.site_links.tpl

    r1167 r1518  
    166166                        {if $panels[id].links[id2].external} 
    167167                            <a href='{$panels[id].links[id2].link_url}'>{$panels[id].links[id2].link_name}</a> 
    168                             <img src='{$smarty.const.THEME}images/external_link.jpg' alt='' /> 
     168                            <img src='{$smarty.const.THEME}images/external_link.gif' alt='' /> 
    169169                        {else} 
    170170                            <a href='{$smarty.const.BASEDIR}{$panels[id].links[id2].link_url}'>{$panels[id].links[id2].link_name}</a> 
  • trunk/includes/templates/main.reports.tpl

    r1498 r1518  
    5454            </td> 
    5555        </tr> 
     56        {if $message|default:"" != ""} 
     57        <tr> 
     58            <td align='left'> 
     59                <b>{$message}</b> 
     60            </td> 
     61        </tr> 
     62        {/if} 
    5663    </table> 
    57     {include file=$template} 
     64    {if $message|default:"" == ""} 
     65        {include file=$template} 
     66    {/if} 
    5867{/if} 
    5968{include file="_closetable.tpl"} 
  • trunk/includes/theme_functions.php

    r1470 r1518  
    463463        $minute = 60; $hour = $minute * 60; $day = $hour * 24; 
    464464        // flood control: set to 5 minutes 
    465         $result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'"); 
     465        $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'"); 
    466466        // thread notifies: set to 14 days 
    467         $result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'"); 
     467        $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'"); 
    468468        // new registered users: set to 3 days 
    469         $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'"); 
     469        $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'"); 
    470470        // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 
    471471        if ($settings['revision'] >= 1060) { 
     
    474474        // read threads indicators: use the defined threshold (available since v7.0 rev.1193) 
    475475        if ($settings['revision'] >= 1193) { 
    476             $result = dbquery("DELETE FROM ".$db_prefix."threads_read WHERE thread_last_read < '".$settings['unread_threshold']."'", false); 
     476            $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."threads_read WHERE thread_last_read < '".$settings['unread_threshold']."'", false); 
    477477        } 
    478478    } 
Note: See TracChangeset for help on using the changeset viewer.