2017-08-04 16:28:16 +02:00
< ? php
include_once __DIR__ . '/../core.php' ;
if ( Auth :: check ()) {
echo '
2020-04-28 15:50:30 +02:00
</ div >
2017-08-04 16:28:16 +02:00
</ div ><!-- /. row -->
</ section ><!-- /. content -->
</ aside ><!-- /. content - wrapper -->
< footer class = " main-footer " >
2020-02-20 02:02:01 +01:00
< a class = " hidden-xs " href = " '.tr('https://www.openstamanager.com').' " title = " '.tr( " Il gestionale open source per l 'assistenza tecnica e la fatturazione").' . " target= " _blank " ><strong>'.tr('OpenSTAManager').'</strong></a>
2017-08-04 16:28:16 +02:00
< span class = " pull-right hidden-xs " >
2018-04-23 23:15:56 +02:00
< strong > '.tr(' Versione ').' </ strong > '.$version.'
2017-09-11 18:50:56 +02:00
< small class = " text-muted " > ( '.(!empty($revision) ? $revision : tr(' In sviluppo ')).' ) </ small >
2017-08-04 16:28:16 +02:00
</ span >
</ footer >
2018-12-12 18:42:41 +01:00
< div id = " modals " >
</ div > ' ;
2017-08-04 16:28:16 +02:00
}
echo '
</ div ><!-- ./ wrapper --> ' ;
if ( Auth :: check ()) {
if ( ! empty ( $_SESSION [ 'keep_alive' ])) {
echo '
< script > setInterval ( " session_keep_alive() " , 5 * 60 * 1000 ); </ script > ' ;
}
2018-07-03 15:39:29 +02:00
if ( App :: debug ()) {
2017-09-15 10:12:40 +02:00
echo '
<!-- Fix per le icone di debug -->
< style > div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - copy - clipboard : before , div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - database : before , div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - duration : before , div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - memory : before , div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - row - count : before , div . phpdebugbar - widgets - sqlqueries span . phpdebugbar - widgets - stmt - id : before {
2017-09-14 18:25:09 +02:00
font - family : FontAwesome ;
2018-07-25 12:27:15 +02:00
} </ style >
<!-- Rimozione del messaggio automatico riguardante la modifica di valori nella pagina -->
< script >
window . onbeforeunload = null ;
</ script > ' ;
2018-07-03 15:39:29 +02:00
echo $debugbarRenderer -> render ();
2017-09-14 18:25:09 +02:00
}
2018-07-08 18:11:17 +02:00
$custom_css = setting ( 'CSS Personalizzato' );
2017-09-14 18:25:09 +02:00
if ( ! empty ( $custom_css )) {
2017-08-04 16:28:16 +02:00
echo '
2017-09-14 18:25:09 +02:00
< style > '.$custom_css.' </ style > ' ;
2017-08-04 16:28:16 +02:00
}
2019-05-10 06:32:06 +02:00
// Hooks
echo '
2019-08-01 10:08:34 +02:00
< script >
$ ( document ) . ready ( function () {
2019-08-26 18:02:05 +02:00
// Toast
2019-08-01 10:08:34 +02:00
alertPush ();
2020-08-11 09:54:43 +02:00
2019-08-02 15:58:31 +02:00
// Orologio
clock ();
2020-08-11 09:54:43 +02:00
2019-08-26 18:02:05 +02:00
// Hooks
startHooks ();
2020-08-11 09:54:43 +02:00
// Abilitazione del cron autonoma
$ . get ( globals . rootdir + " /cron.php " );
2019-08-01 10:08:34 +02:00
});
</ script > ' ;
2019-08-01 12:53:21 +02:00
}
2018-04-13 17:46:13 +02:00
2019-08-02 10:38:55 +02:00
echo '
2019-08-26 18:02:05 +02:00
< script > $ ( document ) . ready ( init ) </ script >
2017-08-04 16:28:16 +02:00
</ body >
</ html > ' ;
2018-07-19 12:47:28 +02:00
// Retrocompatibilità
2018-04-13 17:46:13 +02:00
if ( ! empty ( $id_record ) || basename ( $_SERVER [ 'PHP_SELF' ]) == 'controller.php' || basename ( $_SERVER [ 'PHP_SELF' ]) == 'index.php' ) {
2018-03-22 23:21:22 +01:00
unset ( $_SESSION [ 'infos' ]);
unset ( $_SESSION [ 'errors' ]);
unset ( $_SESSION [ 'warnings' ]);
2018-04-13 17:46:13 +02:00
}