diff --git a/actions.php b/actions.php
index 6742806af..b69535026 100755
--- a/actions.php
+++ b/actions.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/add.php b/add.php
index d1a4dcceb..7535b9eb6 100755
--- a/add.php
+++ b/add.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/ajax.php b/ajax.php
index 0bc8fa6e4..02aeac754 100755
--- a/ajax.php
+++ b/ajax.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/ajax_complete.php b/ajax_complete.php
index d17e7a6f0..d2a6acde7 100755
--- a/ajax_complete.php
+++ b/ajax_complete.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/ajax_dataload.php b/ajax_dataload.php
index 2e6d0ddb5..3d8a45e04 100755
--- a/ajax_dataload.php
+++ b/ajax_dataload.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/ajax_search.php b/ajax_search.php
index 2ea553d61..6d51ab56f 100755
--- a/ajax_search.php
+++ b/ajax_search.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/ajax_select.php b/ajax_select.php
index ec73fca60..166fc9e29 100755
--- a/ajax_select.php
+++ b/ajax_select.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/api/index.php b/api/index.php
index 8b8a4dcbe..241ed1546 100755
--- a/api/index.php
+++ b/api/index.php
@@ -1,4 +1,21 @@
.
+ */
use API\Response;
diff --git a/assets/src/css/datatables.css b/assets/src/css/datatables.css
index 7f763ddca..83d624f65 100755
--- a/assets/src/css/datatables.css
+++ b/assets/src/css/datatables.css
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
/*!
* DataTables + Font Awesome integration
* License: MIT - http://datatables.net/license
diff --git a/assets/src/css/print/print.css b/assets/src/css/print/print.css
index e2fe78e77..047689034 100755
--- a/assets/src/css/print/print.css
+++ b/assets/src/css/print/print.css
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
input,
button,
.btn,
diff --git a/assets/src/css/style.css b/assets/src/css/style.css
index 0921cbc13..85e8e9dda 100755
--- a/assets/src/css/style.css
+++ b/assets/src/css/style.css
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
*:focus {
outline: none;
}
diff --git a/assets/src/css/themes/default.css b/assets/src/css/themes/default.css
index ca62fd15d..dd9b8d8e0 100755
--- a/assets/src/css/themes/default.css
+++ b/assets/src/css/themes/default.css
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
.skin-default .wrapper,
.skin-default .main-sidebar,
.skin-default .left-side {
diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js
index ecf466cda..b1d4af3c7 100644
--- a/assets/src/js/base/custom.js
+++ b/assets/src/js/base/custom.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
// Aggiunta dell'ingranaggio all'unload della pagina
$(window).on("beforeunload", function () {
$("#main_loading").show();
diff --git a/assets/src/js/base/datatables-buttons.js b/assets/src/js/base/datatables-buttons.js
index b2897c186..5a1048abb 100644
--- a/assets/src/js/base/datatables-buttons.js
+++ b/assets/src/js/base/datatables-buttons.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
// Pulsanti di Datatables
$(".btn-csv").off("click").on("click", function (e) {
diff --git a/assets/src/js/base/navigation.js b/assets/src/js/base/navigation.js
index 164e17aef..c4d3f6dcb 100644
--- a/assets/src/js/base/navigation.js
+++ b/assets/src/js/base/navigation.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
// Tabs
$('.nav-tabs').tabs();
diff --git a/assets/src/js/base/sidebar.js b/assets/src/js/base/sidebar.js
index 8c5ae6f29..092144e40 100644
--- a/assets/src/js/base/sidebar.js
+++ b/assets/src/js/base/sidebar.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
// Fix per il menu principale
$('.sidebar-menu').tree({
diff --git a/assets/src/js/base/slider.js b/assets/src/js/base/slider.js
index 56662cfce..2317504c0 100644
--- a/assets/src/js/base/slider.js
+++ b/assets/src/js/base/slider.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
// Pulsante per il ritorno a inizio pagina
var slideToTop = $("
");
diff --git a/assets/src/js/base/supersearch.js b/assets/src/js/base/supersearch.js
index 6622b9232..3f7969ecd 100644
--- a/assets/src/js/base/supersearch.js
+++ b/assets/src/js/base/supersearch.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
$('#supersearch').keyup(function () {
$(document).ajaxStop();
diff --git a/assets/src/js/base/widgets.js b/assets/src/js/base/widgets.js
index 8b06adfff..28345a2e4 100644
--- a/assets/src/js/base/widgets.js
+++ b/assets/src/js/base/widgets.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
$(document).ready(function () {
$("#widget-top, #widget-right").sortable({
items: 'li',
diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js
index ab52acf17..cdbbb9ba3 100755
--- a/assets/src/js/functions/datatables.js
+++ b/assets/src/js/functions/datatables.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
function start_local_datatables() {
$('.datatables').each(function () {
if (!$.fn.DataTable.isDataTable($(this))) {
diff --git a/assets/src/js/functions/dates.js b/assets/src/js/functions/dates.js
index a169c4e43..d980515c7 100755
--- a/assets/src/js/functions/dates.js
+++ b/assets/src/js/functions/dates.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
function start_datepickers() {
var icons = {
time: 'fa fa-clock-o',
diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js
index 45d0e8a3c..b401d10c1 100755
--- a/assets/src/js/functions/functions.js
+++ b/assets/src/js/functions/functions.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
// Modal
function launch_modal(title, href, init_modal) {
openModal(title, href);
diff --git a/assets/src/js/functions/hooks.js b/assets/src/js/functions/hooks.js
index 06e5384df..aca744e66 100755
--- a/assets/src/js/functions/hooks.js
+++ b/assets/src/js/functions/hooks.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
/**
*
*/
diff --git a/assets/src/js/functions/init.js b/assets/src/js/functions/init.js
index bb68998e4..a96172882 100755
--- a/assets/src/js/functions/init.js
+++ b/assets/src/js/functions/init.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
function init() {
// Inizializzazzione dei box AdminLTE
$('.box').boxWidget();
diff --git a/assets/src/js/functions/input.js b/assets/src/js/functions/input.js
index 1f5ef5d9e..134df50f1 100644
--- a/assets/src/js/functions/input.js
+++ b/assets/src/js/functions/input.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
function input(name) {
return new Input(name);
}
diff --git a/assets/src/js/functions/inputmask.js b/assets/src/js/functions/inputmask.js
index 1dced6cba..cb4272c4f 100644
--- a/assets/src/js/functions/inputmask.js
+++ b/assets/src/js/functions/inputmask.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
// Inputmask
function start_inputmask(element) {
if (element == undefined) {
diff --git a/assets/src/js/functions/moment.js b/assets/src/js/functions/moment.js
index 9fec6b178..41cfee235 100755
--- a/assets/src/js/functions/moment.js
+++ b/assets/src/js/functions/moment.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
function dateFormatMoment(format) {
/*
* PHP => moment.js
diff --git a/assets/src/js/functions/prototypes.js b/assets/src/js/functions/prototypes.js
index 3f248c0d8..85390394f 100755
--- a/assets/src/js/functions/prototypes.js
+++ b/assets/src/js/functions/prototypes.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
Number.prototype.formatMoney = function (c, d, t) {
var n = this,
c = isNaN(c = Math.abs(c)) ? 2 : c,
diff --git a/assets/src/js/functions/select.js b/assets/src/js/functions/select.js
index 20b7ab480..9887ba781 100755
--- a/assets/src/js/functions/select.js
+++ b/assets/src/js/functions/select.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
// Select
function start_superselect() {
// Statico
diff --git a/bug.php b/bug.php
index 8d62f8733..4001192f8 100755
--- a/bug.php
+++ b/bug.php
@@ -1,4 +1,21 @@
.
+ */
use Modules\Emails\Account;
use Notifications\EmailNotification;
diff --git a/config.example.php b/config.example.php
index bdb75c15b..d40678c78 100755
--- a/config.example.php
+++ b/config.example.php
@@ -1,4 +1,21 @@
.
+ */
// Impostazioni di base per l'accesso al database
$db_host = '|host|';
diff --git a/config/csrf_config.php b/config/csrf_config.php
index 12863e391..06ae5d5f7 100755
--- a/config/csrf_config.php
+++ b/config/csrf_config.php
@@ -1,4 +1,21 @@
.
+ */
/**
* Configuration file for CSRF Protector.
diff --git a/config/namespaces.php b/config/namespaces.php
index 9ec080c3e..4730efc04 100755
--- a/config/namespaces.php
+++ b/config/namespaces.php
@@ -1,4 +1,21 @@
.
+ */
return [
'include' => 'Common',
diff --git a/controller.php b/controller.php
index 8e7eca0e3..b01b0f843 100755
--- a/controller.php
+++ b/controller.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/core.php b/core.php
index c2945a14f..50685b13e 100755
--- a/core.php
+++ b/core.php
@@ -1,4 +1,21 @@
.
+ */
// Rimozione header X-Powered-By
header_remove('X-Powered-By');
diff --git a/cron.php b/cron.php
index fe97a2311..89885e693 100644
--- a/cron.php
+++ b/cron.php
@@ -1,11 +1,29 @@
.
+ */
+
/**
* Script dedicato alla gestione delle operazioni di cron ricorrenti del gestionale.
* Una volta attivato, questo script rimane attivo in background per gestire l'esecuzione delle diverse operazioni come pianificate nella tabella zz_tasks.
*
* Il file viene richiamato in automatico al login di un utente.
* Per garantire che lo script resti attivo in ogni situazione, si consiglia di introdurre una chiamata nel relativo crontab di sistema secondo il seguente schema:
-*/
+ */
// Schema crontab: "*/5 * * * * php /cron.php"
use Carbon\Carbon;
diff --git a/editor.php b/editor.php
index 3042faaca..4e5ad9c6e 100755
--- a/editor.php
+++ b/editor.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/core.php';
diff --git a/gulpfile.js b/gulpfile.js
index 63498181f..74d6309a8 100755
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,3 +1,21 @@
+/*
+ * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
+ * Copyright (C) DevCode s.n.c.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
// Librerie NPM richieste per l'esecuzione
const gulp = require('gulp');
const merge = require('merge-stream');
diff --git a/include/bottom.php b/include/bottom.php
index d96f7106d..79f2e5945 100755
--- a/include/bottom.php
+++ b/include/bottom.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../core.php';
diff --git a/include/colonne.php b/include/colonne.php
index 5892b925f..61db86a38 100644
--- a/include/colonne.php
+++ b/include/colonne.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../core.php';
diff --git a/include/common/articolo.php b/include/common/articolo.php
index 84472a196..6e2c07b79 100755
--- a/include/common/articolo.php
+++ b/include/common/articolo.php
@@ -1,4 +1,21 @@
.
+ */
$result['idarticolo'] = isset($result['idarticolo']) ? $result['idarticolo'] : null;
$qta_minima = 0;
diff --git a/include/common/barcode.php b/include/common/barcode.php
index 7c77d3745..d68ae32ba 100644
--- a/include/common/barcode.php
+++ b/include/common/barcode.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
diff --git a/include/common/conti.php b/include/common/conti.php
index 6294fd5a2..87128d3a1 100755
--- a/include/common/conti.php
+++ b/include/common/conti.php
@@ -1,4 +1,21 @@
.
+ */
// Informazioni aggiuntive per Fatture
if ($module['name'] != 'Fatture di acquisto' && $module['name'] != 'Fatture di vendita') {
diff --git a/include/common/descrizione.php b/include/common/descrizione.php
index fdb39e0b5..038c53d8b 100755
--- a/include/common/descrizione.php
+++ b/include/common/descrizione.php
@@ -1,4 +1,21 @@
.
+ */
echo '
diff --git a/include/common/form.php b/include/common/form.php
index fc0a971d1..bdf5d2a84 100755
--- a/include/common/form.php
+++ b/include/common/form.php
@@ -1,4 +1,21 @@
.
+ */
$result['id'] = isset($result['id']) ? $result['id'] : null;
diff --git a/include/common/importa.php b/include/common/importa.php
index 80044f6cf..20c3c787c 100755
--- a/include/common/importa.php
+++ b/include/common/importa.php
@@ -1,4 +1,21 @@
.
+ */
// Inizializzazione
$documento = $options['documento'];
diff --git a/include/common/riga.php b/include/common/riga.php
index 1b52a3738..607b0cef4 100755
--- a/include/common/riga.php
+++ b/include/common/riga.php
@@ -1,4 +1,21 @@
.
+ */
// Descrizione
echo App::internalLoad('descrizione.php', $result, $options);
diff --git a/include/common/sconto.php b/include/common/sconto.php
index f28f056ef..a546f0b1b 100755
--- a/include/common/sconto.php
+++ b/include/common/sconto.php
@@ -1,4 +1,21 @@
.
+ */
// Descrizione
echo App::internalLoad('descrizione.php', $result, $options);
diff --git a/include/init/configuration.php b/include/init/configuration.php
index 5a9a10c3b..094384845 100755
--- a/include/init/configuration.php
+++ b/include/init/configuration.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
@@ -355,41 +372,41 @@ if (empty($creation) && (!file_exists('config.inc.php') || !$valid_config)) {
timeout: 500
});
});
-
+
function initLanguage(flag) {
$("#language").removeClass("hide");
-
+
$("#language").select2({
theme: "bootstrap",
templateResult: function(item) {
if (!item.id || !flag) {
return item.text;
}
-
+
var element = $(item.element);
var img = $("
", {
class: "img-flag",
width: 26,
src: flag_link.replace("|flag|", element.data("country").toLowerCase()),
});
-
+
var span = $("
", {
text: " " + item.text
});
span.prepend(img);
-
+
return span;
}
});
-
+
$("#language").on("change", function(){
if ($(this).val()) {
var location = window.location;
var url = location.protocol + "//" + location.host + "" + location.pathname;
-
+
var parameters = getUrlVars();
parameters.lang = $(this).val();
-
+
redirect(url, parameters);
}
});
@@ -471,33 +488,33 @@ if (empty($creation) && (!file_exists('config.inc.php') || !$valid_config)) {
'.tr('Configura correttamente il software con i seguenti parametri (modificabili successivamente dal file _FILE_)', [
'_FILE_' => 'config.inc.php',
]).'
-
+
';
// Form dei parametri
echo '
-
+
'.tr("Si consiglia l'abilitazione dell'estensione _EXT_ di PHP", [
'_EXT_' => 'intl',
]).'.
-
+
';
}
diff --git a/include/init/init.php b/include/init/init.php
index 4238349e1..6eb2937a8 100755
--- a/include/init/init.php
+++ b/include/init/init.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
diff --git a/include/init/requirements.php b/include/init/requirements.php
index 0fc159eb3..8498da7ec 100755
--- a/include/init/requirements.php
+++ b/include/init/requirements.php
@@ -1,4 +1,21 @@
.
+ */
// Apache
$modules = [
diff --git a/include/init/update.php b/include/init/update.php
index 118ccc40e..37e9ebd5e 100755
--- a/include/init/update.php
+++ b/include/init/update.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
@@ -219,7 +236,7 @@ if (filter('action') == 'do_update') {
setPercent(percent);
}
-
+
function setPercent(percent){
$("#progress .progress-bar").width(percent + "%");
$("#progress .progress-bar span").text(percent + "%");
diff --git a/include/manager.php b/include/manager.php
index 36a1f00ef..d5075fdce 100755
--- a/include/manager.php
+++ b/include/manager.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../core.php';
diff --git a/include/riferimenti/riferimenti.php b/include/riferimenti/riferimenti.php
index f829fcd01..24077c153 100644
--- a/include/riferimenti/riferimenti.php
+++ b/include/riferimenti/riferimenti.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
diff --git a/include/riferimenti/righe_documento.php b/include/riferimenti/righe_documento.php
index e450fa78d..13973117a 100644
--- a/include/riferimenti/righe_documento.php
+++ b/include/riferimenti/righe_documento.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
diff --git a/include/riferimenti/righe_riferimenti.php b/include/riferimenti/righe_riferimenti.php
index 221663b92..35cd9bd63 100644
--- a/include/riferimenti/righe_riferimenti.php
+++ b/include/riferimenti/righe_riferimenti.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../../core.php';
diff --git a/include/src/Components/Article.php b/include/src/Components/Article.php
index eb6c2990b..daca2118d 100755
--- a/include/src/Components/Article.php
+++ b/include/src/Components/Article.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common\Components;
diff --git a/include/src/Components/Description.php b/include/src/Components/Description.php
index d2caa64f4..e4b0a20f4 100755
--- a/include/src/Components/Description.php
+++ b/include/src/Components/Description.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common\Components;
diff --git a/include/src/Components/Discount.php b/include/src/Components/Discount.php
index ce887d10d..a572f59cc 100755
--- a/include/src/Components/Discount.php
+++ b/include/src/Components/Discount.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common\Components;
diff --git a/include/src/Components/MorphTrait.php b/include/src/Components/MorphTrait.php
index dac2d3da5..37216ff4e 100755
--- a/include/src/Components/MorphTrait.php
+++ b/include/src/Components/MorphTrait.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common\Components;
diff --git a/include/src/Components/Row.php b/include/src/Components/Row.php
index a27cad21a..ac990b8bc 100755
--- a/include/src/Components/Row.php
+++ b/include/src/Components/Row.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common\Components;
diff --git a/include/src/Document.php b/include/src/Document.php
index 5e81bf502..e7d3e5f8f 100755
--- a/include/src/Document.php
+++ b/include/src/Document.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common;
diff --git a/include/src/Model.php b/include/src/Model.php
index c9d8c6ba8..49ef79ddc 100755
--- a/include/src/Model.php
+++ b/include/src/Model.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common;
diff --git a/include/src/ReferenceInterface.php b/include/src/ReferenceInterface.php
index fed8e4323..3a0afa1af 100755
--- a/include/src/ReferenceInterface.php
+++ b/include/src/ReferenceInterface.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common;
diff --git a/include/src/RowReference.php b/include/src/RowReference.php
index e699792ae..84fda3f44 100644
--- a/include/src/RowReference.php
+++ b/include/src/RowReference.php
@@ -1,4 +1,21 @@
.
+ */
namespace Common;
diff --git a/include/top.php b/include/top.php
index 9484a8a99..b97dd3c48 100755
--- a/include/top.php
+++ b/include/top.php
@@ -1,4 +1,21 @@
.
+ */
include_once __DIR__.'/../core.php';
diff --git a/index.php b/index.php
index 752180ff6..af9e1d1b2 100755
--- a/index.php
+++ b/index.php
@@ -1,4 +1,21 @@
.
+ */
$skip_permissions = true;
include_once __DIR__.'/core.php';
@@ -129,14 +146,14 @@ if (isset($username)) {
}
echo' required>
-
+
{[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "" ]}
-
+
-
+