18 # if( isset( $cf['sites'] ) && count( $cf['sites'] ) ) { 19 # $base = $cf['sites'][ $_SESSION['__view__']['__site__'] ]['protocols'][ $cf['site']['status'] ] . '://' . 20 # ( ( ! empty( $cf['sites'][ $_SESSION['__view__']['__site__'] ]['hosts'][ $cf['site']['status'] ] ) ) ? $cf['sites'][ $_SESSION['__view__']['__site__'] ]['hosts'][ $cf['site']['status'] ] . ((!empty($cf['sites'][ $_SESSION['__view__']['__site__'] ]['domains'][ $cf['site']['status'] ]))?'.':NULL) : NULL ). 21 # $cf['sites'][ $_SESSION['__view__']['__site__'] ]['domains'][ $cf['site']['status'] ] . '/' . 22 # ( ( isset( $cf['sites'][ $_SESSION['__view__']['__site__'] ]['folders'][ $cf['site']['status'] ] ) ) ? $cf['sites'][ $_SESSION['__view__']['__site__'] ]['folders'][ $cf['site']['status'] ] : NULL ); 30 $ct[
'page'][
'contents'][
'metros'] = array(
35 'label' =>
'gestione delle cache' 38 'label' =>
'gestione delle mail' 41 'label' =>
'gestione degli SMS' 44 'label' =>
'gestione di log e storage' 49 if( isset(
$cf[
'memcache'][
'connection'] ) ) {
50 $ct[
'page'][
'contents'][
'metro'][
'cache'][] = array(
51 'ws' =>
$base .
'task/memcache.clean',
54 'title' =>
'aggiornamento memcache',
55 'text' =>
'forza il flush della cache dati' 60 $ct[
'page'][
'contents'][
'metro'][
'cache'][] = array(
61 'ws' =>
$base .
'task/cache.twig.clean',
64 'title' =>
'aggiornamento cache di Twig',
65 'text' =>
'cancella la cache dei template' 70 $ct[
'page'][
'contents'][
'metro'][
'cache'][] = array(
71 'ws' =>
$base .
'task/cache.static.clean',
74 'title' =>
'aggiornamento cache pagine',
75 'text' =>
'cancella la cache statica delle pagine' 79 if(
mysqlSelectValue(
$cf[
'mysql'][
'connection'],
'SELECT count( id ) FROM mail_sent LIMIT 1' ) > 0 ) {
80 $ct[
'page'][
'contents'][
'metro'][
'mail'][] = array(
81 'ws' =>
$base .
'task/mail.queue.sent.clean',
83 'fa' =>
'fa-envelope',
84 'title' =>
'svuotamento coda mail inviate',
85 'text' =>
'cancella la coda delle mail inviate' 89 if(
mysqlSelectValue(
$cf[
'mysql'][
'connection'],
'SELECT count( id ) FROM mail_out LIMIT 1' ) > 0 ) {
90 $ct[
'page'][
'contents'][
'metro'][
'mail'][] = array(
91 'ws' =>
$base .
'task/mail.queue.out.clean',
93 'fa' =>
'fa-envelope-o',
94 'title' =>
'svuotamento coda mail in uscita',
95 'text' =>
'cancella la coda delle mail in uscita' 99 if(
mysqlSelectValue(
$cf[
'mysql'][
'connection'],
'SELECT count( id ) FROM sms_sent LIMIT 1' ) > 0 ) {
100 $ct[
'page'][
'contents'][
'metro'][
'sms'][] = array(
101 'ws' =>
$base .
'task/sms.queue.sent.clean',
103 'fa' =>
'fa-commenting',
104 'title' =>
'svuotamento coda SMS inviati',
105 'text' =>
'cancella la coda degli SMS inviati' 109 if(
mysqlSelectValue(
$cf[
'mysql'][
'connection'],
'SELECT count( id ) FROM sms_out LIMIT 1' ) > 0 ) {
110 $ct[
'page'][
'contents'][
'metro'][
'sms'][] = array(
111 'ws' =>
$base .
'task/sms.queue.out.clean',
113 'fa' =>
'fa-commenting-o',
114 'title' =>
'svuotamento coda SMS in uscita',
115 'text' =>
'cancella la coda degli SMS in uscita' 120 $ct[
'page'][
'contents'][
'metro'][
'log'][] = array(
121 'ws' =>
$base .
'task/log.clean',
123 'fa' =>
'fa-trash-o',
124 'title' =>
'eliminazione dei log',
125 'text' =>
'cancella i log del framework' 129 if( defined(
'DIRECTORY_SESSION' ) && count( glob(
DIRECTORY_BASE . DIRECTORY_SESSION .
'sess_*' ) ) > 0 ) {
130 $ct[
'page'][
'contents'][
'metro'][
'log'][] = array(
131 'ws' =>
$base .
'task/session.clean.old',
134 'title' =>
'pulizia delle sessioni',
135 'text' =>
'cancella i file di sessioni (escluse correnti)' 140 $ct[
'page'][
'contents'][
'metro'][
'log'][] = array(
141 'ws' =>
$base .
'task/temporary.clean',
143 'fa' =>
'fa-hourglass-end',
144 'title' =>
'pulizia dei file temporanei',
145 'text' =>
'cancella i file temporanei'
const DIRECTORY_TEMPORANEA
$cf['ricerca']['template']
$ct['page']['contents']['metros']