diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-07-02 11:53:40 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-04-23 23:55:29 -0700 |
commit | 2f7688b1b21d92b406d60d09cdd8edcd7a99e842 (patch) | |
tree | e04534ffbf06424205b977abaee34ff4e9f42653 /ng_selfservice/index.php | |
parent | 7d26901e658bd61078f10c0713676f94375f3283 (diff) |
selfservice, TNG, RT#22193
Diffstat (limited to 'ng_selfservice/index.php')
-rw-r--r-- | ng_selfservice/index.php | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/ng_selfservice/index.php b/ng_selfservice/index.php new file mode 100644 index 000000000..ec5468666 --- /dev/null +++ b/ng_selfservice/index.php @@ -0,0 +1,89 @@ +<? + +require('freeside.class.php'); +$freeside = new FreesideSelfService(); + +$login_info = $freeside->login_info(); + +extract($login_info); + +$error = $_GET['error']; +if ( $error ) { + $username = $_GET['username']; + $domain = $_GET['domain']; +} + +?> +<? $title ='Login'; include('elements/header.php'); ?> +<? include('elements/error.php'); ?> + +<FORM ACTION="process_login.php" METHOD=POST> +<INPUT TYPE="hidden" NAME="session" VALUE="login"> + +<TABLE BGCOLOR="#c0c0c0" BORDER=0 CELLSPACING=2 CELLPADDING=0> + +<TR> + <TH ALIGN="right">Username </TH> + <TD> + <INPUT TYPE="text" NAME="username" VALUE="<? echo htmlspecialchars($username); ?>"><? if ( $single_domain ) { echo '@'.$single_domain; } ?> + </TD> +</TR> + +<? if ( $single_domain ) { ?> + + <INPUT TYPE="hidden" NAME="domain" VALUE="<? echo $single_domain ?>"> + +<? } else { ?> + + <TR> + <TH ALIGN="right">Domain </TH> + <TD> + <INPUT TYPE="text" NAME="domain" VALUE="<? echo htmlspecialchars($domain); ?>"> + </TD> + </TR> + +<? } ?> + +<TR> + <TH ALIGN="right">Password </TH> + <TD> + <INPUT TYPE="password" NAME="password"> + </TD> +</TR> +<TR> + <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Login"></TD> +</TR> +</TABLE> +</FORM> + +<? if ( $phone_login ) { ?> + + <B>OR</B><BR><BR> + + <FORM ACTION="process_login.php" METHOD=POST> + <INPUT TYPE="hidden" NAME="session" VALUE="login"> + <TABLE BGCOLOR="#c0c0c0" BORDER=0 CELLSPACING=2 CELLPADDING=0> + <TR> + <TH ALIGN="right">Phone number </TH> + <TD> + <INPUT TYPE="text" NAME="username" VALUE="<? echo htmlspecialchars($username) ?>"> + </TD> + </TR> + <INPUT TYPE="hidden" NAME="domain" VALUE="svc_phone"> + <TR> + <TH ALIGN="right">PIN </TH> + <TD> + <INPUT TYPE="password" NAME="password"> + </TD> + </TR> + <TR> + <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Login"></TD> + </TR> + </TABLE> + </FORM> + +<? } ?> + +<? include('elements/footer.php'); ?> + + |