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 - raffdich

Pages: 1
1
F.A.Q.s / Re: [Solved] [Usefull] STunnel log displayed in HFS
« on: May 11, 2009, 08:48:03 PM »
thank you for this great event script  :)

i have a request ;)

is it now possible to obtain ip address of user when using stunnel?

the log will display
11.05.2009 22:14:29 192.168.xxx.3:4196{Stunnel} 2009.05.11 22:14:27 LOG5[2748:3680]: https accepted connection from xxx.xxx.38.8:50205
2009.05.11 22:14:27 LOG5[2748:3680]: https accepted connection from xxx.xxx.38.8:50205
2009.05.11 22:14:27 LOG5[2748:3680]: https connected remote server from 192.168.xxx.3:4196

is it possible to search / cut in the log file for [2748:3680] (i think this is like an ID or time stamp) to get the local ip:port and wan ip:port and match them to assign the wan ip to the %user% ?

it is an idea... don't pinch me ;)
thanks for reply!

2
HFS ~ HTTP File Server / Re: Custom Download Link Possible?
« on: May 10, 2009, 02:03:59 PM »
the code was not correct  ::)
use this
{.if|{.%item-ext%=pdb.}|ereader://%host%%url%.}

the place where you insert / replace the code is conditional to your template...

for example a part of the code from "thunderchicken of glory" template

[file]
<tr>
<td class="iconCol">
   <a href="%item-url%">
   <div style="background:url('/~img_file') center center no-repeat">{.switch|%item-ext%|,|jpg,jpeg,png,bmp,tif,tiff|
   <div style="background:url('previews_and_thumbnails/thumb-%item-name%.jpg') center center no-repeat"></div>|.}
   </div>
   </a>
</td>

<td class="fileCol{.if not|{.get|can access.}|protected.}">
   <div class="fileInfo">{.if|{.get|can delete.}| <input type='checkbox' name='selection' value="%item-url%"> .}
   <a href="{.if|{.%item-ext%=pdb.}|ereader://%host%%url%.}%item-url%" {.$target.}>%item-name%{.if|{.get|is new.}|&nbsp;-&nbsp;<b class="new">{.!lv_new.}</b>.}</a><br/>
   %comment%
   <div class="info"><b>{.!lv_size.}:</b> %item-size%</div><div class="info"><b>{.!lv_hits.}:</b> %item-dl-count%</div><div class="age"><b>{.!lv_age.}:</b> %item-modified%</div>
   </div>
</td>
<td class="quickCol">{.switch|%item-ext%|,|
jpg,jpeg,png,bmp,tif,tiff|
  {.if|{.filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg.}
    |{.$preview-btn.}
    |<div class="quickBtn disabled hide"><img src="/template/tog/images/preview.gif" alt="" align="middle"/></div>
  .}
|mp3,flv|{.$preview-btn.}|<div class="quickBtn disabled hide"></div>.}
   <noscript><div class="quickBtn disabled"></div></noscript>
   <div class="quickBtn1 {.if not|{.get|can access.}|disabled.}"><a href="%item-url%" {.$target.}><img src="/template/tog/images/download.gif" alt="DL" title="{.!lv_downloadTitle.}"/></a></div>
</td>
</tr>

for example a part of the code from "original" template (line 228)
[file=folder=link]
  <tr><td>
  {.if|{.get|can delete.}{.and|{.get|can access.}|{.get|can archive item.}.}| <input type='checkbox' name='selection' value="%item-url%"> .}
  {.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
  {.if not|{.get|can access.}|<img src='/~img_lock'>.}
  <a href="{.if|{.%item-ext%=pdb.}|ereader://%host%%url%.}%item-url%"><img src="%item-icon%"> %item-name%</a>
  {.if| {.?search.} |{:<div class='item-folder'>{.!item folder.} {.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}:} .}
  {.if| %item-comment% | <div class='comment'>%item-comment%</div> .}

[+file]
...

3
HFS ~ HTTP File Server / Re: Custom Download Link Possible?
« on: May 10, 2009, 01:48:45 AM »
hi Keeper,

you can edit your template and add ereader:// like this

<a href="{.if|{.%item-ext%=pdb.}|ereader://.}%item-url%" {.$target.}>%item-name%{.if|{.get|is new.}|&nbsp;-&nbsp;<b class="new">{.!lv_new.}</b>.}</a>

this will replace http:// to ereader:// if the file extension is *.pdb

4
HFS ~ HTTP File Server / Re: How about SSL support
« on: May 09, 2009, 03:14:27 PM »
to run hfs on port 80 and 443 with stunnel i have this settings.

hfs run on port 8082

stunnel forward port 80 to 8082
stunnel forward port 443 to 8082

your router forward 80 to 80
your router forward 443 to 443

5
RAWR-Designs / Re: HFS runs templates only on desktop directory
« on: January 06, 2009, 04:13:26 PM »
Hmmm, I still can't get it to work.  I've posted the link so you can see how it's loading up.



your link did not work.
make a screenshot.

6
RAWR-Designs / Re: HFS runs templates only on desktop directory
« on: December 29, 2008, 04:06:26 PM »
I'm having the same problem aquaknox had and I'm a complete nub and have no idea how to do what he did to fix it.  Can some one spell it out for me please?

try to delete in HFS (program) the folder "template" and load the template again
or right click on folder template (in HFS) -> "edit resource" and set the path to the template folder

7
RAWR-Designs / Re: Thunderchicken of Glory with delete function
« on: December 29, 2008, 03:45:24 PM »
hello, sorry for absence...

did you extract the zip in the root of HFS?

-root of HFS
-hfs.exe
-hfs.ini
-thunderchicken_of_glory-4.0.1_mod.tpl
--template
---tog
----code
----images
----languages
----players
----shoutbox

and

try to delete in HFS the folder "template" and load the template again
or right click on folder (in HFS) -> "edit resource" and set the path to the template folder

8
RAWR-Designs / Re: Thunderchicken of Glory with delete function
« on: December 13, 2008, 08:52:15 AM »
you have to try it ;-)

try the latest beta and than try upload files larger than 15mb. if problem is still existing, discuss it in the beta board.

9
RAWR-Designs / Re: Thunderchicken of Glory with delete function
« on: December 11, 2008, 03:26:37 PM »
yes, with this function you can delete files or folder from your site.
you'll need HFS 2.3 beta -> http://www.rejetto.com/forum/index.php?board=33.0
the delete function is implemented since build #173 -> http://www.rejetto.com/forum/index.php?topic=5532.0
if you get the latest beta, you have to set the permissions on files or folder for user accounts

now i saw that FRENCH CAN CAN has aleady added the delete function to this template... i was blind  :-\
http://www.rejetto.com/forum/index.php?topic=6355.0

now are all languages translated and i fixed some esthetic in the template (see attachment in my fist post). thanks to FRENCH CAN CAN

10
RAWR-Designs / Thunderchicken of Glory with delete function
« on: December 10, 2008, 10:19:38 PM »
hello,

at first i would like to say thanks to rejetto for his wonderful tool and RAWR for their templates!

i use the tog template and i have modified it. see changes below.
the delete function is translated in english and german. other languages are in english.
feel free to use it.

+added: variable "servername" at [special:strings] to use in headline instead of "host"
+added: delete function
-fixed: Updater work now
-fixed: structure now in folder template/tog
-fixed: now it ist equal if use http:// or https://

EDIT:
-fixed: some esthetic in template
-fixed: delete function translated in all languages
greetz
raffdich

Simply drag and drop this over your template installation to install the delete function compatible with this build of the template.

To get the original template please download it using this link:


Pages: 1