rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kremlin

Pages: 1 2 3 4 ... 10
16
RAWR-Designs / [ban] section disfiguration (solution)
« on: November 05, 2009, 07:01:31 PM »
Well as discussed before in the topic http://www.rejetto.com/forum/index.php?topic=7700.msg1047017#msg1047017, and since the template I use is based in the RAWR template, I decided to post this here, with this issue already going on for some time. With some guidance from other forum members, this is what I'm using at the moment:

Code: [Select]
[error-page]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{.if not|{.=|%reason%|banned.}|
<html xmlns="http://www.w3.org/1999/xhtml">
{.$disclaimer.}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{.!lv_title.} - {.!lv_serverError.}</title>
<script type="text/javascript" src="/template/code/main.js"></script>
<link rel="stylesheet" type="text/css" href="/template/code/main.css"/>
<script type="text/javascript">
var mod_statistics="{.!mod_er_statistics.}";
//Language Strings
var lv_hideTitle="{.!lv_hideTitle.}";
var lv_showTitle="{.!lv_showTitle.}";
</script>
<noscript><style type="text/css">.hide{display:none}</style></noscript>
<!--[if lte IE 6]><style type="text/css">#mainInner{width:960px}</style><![endif]-->
</head>
<body>
<div id="mainOuter">
<div id="mainInner">

...
(My template differs from the original RAWR template here so I will leave it out, anyway this works just the same with the RAWR one)
...

<script type="text/javascript">pageLoad()</script>
</body>
</html>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{.$disclaimer.}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{.!lv_title.} - Banned</title>
<style type="text/css"></style>
</head>
<div style="position:relative;top:225px">
<center>{.!lv_banError.}<b>: <font color=#818181>THIS IS MY DEFAULT BAN REASON</font><b/></center>
</div>
.}

In the "THIS IS MY DEFAULT BAN REASON" place your ban reason. When I say this I don't mean %reason% because then when you give a ban in hfs without a reason, it will appear 'banned' (the default reason for hfs) where "THIS IS MY DEFAULT BAN REASON" is. If you use the code that's above, you will not be able to add a ban reason in hfs, and expect the page to be viewed without disfiguration, so you lose either way.

To be honest this might not be a big deal for most, but since I'm kind of a neat freak when it comes to web-pages, I sense that an option to change the default ban reason in HFS would be welcome (maybe in the ban manager window?). Any other way (like trying to do this in code) won't work since you already specify that %reason% = banned so you can't change it. If such an option as the suggested one would be implemented then the "THIS IS MY DEFAULT BAN REASON" should in fact be substituted with %reason%.

(bit long eh ;))

17
Beta / stability
« on: November 04, 2009, 04:41:04 AM »
My mistake, still not used to using : and . with the macro's, anyway bacter actually put me in the right direction but now I think I have a logic problem. I will post it on another sub-forum where it's more appropriate tommorow.

18
Beta / stability
« on: November 03, 2009, 01:58:12 AM »
Tks guys  :D

