HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.


All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 23 Feb 2009 14:30 
Offline

Joined: 23 Feb 2009 14:19
Posts: 3
Hi to all,

this is my first post here :)

I've looked around but i haven't founded nothing about :\ There is a way to put variables into templates? I need to make templates with the same apparence for some packages (squidguard, havp, captive portal and so on). On HAVP i can't put variables but i need them because i have styles and images into the template and them reside on the webserver of the machine ... so i need to put the IP of the machine into variables because ip of machine change :\


Top
 Profile  
 
PostPosted: 23 Feb 2009 16:45 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Sorry not possible currently.. patches are welcome.


Top
 Profile  
 
PostPosted: 23 Feb 2009 19:41 
Offline

Joined: 23 Feb 2009 14:19
Posts: 3
there is an SVN repository for the havp source code?

is a problem implementing it using preg library?


Top
 Profile  
 
PostPosted: 23 Feb 2009 20:27 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
http://havp.cvs.sourceforge.net/havp/

I'm not sure what "variables" you exactly mean, but proxyhandler.cpp already has some simple substitutions..

SearchReplace( Response, "<!--message-->", message );
SearchReplace( Response, "<!--clientip-->", ToBrowser.GetIP() );
SearchReplace( Response, "<!--url-->", ToBrowser.GetCompleteRequest() );


Top
 Profile  
 
PostPosted: 23 Feb 2009 20:32 
Offline

Joined: 23 Feb 2009 14:19
Posts: 3
hege wrote:
http://havp.cvs.sourceforge.net/havp/

I'm not sure what "variables" you exactly mean, but proxyhandler.cpp already has some simple substitutions..

SearchReplace( Response, "<!--message-->", message );
SearchReplace( Response, "<!--clientip-->", ToBrowser.GetIP() );
SearchReplace( Response, "<!--url-->", ToBrowser.GetCompleteRequest() );


Ah, ok, i was looking exactly for these kinda of variable

Would be great let the "template" to be executed on request if #! is founded as first characters (after BOM eventually if file is in UTF-8). If i found sometime this weekend i'll look on how implement this (on non embedded systems this can be useful for generate content on the fly)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group