Changeset 1004 for trunk/picture.php
- Timestamp:
- Jan 15, 2006, 2:45:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r995 r1004 77 77 { 78 78 echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />'; 79 echo '<a href="'. add_session_id( PHPWG_ROOT_PATH.'category.php' ).'">';79 echo '<a href="'.PHPWG_ROOT_PATH.'category.php'.'">'; 80 80 echo $lang['thumbnails'].'</a></div>'; 81 81 exit(); … … 324 324 // there is no favorite picture anymore we redirect the user to the 325 325 // category page 326 $url = add_session_id($url_up); 327 redirect($url); 326 redirect($url_up); 328 327 } 329 328 else if (!$has_prev) 330 329 { 331 330 $url = str_replace( '&', '&', $picture['next']['url'] ); 332 $url = add_session_id( $url, true);331 redirect( $url ); 333 332 } 334 333 else 335 334 { 336 335 $url = str_replace('&', '&', $picture['prev']['url'] ); 337 $url = add_session_id( $url, true);336 redirect( $url ); 338 337 } 339 338 redirect( $url ); … … 523 522 'L_UP_ALT' => $lang['home'], 524 523 525 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'),526 'U_UP' => add_session_id($url_up),527 'U_METADATA' => add_session_id($url_metadata),528 'U_ADMIN' => add_session_id($url_admin),529 'U_SLIDESHOW'=> add_session_id($url_slide),530 'U_ADD_COMMENT' => add_session_id(str_replace( '&', '&', $_SERVER['REQUEST_URI'] ))524 'U_HOME' => (PHPWG_ROOT_PATH.'category.php'), 525 'U_UP' => $url_up, 526 'U_METADATA' => $url_metadata, 527 'U_ADMIN' => $url_admin, 528 'U_SLIDESHOW'=> $url_slide, 529 'U_ADD_COMMENT' => str_replace( '&', '&', $_SERVER['REQUEST_URI'] ) 531 530 ) 532 531 ); … … 585 584 array( 586 585 'URL' => 587 add_session_id(588 586 PHPWG_ROOT_PATH.'picture.php' 589 587 .get_query_string_diff(array('caddie')).'&caddie=1') 590 )591 588 ); 592 589 } … … 646 643 'TITLE_IMG' => $picture['prev']['name'], 647 644 'IMG' => $picture['prev']['thumbnail'], 648 'U_IMG' => add_session_id($picture['prev']['url'])645 'U_IMG' => $picture['prev']['url'] 649 646 )); 650 647 } … … 657 654 'TITLE_IMG' => $picture['next']['name'], 658 655 'IMG' => $picture['next']['thumbnail'], 659 'U_IMG' => add_session_id($picture['next']['url'])656 'U_IMG' => $picture['next']['url'] 660 657 )); 661 658 } … … 680 677 $infos['INFO_AUTHOR'] = 681 678 '<a href="'. 682 add_session_id(683 679 PHPWG_ROOT_PATH.'category.php?cat=search'. 684 680 '&search=author:'.$picture['current']['author'] 685 ). 686 '">'.$picture['current']['author'].'</a>'; 681 .'">'.$picture['current']['author'].'</a>'; 687 682 } 688 683 else … … 696 691 $infos['INFO_CREATION_DATE'] = 697 692 '<a href="'. 698 add_session_id(699 693 PHPWG_ROOT_PATH.'category.php?cat=search'. 700 694 '&search=date_creation:'.$picture['current']['date_creation'] 701 ). 702 '">'.format_date($picture['current']['date_creation']).'</a>'; 695 .'">'.format_date($picture['current']['date_creation']).'</a>'; 703 696 } 704 697 else … … 710 703 $infos['INFO_AVAILABILITY_DATE'] = 711 704 '<a href="'. 712 add_session_id(713 705 PHPWG_ROOT_PATH.'category.php?cat=search'. 714 706 '&search=date_available:'. 715 707 substr($picture['current']['date_available'], 0, 10) 716 ). 717 '">'. 708 .'">'. 718 709 format_date($picture['current']['date_available'], 'mysql_datetime'). 719 710 '</a>'; … … 764 755 '/([^,]+)/', 765 756 '<a href="'. 766 add_session_id(767 757 PHPWG_ROOT_PATH.'category.php?cat=search&search=keywords:$1' 768 ). 769 '">$1</a>', 758 .'">$1</a>', 770 759 $picture['current']['keywords'] 771 760 ); … … 891 880 892 881 $template->assign_block_vars('stop_slideshow', array( 893 'U_SLIDESHOW'=> add_session_id( $picture['current']['url'] )882 'U_SLIDESHOW'=>$picture['current']['url'] 894 883 )); 895 884 } … … 1044 1033 $template->assign_block_vars( 1045 1034 'comments.comment.delete', 1046 array('U_COMMENT_DELETE'=> add_session_id( $url.'&del='.$row['id'])1035 array('U_COMMENT_DELETE'=> $url.'&del='.$row['id'] 1047 1036 )); 1048 1037 }
Note: See TracChangeset
for help on using the changeset viewer.