ps. bacter you have a mistake in the code when you place a macro within the {.if not|....} macro, you need to place {: instead of {.

19
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 31, 2009, 01:26:40 AM »
Just to conclude the purpose of this thread and if anyone else is interested in something similar, I chose these lines to use in the hfs.events (ALT+F6)

Code: [Select]
[at 18:00]
{.set ini|speed-limit-ip=5.}
{.set item|/|add access=Administrator.}

[at 18:01]
{.disconnect|192.168.12.1-192.168.12.255.}

[at 00:00]
{.set ini|speed-limit-ip=-1.}
{.set item|/|remove access=Administrator.}

Obviously the 'Administrator' account needs the no limits option, otherwise speed would be very slow :P

20
Beta / stability
« on: October 31, 2009, 01:07:17 AM »
My biggest problem is still the overload of connections crashing the program (it freezes perminantely with the 'non responding' message). When i say overload i mean 200+. Even if i limit the server for 1 connection per IP, anyone with a download manager could easily send 100+ requests (that are rejected) at the same time and still make it crash. What i would ask for would probably be a little more resistance from the program, otherwise the only solution would be using secondary programs like firedaemon which will reboot hfs every 'x' hours.  :-\

PS. the pc which runs HFS has also a pretty good CPU, RAM, etc.. so the issue probably isn't coming from that direction.
PS2. keep up the good work rejetto  ;)
PS3. forgot something, I know i've already asked for this a few months back, but would it be possible to allow banned users to still access a certain folder? this request is due to the page template appearing disfigured to them since they can't access the /template/ folder. This way it would be optional for whoever is managing their hfs server to give them access or not.

21
HFS ~ HTTP File Server / Re: Master User
« on: October 31, 2009, 01:01:16 AM »
Why don't you just press shift and select the top and bottom folder, that way all the folders in between will also be selected. It should be quite fast even with 1000 folders.

22
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 29, 2009, 11:44:22 PM »
Figured it out, just bad syntax  :P

Code: [Select]
[unauthorized]
{.if not|{.%password%=.}|{:{.append|/template/log.txt|[%date][%ip] %user%:%password%
.}:}.}

Works like a charm  :)

23
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 29, 2009, 11:05:13 PM »
Yet something is missing in a little script i'm making

Code: [Select]
[unauthorized]
{.if|%password%=||{.append|/template/log.txt|[%date][%ip%] %user%:%password%
.}.}

Keep in mind when i place nothing in front of the =, i mean it not to log when someone has not entered a password. But it still keeps logging it, making the number of lines in the txt file massive :S

24
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 29, 2009, 10:40:53 PM »
Nevermind rejetto. Mars u rock :)

25
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 29, 2009, 09:19:43 PM »
Yeah, I kinda figured that the [at xx:xx] would only work for the events, but with this comes an idea, how about adding an option to the events to only affect certain folders in the hfs tree. For example:

[for /Movies/2009/]
[at 18:00]
{.set ...
[/for]

this way we could use the events in a partial way. Anyway it's just a suggestion for rejetto  :P

26
HFS ~ HTTP File Server / Re: Premium hour / Folder lock
« on: October 29, 2009, 06:01:58 PM »
hmm, when i use set user/pass on a folder with the interface option, is there a way to put that action in form of a macro in the diff template?

I would then use something like,

[at 18:00]
{.set ini|%user%=xxxx ...

27
HFS ~ HTTP File Server / Premium hour / Folder lock
« on: October 22, 2009, 03:40:01 PM »
Hi everyone, it's been a while :) (University..)

So basically i'm trying to figure out how to enforce a premium hour service, as in some folders get automatically locked at a certain time in the day lets say [at 19:00]. These folders should preferably get locked with an already existing account user and pass (this part if flexible). Is there anyway to do so in the 'diff template' sections with the 'if' 'set ini' and 'at' macros? Other suggestions are also welcome.

PS. I do not wish to lock the entire site, just the folders that appear in the site.

28
HFS ~ HTTP File Server / Re: Automatic/Temporary Ban
« on: May 22, 2009, 11:15:37 AM »
I'm sorry rejetto but I've haven't had time to work this out with college and all, I still appreciate the work  :). Glad to see that funbird managed to test it anyways.

29
HFS ~ HTTP File Server / Re: Automatic/Temporary Ban
« on: May 12, 2009, 10:26:32 PM »
Yes, because what makes the server crash is excessive number of connections in a very small period of time, ie 500 in 1 minute.

30
HFS ~ HTTP File Server / Re: Automatic/Temporary Ban
« on: May 12, 2009, 09:55:17 PM »
So it will ban a person if he retries 50 times, but what about a time limit for those 50 tries? If it's 50 tries/hour it isn't that much, even worse if people use download accelerators which break the file into parts making multiple connections over let's say 5 minutes. I will give it a try tomorrow and thanks for the progress, meanwhile please clarify my questions.  :)

Pages: 1 2 3 4 ... 10