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.


Topics - Kremlin

Pages: 1
1
HFS ~ HTTP File Server / Login option?
« on: December 04, 2009, 06:03:06 PM »
When someone does a login in a lower folder of the hfs tree ie. http://localhost/1/2/ and then returns to http://localhost/1/ he will not be logged in the upper case folder. I quite understand why this might have been done this way, but an option in the hfs menu which would allow full site login wherever a user is would be nice. Anyway it's just a suggestion and not that urgent :).

2
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 ;))

3
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.

4
RAWR-Designs / Banner
« on: April 03, 2009, 02:43:43 PM »
Does anyone know how to stretch a banner image so it will always show the whole image no matter what the users resolution is? Searched a bit and didn't find anything conclusive.  :-\

5
[you will find a better solution some posts below]

Well i've added this code to my server since the new macro came out, it will set the speed (total & ip), max simultaneous ips downloading and downloads/ip via the HFS page, use it if you like  :)

Add the two codes in the template file.

Buttons will appear when you login into an account (you may want to change it depending on your situation)
Code: [Select]
[special begin]
{.if|{.and| %user% | {.urlvar|speedtotalB.} .}|{:
{.set ini|speed-limit={.urlvar|speedtotal.}.}
:}/if.}
{.if|{.and| %user% | {.urlvar|speedipB.} .}|{:
{.set ini|speed-limit-ip={.urlvar|speedip.}.}
:}/if.}
{.if|{.and| %user% | {.urlvar|downloadsipB.} .}|{:
{.set ini|max-contemporary-dls-ip={.urlvar|downloadsip.}.}
:}/if.}
{.if|{.and| %user% | {.urlvar|ipsdownloadingB.} .}|{:
{.set ini|max-ips-downloading={.urlvar|ipsdownloading.}.}
:}/if.}

These are the buttons which i personally added in the [files] section, but again it's up to you where you find it more suitable to place
Code: [Select]
[files]
{.if not|%user%||
<input type='text'   name='speedtotal' maxlength="6" size="5"  value="-1" onclick="if(this.value=='-1')this.value=''">
<input type='submit' name='speedtotalB' value='Speed Limit'>
<input type='text'   name='speedip' maxlength="6" size="5"  value="-1" onclick="if(this.value=='-1')this.value=''">
<input type='submit' name='speedipB' value='IP Speed Limit'>
<input type='text'   name='downloadsip' maxlength="6" size="5"  value="0" onclick="if(this.value=='0')this.value=''">
<input type='submit' name='downloadsipB' value='Downloads / IP'>
<input type='text'   name='ipsdownloading' maxlength="6" size="5"  value="0" onclick="if(this.value=='0')this.value=''">
<input type='submit' name='ipsdownloadingB' value='Max IPs Downloading'>
.}

This is part of my admin panel with "style settings" filtered out, and the values that appear in the text boxes are the default values for HFS.

PS. Hope people add more functions using this new macro in this topic  ;)

6
HFS ~ HTTP File Server / Automatic/Temporary Ban
« on: March 16, 2009, 01:01:48 PM »
I feel something is missing in the BAN system as to, if someone tries to force login let's say +100 within a minute to the server, it might lag it and an automatic ban should be issued by HFS. The same apply's with download managers misconfiguration when someone doesn't specify what number of connections are allowed for each user/ip making some of then reproduce over +300 within a minute (i've experienced this) and again lagging the server a lot. One time someone used a more powerful download manager which even managed to crash the server. Temporary bans are something that in some cases might be better applied then in permanent bans for in the 'FlashGet' case the program itself will sometimes ignore the users configuration of the number of conections allowed and jump it to unlimited reproducing the problem above without the users fault.

7
HFS ~ HTTP File Server / How about a 'Schedule Action'?
« on: March 14, 2009, 08:01:24 PM »
Well this comes in mind from what i've experience with my server when at certain hours of the day there's just too many people downloading from the server simultaneously (LAN wise), making the internet/intranet quite slow. I know you might suggest that limits are already available and don't get me wrong they can be quite useful, but what i'm suggesting is an integrated system in HFS which will allow at a certain hour to modify automatically some of the limits or even turn on/off the server without admin interaction (having to access everyday at certain hours might not always be possible). This would allow users to get max capability relitively to download speeds off peak hours and allow semi-acceptable internet speeds on peak hours. Anyway it's just an idea.  :)

8
Bug reports / Dates out of order
« on: March 10, 2009, 08:48:55 AM »
Small bug in the dates being that they're showing by month/day/year other than day/month/year.

9
Bug reports / New flag
« on: February 22, 2009, 09:57:24 PM »
It's not really a bug, at least that's what i think, but shouldn't the new flag reach from the file till the root? For example let's say i place a new file, example.mp3, in ../Music/album/a/example.mp3, the new flag only affects the file "example.mp3" and the folder "a" when it would make more sense to reach the folder "Music" since that's the folder you see when you open http://localhost/. Can you please clarify if what i've just said makes sense or am i missing something?

10
Bug reports / Unexpected error
« on: February 07, 2009, 11:02:56 AM »
So i got the message when i selected a bunch of folders from the hfs tree to remove them all at once:

