Changeset 335

Show
Ignore:
Timestamp:
02/09/11 15:24:19 (1 year ago)
Author:
Nafania
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • details.php

    r334 r335  
    583583                        $sim_name = preg_replace('/(\[|\()(.*?)(\]|\))/si', '', $sim_name); 
    584584                        //delimeters which used to determine base name, first have highest order 
    585                         $delims = array('/', '-', '.'); 
     585                        $delims = array('/', '-', '.', ':'); 
    586586 
    587587                        for ( $i = 0; $i < sizeof($delims); ++$i ) { 
  • include/functions.php

    r331 r335  
    19851985        } 
    19861986 
    1987         $tracking[$type][$id] = time(); 
     1987        $onlinesince = (int) $config['onlinesince']; 
     1988 
     1989        foreach ( $tracking AS $_key => $_val ) { 
     1990            $time = $tracking[$_key][key($_val)]; 
     1991            //more then 7 days old 
     1992            if ( ( $time + $onlinesince ) < ( time() - 7 * 24 * 60 * 60 )  ) { 
     1993                unset($tracking[$_key][key($_val)]); 
     1994            } 
     1995        } 
     1996 
     1997        $tracking[$type][$id] = time() - $onlinesince; 
    19881998 
    19891999        set_cookie('tt', serialize($tracking)); 
     
    20002010        $user_lastvisit = ( $userdata['session_logged_in'] ? $userdata['user_lastvisit'] : time() ); 
    20012011 
    2002         return ( !empty($tracking[$type][$id]) ? $tracking[$type][$id] : $user_lastvisit ); 
     2012        return ( !empty($tracking[$type][$id]) ? $tracking[$type][$id] + $config['onlinesince'] : $user_lastvisit ); 
    20032013} 
    20042014?> 
  • templates/main/details.html

    r331 r335  
    1111  <caption style="margin-top:0;"><h2 style="margin-top:0;">{L_DOWNLOAD} &quot;{NAME}&quot;<!-- IF FREE_ICON --> <img src="{FREE_ICON}" alt="{L_FREE}" title="{L_FREE}" /><!-- ENDIF --></h2></caption> 
    1212 
    13   <tr
     13       <tr valign="center"
    1414    <td width="100"><h1>{L_DOWNLOAD}</h1></td> 
    1515    <td> 
     
    1818    <!-- IF U_DOWNLOAD_AS_GZIP --> 
    1919 
    20     <a href="{U_DOWNLOAD_AS_GZIP}"><img src="{ROOT_PATH}pic/blank.gif" class="zip-icon icon-32" /></a> 
     20    <a href="{U_DOWNLOAD_AS_GZIP}"><img src="{ROOT_PATH}pic/blank.gif" class="zip-icon icon-32" alt="{L_DOWNLOAD_AS_GZIP_ARCHIVE}" title="{L_DOWNLOAD_AS_GZIP_ARCHIVE}" /></a> 
    2121 
    2222    <!-- ENDIF --> 
    2323 
    24     <a href="{U_MAGNET}"><img src="{ROOT_PATH}pic/blank.gif" class="magnet-icon icon-32" /></a></h1> 
     24    <a href="{U_MAGNET}"><img src="{ROOT_PATH}pic/blank.gif" class="magnet-icon icon-32" /></a> 
     25         
     26        <!-- IF S_USER_LOGGED_IN --> 
     27         
     28        <a href="{U_ADD_TO_BOOKMARKS}"><img src="{ROOT_PATH}pic/blank.gif" class="bookmark-icon-active icon-32" alt="{L_ADD_TO_BOOKMARKS}"  title="{L_ADD_TO_BOOKMARKS}" /></a> 
     29         
     30        <!-- ENDIF --> 
     31         
     32        </h1> 
    2533 
    2634<!-- IF S_USER_LOGGED_IN --> 
    2735 
    28     [<a href="{U_ADD_TO_BOOKMARKS}">{L_ADD_TO_BOOKMARKS}</a>] 
    2936    <!-- BEGIN switch_add_to_index --> 
    3037    [<a href="{switch_add_to_index.U_ADD_TO_INDEX}">{L_ADD_TO_INDEX}</a>] 
  • templates/main/main.css

    r324 r335  
    6767background:url(images/logo.gif) 0 0 no-repeat; 
    6868height:100px; 
    69 } 
    70  
    71 #page-header div { 
    72 padding-top:15px; 
    7369} 
    7470