Ignore:
Timestamp:
Sep 28, 2007, 12:46:17 AM (17 years ago)
Author:
rvelices
Message:
  • admin, comments and tags pages include page_header later in the code (as in picture and index) allowing plugins to change the header until the very end
  • fix in admin.php : picture_modify requires cache invalidation
  • fix in site_update.php : some echo func calls changed to $template->output .= ...
  • upgraded prototype.js to latest version 1.5.1.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_update.php

    r2038 r2107  
    232232  // retrieve sub-directories fulldirs from the site reader
    233233  $fs_fulldirs = $site_reader->get_full_directories($basedir);
    234   //print_r( $fs_fulldirs ); echo "<br>";
    235234
    236235  // get_full_directories doesn't include the base directory, so if it's a
     
    353352  }
    354353
    355   echo '<!-- scanning dirs : ';
    356   echo get_elapsed_time($start, get_moment());
    357   echo ' -->'."\n";
     354  $template->output .= '<!-- scanning dirs : '
     355    . get_elapsed_time($start, get_moment())
     356    . ' -->'."\n";
    358357}
    359358// +-----------------------------------------------------------------------+
     
    367366
    368367  $fs = $site_reader->get_elements($basedir);
    369   //print_r($fs); echo "<br>";
    370   echo '<!-- get_elements: '.get_elapsed_time($start, get_moment())." -->\n";
     368  $template->output .= '<!-- get_elements: '
     369    . get_elapsed_time($start, get_moment())
     370    . " -->\n";
    371371
    372372  $cat_ids = array_diff(array_keys($db_categories), $to_delete);
     
    572572  }
    573573
    574   echo '<!-- scanning files : ';
    575   echo get_elapsed_time($start_files, get_moment());
    576   echo ' -->'."\n";
     574  $template->output .= '<!-- scanning files : '
     575    . get_elapsed_time($start_files, get_moment())
     576    . ' -->'."\n";
    577577
    578578  // retrieving informations given by uploaders
     
    644644    $start = get_moment();
    645645    update_category('all');
    646     echo '<!-- update_category(all) : ';
    647     echo get_elapsed_time($start,get_moment());
    648     echo ' -->'."\n";
     646    $template->output .= '<!-- update_category(all) : '
     647      . get_elapsed_time($start,get_moment())
     648      . ' -->'."\n";
    649649    $start = get_moment();
    650650    ordering();
    651651    update_global_rank();
    652     echo '<!-- ordering categories : ';
    653     echo get_elapsed_time($start, get_moment());
    654     echo ' -->'."\n";
     652    $template->output .= '<!-- ordering categories : '
     653      . get_elapsed_time($start, get_moment())
     654      . ' -->'."\n";
    655655  }
    656656
     
    671671                          $opts['recursive'],
    672672                          false);
    673     echo '<!-- get_filelist : ';
    674     echo get_elapsed_time($start, get_moment());
    675     echo ' -->'."\n";
     673    $template->output .= '<!-- get_filelist : '
     674      . get_elapsed_time($start, get_moment())
     675      . ' -->'."\n";
    676676    $start = get_moment();
    677677
     
    717717        );
    718718    }
    719     echo '<!-- update files : ';
    720     echo get_elapsed_time($start,get_moment());
    721     echo ' -->'."\n";
     719    $template->output .= '<!-- update files : '
     720      . get_elapsed_time($start,get_moment())
     721      . ' -->'."\n";
    722722  }// end if sync files
    723723}
     
    773773                        $opts['only_new']);
    774774
    775   echo '<!-- get_filelist : ';
    776   echo get_elapsed_time($start, get_moment());
    777   echo ' -->'."\n";
     775  $template->output .= '<!-- get_filelist : '
     776    . get_elapsed_time($start, get_moment())
     777    . ' -->'."\n";
    778778
    779779  $start = get_moment();
     
    806806    }
    807807  }
    808  
     808
    809809  foreach ( $files as $id=>$file )
    810810  {
     
    813813      in_array($id, $has_high_images)
    814814      );
    815    
     815
    816816    if ( is_array($data) )
    817817    {
     
    849849    if (count($datas) > 0)
    850850    {
    851       // echo '<pre>', print_r($datas); echo '</pre>';
    852      
    853851      mass_updates(
    854852        IMAGES_TABLE,
     
    872870  }
    873871
    874   echo '<!-- metadata update : ';
    875   echo get_elapsed_time($start, get_moment());
    876   echo ' -->'."\n";
     872  $template->output .= '<!-- metadata update : '
     873    . get_elapsed_time($start, get_moment())
     874    . ' -->'."\n";
    877875
    878876  $template->assign_block_vars(
Note: See TracChangeset for help on using the changeset viewer.