fixed: misc: ValidateEmail() buffer overflow

added: notifications for resetting a user's password
       (there is no a winix function for this yet)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@817 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-03-09 22:56:54 +00:00
parent 489310ba1c
commit b7007da5a9
27 changed files with 540 additions and 145 deletions

View File

@@ -495,6 +495,29 @@ priv.o: ../functions/sort.h ../functions/specialdefault.h ../functions/stat.h
priv.o: ../functions/subject.h ../functions/template.h ../functions/tinymce.h
priv.o: ../functions/uname.h ../functions/upload.h ../functions/uptime.h
priv.o: ../functions/who.h ../functions/vim.h
pw.o: templates.h ../../ezc/src/ezc.h ../../ezc/src/generator.h
pw.o: ../../ezc/src/pattern.h ../../ezc/src/item.h ../../ezc/src/funinfo.h
pw.o: ../../ezc/src/functions.h ../../ezc/src/stringconv.h misc.h
pw.o: localefilter.h locale.h htmltextstream.h ../core/textstream.h
pw.o: patterncacher.h ../core/item.h indexpatterns.h patterns.h
pw.o: changepatterns.h ../core/config.h ../core/htmlfilter.h ../core/cur.h
pw.o: ../core/request.h ../core/requesttypes.h ../core/error.h
pw.o: ../core/config.h ../core/textstream.h ../templates/htmltextstream.h
pw.o: ../core/session.h ../core/user.h ../core/plugindata.h ../core/rebus.h
pw.o: ../core/mount.h ../core/system.h ../core/dirs.h ../core/dircontainer.h
pw.o: ../db/db.h ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
pw.o: ../core/error.h ../db/dbitemquery.h ../db/dbitemcolumns.h
pw.o: ../core/user.h ../core/group.h ../core/dircontainer.h
pw.o: ../core/ugcontainer.h ../core/log.h ../core/logmanipulators.h
pw.o: ../core/slog.h ../core/cur.h ../templates/locale.h ../notify/notify.h
pw.o: ../notify/notifypool.h ../templates/patterns.h ../notify/notifythread.h
pw.o: ../core/basethread.h ../core/synchro.h ../notify/templatesnotify.h
pw.o: ../core/users.h ../core/ugcontainer.h ../core/lastcontainer.h
pw.o: ../core/mounts.h ../core/mountparser.h ../core/crypt.h ../core/run.h
pw.o: ../core/users.h ../core/groups.h ../core/group.h ../core/loadavg.h
pw.o: ../core/image.h ../core/basethread.h ../core/threadmanager.h
pw.o: ../core/sessionmanager.h ../core/sessioncontainer.h ../core/system.h
pw.o: ../core/htmlfilter.h ../core/request.h ../core/misc.h
rebus.o: ../core/request.h templates.h ../../ezc/src/ezc.h
rebus.o: ../../ezc/src/generator.h ../../ezc/src/pattern.h
rebus.o: ../../ezc/src/item.h ../../ezc/src/funinfo.h

View File

@@ -1 +1 @@
o = adduser.o changepatterns.o config.o dir.o doc.o env.o filters.o htmltextstream.o indexpatterns.o insert.o item.o last.o locale.o localefilter.o login.o ls.o man.o misc.o miscspace.o mount.o patterncacher.o patterns.o priv.o rebus.o slog.o stat.o sys.o template.o templates.o upload.o uptime.o user.o who.o winix.o
o = adduser.o changepatterns.o config.o dir.o doc.o env.o filters.o htmltextstream.o indexpatterns.o insert.o item.o last.o locale.o localefilter.o login.o ls.o man.o misc.o miscspace.o mount.o patterncacher.o patterns.o priv.o pw.o rebus.o slog.o stat.o sys.o template.o templates.o upload.o uptime.o user.o who.o winix.o

38
templates/pw.cpp Executable file
View File

@@ -0,0 +1,38 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2012, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "core/request.h"
#include "core/misc.h"
namespace TemplatesFunctions
{
// change password code provided by a user
// we don't know whether it is valid or not
void pw_users_change_password_code(Info & i)
{
i.out << cur->request->ParamValue(L"code");
}
void pw_change_password_login(Info & i)
{
i.out << cur->request->ParamValue(L"login");
}
} // namespace TemplatesFunctions

View File

@@ -431,6 +431,13 @@ void Templates::CreateFunctions()
ezc_functions.Insert("priv_show_form_chmod", priv_show_form_chmod);
/*
pw
*/
ezc_functions.Insert("pw_users_change_password_code", pw_users_change_password_code);
ezc_functions.Insert("pw_change_password_login", pw_change_password_login);
/*
rebus
*/

View File

@@ -349,6 +349,13 @@ namespace TemplatesFunctions
void priv_show_form_chmod(Info & i);
/*
pw
*/
void pw_users_change_password_code(Info & i);
void pw_change_password_login(Info & i);
/*
rebus
*/