Skip to content
Snippets Groups Projects
Commit c0a2a18c authored by runemaster's avatar runemaster
Browse files

Save CurrTheme and default Messaging display in xxxx.html_prefs on new user sign=up

parent 13480fb5
No related branches found
No related tags found
No related merge requests found
...@@ -349,6 +349,16 @@ else { ...@@ -349,6 +349,16 @@ else {
template.response=format("<p>Your account has been created and the password is: %s </p>" ,newpw); template.response=format("<p>Your account has been created and the password is: %s </p>" ,newpw);
write_template("newuser_created.inc"); write_template("newuser_created.inc");
write_template("footer.inc"); write_template("footer.inc");
prefs_dir=system.data_dir + 'user/';
prefsfile=new File(prefs_dir + '/'+format("%04d.html_prefs",nuser.number));
if(prefsfile.open("w+",false)) {
prefsfile.iniSetValue('Messaging', 'SortDate', 'descending');
prefsfile.iniSetValue('Theme', 'CurrTheme', CurrTheme);
prefsfile.close();
}
} }
function showform() { function showform() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment