Changeset 42 for trunk/picture.php
- Timestamp:
- Jul 26, 2003, 2:55:14 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r41 r42 625 625 $vtp->closeSession( $handle, 'comment' ); 626 626 } 627 // form action 628 $action = str_replace( '&', '&', $_SERVER['REQUEST_URI'] ); 629 $vtp->setGlobalVar( $handle, 'form_action', $action ); 630 // display author field if the user is not logged in 631 if ( !$user['is_the_guest'] ) 632 { 633 $vtp->addSession( $handle, 'author_known' ); 634 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 635 $vtp->closeSession( $handle, 'author_known' ); 636 } 637 else 638 { 639 $vtp->addSession( $handle, 'author_field' ); 640 $vtp->closeSession( $handle, 'author_field' ); 627 628 if ( !$user['is_the_guest'] 629 or ( $user['is_the_guest'] and $conf['comments_forall'] ) ) 630 { 631 $vtp->addSession( $handle, 'add_comment' ); 632 // form action 633 $action = str_replace( '&', '&', $_SERVER['REQUEST_URI'] ); 634 $vtp->setGlobalVar( $handle, 'form_action', $action ); 635 // display author field if the user is not logged in 636 if ( !$user['is_the_guest'] ) 637 { 638 $vtp->addSession( $handle, 'author_known' ); 639 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 640 $vtp->closeSession( $handle, 'author_known' ); 641 } 642 else 643 { 644 $vtp->addSession( $handle, 'author_field' ); 645 $vtp->closeSession( $handle, 'author_field' ); 646 } 647 $vtp->closeSession( $handle, 'add_comment' ); 641 648 } 642 649 $vtp->closeSession( $handle, 'comments' );
Note: See TracChangeset
for help on using the changeset viewer.