- Timestamp:
- Jan 15, 2006, 2:45:42 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r897 r1004 46 46 $template->assign_vars( 47 47 array( 48 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php')48 'U_HOME' => PHPWG_ROOT_PATH.'category.php' 49 49 ) 50 50 ); -
trunk/admin.php
r948 r1004 66 66 $template->assign_vars( 67 67 array( 68 'U_HISTORY'=> add_session_id($link_start.'stats' ),69 'U_FAQ'=> add_session_id($link_start.'help' ),70 'U_SITES'=> add_session_id($link_start.'remote_site'),71 'U_MAINTENANCE'=> add_session_id($link_start.'maintenance'),72 'U_CONFIG_GENERAL'=> add_session_id($conf_link.'general' ),73 'U_CONFIG_COMMENTS'=> add_session_id($conf_link.'comments' ),74 'U_CONFIG_DISPLAY'=> add_session_id($conf_link.'default' ),75 'U_CATEGORIES'=> add_session_id($link_start.'cat_list' ),76 'U_MOVE'=> add_session_id($link_start.'cat_move' ),77 'U_CAT_UPLOAD'=> add_session_id($opt_link.'upload'),78 'U_CAT_COMMENTS'=> add_session_id($opt_link.'comments'),79 'U_CAT_VISIBLE'=> add_session_id($opt_link.'visible'),80 'U_CAT_STATUS'=> add_session_id($opt_link.'status'),81 'U_CAT_OPTIONS'=> add_session_id($link_start.'cat_options'),82 'U_CAT_UPDATE'=> add_session_id($link_start.'update'),83 'U_WAITING'=> add_session_id($link_start.'waiting' ),84 'U_COMMENTS'=> add_session_id($link_start.'comments' ),85 'U_CADDIE'=> add_session_id($link_start.'element_set&cat=caddie'),86 'U_THUMBNAILS'=> add_session_id($link_start.'thumbnail' ),87 'U_USERS'=> add_session_id($link_start.'user_list' ),88 'U_GROUPS'=> add_session_id($link_start.'group_list' ),89 'U_RETURN'=> add_session_id(PHPWG_ROOT_PATH.'category.php'),90 'U_ADMIN'=> add_session_id( PHPWG_ROOT_PATH.'admin.php' ),68 'U_HISTORY'=> $link_start.'stats', 69 'U_FAQ'=> $link_start.'help', 70 'U_SITES'=> $link_start.'remote_site', 71 'U_MAINTENANCE'=> $link_start.'maintenance', 72 'U_CONFIG_GENERAL'=> $conf_link.'general', 73 'U_CONFIG_COMMENTS'=> $conf_link.'comments', 74 'U_CONFIG_DISPLAY'=> $conf_link.'default', 75 'U_CATEGORIES'=> $link_start.'cat_list', 76 'U_MOVE'=> $link_start.'cat_move', 77 'U_CAT_UPLOAD'=> $opt_link.'upload', 78 'U_CAT_COMMENTS'=> $opt_link.'comments', 79 'U_CAT_VISIBLE'=> $opt_link.'visible', 80 'U_CAT_STATUS'=> $opt_link.'status', 81 'U_CAT_OPTIONS'=> $link_start.'cat_options', 82 'U_CAT_UPDATE'=> $link_start.'update', 83 'U_WAITING'=> $link_start.'waiting', 84 'U_COMMENTS'=> $link_start.'comments', 85 'U_CADDIE'=> $link_start.'element_set&cat=caddie', 86 'U_THUMBNAILS'=> $link_start.'thumbnail', 87 'U_USERS'=> $link_start.'user_list', 88 'U_GROUPS'=> $link_start.'group_list', 89 'U_RETURN'=> PHPWG_ROOT_PATH.'category.php' 90 'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php', 91 91 'L_ADMIN' => $lang['admin'], 92 92 'L_ADMIN_HINT' => $lang['hint_admin'] … … 99 99 'representative', 100 100 array( 101 'URL' => add_session_id($opt_link.'representative')101 'URL' => $opt_link.'representative' 102 102 ) 103 103 ); -
trunk/admin/cat_list.php
r960 r1004 66 66 67 67 $base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_list'; 68 $navigation = '<a class="" href="'. add_session_id($base_url).'">';68 $navigation = '<a class="" href="'.$base_url.'">'; 69 69 $navigation.= $lang['home']; 70 70 $navigation.= '</a>'; … … 239 239 'CATEGORIES_NAV'=>$navigation, 240 240 'NEXT_RANK'=>$next_rank, 241 'F_ACTION'=> add_session_id($form_action),241 'F_ACTION'=>$form_action, 242 242 243 243 'L_ADD_VIRTUAL'=>$lang['cat_add'], … … 319 319 'RANK'=>$category['rank']*10, 320 320 321 'U_JUMPTO'=> 322 add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']), 323 324 'U_CHILDREN'=> 325 add_session_id($cat_list_url.'&parent_id='.$category['id']), 326 327 'U_EDIT'=> 328 add_session_id($base_url.'cat_modify&cat_id='.$category['id']) 321 'U_JUMPTO'=>PHPWG_ROOT_PATH.'category.php?cat='.$category['id'], 322 'U_CHILDREN'=>$cat_list_url.'&parent_id='.$category['id'], 323 'U_EDIT'=>$base_url.'cat_modify&cat_id='.$category['id'] 329 324 ) 330 325 ); … … 335 330 'category.delete', 336 331 array( 337 'URL'=> add_session_id($self_url.'&delete='.$category['id'])332 'URL'=>$self_url.'&delete='.$category['id'] 338 333 ) 339 334 ); … … 345 340 'category.elements', 346 341 array( 347 'URL'=> add_session_id($base_url.'element_set&cat='.$category['id'])342 'URL'=>$base_url.'element_set&cat='.$category['id'] 348 343 ) 349 344 ); … … 355 350 'category.permissions', 356 351 array( 357 'URL'=> add_session_id($base_url.'cat_perm&cat='.$category['id'])352 'URL'=>$base_url.'cat_perm&cat='.$category['id'] 358 353 ) 359 354 ); -
trunk/admin/cat_modify.php
r881 r1004 172 172 'L_SET_RANDOM_REPRESENTANT'=>$lang['cat_representant'], 173 173 174 'U_JUMPTO'=> 175 add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']), 176 'U_CHILDREN'=> 177 add_session_id($cat_list_url.'&parent_id='.$category['id']), 174 'U_JUMPTO'=>PHPWG_ROOT_PATH.'category.php?cat='.$category['id'], 175 'U_CHILDREN'=>$cat_list_url.'&parent_id='.$category['id'], 178 176 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_modify', 179 177 180 'F_ACTION'=> add_session_id($form_action)178 'F_ACTION'=>$form_action 181 179 )); 182 180 … … 187 185 'permissions', 188 186 array( 189 'URL'=> add_session_id($base_url.'cat_perm&cat='.$category['id'])187 'URL'=>$base_url.'cat_perm&cat='.$category['id'] 190 188 ) 191 189 ); … … 198 196 'elements', 199 197 array( 200 'URL'=> add_session_id($base_url.'element_set&cat='.$category['id'])198 'URL'=>$base_url.'element_set&cat='.$category['id'] 201 199 ) 202 200 ); … … 268 266 'delete', 269 267 array( 270 'URL'=> add_session_id($self_url.'&delete='.$category['id'])268 'URL'=>$self_url.'&delete='.$category['id'] 271 269 ) 272 270 ); -
trunk/admin/cat_move.php
r881 r1004 69 69 $template->assign_vars( 70 70 array( 71 'F_ACTION' => add_session_id(PHPWG_ROOT_PATH.'admin.php?page=cat_move'),71 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=cat_move', 72 72 ) 73 73 ); -
trunk/admin/cat_options.php
r862 r1004 154 154 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_options', 155 155 156 'F_ACTION'=> add_session_id($base_url.$page['section'])156 'F_ACTION'=>$base_url.$page['section'] 157 157 ) 158 158 ); -
trunk/admin/cat_perm.php
r873 r1004 208 208 ), 209 209 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_perm', 210 'F_ACTION' => 211 add_session_id( 212 PHPWG_ROOT_PATH.'admin.php?page=cat_perm&cat='.$page['cat'] 213 ) 210 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=cat_perm&cat='.$page['cat'] 214 211 ) 215 212 ); -
trunk/admin/comments.php
r839 r1004 118 118 $template->assign_vars( 119 119 array( 120 'F_ACTION' => add_session_id(PHPWG_ROOT_PATH.'admin.php?page=comments')120 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=comments' 121 121 ) 122 122 ); … … 142 142 array( 143 143 'U_PICTURE' => 144 add_session_id(145 144 PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. 146 '&image_id='.$row['image_id'] 147 ), 145 '&image_id='.$row['image_id'], 148 146 'ID' => $row['id'], 149 147 'TN_SRC' => get_thumbnail_src($row['path'], @$row['tn_ext']), -
trunk/admin/configuration.php
r960 r1004 150 150 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=configuration', 151 151 152 'F_ACTION'=> add_session_id($action)152 'F_ACTION'=>$action 153 153 )); 154 154 -
trunk/admin/element_set_unit.php
r875 r1004 223 223 $row['name'] : get_name_from_file($row['file']), 224 224 'U_EDIT' => 225 add_session_id(226 225 PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. 227 '&image_id='.$row['id'] 228 ), 226 '&image_id='.$row['id'], 229 227 'ID' => $row['id'], 230 228 'FILENAME' => $row['path'], -
trunk/admin/group_list.php
r815 r1004 125 125 $template->assign_vars( 126 126 array( 127 'F_ADD_ACTION' => 128 add_session_id(PHPWG_ROOT_PATH.'admin.php?page=group_list') 127 'F_ADD_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=group_list' 129 128 ) 130 129 ); -
trunk/admin/group_perm.php
r817 r1004 141 141 142 142 'F_ACTION' => 143 add_session_id(144 143 PHPWG_ROOT_PATH. 145 144 'admin.php?page=group_perm&group_id='. 146 145 $page['group'] 147 )148 146 ) 149 147 ); -
trunk/admin/intro.php
r861 r1004 176 176 'DB_GROUPS' => sprintf(l10n('%d groups'), $nb_groups), 177 177 'DB_COMMENTS' => sprintf(l10n('%d comments'), $nb_comments), 178 'U_CHECK_UPGRADE' => 179 add_session_id(PHPWG_ROOT_PATH.'admin.php?action=check_upgrade'), 180 'U_PHPINFO' => 181 add_session_id(PHPWG_ROOT_PATH.'admin.php?action=phpinfo') 178 'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade', 179 'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo' 182 180 ) 183 181 ); … … 216 214 'waiting', 217 215 array( 218 'URL' => add_session_id(PHPWG_ROOT_PATH.'admin.php?page=waiting'),216 'URL' => PHPWG_ROOT_PATH.'admin.php?page=waiting', 219 217 'INFO' => sprintf(l10n('%d waiting for validation'), $nb_waiting) 220 218 ) … … 235 233 'unvalidated', 236 234 array( 237 'URL' => add_session_id(PHPWG_ROOT_PATH.'admin.php?page=comments'),235 'URL' => PHPWG_ROOT_PATH.'admin.php?page=comments', 238 236 'INFO' => sprintf(l10n('%d waiting for validation'), $nb_comments) 239 237 ) -
trunk/admin/maintenance.php
r858 r1004 99 99 $template->assign_vars( 100 100 array( 101 'U_MAINT_CATEGORIES' => add_session_id($start_url.'categories'),102 'U_MAINT_IMAGES' => add_session_id($start_url.'images'),103 'U_MAINT_HISTORY' => add_session_id($start_url.'history'),104 'U_MAINT_SESSIONS' => add_session_id($start_url.'sessions'),105 'U_MAINT_FEEDS' => add_session_id($start_url.'feeds'),101 'U_MAINT_CATEGORIES' => $start_url.'categories', 102 'U_MAINT_IMAGES' => $start_url.'images', 103 'U_MAINT_HISTORY' => $start_url.'history', 104 'U_MAINT_SESSIONS' => $start_url.'sessions', 105 'U_MAINT_FEEDS' => $start_url.'feeds', 106 106 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance', 107 107 ) -
trunk/admin/picture_modify.php
r825 r1004 196 196 array( 197 197 'U_SYNC' => 198 add_session_id(199 198 PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. 200 199 '&image_id='.$_GET['image_id']. 201 200 (isset($_GET['cat_id']) ? '&cat_id='.$_GET['cat_id'] : ''). 202 '&sync_metadata=1' 203 ), 201 '&sync_metadata=1', 204 202 205 203 'PATH'=>$row['path'], … … 231 229 232 230 'F_ACTION' => 233 add_session_id(234 231 PHPWG_ROOT_PATH.'admin.php' 235 232 .get_query_string_diff(array('sync_metadata')) 236 )237 233 ) 238 234 ); -
trunk/admin/remote_site.php
r927 r1004 516 516 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=remote_site', 517 517 518 'F_ACTION'=> add_session_id(PHPWG_ROOT_PATH.'admin.php?page=remote_site')518 'F_ACTION'=>PHPWG_ROOT_PATH.'admin.php?page=remote_site' 519 519 ) 520 520 ); … … 687 687 array( 688 688 'URL' => $url, 689 'U_UPDATE' => add_session_id($base_url.'local_update')689 'U_UPDATE' => $base_url.'local_update' 690 690 ) 691 691 ); … … 732 732 array( 733 733 'NAME' => $row['galleries_url'], 734 'U_GENERATE' => add_session_id($base_url.'generate'),735 'U_UPDATE' => add_session_id($base_url.'update'),736 'U_CLEAN' => add_session_id($base_url.'clean'),737 'U_DELETE' => add_session_id($base_url.'delete')734 'U_GENERATE' => $base_url.'generate', 735 'U_UPDATE' => $base_url.'update', 736 'U_CLEAN' => $base_url.'clean', 737 'U_DELETE' => $base_url.'delete' 738 738 ) 739 739 ); -
trunk/admin/stats.php
r918 r1004 63 63 $title_page=$lang['stats_day_title'].' du '.$date_of_day; 64 64 $url_back = PHPWG_ROOT_PATH."admin.php?page=stats"; 65 $url_back = add_session_id($url_back);65 $url_back = $url_back; 66 66 $title_details='<a href='.$url_back.'>'.$lang['stats_day_title'].'</a>'; 67 67 $title_day = $date_of_day; … … 72 72 $title_page=$lang['stats_month_title'].' : '.$date_of_day; 73 73 $url_back = PHPWG_ROOT_PATH."admin.php?page=stats"; 74 $url_back = add_session_id($url_back);74 $url_back = $url_back; 75 75 $title_details='<a href='.$url_back.'>'.$lang['stats_day_title'].'</a>'; 76 76 $title_day=$lang['today']; … … 106 106 'L_STAT_PICTURE'=>$lang['stats_picture'], 107 107 108 'IMG_REPORT'=> add_session_id($url_img)108 'IMG_REPORT'=>$url_img 109 109 )); 110 110 … … 142 142 ; 143 143 144 $value = '<a href="'. add_session_id($url).'">';144 $value = '<a href="'.$url.'">'; 145 145 $value.= $row['d'].' ('.$week_day.')'; 146 146 $value.= "</a>"; … … 161 161 ; 162 162 163 $value = '<a href="'. add_session_id($url).'">';163 $value = '<a href="'.$url.'">'; 164 164 $value.= $lang['month'][$row['m']].' '.$row['y']; 165 165 $value.= "</a>"; -
trunk/admin/thumbnail.php
r862 r1004 359 359 'params', 360 360 array( 361 'F_ACTION'=> add_session_id($form_url),361 'F_ACTION'=>$form_url, 362 362 $gdlabel=>'checked="checked"', 363 363 $nlabel=>'checked="checked"', -
trunk/admin/user_list.php
r998 r1004 425 425 $template->set_filenames(array('user_list'=>'admin/user_list.tpl')); 426 426 427 $base_url = add_session_id(PHPWG_ROOT_PATH.'admin.php?page=user_list');427 $base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list'; 428 428 429 429 if (isset($_GET['start']) and is_numeric($_GET['start'])) … … 791 791 'ID' => $local_user['id'], 792 792 'CHECKED' => $checked, 793 'U_MOD' => add_session_id($profile_url.$local_user['id']),794 'U_PERM' => add_session_id($perm_url.$local_user['id']),793 'U_MOD' => $profile_url.$local_user['id'], 794 'U_PERM' => $perm_url.$local_user['id'], 795 795 'USERNAME' => $local_user['username'], 796 796 'STATUS' => $lang['user_status_'.$local_user['status']], -
trunk/admin/user_perm.php
r818 r1004 134 134 135 135 'F_ACTION' => 136 add_session_id(137 136 PHPWG_ROOT_PATH. 138 137 'admin.php?page=user_perm'. 139 138 '&user_id='.$page['user'] 140 )141 139 ) 142 140 ); -
trunk/admin/waiting.php
r849 r1004 149 149 'L_DELETE'=>$lang['delete'], 150 150 151 'F_ACTION'=> add_session_id(str_replace( '&', '&', $_SERVER['REQUEST_URI'] ))151 'F_ACTION'=>str_replace( '&', '&', $_SERVER['REQUEST_URI']) 152 152 )); 153 153 -
trunk/category.php
r1000 r1004 32 32 if ( isset( $_GET['act'] ) 33 33 and $_GET['act'] == 'logout' 34 and isset( $_COOKIE[ 'id'] ) )34 and isset( $_COOKIE[session_name()] ) ) 35 35 { 36 36 // cookie deletion if exists 37 setcookie( 'id', '', 0, cookie_path() ); 37 $_SESSION = array(); 38 session_unset(); 39 session_destroy(); 40 setcookie(session_name(),'',0,'/'); 38 41 $url = 'category.php'; 39 42 redirect( $url ); … … 164 167 'L_REMEMBER_ME' => $lang['remember_me'], 165 168 166 'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ),169 'F_IDENTIFY' => PHPWG_ROOT_PATH.'identification.php', 167 170 'T_RECENT' => $icon_recent, 168 171 169 'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),170 'U_REGISTER' => add_session_id( PHPWG_ROOT_PATH.'register.php' ),171 'U_LOST_PASSWORD' => add_session_id(PHPWG_ROOT_PATH.'password.php'),172 'U_HOME' => PHPWG_ROOT_PATH.'category.php', 173 'U_REGISTER' => PHPWG_ROOT_PATH.'register.php', 174 'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php', 172 175 'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout', 173 'U_ADMIN'=> add_session_id( PHPWG_ROOT_PATH.'admin.php' ),174 'U_PROFILE'=> add_session_id(PHPWG_ROOT_PATH.'profile.php')176 'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php', 177 'U_PROFILE'=> PHPWG_ROOT_PATH.'profile.php' 175 178 ) 176 179 ); … … 199 202 'special_cat', 200 203 array( 201 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=fav'),204 'URL' => PHPWG_ROOT_PATH.'category.php?cat=fav', 202 205 'TITLE' => $lang['favorite_cat_hint'], 203 206 'NAME' => $lang['favorite_cat'] … … 208 211 'special_cat', 209 212 array( 210 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=most_visited'),213 'URL' => PHPWG_ROOT_PATH.'category.php?cat=most_visited', 211 214 'TITLE' => $lang['most_visited_cat_hint'], 212 215 'NAME' => $lang['most_visited_cat'] … … 218 221 'special_cat', 219 222 array( 220 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),223 'URL' => PHPWG_ROOT_PATH.'category.php?cat=best_rated', 221 224 'TITLE' => $lang['best_rated_cat_hint'], 222 225 'NAME' => $lang['best_rated_cat'] … … 228 231 'special_cat', 229 232 array( 230 'URL' => add_session_id(PHPWG_ROOT_PATH.'random.php'),233 'URL' => PHPWG_ROOT_PATH.'random.php', 231 234 'TITLE' => $lang['random_cat_hint'], 232 235 'NAME' => $lang['random_cat'] … … 236 239 'special_cat', 237 240 array( 238 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_pics'),241 'URL' => PHPWG_ROOT_PATH.'category.php?cat=recent_pics', 239 242 'TITLE' => $lang['recent_pics_cat_hint'], 240 243 'NAME' => $lang['recent_pics_cat'] … … 244 247 'special_cat', 245 248 array( 246 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_cats'),249 'URL' => PHPWG_ROOT_PATH.'category.php?cat=recent_cats', 247 250 'TITLE' => $lang['recent_cats_cat_hint'], 248 251 'NAME' => $lang['recent_cats_cat'] … … 252 255 'special_cat', 253 256 array( 254 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=calendar'),257 'URL' => PHPWG_ROOT_PATH.'category.php?cat=calendar', 255 258 'TITLE' => $lang['calendar_hint'], 256 259 'NAME' => $lang['calendar'] … … 291 294 'TITLE'=>$lang['hint_search'], 292 295 'NAME'=>$lang['search'], 293 'U_SUMMARY'=> add_session_id( 'search.php' ),296 'U_SUMMARY'=> 'search.php', 294 297 )); 295 298 … … 298 301 'TITLE'=>$lang['hint_comments'], 299 302 'NAME'=>$lang['comments'], 300 'U_SUMMARY'=> add_session_id( 'comments.php' ),303 'U_SUMMARY'=> 'comments.php', 301 304 )); 302 305 … … 305 308 'TITLE'=>$lang['about_page_title'], 306 309 'NAME'=>$lang['About'], 307 'U_SUMMARY'=> add_session_id( 'about.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] ) )310 'U_SUMMARY'=> 'about.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] ) 308 311 )); 309 312 … … 314 317 'TITLE'=>l10n('notification'), 315 318 'NAME'=>l10n('Notification'), 316 'U_SUMMARY'=> add_session_id(PHPWG_ROOT_PATH.'notification.php')319 'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php' 317 320 )); 318 321 … … 325 328 array( 326 329 'URL' => 327 add_session_id(328 330 PHPWG_ROOT_PATH.'admin.php?page=cat_modify' 329 331 .'&cat_id='.$page['cat'] 330 )331 332 ) 332 333 ); … … 353 354 array( 354 355 'URL' => 355 add_session_id(356 356 PHPWG_ROOT_PATH.'category.php' 357 357 .get_query_string_diff(array('caddie')).'&caddie=1') 358 )359 358 ); 360 359 } … … 384 383 $template->assign_block_vars( 385 384 'upload', 386 array('U_UPLOAD'=> add_session_id( $url ))385 array('U_UPLOAD'=> $url ) 387 386 ); 388 387 } -
trunk/comments.php
r889 r1004 180 180 'F_AUTHOR'=>@$_GET['author'], 181 181 182 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php')182 'U_HOME' => PHPWG_ROOT_PATH.'category.php' 183 183 ) 184 184 ); … … 415 415 'TITLE_IMG'=>$name, 416 416 'I_THUMB'=>$thumbnail_src, 417 'U_THUMB'=> add_session_id($url)417 'U_THUMB'=>$url 418 418 )); 419 419 … … 427 427 'comment', 428 428 array( 429 'U_PICTURE' => add_session_id($url),429 'U_PICTURE' => $url, 430 430 'TN_SRC' => $thumbnail_src, 431 431 'AUTHOR' => $author, -
trunk/identification.php
r866 r1004 52 52 $session_length = $conf['remember_me_length']; 53 53 } 54 $session_id = session_create($row['id'], $session_length); 55 redirect('category.php?id='.$session_id); 54 session_start(); 55 $_SESSION['id'] = $row['id']; 56 redirect('category.php'); 56 57 } 57 58 else … … 81 82 'L_REMEMBER_ME'=>$lang['remember_me'], 82 83 83 'U_REGISTER' => add_session_id(PHPWG_ROOT_PATH.'register.php'),84 'U_LOST_PASSWORD' => add_session_id(PHPWG_ROOT_PATH.'password.php'),85 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'),84 'U_REGISTER' => PHPWG_ROOT_PATH.'register.php', 85 'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php', 86 'U_HOME' => PHPWG_ROOT_PATH.'category.php', 86 87 87 'F_LOGIN_ACTION' => add_session_id(PHPWG_ROOT_PATH.'identification.php')88 'F_LOGIN_ACTION' => PHPWG_ROOT_PATH.'identification.php' 88 89 )); 89 90 -
trunk/include/category_calendar.inc.php
r896 r1004 68 68 $url = PHPWG_ROOT_PATH.'category.php?cat=calendar'; 69 69 $url.= '&year='.$calendar_year; 70 $url = add_session_id($url);71 70 $years_nav_bar.= ' <a href="'.$url.'">'.$calendar_year.'</a>'; 72 71 } … … 125 124 $url.= $page['calendar_year'].'.'.sprintf('%02s', $calendar_month); 126 125 $months_nav_bar.= ' '; 127 $months_nav_bar.= '<a href="'. add_session_id($url).'">';126 $months_nav_bar.= '<a href="'.$url.'">'; 128 127 $months_nav_bar.= $lang['month'][(int)$calendar_month]; 129 128 $months_nav_bar.= '</a>'; … … 249 248 'IMAGE_TITLE'=>$thumbnail_title, 250 249 251 'U_IMG_LINK'=> add_session_id($url_link)250 'U_IMG_LINK'=>$url_link 252 251 ) 253 252 ); … … 309 308 'IMAGE_TITLE'=>$thumbnail_title, 310 309 311 'U_IMG_LINK'=> add_session_id($url_link)310 'U_IMG_LINK'=>$url_link 312 311 ) 313 312 ); … … 363 362 'IMAGE_TITLE'=>$thumbnail_title, 364 363 365 'U_IMG_LINK'=> add_session_id($url_link)364 'U_IMG_LINK'=>$url_link 366 365 ) 367 366 ); … … 437 436 'IMAGE_TITLE'=>$thumbnail_title, 438 437 439 'U_IMG_LINK'=> add_session_id($url_link)438 'U_IMG_LINK'=>$url_link 440 439 ) 441 440 ); -
trunk/include/category_default.inc.php
r803 r1004 90 90 'IMAGE_TS' => get_icon($row['date_available']), 91 91 92 'U_IMG_LINK' => add_session_id($url_link)92 'U_IMG_LINK' => $url_link 93 93 ) 94 94 ); -
trunk/include/category_recent_cats.inc.php
r760 r1004 79 79 'IMAGE_TITLE' => $lang['hint_category'], 80 80 81 'U_IMG_LINK' => add_session_id($url_link)81 'U_IMG_LINK' => $url_link 82 82 ) 83 83 ); -
trunk/include/category_subcats.inc.php
r809 r1004 153 153 'IMAGE_TS' => get_icon(@$item['date_last']), 154 154 'U_IMG_LINK' => 155 add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$item['category'])155 PHPWG_ROOT_PATH.'category.php?cat='.$item['category'] 156 156 ) 157 157 ); -
trunk/include/config_default.inc.php
r953 r1004 265 265 // +-----------------------------------------------------------------------+ 266 266 267 // specifies to use cookie to store the session id on client side 268 $conf['session_use_cookies'] = 1; 269 270 // specifies to only use cookie to store the session id on client side 271 $conf['session_use_only_cookies'] = 1; 272 273 // do not use transparent session id support 274 $conf['session_use_trans_sid'] = 0; 275 276 // specifies the name of the session which is used as cookie name 277 $conf['session_name'] = 'pwg_id'; 278 279 // comment the line below to use file handler for sessions. 280 $conf['session_save_handler'] = 'db'; 281 267 282 // authorize_remembering : permits user to stay logged for a long time. It 268 283 // creates a cookie on client side. … … 275 290 // session_length : time of validity for normal session, in seconds. 276 291 $conf['session_length'] = 3600; 277 278 // session_id_size : a session identifier is compound of alphanumeric279 // characters and is case sensitive. Each character is among 62280 // possibilities. The number of possible sessions is281 // 62^$conf['session_id_size'].282 //283 // 62^5 = 916,132,832284 // 62^10 = 839,299,365,868,340,224285 //286 $conf['session_id_size'] = 10;287 292 288 293 // +-----------------------------------------------------------------------+ -
trunk/include/functions_category.inc.php
r867 r1004 48 48 { 49 49 echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />'; 50 echo '<a href=" '.add_session_id( './category.php' ).'">';50 echo '<a href="./category.php">'; 51 51 echo $lang['thumbnails'].'</a></div>'; 52 52 exit(); -
trunk/include/functions_html.inc.php
r976 r1004 82 82 { 83 83 $navbar.= '<a href="'; 84 $navbar.= add_session_id($url.'&start=0');84 $navbar.= $url.'&start=0'; 85 85 $navbar.= '" class="'.$link_class.'">'.$lang['first_page']; 86 86 $navbar.= '</a>'; … … 96 96 $previous = $start - $nb_element_page; 97 97 $navbar.= '<a href="'; 98 $navbar.= add_session_id( $url.'&start='.$previous );98 $navbar.= $url.'&start='.$previous; 99 99 $navbar.= '" class="'.$link_class.'">'.$lang['previous_page']; 100 100 $navbar.= '</a>'; … … 109 109 { 110 110 $navbar.= ' <a href="'; 111 $navbar.= add_session_id($url.'&start=0');111 $navbar.= $url.'&start=0'; 112 112 $navbar.= '" class="'.$link_class.'">1</a>'; 113 113 if ($cur_page > $pages_around + 2) … … 130 130 $temp_start = ($i - 1) * $nb_element_page; 131 131 $navbar.= ' <a href="'; 132 $navbar.= add_session_id($url.'&start='.$temp_start);132 $navbar.= $url.'&start='.$temp_start; 133 133 $navbar.= '" class="'.$link_class.'">'.$i.'</a>'; 134 134 } … … 148 148 } 149 149 $navbar.= ' <a href="'; 150 $navbar.= add_session_id($url.'&start='.$temp_start);150 $navbar.= $url.'&start='.$temp_start; 151 151 $navbar.= '" class="'.$link_class.'">'.$maximum.'</a>'; 152 152 } … … 159 159 $next = $start + $nb_element_page; 160 160 $navbar.= '<a href="'; 161 $navbar.= add_session_id( $url.'&start='.$next );161 $navbar.= $url.'&start='.$next; 162 162 $navbar.= '" class="'.$link_class.'">'.$lang['next_page'].'</a>'; 163 163 } … … 173 173 $temp_start = ($maximum - 1) * $nb_element_page; 174 174 $navbar.= '<a href="'; 175 $navbar.= add_session_id($url.'&start='.$temp_start);175 $navbar.= $url.'&start='.$temp_start; 176 176 $navbar.= '" class="'.$link_class.'">'.$lang['last_page']; 177 177 $navbar.= '</a>'; … … 242 242 { 243 243 $output.= '<a class=""'; 244 $output.= ' href="'. add_session_id(PHPWG_ROOT_PATH.$url.$id).'">';244 $output.= ' href="'.PHPWG_ROOT_PATH.$url.$id.'">'; 245 245 $output.= $name.'</a>'; 246 246 } … … 311 311 $output.= ' 312 312 <a class="" 313 href="'. add_session_id(PHPWG_ROOT_PATH.$url.$category_id).'">'.$name.'</a>';313 href="'.PHPWG_ROOT_PATH.$url.$category_id.'">'.$name.'</a>'; 314 314 } 315 315 } … … 370 370 $menu.= '>'; 371 371 372 $url = add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']);372 $url = PHPWG_ROOT_PATH.'category.php?cat='.$category['id']; 373 373 $menu.= "\n".'<a href="'.$url.'">'.$category['name'].'</a>'; 374 374 -
trunk/include/functions_session.inc.php
r808 r1004 26 26 // +-----------------------------------------------------------------------+ 27 27 28 // The function generate_key creates a string with pseudo random characters. 29 // the size of the string depends on the $conf['session_id_size']. 30 // Characters used are a-z A-Z and numerical values. Examples : 31 // "Er4Tgh6", "Rrp08P", "54gj" 32 // input : none (using global variable) 33 // output : $key 34 function generate_key($size) 28 if (isset($conf['session_save_handler']) and ($conf['session_save_handler'] == 'db')) { 29 session_set_save_handler('pwg_session_open', 30 'pwg_session_close', 31 'pwg_session_read', 32 'pwg_session_write', 33 'pwg_session_destroy', 34 'pwg_session_gc' 35 ); 36 } 37 38 ini_set('session.use_cookies', $conf['session_use_cookies']); 39 ini_set('session.use_only_cookies', $conf['session_use_only_cookies']); 40 ini_set('session.use_trans_sid', $conf['session_use_trans_sid']); 41 ini_set('session.name', $conf['session_name']); 42 43 function pwg_session_open($path, $name) 44 { 45 return true; 46 } 47 48 function pwg_session_close() 49 { 50 pwg_session_gc(); 51 return true; 52 } 53 54 function pwg_session_read($session_id) 55 { 56 $query = "SELECT data FROM " . SESSIONS_TABLE; 57 $query .= " WHERE id = '$session_id'"; 58 $result = pwg_query($query); 59 if ($result) { 60 $row = mysql_fetch_assoc($result); 61 return $row['data']; 62 } else { 63 return ''; 64 } 65 } 66 67 function pwg_session_write($session_id, $data) 68 { 69 $query = "SELECT id FROM " . SESSIONS_TABLE; 70 $query .= " WHERE id = '$session_id'"; 71 $result = pwg_query($query); 72 if (mysql_num_rows($result)) { 73 $query = "UPDATE " . SESSIONS_TABLE . " SET expiration = now()"; 74 $query .= " WHERE id = '$session_id'"; 75 pwg_query($query); 76 } else { 77 $query = "INSERT INTO " . SESSIONS_TABLE . " (id,data,expiration)"; 78 $query .= " VALUES('$session_id','$data',now())"; 79 pwg_query($query); 80 } 81 return true; 82 } 83 84 function pwg_session_destroy($session_id) 85 { 86 $query = "DELETE FROM " . SESSIONS_TABLE; 87 $query .= " WHERE id = '$session_id'"; 88 pwg_query($query); 89 return true; 90 } 91 92 function pwg_session_gc() 35 93 { 36 94 global $conf; 37 95 38 $md5 = md5(substr(microtime(), 2, 6)); 39 $init = ''; 40 for ( $i = 0; $i < strlen( $md5 ); $i++ ) 41 { 42 if ( is_numeric( $md5[$i] ) ) $init.= $md5[$i]; 43 } 44 $init = substr( $init, 0, 8 ); 45 mt_srand( $init ); 46 $key = ''; 47 for ( $i = 0; $i < $size; $i++ ) 48 { 49 $c = mt_rand( 0, 2 ); 50 if ( $c == 0 ) $key .= chr( mt_rand( 65, 90 ) ); 51 else if ( $c == 1 ) $key .= chr( mt_rand( 97, 122 ) ); 52 else $key .= mt_rand( 0, 9 ); 53 } 54 return $key; 55 } 56 57 /** 58 * create a new session and returns the session identifier 59 * 60 * - find a non-already-used session key 61 * - create a session in database 62 * - return session identifier 63 * 64 * @param int userid 65 * @param int session_lentgh : in seconds 66 * @return string 67 */ 68 function session_create($userid, $session_length) 69 { 70 global $conf; 71 72 // 1. searching an unused session key 73 $id_found = false; 74 while (!$id_found) 75 { 76 $generated_id = generate_key($conf['session_id_size']); 77 $query = ' 78 SELECT id 79 FROM '.SESSIONS_TABLE.' 80 WHERE id = \''.$generated_id.'\' 81 ;'; 82 $result = pwg_query($query); 83 if (mysql_num_rows($result) == 0) 84 { 85 $id_found = true; 86 } 87 } 88 // 3. inserting session in database 89 $query = ' 90 INSERT INTO '.SESSIONS_TABLE.' 91 (id,user_id,expiration) 92 VALUES 93 (\''.$generated_id.'\','.$userid.', 94 ADDDATE(NOW(), INTERVAL '.$session_length.' SECOND)) 95 ;'; 96 $query = "DELETE FROM " . SESSIONS_TABLE; 97 $query .= " WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(expiration) > " . $conf['session_length']; 96 98 pwg_query($query); 97 98 $expiration = $session_length + time(); 99 setcookie('id', $generated_id, $expiration, cookie_path()); 100 101 return $generated_id; 102 } 103 104 // add_session_id adds the id of the session to the string given in 105 // parameter as $url. If the session id is the first parameter to the url, 106 // it is preceded by a '?', else it is preceded by a '&'. If the 107 // parameter $redirect is set to true, '&' is used instead of '&'. 108 function add_session_id( $url, $redirect = false ) 109 { 110 global $page, $user, $conf; 111 112 if ($user['is_the_guest'] 113 or $user['has_cookie'] 114 or $conf['apache_authentication']) 115 { 116 return $url; 117 } 118 119 if (preg_match('/\.php\?/', $url)) 120 { 121 $separator = $redirect ? '&' : '&'; 122 } 123 else 124 { 125 $separator = '?'; 126 } 127 128 return $url.$separator.'id='.$page['session_id']; 129 } 130 131 // cookie_path returns the path to use for the PhpWebGallery cookie. 132 // If PhpWebGallery is installed on : 133 // http://domain.org/meeting/gallery/category.php 134 // cookie_path will return : "/meeting/gallery" 135 function cookie_path() 136 { 137 return substr($_SERVER['PHP_SELF'],0,strrpos( $_SERVER['PHP_SELF'],'/')); 99 return true; 138 100 } 139 101 ?> -
trunk/include/page_header.php
r850 r1004 62 62 array( 63 63 'REFRESH_TIME' => $refresh, 64 'U_REFRESH' => add_session_id( $url_link )64 'U_REFRESH' => $url_link 65 65 )); 66 66 $template->assign_block_vars('refresh', array()); -
trunk/include/user.inc.php
r817 r1004 27 27 28 28 // retrieving connected user informations 29 if (isset($_COOKIE[ 'id']))29 if (isset($_COOKIE[session_name()])) 30 30 { 31 $session_id = $_COOKIE['id']; 32 $user['has_cookie'] = true; 33 } 34 else if (isset($_GET['id'])) 31 session_start(); 32 if (isset($_SESSION['id'])) 33 { 34 $user['id'] = $_SESSION['id']; 35 } 36 else 37 { 38 // session timeout 39 $user['id'] = $conf['guest_id']; 40 $user['is_the_guest'] = true; 41 } 42 } 43 else 35 44 { 36 $session_id = $_GET['id']; 37 $user['has_cookie'] = false; 38 } 39 else 40 { 41 $user['has_cookie'] = false; 42 } 43 44 if (isset($session_id) 45 and ereg("^[0-9a-zA-Z]{".$conf['session_id_size']."}$", $session_id)) 46 { 47 $page['session_id'] = $session_id; 48 $query = ' 49 SELECT user_id,expiration,NOW() AS now 50 FROM '.SESSIONS_TABLE.' 51 WHERE id = \''.$page['session_id'].'\' 52 ;'; 53 $result = pwg_query($query); 54 if (mysql_num_rows($result) > 0) 55 { 56 $row = mysql_fetch_array($result); 57 if (strnatcmp($row['expiration'], $row['now']) < 0) 58 { 59 // deletion of the session from the database, because it is 60 // out-of-date 61 $delete_query = ' 62 DELETE FROM '.SESSIONS_TABLE.' 63 WHERE id = \''.$page['session_id'].'\' 64 ;'; 65 pwg_query($delete_query); 66 } 67 else 68 { 69 $user['id'] = $row['user_id']; 70 $user['is_the_guest'] = false; 71 } 72 } 73 } 74 if (!isset($user['id'])) 75 { 76 $user['id'] = $conf['guest_id']; 77 $user['is_the_guest'] = true; 45 $user['id'] = $conf['guest_id']; 46 $user['is_the_guest'] = true; 78 47 } 79 48 -
trunk/install/phpwebgallery_structure.sql
r965 r1004 184 184 CREATE TABLE `phpwebgallery_sessions` ( 185 185 `id` varchar(255) binary NOT NULL default '', 186 ` user_id` smallint(5) NOT NULL default '0',186 `data` text NOT NULL, 187 187 `expiration` datetime NOT NULL default '0000-00-00 00:00:00', 188 188 PRIMARY KEY (`id`) -
trunk/notification.php
r850 r1004 59 59 array( 60 60 'FEED_URL' => PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'], 61 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php')61 'U_HOME' => PHPWG_ROOT_PATH.'category.php' 62 62 ) 63 63 ); -
trunk/password.php
r901 r1004 177 177 $template->assign_vars( 178 178 array( 179 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php')179 'U_HOME' => PHPWG_ROOT_PATH.'category.php' 180 180 ) 181 181 ); -
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 } -
trunk/profile.php
r960 r1004 137 137 // redirection 138 138 $url = PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING']; 139 redirect( add_session_id($url));139 redirect($url); 140 140 } 141 141 } … … 199 199 'L_RETURN_HINT' => $lang['home_hint'], 200 200 201 'U_RETURN' => add_session_id(PHPWG_ROOT_PATH.'category.php'),202 203 'F_ACTION'=> add_session_id($url_action),201 'U_RETURN' => PHPWG_ROOT_PATH.'category.php', 202 203 'F_ACTION'=>$url_action, 204 204 )); 205 205 -
trunk/random.php
r675 r1004 60 60 // +-----------------------------------------------------------------------+ 61 61 $url = PHPWG_ROOT_PATH.'category.php?cat=list&list='.implode(',', $ids); 62 redirect( add_session_id($url));62 redirect($url); 63 63 ?> -
trunk/register.php
r902 r1004 76 76 'L_EMAIL' => $lang['mail_address'], 77 77 78 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'),78 'U_HOME' => PHPWG_ROOT_PATH.'category.php', 79 79 80 'F_ACTION' => add_session_id('register.php'),80 'F_ACTION' => 'register.php', 81 81 'F_LOGIN' => $login, 82 82 'F_EMAIL' => $email -
trunk/search.php
r867 r1004 130 130 { 131 131 $url = 'category.php?cat=search&search='.$search_string; 132 $url = add_session_id($url, true);133 132 redirect($url); 134 133 } … … 181 180 'TODAY_MONTH' => date('m', time()), 182 181 'TODAY_YEAR' => date('Y', time()), 183 'S_SEARCH_ACTION' => add_session_id( 'search.php' ),182 'S_SEARCH_ACTION' => 'search.php', 184 183 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=search', 185 'U_HOME' => add_session_id( 'category.php' )184 'U_HOME' => 'category.php' 186 185 ) 187 186 ); -
trunk/upload.php
r849 r1004 126 126 { 127 127 echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />'; 128 echo '<a href=" '.add_session_id( './category.php' ).'">';128 echo '<a href="./category.php">'; 129 129 echo $lang['thumbnails'].'</a></div>'; 130 130 exit(); … … 300 300 'L_MANDATORY' => $lang['mandatory'], 301 301 302 'F_ACTION' => add_session_id( $u_form ),303 304 'U_RETURN' => add_session_id(PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING'])302 'F_ACTION' => $u_form, 303 304 'U_RETURN' => PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING'] 305 305 )); 306 306
Note: See TracChangeset
for help on using the changeset viewer.