From 4f191c5af23593fa3a8e348ebdcf8da7f4ff98c2 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 12:16:33 +0100 Subject: [PATCH 01/11] title -> dev --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 51cf7bb..13b3190 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - SB Admin 2 - Dashboard + DEVVV From e5c808035509f41e1c18cd77fb945c0c97177579 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 12:35:26 +0100 Subject: [PATCH 02/11] asdasd --- .env | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..43f827d --- /dev/null +++ b/.env @@ -0,0 +1,38 @@ +# ========================== +# Ambiente +# ========================== +APP_NAME="DiplomacyApp" +APP_ENV=development # "development" per dev, "production" per prod +APP_DEBUG=true # true in dev, false in prod +APP_URL="http://diplomacydev.gogoweb.it" + +# ========================== +# Database +# ========================== +DB_CONNECTION=mysql +DB_HOST=192.168.1.201 +DB_PORT=3306 +DB_DATABASE=diplomacy # cambiare in prod: diplomacy +DB_USERNAME=diplouser # nome utente DB +DB_PASSWORD=!Nov3mb3r@2019. # password DB + +# ========================== +# Mail +# ========================== +MAIL_MAILER=smtp +MAIL_HOST=mail.gogoweb.it +MAIL_PORT=465 +MAIL_USERNAME=ginc@gogoweb.it +MAIL_PASSWORD=!Nov3mb3r@2019. +MAIL_ENCRYPTION=ssl +MAIL_FROM_ADDRESS=noreply@gogoweb.it +MAIL_FROM_NAME="GoGoDMPY" + +# ========================== +# Altri parametri globali +# ========================== +APP_TIMEZONE="Europe/Rome" +APP_LOCALE="it" +CACHE_DRIVER=file +SESSION_DRIVER=file +QUEUE_CONNECTION=sync From a90b2931ff58764713627ff928e66d55595c9364 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 12:45:23 +0100 Subject: [PATCH 03/11] pacchettizzazione php --- index.php | 10 + parts/content.php | 556 ++++++++++++++++++ parts/footer.php | 48 ++ parts/head.php | 19 + parts/sidebar.php | 124 ++++ 404.html => tpl/404.html | 0 LICENSE => tpl/LICENSE | 0 PRO_UPGRADE.txt => tpl/PRO_UPGRADE.txt | 0 README.md => tpl/README.md | 0 blank.html => tpl/blank.html | 0 buttons.html => tpl/buttons.html | 0 cards.html => tpl/cards.html | 0 charts.html => tpl/charts.html | 0 .../forgot-password.html | 0 gulpfile.js => tpl/gulpfile.js | 0 index.html => tpl/index.html | 0 register.html => tpl/register.html | 0 tables.html => tpl/tables.html | 0 .../utilities-animation.html | 0 .../utilities-border.html | 0 .../utilities-color.html | 0 .../utilities-other.html | 0 22 files changed, 757 insertions(+) create mode 100644 index.php create mode 100644 parts/content.php create mode 100644 parts/footer.php create mode 100644 parts/head.php create mode 100644 parts/sidebar.php rename 404.html => tpl/404.html (100%) rename LICENSE => tpl/LICENSE (100%) rename PRO_UPGRADE.txt => tpl/PRO_UPGRADE.txt (100%) rename README.md => tpl/README.md (100%) rename blank.html => tpl/blank.html (100%) rename buttons.html => tpl/buttons.html (100%) rename cards.html => tpl/cards.html (100%) rename charts.html => tpl/charts.html (100%) rename forgot-password.html => tpl/forgot-password.html (100%) rename gulpfile.js => tpl/gulpfile.js (100%) rename index.html => tpl/index.html (100%) rename register.html => tpl/register.html (100%) rename tables.html => tpl/tables.html (100%) rename utilities-animation.html => tpl/utilities-animation.html (100%) rename utilities-border.html => tpl/utilities-border.html (100%) rename utilities-color.html => tpl/utilities-color.html (100%) rename utilities-other.html => tpl/utilities-other.html (100%) diff --git a/index.php b/index.php new file mode 100644 index 0000000..f8ea88a --- /dev/null +++ b/index.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/parts/content.php b/parts/content.php new file mode 100644 index 0000000..064c0d9 --- /dev/null +++ b/parts/content.php @@ -0,0 +1,556 @@ + +
+ + +
+ + + + + + +
+ + +
+

