[ ispman-Patches-987421 ] Patch Squirrelmail for use with ispman
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
Patches item #987421, was opened at 2004-07-08 16:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308390&aid=987421&group_id=8390
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Manuel Bernhardt (prodigy7)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch Squirrelmail for use with ispman
Initial Comment:
Hi,
apply this patch and the pref file will generated with the
right email-address at the first login:
--- file_prefs.php.ORG 2004-07-08 18:53:33.845250336
+0200
+++ file_prefs.php 2004-07-08 18:50:31.853917224
+0200
@@ -214,6 +214,13 @@
logout_error( $errString, $errTitle );
exit;
}
+ $user=substr($username,0,strpos($username,"_"));
+ $domain=substr($username,strpos($username,"_")
+1,strrpos($username,"_")-strpos($username,"_")-1);
+ $ext=substr($username,strrpos($username,"_")
+1);
+
+ $handle = fopen($filename, "a");
+ fwrite
($handle, "email_address=$user@$domain.$ext\r\n");
+ fclose($handle);
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308390&aid=987421&group_id=8390
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com