Changeset 290 for branches/release-1_3/category.php
- Timestamp:
- Jan 18, 2004, 3:13:02 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/category.php
r286 r290 17 17 * * 18 18 ***************************************************************************/ 19 // determine the initial instant to indicate the generation time of this page20 $t1 = explode( ' ', microtime() );21 $t2 = explode( '.', $t1[0] );22 $t2 = $t1[1].'.'.$t2[1];23 19 //----------------------------------------------------------- personnal include 24 20 include_once( './include/init.inc.php' ); … … 103 99 $page['structure'] = create_user_structure( '' ); 104 100 $page['structure'] = update_structure( $page['structure'] ); 101 105 102 //----------------------------------------------------- template initialization 106 $vtp = new VTemplate; 103 104 // 105 // Start output of page 106 // 107 $title = $page['title']; 108 include('include/page_header.php'); 109 107 110 $handle = $vtp->Open( './template/'.$user['template'].'/category.vtp' ); 108 111 initialize_template(); … … 110 113 'categories','hint_category','sub-cat','images_available','total', 111 114 'title_menu','nb_image_category','send_mail','title_send_mail', 112 ' generation_time','connected_user','recent_image','days','generation_time',115 'connected_user','recent_image','days', 113 116 'favorite_cat_hint','favorite_cat','stats','most_visited_cat_hint', 114 117 'most_visited_cat','recent_cat','recent_cat_hint','upload_picture', … … 116 119 templatize_array( $tpl, 'lang', $handle ); 117 120 118 $tpl = array( 'mail_webmaster','webmaster','top_number' ,'version','site_url');121 $tpl = array( 'mail_webmaster','webmaster','top_number'); 119 122 templatize_array( $tpl, 'conf', $handle ); 120 123 … … 122 125 templatize_array( $tpl, 'user', $handle ); 123 126 124 $tpl = array( ' title','navigation_bar','cat_comment','cat_nb_images' );127 $tpl = array( 'navigation_bar','cat_comment','cat_nb_images' ); 125 128 templatize_array( $tpl, 'page', $handle ); 126 129 … … 405 408 406 409 $url_link = './category.php?cat='.$subcat_id; 407 if ( !in_array( $page['cat'], $page['tab_expand'] ) )410 if ( isset($page['cat'])&& !in_array( $page['cat'], $page['tab_expand'] ) ) 408 411 { 409 412 array_push( $page['tab_expand'], $page['cat'] ); … … 488 491 pwg_log( 'category', $page['title'] ); 489 492 mysql_close(); 490 //------------------------------------------------------------- generation time491 $time = get_elapsed_time( $t2, get_moment() );492 $vtp->setGlobalVar( $handle, 'time', $time );493 493 //----------------------------------------------------------- html code display 494 494 $code = $vtp->Display( $handle, 0 ); 495 495 echo $code; 496 497 include('include/page_tail.php'); 496 498 ?>
Note: See TracChangeset
for help on using the changeset viewer.