rejetto forum
Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Roessi on February 01, 2010, 06:21:55 AM
-
Additionalfunctions module:
Version: 0.3
Modules Mod Version Needed: 0.3
Functions:
Change Username
Change Password
Create Folder
Delete Files/Folders
-------------
Coming Soon:
Rename Files/Folders
Registration Form
Archiv Download
-------------------
U need the Modules mod for the rawr template to use this.
u can get it here:
http://www.rejetto.com/forum/index.php/topic,7997.msg1048213.html#msg1048213
and if you dont have the rawr template you can get the complete template from here:
http://www.multiupload.com/S95YPN466I
-
{.if|{.postvar|action.}|{:
{.switch|{.postvar|action.}|,|
changepass|{:{.if|{.=|{.postvar|newpass.}|{.postvar|newpasscon.}.}|{:{.set account|%user%|password={.postvar|newpass.}.}:}/if.}:}
|changename|{:{.set account|%user%|newname={.postvar|newname.}.}:}
|createfolder|{: {.mkdir|%folder%/{.postvar|foldername.}.} :}
|{.comment|DO NOTHING.}/switch.}
:}.}
was missing %user% into "set account"
-
first of all thx :) umm
http://www.rejetto.com/wiki/index.php/HFS:_scripting_commands :
If the username is left empty, current username is used
the problem is that it still executes the commands inside the switch even when theres no postvar submitted ... and so everytime the page loads the password for the current user is set to nothing ... O.o
and i dont really understand why : - /
Edit :
every switch command is executed ...
-
It would be more intelligent to put those macro in a specialized section which will be called only when it is necessary but especially not placed in the main page.
[management]
<META HTTP-EQUIV="Refresh" CONTENT="0; URL={.postvar|remoteurl.}">
<!-- META HTTP-EQUIV="Pragma" CONTENT="no-cache" -->
{.if|{.postvar|action.}|{:
{.switch|{.postvar|action.}|,|
changepass|{:{.if|{.=|{.postvar|newpass.}|{.postvar|newpasscon.}.}|{:{.set account|%user%|password={.postvar|newpass.}.}:}/if.}:}
|changename|{:{.set account|%user%|newname={.postvar|newname.}.}:}
|createfolder|{: {.mkdir|%folder%/{.postvar|foldername.}.} :}
|{.comment|DO NOTHING.}/switch.}
:}.}
[]
<form method=post action="/~management">
<input type="hidden" name="remoteurl" value="javascript:unescape(window.location.href);">
<INPUT READONLY NAME="name" value="%user%">
<input type="text" name="newpass">
<input type="submit" value="{.!Change.}">
</form>
not tested , certainly contain some errors ;)
-
the problem is that it still executes the commands inside the switch even when theres no postvar submitted ... and so everytime the page loads the password for the current user is set to nothing ... O.o and i dont really und erstand why : - / every switch command is executed ...
did you try "enable macros.log" to see what's going on?
-
kk now it works :)
You can rename the modulefolder now and of have to type the oldpassword to change it.
due to a change in the rawr template module mod.
Update:
Added delete function
attached:
at first post
-
What is needed now is:
-the multilanguage support (as rawr do)
-an easy way to install into rawr
-a place where to keep your work updated (not so good to post the files on a forum)
thanks in advance.
S.