Ignore:
Timestamp:
Jan 18, 2004, 3:13:02 AM (21 years ago)
Author:
gweltas
Message:

Conformity with the XHTML 1.0 transitional standard
Creation of the following files :

  • template/default/header.php and template/default/footer.php to ensure a common standard
  • default.css to be CSS valid

Obsolescence of the following files :

  • template/default/theme/conf.php
  • template/default/style.inc.php

Custom galleries should reflect those changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/upload.php

    r150 r290  
    110110  $page['cat_name']       = $result['name'];
    111111  $page['cat_uploadable'] = $result['uploadable'];
    112 }
    113 else
    114 {
    115   $access_forbidden = true;
    116 }
    117 if ( $access_forbidden == true
    118      or $page['cat_site_id'] != 1
     112if ( $page['cat_site_id'] != 1
    119113     or !$conf['upload_available']
    120114     or !$page['cat_uploadable'] )
     
    125119  exit();
    126120}
     121}
    127122//----------------------------------------------------- template initialization
    128 $vtp = new VTemplate;
     123//
     124// Start output of page
     125//
     126$title= $lang['upload_title'];
     127include('include/page_header.php');
    129128$handle = $vtp->Open( './template/'.$user['template'].'/upload.vtp' );
    130129initialize_template();
     
    348347    $vtp->setGlobalVar( $handle, 'user_mail_address',$user['mail_address'] );
    349348    // name of the picture
     349        if (isset($_POST['name']))
    350350    $vtp->setVar( $handle, 'fields.name', $_POST['name'] );
    351351    // author
     352        if (isset($_POST['author']))
    352353    $vtp->setVar( $handle, 'fields.author', $_POST['author'] );
    353354    // date of creation
     355        if (isset($_POST['date_creation']))
    354356    $vtp->setVar( $handle, 'fields.date_creation', $_POST['date_creation'] );
    355357    // comment
     358        if (isset($_POST['comment']))
    356359    $vtp->setVar( $handle, 'fields.comment', $_POST['comment'] );
    357360
     
    374377$code = $vtp->Display( $handle, 0 );
    375378echo $code;
     379include('include/page_tail.php');
    376380?>
Note: See TracChangeset for help on using the changeset viewer.