Compare commits
5
Commits
upgrade-php8
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af73cf5c30 | ||
|
|
f698c271d4 | ||
|
|
664f53e3f3 | ||
|
|
b1f48306b7 | ||
|
|
6949a01ad8 |
@@ -5,15 +5,13 @@
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
if (!isset($_ENV['DB_HOST'])) {
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
|
||||
$dotenv->safeLoad();
|
||||
}
|
||||
|
||||
$hostname_cmctrfdb = $_ENV['DB_HOST'] ?? 'localhost';
|
||||
$database_cmctrfdb = $_ENV['DB_DATABASE'] ?? '';
|
||||
$username_cmctrfdb = $_ENV['DB_USERNAME'] ?? '';
|
||||
$password_cmctrfdb = $_ENV['DB_PASSWORD'] ?? '';
|
||||
$hostname_cmctrfdb = $_ENV['DB_HOST'] ?? $_SERVER['DB_HOST'] ?? getenv('DB_HOST') ?: 'localhost';
|
||||
$database_cmctrfdb = $_ENV['DB_DATABASE'] ?? $_SERVER['DB_DATABASE'] ?? getenv('DB_DATABASE') ?: '';
|
||||
$username_cmctrfdb = $_ENV['DB_USERNAME'] ?? $_SERVER['DB_USERNAME'] ?? getenv('DB_USERNAME') ?: '';
|
||||
$password_cmctrfdb = $_ENV['DB_PASSWORD'] ?? $_SERVER['DB_PASSWORD'] ?? getenv('DB_PASSWORD') ?: '';
|
||||
|
||||
$servername = $hostname_cmctrfdb;
|
||||
$username = $username_cmctrfdb;
|
||||
|
||||
@@ -30,7 +30,7 @@ if (isset($_POST['articlepartvalue'])) {
|
||||
MAX(identificationparts.partsidnumber) AS partsidnumber,
|
||||
MAX(identificationparts.arttypeid) AS arttypeid,
|
||||
MAX(`trf-details`.idtrfdetails) AS idtrfdetails,
|
||||
`trf-details`.idcompany
|
||||
ANY_VALUE(`trf-details`.idcompany) AS idcompany
|
||||
FROM
|
||||
identificationparts
|
||||
LEFT JOIN
|
||||
|
||||
@@ -537,7 +537,7 @@ $archivetrflist->execute(); ?>
|
||||
let params = getParamsFromPage();
|
||||
let previewContainer = document.getElementById('documentPreview');
|
||||
let preloader = document.getElementById('preloader');
|
||||
let baseURL = 'https://www.cimac.it/modulo_certificazione/public/techdossier_stepsummarypreview.php';
|
||||
let baseURL = 'techdossier_stepsummarypreview.php';
|
||||
let url = `${baseURL}?idtd=${params.idtd}&idtrftd=${params.idtrftd}`;
|
||||
|
||||
// Mostra il preloader (già presente nell'HTML)
|
||||
|
||||
Reference in New Issue
Block a user