From 139af136436dd2f696a84089b37ca4143ecb2842 Mon Sep 17 00:00:00 2001 From: h4775346 Date: Mon, 1 Jul 2024 20:41:20 +0300 Subject: [PATCH] Added (Check Duplicates Before Adding New User) --- header.php | 12 ++++++++++++ index.php | 12 +----------- login.php | 2 ++ 3 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 header.php diff --git a/header.php b/header.php new file mode 100644 index 0000000..c154d99 --- /dev/null +++ b/header.php @@ -0,0 +1,12 @@ + '/etc/ppp/chap-secrets', + 'admin_username' => 'admin', + 'admin_password' => password_hash('change@me', PASSWORD_DEFAULT), +]; + +// Create config.php if it doesn't exist +if (!file_exists('config.php')) { + file_put_contents('config.php', ' '/etc/ppp/chap-secrets', - 'admin_username' => 'admin', - 'admin_password' => password_hash('change@me', PASSWORD_DEFAULT), -]; - -// Create config.php if it doesn't exist -if (!file_exists('config.php')) { - file_put_contents('config.php', '