Dashboard

+ Generate Report +
+ + +
+ + +
+
+
+
+
+
+ Earnings (Monthly)
+
$40,000
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ Earnings (Annual)
+
$215,000
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
Tasks +
+
+
+
50%
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ Pending Requests
+
18
+
+
+ +
+
+
+
+
+
+ + + +
+ + +
+
+ +
+
Earnings Overview
+ +
+ +
+
+ +
+
+
+
+ + +
+
+ +
+
Revenue Sources
+ +
+ +
+
+ +
+
+ + Direct + + + Social + + + Referral + +
+
+
+
+
+ + +
+ + +
+ + +
+
+
Projects
+
+
+

Server Migration 20%

+
+
+
+

Sales Tracking 40%

+
+
+
+

Customer Database 60%

+
+
+
+

Payout Details 80%

+
+
+
+

Account Setup Complete!

+
+
+
+
+
+ + +
+
+
+
+ Primary +
#4e73df
+
+
+
+
+
+
+ Success +
#1cc88a
+
+
+
+
+
+
+ Info +
#36b9cc
+
+
+
+
+
+
+ Warning +
#f6c23e
+
+
+
+
+
+
+ Danger +
#e74a3b
+
+
+
+
+
+
+ Secondary +
#858796
+
+
+
+
+
+
+ Light +
#f8f9fc
+
+
+
+
+
+
+ Dark +
#5a5c69
+
+
+
+
+ +
+ +
+ + +
+
+
Illustrations
+
+
+
+ ... +
+

Add some quality, svg illustrations to your project courtesy of unDraw, a + constantly updated collection of beautiful svg images that you can use + completely free and without attribution!

+ Browse Illustrations on + unDraw → +
+
+ + +
+
+
Development Approach
+
+
+

SB Admin 2 makes extensive use of Bootstrap 4 utility classes in order to reduce + CSS bloat and poor page performance. Custom CSS classes are used to create + custom components and custom utility classes.

+

Before working with this theme, you should become familiar with the + Bootstrap framework, especially the utility classes.

