Changeset 37
- Timestamp:
- Jul 25, 2003, 11:02:35 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/category.php
r26 r37 21 21 //----------------------------------------------------------- personnal include 22 22 include_once( './include/init.inc.php' ); 23 $output.= 'after init.inc.php : '.get_elapsed_time( $t2, get_moment() ).'<br />';24 23 //-------------------------------------------------- access authorization check 25 24 // creating the plain structure : array of all the available categories and … … 79 78 $page['structure'] = update_structure( $page['structure'] ); 80 79 initialize_category(); 81 $output.= 'before template init : '.get_elapsed_time( $t2, get_moment() ).'<br />';82 80 //----------------------------------------------------- template initialization 83 81 $vtp = new VTemplate; 84 82 $handle = $vtp->Open( './template/'.$user['template'].'/category.vtp' ); 85 83 initialize_template(); 86 $output.= 'before lang array : '.get_elapsed_time( $t2, get_moment() ).'<br />';87 84 $tpl = array( 88 85 'categories','hint_category','sub-cat','images_available','total', … … 92 89 'most_visited_cat','recent_cat','recent_cat_hint','upload_picture' ); 93 90 templatize_array( $tpl, 'lang', $handle ); 94 $output.= 'after lang array : '.get_elapsed_time( $t2, get_moment() ).'<br />';95 91 96 92 $tpl = array( 'mail_webmaster','webmaster','top_number','version','site_url' ); 97 93 templatize_array( $tpl, 'conf', $handle ); 98 $output.= 'after conf array : '.get_elapsed_time( $t2, get_moment() ).'<br />';99 94 100 95 $tpl = array( 'short_period','long_period','lien_collapsed', 'username' ); … … 111 106 $vtp->setGlobalVar( $handle, 'nb_total_pictures',$nb_total_pictures ); 112 107 //------------------------------------------------------------- categories menu 113 $output.= 'before menu : '.get_elapsed_time( $t2, get_moment() ).'<br />';114 108 // normal categories 115 109 foreach ( $page['structure'] as $category ) { … … 117 111 display_category( $category, ' ', $handle ); 118 112 } 119 $output.= 'after menu : '.get_elapsed_time( $t2, get_moment() ).'<br />';120 113 // favorites cat 121 114 if ( !$user['is_the_guest'] ) … … 224 217 } 225 218 //------------------------------------------------------------------ thumbnails 226 $output.= 'before thumbs : '.get_elapsed_time( $t2, get_moment() ).'<br />';227 219 if ( isset( $page['cat'] ) and $page['cat_nb_images'] != 0 ) 228 220 { … … 416 408 $vtp->closeSession( $handle, 'thumbnails' ); 417 409 } 418 $output.= 'after thumbs : '.get_elapsed_time( $t2, get_moment() ).'<br />';419 410 //------------------------------------------------------- category informations 420 411 if ( isset ( $page['cat'] ) ) … … 463 454 //----------------------------------------------------------- html code display 464 455 $code = $vtp->Display( $handle, 0 ); 465 echo $output;466 456 echo $code; 467 457 ?>
Note: See TracChangeset
for help on using the changeset viewer.