Changeset 667


Ignore:
Timestamp:
Dec 30, 2004, 9:10:46 AM (20 years ago)
Author:
plg
Message:
  • bug fixed on upload : configuration variable $confupload_available has disappeared
  • by default, new categories are not "uploadable"
  • bug fixed on date displayed from Unix format : trying to find seconds while not provided
  • bug fixed on admin/waiting template to center submit button
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config.inc.php

    r650 r667  
    171171// newcat_default_uploadable : at creation, must a category be uploadable or
    172172// not ?
    173 $conf['newcat_default_uploadable'] = 'true';
     173$conf['newcat_default_uploadable'] = 'false';
    174174
    175175// newcat_default_visible : at creation, must a category be visible or not ?
  • trunk/include/functions.inc.php

    r661 r667  
    401401    case 'unix' :
    402402    {
    403       list($year,$month,$day,$hour,$minute,$second) =
     403      list($year,$month,$day,$hour,$minute) =
    404404        explode('.', date('Y.n.j.G.i', $date));
    405405      break;
  • trunk/template/default/admin/waiting.tpl

    r520 r667  
    3434    <!-- END picture -->
    3535    <tr>
    36       <td colspan="5" align="center">
     36      <td colspan="6" align="center">
    3737          <input type="submit" name="submit" value="{L_SUBMIT}" class="bouton" />
    3838          </td>
  • trunk/upload.php

    r642 r667  
    123123  $page['cat_name']       = $result['name'];
    124124  $page['cat_uploadable'] = $result['uploadable'];
    125 if ( $page['cat_site_id'] != 1
    126      or !$conf['upload_available']
    127      or !$page['cat_uploadable'] )
    128 {
    129   echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />';
    130   echo '<a href="'.add_session_id( './category.php' ).'">';
    131   echo $lang['thumbnails'].'</a></div>';
    132   exit();
    133 }
     125  if ($page['cat_site_id'] != 1 or !$page['cat_uploadable'])
     126  {
     127    echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />';
     128    echo '<a href="'.add_session_id( './category.php' ).'">';
     129    echo $lang['thumbnails'].'</a></div>';
     130    exit();
     131  }
    134132}
    135133
Note: See TracChangeset for help on using the changeset viewer.