[Asterisk-cvs] asterisk/contrib/scripts vmail.cgi,1.10,1.11

markster at lists.digium.com markster at lists.digium.com
Sun May 16 13:40:45 CDT 2004


Update of /usr/cvsroot/asterisk/contrib/scripts
In directory mongoose.digium.com:/tmp/cvs-serv4217/contrib/scripts

Modified Files:
	vmail.cgi 
Log Message:
Allow defining a default context (bug #1658)


Index: vmail.cgi
===================================================================
RCS file: /usr/cvsroot/asterisk/contrib/scripts/vmail.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- vmail.cgi	26 Apr 2004 12:41:42 -0000	1.10
+++ vmail.cgi	16 May 2004 17:52:24 -0000	1.11
@@ -15,6 +15,8 @@
 use Carp::Heavy;
 use CGI::Carp qw(fatalsToBrowser);
 
+$context=""; # Define here your by default context (so you dont need to put voicemail at context in the login
+
 @validfolders = ( "INBOX", "Old", "Work", "Family", "Friends", "Cust1", "Cust2", "Cust3", "Cust4", "Cust5" );
 
 %formats = (
@@ -38,7 +40,7 @@
 $astpath = "/_asterisk";
 
 $stdcontainerstart = "<table align=center width=600><tr><td>\n";
-$footer = "<hr><font size=-1><a href=\"http://www.asterisk.org\">The Asterisk Open Source PBX</a> Copyright 2002, <a href=\"http://www.digium.com\">Digium, Inc.</a></a>";
+$footer = "<hr><font size=-1><a href=\"http://www.asterisk.org\">The Asterisk Open Source PBX</a> Copyright 2004, <a href=\"http://www.digium.com\">Digium, Inc.</a></a>";
 $stdcontainerend = "</td></tr><tr><td align=right>$footer</td></tr></table>\n";
 
 sub login_screen() {
@@ -58,6 +60,7 @@
 <tr><td>Mailbox:</td><td><input type=text name="mailbox"></td></tr>
 <tr><td>Password:</td><td><input type=password name="password"></td></tr>
 <tr><td align=right colspan=2><input value="Login" type=submit></td></tr>
+<input type=hidden name="context" value="$context">
 </table>
 </FORM>
 $stdcontainerend




More information about the svn-commits mailing list