Code: [Select]
Access violation at address 004CB434 in module 'hfs.exe'. Read of address 00000004
HFS 2.3 beta (221)
----------------------------------------------------------------
Stack list, generated 07-02-2009 10:37:02
[004CB434]{hfs.exe     } ComCtrls.TTreeNode.GetTreeView (Line 7080, "ComCtrls.pas" + 1) + $3
[00477618]{hfs.exe     } Controls.TWinControl.DefaultHandler (Line 7273, "Controls.pas" + 23) + $28
[004CB414]{hfs.exe     } ComCtrls.TTreeNode.GetHandle (Line 7075, "ComCtrls.pas" + 1) + $3
[004CBF01]{hfs.exe     } ComCtrls.TTreeNode.GetParent (Line 7458, "ComCtrls.pas" + 2) + $3
[0054CC8E]{hfs.exe     } main.setNilChildrenFrom (Line 6615, "main.pas" + 3) + $6
[0054CE09]{hfs.exe     } main.TmainFrm.remove (Line 6654, "main.pas" + 27) + $5
[0054CED9]{hfs.exe     } main.TmainFrm.Remove1Click (Line 6665, "main.pas" + 2) + $13
[00465A51]{hfs.exe     } Menus.TMenuItem.Click (Line 1878, "Menus.pas" + 14) + $C
[0046726D]{hfs.exe     } Menus.TMenu.DispatchCommand (Line 2603, "Menus.pas" + 5) + $5
[0046865C]{hfs.exe     } Menus.TPopupList.WndProc (Line 3393, "Menus.pas" + 4) + $12
[0041E486]{hfs.exe     } Classes.TThreadList.UnlockList (Line 3359, "classes.pas" + 1) + $7
[0043F804]{hfs.exe     } Graphics.FreeMemoryContexts (Line 5032, "Graphics.pas" + 12) + $5
[00468599]{hfs.exe     } Menus.TPopupList.MainWndProc (Line 3374, "Menus.pas" + 2) + $8
[0042AC08]{hfs.exe     } Classes.StdWndProc (Line 11572, "classes.pas" + 8) + $0
[0046C47C]{hfs.exe     } Controls.FindControl (Line 2103, "Controls.pas" + 6) + $C
[00494E1E]{hfs.exe     } Forms.TApplication.ProcessMessage (Line 7670, "Forms.pas" + 23) + $4
[00494E63]{hfs.exe     } Forms.TApplication.HandleMessage (Line 7689, "Forms.pas" + 1) + $6
[004950FE]{hfs.exe     } Forms.TApplication.Run (Line 7773, "Forms.pas" + 16) + $3
[0056C94E]{hfs.exe     } hfs.hfs (Line 99, "" + 22) + $2
----------------------------------------------------------------
System   : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 3"
Processor: Intel, Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 2380 MHz MMX
Display  : 1280x768 pixels, 32 bpp
----------------------------------------------------------------
----------------------------------------------------------------
Product Versions

hfs.exe: Build: 0 04-02-2009 3:35:56

11
So.. i need some help on making the search default for only folders without the use of Javascript. The idea is to basically type your search in as input and when pressing the search button it will redirect you to a link like this:

http://localhost/?folders-filter=*{.$search-data.}*&recursive&files-filter=\

Can anyone write the code for this? A good starting point might be the ToG search form..

<form action="/" name="simpleSearch" method="get">
         <input class="formInput" type="text" name="search" size="13" maxlength="32" value="{.$search-data.}" onclick="if(this.value=='{.$search-data.}')this.value=''"/>
         <input type="submit" value="Go"/>
</form>

ps. from what i think, it needs to add an onclick value to the button "Go", unfortunately i can't figure out how it should be written

12
HFS ~ HTTP File Server / FR: working on multiple folders
« on: January 23, 2009, 08:53:43 PM »
Not really related but would also like to sugest, since were speaking of folders.. would it be possible to add to HFS multiple folders at once instead of just 1 by 1? I present this question due to the fact that HFS doens't permit to set the default folder icon to a custom one unless you change each time manually in HFS (i'm not interested in setting images as icons like in some templates). This would for example save a lot of time adding folders to which we would later set custom icons (i'm talking of about >1000 folders).

ps. if for any reason you didn't understand the idea i will try too explain it better  :P

13
RAWR-Designs / Help needed: Shoutbox
« on: January 18, 2009, 09:44:18 PM »
Hi, i seem to need some help with a small script for the ToG Shoutbox since all i know from scripting is only enough to pass by. What i wanted to do was to only show the message and submit button to users logged in, while hidding it from who isn't.

This is the original code:
---------------------------------------------------------------------------------------------------------------------------------------------


<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   <link rel="stylesheet" type="text/css" href="/template/code/tog_main.css"/>
</head>
<body onload="window.scrollTo(0,99999)" id="msgBody">
{.$files.}
<form name="shout" action="/template/shoutbox/process_posts/" method="post" id="msgForm">
<center>
   <input type="text" name="user" size="17" maxlength="30" value="{.if|%user%|%user%|{.!lv_guest.}.}" class="formInput"  onclick="if(this.value=='{.!lv_guest.}')this.value=''"/><br/>
   <input type="text" name="msg" size="17" maxlength="150" value="{.!lv_msg.}" class="formInput" id="msgInput" title="{.!lv_smileys.}: :) :D ;D ;) :S :$ :P :o :'( :( (h)" onclick="if(this.value=='{.!lv_msg.}')this.value=''"/><br/>
   <input type="submit" value="{.!lv_shout.}" id="msgSubmit"/>
</center>
</form>
</body>
</html>

---------------------------------------------------------------------------------------------------------------------------------------------

Been trying for a few hours but can't seem to actually understand the code enough to do so.

Pages: 1