fix(install) : data-urlencode

This commit is contained in:
mrflos 2023-02-01 17:15:09 +03:00
parent e4b4426a30
commit 1a1129fba6

View file

@ -232,17 +232,13 @@ function copyYesWikiFiles($domain, $user, $dbUser)
exec($sudo.'mv '.$destDir.'/doryphore/* '.$destDir.'/'); exec($sudo.'mv '.$destDir.'/doryphore/* '.$destDir.'/');
exec($sudo.'rm -rf '.$destDir.'/doryphore'); exec($sudo.'rm -rf '.$destDir.'/doryphore');
unlink($tmpFile); unlink($tmpFile);
echo 'curl -X POST "https://'.$domain.'/?PagePrincipale&installAction=install" -F "config[default_language]=fr" -F "config[wakka_name]='.$domain.'" \ $curl = 'curl -X POST --data-urlencode "config[default_language]=fr" --data-urlencode "config[wakka_name]='.$domain.'" \
-F "config[root_page]=PagePrincipale" -F "config[mysql_host]=localhost" \ --data-urlencode "config[root_page]=PagePrincipale" --data-urlencode "config[mysql_host]=localhost" \
-F "config[mysql_database]='.$dbUser['database'].'" -F "config[mysql_user]='.$dbUser['user'].' -F "config[mysql_password]='.$dbUser['password'].'" -F "config[table_prefix]=yeswiki_" \ --data-urlencode "config[mysql_database]='.$dbUser['database'].'" --data-urlencode "config[mysql_user]='.$dbUser['user'].' --data-urlencode "config[mysql_password]='.$dbUser['password'].'" --data-urlencode "config[table_prefix]=yeswiki_" \
-F "admin_name='.$_SERVER['admin_id'].'" -F "admin_password='.$_SERVER['admin_password'].'" -F "admin_password_conf='.$_SERVER['admin_password'].'" \ --data-urlencode "admin_name='.$_SERVER['admin_id'].'" --data-urlencode "admin_password='.$_SERVER['admin_password'].'" --data-urlencode "admin_password_conf='.$_SERVER['admin_password'].'" \
-F "admin_email='.$_SERVER['admin_email'].'" -F "config[rewrite_mode]=1" -F "submit=Continue"'; --data-urlencode "admin_email='.$_SERVER['admin_email'].'" --data-urlencode "config[rewrite_mode]=1" --data-urlencode "submit=Continue" https://'.$domain.'/?PagePrincipale&installAction=install';
echo $curl;
exec($sudo.'curl -X POST "https://'.$domain.'/?PagePrincipale&installAction=install" -F "config[default_language]=fr" -F "config[wakka_name]='.$domain.'" \ exec($sudo.$curl);
-F "config[root_page]=PagePrincipale" -F "config[mysql_host]=localhost" \
-F "config[mysql_database]='.$dbUser['database'].'" -F "config[mysql_user]='.$dbUser['user'].' -F "config[mysql_password]='.$dbUser['password'].'" -F "config[table_prefix]=yeswiki_" \
-F "admin_name='.$_SERVER['admin_id'].'" -F "admin_password='.$_SERVER['admin_password'].'" -F "admin_password_conf='.$_SERVER['admin_password'].'" \
-F "admin_email='.$_SERVER['admin_email'].'" -F "config[rewrite_mode]=1" -F "submit=Continue"');
return; return;
} }