Changeset 290 for branches/release-1_3/upload.php
- Timestamp:
- Jan 18, 2004, 3:13:02 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/upload.php
r150 r290 110 110 $page['cat_name'] = $result['name']; 111 111 $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 112 if ( $page['cat_site_id'] != 1 119 113 or !$conf['upload_available'] 120 114 or !$page['cat_uploadable'] ) … … 125 119 exit(); 126 120 } 121 } 127 122 //----------------------------------------------------- template initialization 128 $vtp = new VTemplate; 123 // 124 // Start output of page 125 // 126 $title= $lang['upload_title']; 127 include('include/page_header.php'); 129 128 $handle = $vtp->Open( './template/'.$user['template'].'/upload.vtp' ); 130 129 initialize_template(); … … 348 347 $vtp->setGlobalVar( $handle, 'user_mail_address',$user['mail_address'] ); 349 348 // name of the picture 349 if (isset($_POST['name'])) 350 350 $vtp->setVar( $handle, 'fields.name', $_POST['name'] ); 351 351 // author 352 if (isset($_POST['author'])) 352 353 $vtp->setVar( $handle, 'fields.author', $_POST['author'] ); 353 354 // date of creation 355 if (isset($_POST['date_creation'])) 354 356 $vtp->setVar( $handle, 'fields.date_creation', $_POST['date_creation'] ); 355 357 // comment 358 if (isset($_POST['comment'])) 356 359 $vtp->setVar( $handle, 'fields.comment', $_POST['comment'] ); 357 360 … … 374 377 $code = $vtp->Display( $handle, 0 ); 375 378 echo $code; 379 include('include/page_tail.php'); 376 380 ?>
Note: See TracChangeset
for help on using the changeset viewer.