openstamanager/include/bottom.php

95 lines
3.0 KiB
PHP
Raw Normal View History

<?php
include_once __DIR__.'/../core.php';
if (Auth::check()) {
echo '
</div><!-- /.row -->
</section><!-- /.content -->
</aside><!-- /.content-wrapper -->
<footer class="main-footer">
<a class="hidden-xs" href="https://www.openstamanager.com" title="'.tr("Il gestionale open source per l'assistenza tecnica e la fatturazione").'." target="_blank"><strong>'.tr('OpenSTAManager').'</strong></a>
<span class="pull-right hidden-xs">
<strong>'.tr('Versione').'</strong> '.$version.'
<small class="text-muted">('.(!empty($revision) ? $revision : tr('In sviluppo')).')</small>
</span>
</footer>
2018-12-12 18:42:41 +01:00
<div id="modals">
</div>';
}
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()) {
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 {
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();
}
2018-07-08 18:11:17 +02:00
$custom_css = setting('CSS Personalizzato');
if (!empty($custom_css)) {
echo '
<style>'.$custom_css.'</style>';
}
2019-05-10 06:32:06 +02:00
// Hooks
echo '
<script>
$(document).ready(function() {
2019-07-30 17:03:04 +02:00
alertPush();
2019-05-10 06:32:06 +02:00
$.ajax({
url: globals.rootdir + "/ajax.php",
type: "get",
data: {
op: "hooks",
},
success: function(data) {
hooks = JSON.parse(data);
2019-05-24 21:36:35 +02:00
$("#hooks-header").text(globals.translations.hooksExecuting);
2019-05-24 21:07:10 +02:00
if (hooks.length == 0) {
$("#hooks-loading").hide();
$("#hooks-number").text(0);
2019-05-24 21:36:35 +02:00
$("#hooks-header").text(globals.translations.hookNone);
2019-05-24 21:07:10 +02:00
}
2019-05-10 06:32:06 +02:00
hooks.forEach(function(item, index){
2019-05-10 17:14:34 +02:00
executeHook(item, hooks.length);
2019-05-10 06:32:06 +02:00
});
},
});
});
</script>';
}
echo '
</body>
</html>';
2018-07-19 12:47:28 +02:00
// Retrocompatibilità
if (!empty($id_record) || basename($_SERVER['PHP_SELF']) == 'controller.php' || basename($_SERVER['PHP_SELF']) == 'index.php') {
unset($_SESSION['infos']);
unset($_SESSION['errors']);
unset($_SESSION['warnings']);
}