+
+
+ +
+
+ +
+ + +
+ + + +
+
+ +
+
+ + +
+ \ No newline at end of file diff --git a/parts/footer.php b/parts/footer.php new file mode 100644 index 0000000..5075edb --- /dev/null +++ b/parts/footer.php @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/parts/head.php b/parts/head.php new file mode 100644 index 0000000..e75de29 --- /dev/null +++ b/parts/head.php @@ -0,0 +1,19 @@ + + + + + + + + + DEVVV + + + + + + + +
\ No newline at end of file diff --git a/parts/sidebar.php b/parts/sidebar.php new file mode 100644 index 0000000..dd7591e --- /dev/null +++ b/parts/sidebar.php @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/404.html b/tpl/404.html similarity index 100% rename from 404.html rename to tpl/404.html diff --git a/LICENSE b/tpl/LICENSE similarity index 100% rename from LICENSE rename to tpl/LICENSE diff --git a/PRO_UPGRADE.txt b/tpl/PRO_UPGRADE.txt similarity index 100% rename from PRO_UPGRADE.txt rename to tpl/PRO_UPGRADE.txt diff --git a/README.md b/tpl/README.md similarity index 100% rename from README.md rename to tpl/README.md diff --git a/blank.html b/tpl/blank.html similarity index 100% rename from blank.html rename to tpl/blank.html diff --git a/buttons.html b/tpl/buttons.html similarity index 100% rename from buttons.html rename to tpl/buttons.html diff --git a/cards.html b/tpl/cards.html similarity index 100% rename from cards.html rename to tpl/cards.html diff --git a/charts.html b/tpl/charts.html similarity index 100% rename from charts.html rename to tpl/charts.html diff --git a/forgot-password.html b/tpl/forgot-password.html similarity index 100% rename from forgot-password.html rename to tpl/forgot-password.html diff --git a/gulpfile.js b/tpl/gulpfile.js similarity index 100% rename from gulpfile.js rename to tpl/gulpfile.js diff --git a/index.html b/tpl/index.html similarity index 100% rename from index.html rename to tpl/index.html diff --git a/register.html b/tpl/register.html similarity index 100% rename from register.html rename to tpl/register.html diff --git a/tables.html b/tpl/tables.html similarity index 100% rename from tables.html rename to tpl/tables.html diff --git a/utilities-animation.html b/tpl/utilities-animation.html similarity index 100% rename from utilities-animation.html rename to tpl/utilities-animation.html diff --git a/utilities-border.html b/tpl/utilities-border.html similarity index 100% rename from utilities-border.html rename to tpl/utilities-border.html diff --git a/utilities-color.html b/tpl/utilities-color.html similarity index 100% rename from utilities-color.html rename to tpl/utilities-color.html diff --git a/utilities-other.html b/tpl/utilities-other.html similarity index 100% rename from utilities-other.html rename to tpl/utilities-other.html From 6b08d236a999db0a469b74ee25ba4b95a5a4e724 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 12:56:48 +0100 Subject: [PATCH 04/11] core db e altro --- .env | 4 ++-- config/db.php | 15 +++++++++++++++ config/test_db.php | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 config/db.php create mode 100644 config/test_db.php diff --git a/.env b/.env index 43f827d..ff51ead 100644 --- a/.env +++ b/.env @@ -12,9 +12,9 @@ APP_URL="http://diplomacydev.gogoweb.it" DB_CONNECTION=mysql DB_HOST=192.168.1.201 DB_PORT=3306 -DB_DATABASE=diplomacy # cambiare in prod: diplomacy +DB_DATABASE=dpmy # cambiare in prod: diplomacy DB_USERNAME=diplouser # nome utente DB -DB_PASSWORD=!Nov3mb3r@2019. # password DB +DB_PASSWORD=8J4$$!asdEMnv@123 # password DB # ========================== # Mail diff --git a/config/db.php b/config/db.php new file mode 100644 index 0000000..4313ad0 --- /dev/null +++ b/config/db.php @@ -0,0 +1,15 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { + die("Errore connessione DB: " . $e->getMessage()); +} diff --git a/config/test_db.php b/config/test_db.php new file mode 100644 index 0000000..ae19820 --- /dev/null +++ b/config/test_db.php @@ -0,0 +1,22 @@ + PDO::ERRMODE_EXCEPTION + ] + ); + echo "Connessione al database riuscita!"; +} catch (PDOException $e) { + echo "Errore connessione DB: " . $e->getMessage(); +} From 88d4720af52453476031e6dea97d167328efbe53 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 12:57:48 +0100 Subject: [PATCH 05/11] asda --- config/test_db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/test_db.php b/config/test_db.php index ae19820..7636546 100644 --- a/config/test_db.php +++ b/config/test_db.php @@ -1,6 +1,6 @@ Date: Sun, 23 Nov 2025 13:00:02 +0100 Subject: [PATCH 06/11] test db --- config/test_db.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/test_db.php b/config/test_db.php index 7636546..4cf8e32 100644 --- a/config/test_db.php +++ b/config/test_db.php @@ -3,9 +3,10 @@ $env = parse_ini_file(__DIR__ . '/../.env'); $DB_HOST = $env['DB_HOST']; -$DB_NAME = $env['DB_NAME']; -$DB_USER = $env['DB_USER']; -$DB_PASS = $env['DB_PASS']; +$DB_PORT = $env['DB_PORT']; +$DB_NAME = $env['DB_DATABASE']; +$DB_USER = $env['DB_USERNAME']; +$DB_PASS = $env['DB_PASSWORD']; try { $pdo = new PDO( From 219316e84c4c88d6845521d8d7e65c64f0c9f614 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 13:02:29 +0100 Subject: [PATCH 07/11] test db --- config/test_db.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/config/test_db.php b/config/test_db.php index 4cf8e32..f83a637 100644 --- a/config/test_db.php +++ b/config/test_db.php @@ -1,12 +1,14 @@ load(); + +$DB_HOST = $_ENV['DB_HOST']; +$DB_PORT = $_ENV['DB_PORT']; +$DB_NAME = $_ENV['DB_DATABASE']; +$DB_USER = $_ENV['DB_USERNAME']; +$DB_PASS = $_ENV['DB_PASSWORD']; try { $pdo = new PDO( From c03944faef7eadd59865b741b10994d89b5c7073 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 13:06:28 +0100 Subject: [PATCH 08/11] env fuori root --- config/test_db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/test_db.php b/config/test_db.php index f83a637..18c192e 100644 --- a/config/test_db.php +++ b/config/test_db.php @@ -1,7 +1,7 @@ load(); $DB_HOST = $_ENV['DB_HOST']; From e04b92493b216faf38f1913f1bb43a19ba4c7e03 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 13:07:00 +0100 Subject: [PATCH 09/11] no env locale --- .env | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index ff51ead..0000000 --- a/.env +++ /dev/null @@ -1,38 +0,0 @@ -# ========================== -# Ambiente -# ========================== -APP_NAME="DiplomacyApp" -APP_ENV=development # "development" per dev, "production" per prod -APP_DEBUG=true # true in dev, false in prod -APP_URL="http://diplomacydev.gogoweb.it" - -# ========================== -# Database -# ========================== -DB_CONNECTION=mysql -DB_HOST=192.168.1.201 -DB_PORT=3306 -DB_DATABASE=dpmy # cambiare in prod: diplomacy -DB_USERNAME=diplouser # nome utente DB -DB_PASSWORD=8J4$$!asdEMnv@123 # password DB - -# ========================== -# Mail -# ========================== -MAIL_MAILER=smtp -MAIL_HOST=mail.gogoweb.it -MAIL_PORT=465 -MAIL_USERNAME=ginc@gogoweb.it -MAIL_PASSWORD=!Nov3mb3r@2019. -MAIL_ENCRYPTION=ssl -MAIL_FROM_ADDRESS=noreply@gogoweb.it -MAIL_FROM_NAME="GoGoDMPY" - -# ========================== -# Altri parametri globali -# ========================== -APP_TIMEZONE="Europe/Rome" -APP_LOCALE="it" -CACHE_DRIVER=file -SESSION_DRIVER=file -QUEUE_CONNECTION=sync From 9ddfe62a56e134d2edf9abc156ee86e6a2f5f219 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 13:07:59 +0100 Subject: [PATCH 10/11] conn db ok --- config/db.php | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/config/db.php b/config/db.php index 4313ad0..4bca290 100644 --- a/config/db.php +++ b/config/db.php @@ -1,15 +1,25 @@ load(); -try { - $pdo = new PDO("mysql:host=$DB_HOST;dbname=$DB_NAME;charset=utf8mb4", $DB_USER, $DB_PASS); - $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); -} catch (PDOException $e) { - die("Errore connessione DB: " . $e->getMessage()); -} +$DB_HOST = $_ENV['DB_HOST']; +$DB_PORT = $_ENV['DB_PORT']; +$DB_NAME = $_ENV['DB_DATABASE']; +$DB_USER = $_ENV['DB_USERNAME']; +$DB_PASS = $_ENV['DB_PASSWORD']; + +// try { +// $pdo = new PDO( +// "mysql:host=$DB_HOST;dbname=$DB_NAME;charset=utf8mb4", +// $DB_USER, +// $DB_PASS, +// [ +// PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION +// ] +// ); +// echo "Connessione al database riuscita!"; +// } catch (PDOException $e) { +// echo "Errore connessione DB: " . $e->getMessage(); +// } From 9fb74326941b7fe9db783cd6614d7afc4edefa78 Mon Sep 17 00:00:00 2001 From: ginctronic Date: Sun, 23 Nov 2025 13:09:44 +0100 Subject: [PATCH 11/11] minor cheges --- parts/sidebar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/sidebar.php b/parts/sidebar.php index dd7591e..335ecd4 100644 --- a/parts/sidebar.php +++ b/parts/sidebar.php @@ -4,9 +4,9 @@ - +