looks like you might have it. Going to test it now and get back to you
Actually, dont delete the original header.html -poke in something like this: (new lines in red)
<html>
<head>
<title>cPanel Mail Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="$themebase/style.css">
<script language="JavaScript">
/* punch past webmaillogin and mail cpanel webmail utilities */
ref=document.referrer
dom=document.domain
logpage='http://' + dom + '/'
fwdpage='http://' + dom + ':2095/webmailforward.cgi'
agepage='http://' + dom + ':2095/webmailaging.cgi'
paspage='http://' + dom + ':2095/webmailpasswd.cgi'
vacpage='http://' + dom + ':2095/webmailautorespond.cgi'
boxpage='http://' + dom + ':2095/webmailboxtrapper.cgi'
if (ref == logpage)
window.location = 'http://' + dom + ':2095/horde/index.php'
if (ref == fwdpage)
window.location = 'http://' + dom + ':2095/horde/index.php'
if (ref == agepage)
window.location = 'http://' + dom + ':2095/horde/index.php'
if (ref == paspage)
window.location = 'http://' + dom + ':2095/horde/index.php'
if (ref == vacpage)
window.location = 'http://' + dom + ':2095/horde/index.php'
if (ref == boxpage)
window.location = 'http://' + dom + ':2095/horde/index.php'
<!--
function MM_swapImgRestore() { //v3.0
Those other checks are so you can plug support back into horde for the forwards, aging and such - I've got those all working now from the "my account" menu in horde.
I think the header.html might be called from some other places, so putting the referring page check in makes sure we're ok - all those if's are ugly - but it was quick and foolproof
Now, how did I get "my account" working?
First, enable the items in registry.php (vacation, forwards,passwd and make a new ones for boxtrapper and aging if you want them)
from here I'll just do vacation you can guess the others...
Now, make directories for ./horde/vacation and ./horde/vacation/config
in config, place a file called conf.xml
<?xml version="1.0"?>
<!-- $Horde: vacation/config/conf.xml,v 0.01 2007/01/18 18:05:58 jan Exp $ -->
<configuration>
</configuration>
in /vacation, make an index.php file containing:
<script type="text/javascript">
window.top.location="http://" + document.domain + ":2095/webmailautorespond.cgi"
</script>
now, if you want to keep it pretty, you can add themes/graphics vacation.png from the vacation distribution.
I had to break out of the frame because returning caused an extra sidebar - better to reload.
Passwd is a little buggy - it will give you the cpanel webmail login screen after changing because you fail the punch-through.
By the way - I included boxtrapper, and it should work, but I haven't installed it and am not sure it it will work.
OOps, almost forgot - of course, you have to edit ./horde/config/conf.php and make an admin, then add the new items using setup (they will have no options, just create the config files)
Also, there's something screwed up with the horde/js directory - none of the tabs in hordes setup screens work for me, I replaced the entire directory from a horde distribution and all is fine now.
make sure you setup horde to logout to
http://yourdomain.com/
I think we need a check in the login script to strip out "www." if its there, but I am tired
Now - I want to get user administration working from inside horde
