added: function adduser
changed: errors (removed enum, there are macros now) added: error messages to locales (winix_err_NN) removed: templates: err_abuse.html err_others.html git-svn-id: svn://ttmath.org/publicrep/winix/trunk@593 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
[if-any done_is_error]
|
||||
[if-any done_status_incorrect_rebus]
|
||||
<p class="error">{solve_rebus}</p>
|
||||
[else]
|
||||
[if-any done_status_spam]
|
||||
<p class="error">{suspected_spammer}</p>
|
||||
[end]
|
||||
[end]
|
||||
@@ -1,5 +0,0 @@
|
||||
[if-one doc_is_error done_is_error]
|
||||
<h1>{was_errors}</h1>
|
||||
<p>{error_code}: [if-one doc_is_error]doc:[doc_status][end], [if-one done_is_error]done:[done_status][end]</p>
|
||||
[end]
|
||||
|
||||
10
html/error.html
Executable file
10
html/error.html
Executable file
@@ -0,0 +1,10 @@
|
||||
|
||||
[is-no winix_err_is "0"]
|
||||
<p class="error">
|
||||
[if-one winix_is_err_in_locales]
|
||||
[winix_err_msg_from_locales]
|
||||
[else]
|
||||
{winix_err_default} [winix_err_code]
|
||||
[end]
|
||||
</p>
|
||||
[end]
|
||||
27
html/fun_adduser.html
Executable file
27
html/fun_adduser.html
Executable file
@@ -0,0 +1,27 @@
|
||||
<h1>[if-one user_logged]{adduser_header_add}[else]{adduser_header_register}[end]</h1>
|
||||
|
||||
|
||||
[include "error.html"]
|
||||
|
||||
|
||||
<form id="additem" method="post" action="[doc_base_url][dir]adduser">
|
||||
<fieldset>
|
||||
<legend>{adduser_form_legend}</legend>
|
||||
|
||||
<p class="withnext">{adduser_login}:</p>
|
||||
<input class="edit" type="text" name="login" value="[adduser_last_login]">
|
||||
|
||||
<p class="withnext">{adduser_password}:</p>
|
||||
<input class="edit" type="password" name="password" value="">
|
||||
|
||||
<p class="withnext">{adduser_confirm_password}:</p>
|
||||
<input class="edit" type="password" name="confirmpassword" value="">
|
||||
|
||||
<p class="withnext">{adduser_email}:</p>
|
||||
<input class="edit" type="text" name="email" value="[adduser_last_email]">
|
||||
|
||||
<input class="submit" type="submit" value="[if-one user_logged]{adduser_submit}[else]{register_user_submit}[end]">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h1>{create_thread_header}</h1>
|
||||
|
||||
[include "err_abuse.html"]
|
||||
[include "error.html"]
|
||||
|
||||
|
||||
<form id="additem" method="post" action="[doc_base_url][dir]createthread">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[if-one ticket_is]<h1>{edit_ticket_header}</h1>[else]<h1>{create_ticket_header}</h1>[end]
|
||||
|
||||
[include "err_abuse.html"]
|
||||
[include "error.html"]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[if-one item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
|
||||
|
||||
[include "err_abuse.html"]
|
||||
[include "error.html"]
|
||||
|
||||
|
||||
<form id="additem" method="post" action="[doc_base_url][dir][if-one item_is][item_url]/[end]emacs">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<h1>{upload_header}</h1>
|
||||
|
||||
[include "err_abuse.html"]
|
||||
[include "error.html"]
|
||||
|
||||
<form id="additem" method="post" action="[doc_base_url][dir][if-one item_is][item_url]/[end]upload" enctype="multipart/form-data">
|
||||
<fieldset>
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
|
||||
|
||||
[is-no winix_function_is "ckeditor"]
|
||||
<div id="winix_middle">
|
||||
[include "index_contentmenu.html"]
|
||||
|
||||
<div id="winix_contentright">
|
||||
[content]
|
||||
</div> <!-- winix_contentright -->
|
||||
</div> <!-- winix_middle -->
|
||||
[else]
|
||||
<div id="winix_contentfull">
|
||||
[content]
|
||||
|
||||
Reference in New Issue
Block a user