diff --git a/utils.inc.php b/utils.inc.php index f329840..6896351 100644 --- a/utils.inc.php +++ b/utils.inc.php @@ -73,7 +73,7 @@ function generatePassword($length = 32, $add_dashes = false, $available_sets = ' $sets[] = '23456789'; } if (strpos($available_sets, 's') !== false) { - $sets[] = ';()!@#$&*?'; + $sets[] = ';-().!?'; } $all = ''; @@ -248,3 +248,20 @@ function checkHerse($herseUser, $hersePass) } return true; // herse needed } + +function editConfigFile() { + // change fuseau horaire + // 'contact_mail_func' => 'smtp', + // 'contact_smtp_host' => 'ssl://mail.gandi.net', + // 'contact_smtp_port' => '465', + // 'contact_smtp_user' => 'noreply@yeswiki.pro', + // 'contact_reply_to' => 'noreply@yeswiki.pro', + // 'contact_smtp_pass' => 'Ceci est 1 message automatique!', + +} + +function addStatistics() { + // requete SQL + // INSERT INTO `matomo_site` (`idsite`, `name`, `main_url`, `ts_created`, `ecommerce`, `sitesearch`, `sitesearch_keyword_parameters`, `sitesearch_category_parameters`, `timezone`, `currency`, `exclude_unknown_urls`, `excluded_ips`, `excluded_parameters`, `excluded_user_agents`, `excluded_referrers`, `group`, `type`, `keep_url_fragment`, `creator_login`) VALUES (NULL, 'Partage ton outil', 'https://partagetonoutil.fr', '2023-02-01 00:00:00', '0', '1', '', '', 'Europe/Paris', 'EUR', '0', '', '', '', '', '', 'website', '0', 'superadmin'); + +} \ No newline at end of file diff --git a/yeswiki-installer.php b/yeswiki-installer.php index a634c64..8adf24a 100755 --- a/yeswiki-installer.php +++ b/yeswiki-installer.php @@ -76,9 +76,9 @@ if (0 == posix_getuid()) { if ($confirm || $input->confirmed()) { $unixUser = createUnixUserWithQuota($user, $quota); $dbUser = createSQLUserAndDatabase($user, $type); + copyYesWikiFiles($domain, $user, $dbUser); createNginxConfig($domain, $user, $herseUser, $hersePass); createPhpFpmConfig($user); - copyYesWikiFiles($domain, $user, $dbUser); $climate->shout( 'The yeswiki was successfully installed on '.$domain.', congrats ! 🎉'."\n" .' Unix user : '.$unixUser['user'].' with password : '.$unixUser['password'].' was created.'."\n"