GlisWeb framework
_images.resize.php
Vai alla documentazione di questo file.
1 <?php
2 
14  // inclusione del framework
15  require '../../../_src/_config.php';
16 
17  // impostazioni del timer
18  $t = 'report immagini da scalare';
19 
20  // timer
22 
23  // dati
24  $dati = mysqlQuery( $cf['mysql']['connection'], 'SELECT * FROM __report_immagini_da_scalare__' );
25 
26  // header
28 
29  // intestazione report
30  echo txtHeader( 'report immagini da scalare (' . count( $dati ) . ')' );
31 
32  // corpo del report
33  if( count( $dati ) ) {
34  echo txtTable(
35  array( 'path' => 41, 'timestamp_scalamento' => 20, 'timestamp_aggiornamento' => 20 ),
36  $dati,
37  array( 'path' => 'immagine', 'timestamp_scalamento' => 'scalata', 'timestamp_aggiornamento' => 'aggiornata' )
38  );
39  }
40 
41  // chiusura report
42  echo txtDateTimeLine( '=' );
43 
44  // chiusura report
45  echo 'righe trovate: ' . count( $dati ) . PHP_EOL;
46  echo 'report generato in ' . timerDiff( $start ) . ' secondi' . PHP_EOL . PHP_EOL;
47 
48  // note
49  echo txtText(
50  'NOTA questo report rappresenta gli stessi dati su cui ragiona lo schedulatore di ridimensionamento delle immagini. '.
51  'Vengono scalate le immagini che non hanno data/ora di scalamento e le immagini che hanno data/ora di aggiornamento '.
52  'successiva a quella di scalamento.' . PHP_EOL . PHP_EOL .
53  'NOTA se questa coda è bloccata, probabilmente il cron è fermo oppure lo script di shell chiamato da cron non riesce '.
54  'a raggiungere il web service di schedulazione del framework.'
55  );
56 
57  // debug
58  // timer_debug( $t );
59  // print_r( $dati );
60 
61 ?>
buildContentHeader( $t=MIME_TEXT_PLAIN, $e=ENCODING_UTF8)
timerDiff( $start=START_TIME, $now=NULL)
mysqlQuery( $c, $q, $p=false, &$e=array())
$cf['ricerca']['template']
Definition: _030.common.php:7
txtText( $t, $j=true, $w=REPORT_WIDTH)
Definition: _txt.tools.php:94
txtHeader( $t, $c='=', $w=REPORT_WIDTH)
Definition: _txt.tools.php:20
timerNow()
$start
txtTable( $h, $d, $l=NULL, $w=REPORT_WIDTH)
Definition: _txt.tools.php:74
txtDateTimeLine( $c='-', $d=NULL, $w=REPORT_WIDTH)
Definition: _txt.tools.php:48