mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
011ce162a1
4
core.php
4
core.php
@ -96,8 +96,8 @@ if (!API\Response::isAPIRequest()) {
|
|||||||
|
|
||||||
// File di log ordinati in base alla data
|
// File di log ordinati in base alla data
|
||||||
if (App::debug()) {
|
if (App::debug()) {
|
||||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/error.log', 0, Monolog\Logger::ERROR);
|
$handlers[] = new RotatingFileHandler(base_dir().'/logs/error.log', 30, Monolog\Logger::ERROR);
|
||||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/setup.log', 0, Monolog\Logger::EMERGENCY);
|
$handlers[] = new RotatingFileHandler(base_dir().'/logs/setup.log', 30, Monolog\Logger::EMERGENCY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inizializzazione Whoops
|
// Inizializzazione Whoops
|
||||||
|
@ -200,7 +200,7 @@ if ((file_exists('config.inc.php') || $valid_config) && !$dbo->isConnected()) {
|
|||||||
<h3 class="box-title">'.tr('Impossibile connettersi al database').'</h3>
|
<h3 class="box-title">'.tr('Impossibile connettersi al database').'</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p>'.tr("Si è verificato un'errore durante la connessione al database").'.</p>
|
<p>'.tr("Si è verificato un errore durante la connessione al database").'.</p>
|
||||||
<p>'.tr('Controllare di aver inserito correttamente i dati di accesso, e che il database atto ad ospitare i dati del gestionale sia esistente').'.</p>
|
<p>'.tr('Controllare di aver inserito correttamente i dati di accesso, e che il database atto ad ospitare i dati del gestionale sia esistente').'.</p>
|
||||||
<a class="btn btn-info" href="'.base_path().'/index.php"><i class="fa fa-repeat"></i> '.tr('Riprova').'</a>
|
<a class="btn btn-info" href="'.base_path().'/index.php"><i class="fa fa-repeat"></i> '.tr('Riprova').'</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -821,7 +821,7 @@ msgid "Impossibile connettersi al database"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: include/init/configuration.php:220
|
#: include/init/configuration.php:220
|
||||||
msgid "Si è verificato un'errore durante la connessione al database"
|
msgid "Si è verificato un errore durante la connessione al database"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: include/init/configuration.php:221
|
#: include/init/configuration.php:221
|
||||||
@ -12010,7 +12010,7 @@ msgid "Impossibile ottenere l'ultimo identificativo creato"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:37
|
#: src/Extensions/MessageHandler.php:37
|
||||||
msgid "Si è verificato un'errore"
|
msgid "Si è verificato un errore"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:41
|
#: src/Extensions/MessageHandler.php:41
|
||||||
|
@ -814,7 +814,7 @@ msgid "Impossibile connettersi al database"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: include/init/configuration.php:220
|
#: include/init/configuration.php:220
|
||||||
msgid "Si è verificato un'errore durante la connessione al database"
|
msgid "Si è verificato un errore durante la connessione al database"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: include/init/configuration.php:221
|
#: include/init/configuration.php:221
|
||||||
@ -10116,7 +10116,7 @@ msgid "Impossibile ottenere l'ultimo identificativo creato"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:37
|
#: src/Extensions/MessageHandler.php:37
|
||||||
msgid "Si è verificato un'errore"
|
msgid "Si è verificato un errore"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:41
|
#: src/Extensions/MessageHandler.php:41
|
||||||
|
@ -844,7 +844,7 @@ msgid "Impossibile connettersi al database"
|
|||||||
msgstr "Impossible connect to database"
|
msgstr "Impossible connect to database"
|
||||||
|
|
||||||
#: include/init/configuration.php:220
|
#: include/init/configuration.php:220
|
||||||
msgid "Si è verificato un'errore durante la connessione al database"
|
msgid "Si è verificato un errore durante la connessione al database"
|
||||||
msgstr "An error occurred while connecting to database"
|
msgstr "An error occurred while connecting to database"
|
||||||
|
|
||||||
#: include/init/configuration.php:221
|
#: include/init/configuration.php:221
|
||||||
@ -11200,7 +11200,7 @@ msgid "Impossibile ottenere l'ultimo identificativo creato"
|
|||||||
msgstr "Impossible obtain the last identifier created"
|
msgstr "Impossible obtain the last identifier created"
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:37
|
#: src/Extensions/MessageHandler.php:37
|
||||||
msgid "Si è verificato un'errore"
|
msgid "Si è verificato un errore"
|
||||||
msgstr "An error has occurred"
|
msgstr "An error has occurred"
|
||||||
|
|
||||||
#: src/Extensions/MessageHandler.php:41
|
#: src/Extensions/MessageHandler.php:41
|
||||||
|
@ -80,7 +80,7 @@ switch ($resource) {
|
|||||||
|
|
||||||
if ($idagente) {
|
if ($idagente) {
|
||||||
$query .= '
|
$query .= '
|
||||||
`co_provvigioni`.`pr`ovvigione` AS provvigione,
|
`co_provvigioni`.`provvigione` AS provvigione,
|
||||||
`co_provvigioni`.`tipo_provvigione` AS tipo_provvigione,';
|
`co_provvigioni`.`tipo_provvigione` AS tipo_provvigione,';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class MessageHandler extends AbstractProcessingHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = tr("Si è verificato un'errore").' <i>[uid: '.$record['extra']['uid'].']</i>.';
|
$message = tr("Si è verificato un errore").' <i>[uid: '.$record['extra']['uid'].']</i>.';
|
||||||
|
|
||||||
if (auth()->check()) {
|
if (auth()->check()) {
|
||||||
$message .= '
|
$message .= '
|
||||||
|
@ -214,8 +214,10 @@ class Query
|
|||||||
$value = trim(str_replace(['<', '>'], '', $value));
|
$value = trim(str_replace(['<', '>'], '', $value));
|
||||||
|
|
||||||
if ($more || $minus) {
|
if ($more || $minus) {
|
||||||
if( date_parse($value) && date("Y-m-d",strtotime($value))!='1970-01-01' ){
|
list($giorno, $mese, $anno)=explode('/', $value);
|
||||||
$search_filters[] = 'DATE_FORMAT('.$search_query.', "%Y-%m-%d") '.$sign.' '.prepare(date("Y-m-d",strtotime($value)));
|
$data="'".$anno."-".$mese."-".$giorno."'";
|
||||||
|
if( $data!="'1970-01-01'" ){
|
||||||
|
$search_filters[] = $search_query.' '.$sign.' '.$data.'';
|
||||||
}else{
|
}else{
|
||||||
$search_filters[] = 'CAST('.$search_query.' AS UNSIGNED) '.$sign.' '.prepare($value);
|
$search_filters[] = 'CAST('.$search_query.' AS UNSIGNED) '.$sign.' '.prepare($value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user