From 98289e652d0401b975fe20ad09dc9913fb02d7f9 Mon Sep 17 00:00:00 2001 From: Macley <26381427+Macleykun@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:41:54 +0200 Subject: [PATCH 1/2] Change default user widgets and theme setting default and Default don't use the normal (dark) theme. But setting it to dark does so! If you edit the settings of a user (no need to impersonate) then just clicking save does show the default (dark) theme. Also the default user widgets set's a 2 widgets a normal user normally doesn't have access to, so i used what is normally set for the user now instead. --- sync_directory_with_phpipam.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync_directory_with_phpipam.php b/sync_directory_with_phpipam.php index 64662e2..b90e1e1 100644 --- a/sync_directory_with_phpipam.php +++ b/sync_directory_with_phpipam.php @@ -49,7 +49,7 @@ function pf_explode($delimiter, $string) { $mail_changelog = "Yes"; // Default widgets for new users $default_widgets['Administrator'] = 'statistics;favourite_subnets;changelog;access_logs;error_logs;top10_hosts_v4'; -$default_widgets['User'] = 'statistics;favourite_subnets;changelog;access_logs;error_logs;top10_hosts_v4'; +$default_widgets['User'] = 'statistics;favourite_subnets;changelog;top10_hosts_v4'; ///////////////////////////////////////////////////////////////////////////////// V A R I A B L E S /////////////////////////////////////////////////////////////////////////////////// @@ -268,7 +268,7 @@ function phpipam_user_group_membership_sort ($array) { "lang" =>$lang_id, "mailNotify" =>$mail_notify, "mailChangelog" =>$mail_changelog, - "theme" =>"default", + "theme" =>"dark", "disabled" =>"No", "editdate" =>date("Y-m-d h:m:s",time()) ); From f2cf7e0ce6374c8cce57fcbc4c014f147e385184 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 Apr 2026 15:06:39 +0200 Subject: [PATCH 2/2] When cloned, make start.sh and .php executable by default --- start.sh | 0 sync_directory_with_phpipam.php | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 start.sh mode change 100644 => 100755 sync_directory_with_phpipam.php diff --git a/start.sh b/start.sh old mode 100644 new mode 100755 diff --git a/sync_directory_with_phpipam.php b/sync_directory_with_phpipam.php old mode 100644 new mode 100755