|
Revision 4518, 1.6 kB
(checked in by erijo, 2 years ago)
|
|
- Moved all converters to the converters subdir
- Removed hostname from the links in the menu (to work on mirrors)
- Added www.se.licq.org as a mirror
- svn:keywords and svn:executable removed from most files
- CVS to SVN and sf.net to trac changes
- Some other small changes
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | function printHeader() |
|---|
| 4 | { |
|---|
| 5 | echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\n" . |
|---|
| 6 | "\"http://www.w3.org/TR/REC-html40/loose.dtd\"><HTML>\n" . |
|---|
| 7 | "<HEAD>\n" . |
|---|
| 8 | "<meta name=\"description\" content=\"\" >\n" . |
|---|
| 9 | "<meta name=\"author\" content=\"Jon Keating\">\n" . |
|---|
| 10 | "<meta name=\"keywords\" content=\"\" >\n" . |
|---|
| 11 | "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n" . |
|---|
| 12 | "<TITLE>licqrms</TITLE>\n" . |
|---|
| 13 | "</HEAD>\n". |
|---|
| 14 | "<BODY>\n"; |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | function printFooter() |
|---|
| 18 | { |
|---|
| 19 | echo "\n</BODY></HTML>"; |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | $packet = ""; |
|---|
| 23 | $buf = ""; |
|---|
| 24 | |
|---|
| 25 | function readSocket($desc) |
|---|
| 26 | { |
|---|
| 27 | while (socket_recv($desc, $buf, 128) > 0) |
|---|
| 28 | { |
|---|
| 29 | echo $buf; |
|---|
| 30 | $packet = $packet + $buf; |
|---|
| 31 | } |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | function rmsLogin($uin, $passwd) |
|---|
| 35 | { |
|---|
| 36 | // Connect to the RMS server |
|---|
| 37 | $fp = fsockopen("127.0.0.1", 22); |
|---|
| 38 | if (!$fp) |
|---|
| 39 | echo "AFDS\n"; |
|---|
| 40 | else |
|---|
| 41 | echo "OK\n"; |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | while (!feof($fp)) { |
|---|
| 45 | echo fgets($fp, 18); |
|---|
| 46 | } |
|---|
| 47 | // Get the UIN prompt |
|---|
| 48 | //readSocket($socket); |
|---|
| 49 | |
|---|
| 50 | //echo $packet; |
|---|
| 51 | |
|---|
| 52 | close($fp); |
|---|
| 53 | } |
|---|
| 54 | |
|---|
| 55 | ?> |
|---|
| 56 | |
|---|
| 57 | <? |
|---|
| 58 | printHeader(); |
|---|
| 59 | |
|---|
| 60 | if (isset($_POST)) |
|---|
| 61 | { |
|---|
| 62 | $login_uin = $_POST["login_uin"]; |
|---|
| 63 | $login_password = $_POST["login_password"]; |
|---|
| 64 | |
|---|
| 65 | echo "Loggin in\n"; |
|---|
| 66 | |
|---|
| 67 | rmsLogin($login_uin, $login_password); |
|---|
| 68 | } |
|---|
| 69 | ?> |
|---|
| 70 | |
|---|
| 71 | <center> |
|---|
| 72 | <BR><BR><BR><BR><BR><BR> |
|---|
| 73 | <TABLE border=0><TR><TD align="center"> |
|---|
| 74 | <FORM method="POST"> |
|---|
| 75 | <DIV align="right"> |
|---|
| 76 | UIN: |
|---|
| 77 | <INPUT type="text" size=20 name="login_uin" value=""><BR><BR> |
|---|
| 78 | Password: |
|---|
| 79 | <INPUT type="password" size=20 name="login_password" value=""> |
|---|
| 80 | </DIV> |
|---|
| 81 | <BR><INPUT type="submit" name="submit" value="Login"> |
|---|
| 82 | </FORM> |
|---|
| 83 | </TD></TR></TABLE> |
|---|
| 84 | </CENTER> |
|---|
| 85 | |
|---|
| 86 | <? |
|---|
| 87 | printFooter() |
|---|
| 88 | ?> |
|---|