From eabf6780895b8c4a9eb3d5702e6853c639ceabc1 Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Fri, 5 Jun 2009 18:06:09 +0000 Subject: [PATCH] Login site - hope it works this time git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@536 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/login/login/access-denied.php | 14 + site/login/login/auth.php | 10 + site/login/login/connect.php | 15 + site/login/login/downloads.php | 2 + site/login/login/features.php | 1 + site/login/login/index.php | 28 + site/login/login/libs/config.php | 6 + site/login/login/libs/login.js | 17 + site/login/login/libs/loginmodule.css | 34 + site/login/login/libs/menu.php | 12 + site/login/login/login-exec.php | 81 ++ site/login/login/login-failed.php | 14 + site/login/login/logout.php | 23 + site/login/login/member-index.php | 9 + site/login/login/member-profile.php | 8 + site/login/login/mysql.sql | 20 + site/login/login/news.xml | 6 + site/login/login/owiupdate.xml | 28 + site/login/login/payware.php | 4 + site/login/login/register-exec.php | 110 +++ site/login/login/register-form.php | 59 ++ site/login/login/register-success.php | 12 + site/login/login/register/captcha/LICENSE.txt | 458 +++++++++ site/login/login/register/captcha/README.txt | 57 ++ .../login/login/register/captcha/elephant.ttf | Bin 0 -> 51652 bytes .../login/register/captcha/example_form.php | 82 ++ .../register/captcha/gdfonts/automatic.gdf | Bin 0 -> 61196 bytes .../register/captcha/gdfonts/bubblebath.gdf | Bin 0 -> 67516 bytes .../register/captcha/gdfonts/caveman.gdf | Bin 0 -> 160540 bytes .../login/register/captcha/gdfonts/crass.gdf | Bin 0 -> 39691 bytes .../register/captcha/images/audio_icon.gif | Bin 0 -> 621 bytes .../login/register/captcha/images/refresh.gif | Bin 0 -> 865 bytes .../login/register/captcha/securimage.php | 932 ++++++++++++++++++ .../register/captcha/securimage_example.php | 6 + .../register/captcha/securimage_play.php | 16 + .../register/captcha/securimage_show.php | 9 + site/login/login/register/config.php | 6 + site/login/login/server_test.php | 3 + site/login/login/ticket.php | 3 + 39 files changed, 2085 insertions(+) create mode 100644 site/login/login/access-denied.php create mode 100644 site/login/login/auth.php create mode 100644 site/login/login/connect.php create mode 100644 site/login/login/downloads.php create mode 100644 site/login/login/features.php create mode 100644 site/login/login/index.php create mode 100644 site/login/login/libs/config.php create mode 100644 site/login/login/libs/login.js create mode 100644 site/login/login/libs/loginmodule.css create mode 100644 site/login/login/libs/menu.php create mode 100644 site/login/login/login-exec.php create mode 100644 site/login/login/login-failed.php create mode 100644 site/login/login/logout.php create mode 100644 site/login/login/member-index.php create mode 100644 site/login/login/member-profile.php create mode 100644 site/login/login/mysql.sql create mode 100644 site/login/login/news.xml create mode 100644 site/login/login/owiupdate.xml create mode 100644 site/login/login/payware.php create mode 100644 site/login/login/register-exec.php create mode 100644 site/login/login/register-form.php create mode 100644 site/login/login/register-success.php create mode 100644 site/login/login/register/captcha/LICENSE.txt create mode 100644 site/login/login/register/captcha/README.txt create mode 100644 site/login/login/register/captcha/elephant.ttf create mode 100644 site/login/login/register/captcha/example_form.php create mode 100644 site/login/login/register/captcha/gdfonts/automatic.gdf create mode 100644 site/login/login/register/captcha/gdfonts/bubblebath.gdf create mode 100644 site/login/login/register/captcha/gdfonts/caveman.gdf create mode 100644 site/login/login/register/captcha/gdfonts/crass.gdf create mode 100644 site/login/login/register/captcha/images/audio_icon.gif create mode 100644 site/login/login/register/captcha/images/refresh.gif create mode 100644 site/login/login/register/captcha/securimage.php create mode 100644 site/login/login/register/captcha/securimage_example.php create mode 100644 site/login/login/register/captcha/securimage_play.php create mode 100644 site/login/login/register/captcha/securimage_show.php create mode 100644 site/login/login/register/config.php create mode 100644 site/login/login/server_test.php create mode 100644 site/login/login/ticket.php diff --git a/site/login/login/access-denied.php b/site/login/login/access-denied.php new file mode 100644 index 00000000..10103ae7 --- /dev/null +++ b/site/login/login/access-denied.php @@ -0,0 +1,14 @@ + + + + +Access Denied + + + +

Access Denied

+

 

+

Access Denied!
+ You do not have access to this resource.

+ + diff --git a/site/login/login/auth.php b/site/login/login/auth.php new file mode 100644 index 00000000..d2c4e577 --- /dev/null +++ b/site/login/login/auth.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/site/login/login/connect.php b/site/login/login/connect.php new file mode 100644 index 00000000..d259b16d --- /dev/null +++ b/site/login/login/connect.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/site/login/login/downloads.php b/site/login/login/downloads.php new file mode 100644 index 00000000..ce09304d --- /dev/null +++ b/site/login/login/downloads.php @@ -0,0 +1,2 @@ + +

Get your copy of Mibew 1.6.1 at Download Here \ No newline at end of file diff --git a/site/login/login/features.php b/site/login/login/features.php new file mode 100644 index 00000000..9eba079e --- /dev/null +++ b/site/login/login/features.php @@ -0,0 +1 @@ +

Version 1.6.0 Released

We are pleased to announce the immediate availability of 1.6.0. This is a major release with new features and improvements.

* operator groups
* pre-chat survey
* statistics
* canned messages
* new operator console
\ No newline at end of file diff --git a/site/login/login/index.php b/site/login/login/index.php new file mode 100644 index 00000000..c0e249c3 --- /dev/null +++ b/site/login/login/index.php @@ -0,0 +1,28 @@ + + + + +Login Form + + + +

 

+
+ + + + + + + + + + + + + +
Login
Password
 
+

+
Not a Member? Click Here
+ + diff --git a/site/login/login/libs/config.php b/site/login/login/libs/config.php new file mode 100644 index 00000000..7a9bbf7c --- /dev/null +++ b/site/login/login/libs/config.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/site/login/login/libs/login.js b/site/login/login/libs/login.js new file mode 100644 index 00000000..e2c8b523 --- /dev/null +++ b/site/login/login/libs/login.js @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/site/login/login/libs/loginmodule.css b/site/login/login/libs/loginmodule.css new file mode 100644 index 00000000..e6e6d399 --- /dev/null +++ b/site/login/login/libs/loginmodule.css @@ -0,0 +1,34 @@ +body { + font: 11px Verdana, Arial, Helvetica, sans-serif; + color: #666666; + margin: 0px; + padding: 20px 10px 0px; +} +.textfield { + font-size: 11px; + color: #333333; + background: #F7F7F7; + border: 1px solid #CCCCCC; + padding-left: 1px; +} +h1 { + color: #99CC00; + margin: 0px 0px 5px; + padding: 0px 0px 3px; + font: bold 18px Verdana, Arial, Helvetica, sans-serif; + border-bottom: 1px dashed #E6E8ED; +} +a { + color: #2D3954; + font-size: 11px; +} +a:hover { + color: #99CC00; +} +.err { + color: #FF9900; +} +th { + font-weight: bold; + text-align: left; +} diff --git a/site/login/login/libs/menu.php b/site/login/login/libs/menu.php new file mode 100644 index 00000000..9d6f3fb8 --- /dev/null +++ b/site/login/login/libs/menu.php @@ -0,0 +1,12 @@ + + + + +Member's Page + + + +

Welcome

+My Profile |Payware| Downloads| Features | +Ticket Support |Logout +

\ No newline at end of file diff --git a/site/login/login/login-exec.php b/site/login/login/login-exec.php new file mode 100644 index 00000000..9b628813 --- /dev/null +++ b/site/login/login/login-exec.php @@ -0,0 +1,81 @@ + \ No newline at end of file diff --git a/site/login/login/login-failed.php b/site/login/login/login-failed.php new file mode 100644 index 00000000..606d2a4a --- /dev/null +++ b/site/login/login/login-failed.php @@ -0,0 +1,14 @@ + + + + +Login Failed + + + +

Login Failed

+

 

+

Login Failed!
+ Please check your username and password

+ + diff --git a/site/login/login/logout.php b/site/login/login/logout.php new file mode 100644 index 00000000..5bff72b5 --- /dev/null +++ b/site/login/login/logout.php @@ -0,0 +1,23 @@ + + + + + +Logged Out + + + +

Logout

+

 

+

You have been logged out.

+

Click here to Login

+ + diff --git a/site/login/login/member-index.php b/site/login/login/member-index.php new file mode 100644 index 00000000..f17a062f --- /dev/null +++ b/site/login/login/member-index.php @@ -0,0 +1,9 @@ + + +

This is a password protected area only accessible to members.

+

This is also where you can get the current news, downloads, and more!

+ + diff --git a/site/login/login/member-profile.php b/site/login/login/member-profile.php new file mode 100644 index 00000000..c22b167f --- /dev/null +++ b/site/login/login/member-profile.php @@ -0,0 +1,8 @@ + + +

Under Construction

+ + diff --git a/site/login/login/mysql.sql b/site/login/login/mysql.sql new file mode 100644 index 00000000..9f93447f --- /dev/null +++ b/site/login/login/mysql.sql @@ -0,0 +1,20 @@ +# +# Table structure for table 'members' +# + +CREATE TABLE `members` ( + `member_id` int(11) unsigned NOT NULL auto_increment, + `firstname` varchar(100) default NULL, + `lastname` varchar(100) default NULL, + `login` varchar(100) NOT NULL default '', + `passwd` varchar(32) NOT NULL default '', + PRIMARY KEY (`member_id`) +) TYPE=MyISAM; + + + +# +# Dumping data for table 'members' +# + +INSERT INTO `members` (`member_id`, `firstname`, `lastname`, `login`, `passwd`) VALUES("1", "Jatinder", "Thind", "phpsense", "ba018360fc26e0cc2e929b8e071f052d"); diff --git a/site/login/login/news.xml b/site/login/login/news.xml new file mode 100644 index 00000000..da276d87 --- /dev/null +++ b/site/login/login/news.xml @@ -0,0 +1,6 @@ +Open Web Messenger Forums +
+Visit our new forums page. +

+Open Web Messenger 1.5.1 Update +
Version 1.5.1 is released! Get your copy at Source Forge \ No newline at end of file diff --git a/site/login/login/owiupdate.xml b/site/login/login/owiupdate.xml new file mode 100644 index 00000000..10a782f5 --- /dev/null +++ b/site/login/login/owiupdate.xml @@ -0,0 +1,28 @@ + + + + Open Web Messenger + http://openwebim.org/webim.xml + Updates On WebIM + en + + Version 1.0 + + http://openwebim.org/owiupdate.html + + Wed, 09 Jan 2006 19:20:11 +0000 + + + + + + + Version 1.4 (5 bugs fixed; 2 new features) + + http://you.com/app/1.4.html + + Wed, 25 Dec 2005 12:20:11 +0000 + + + + \ No newline at end of file diff --git a/site/login/login/payware.php b/site/login/login/payware.php new file mode 100644 index 00000000..2b3dbc53 --- /dev/null +++ b/site/login/login/payware.php @@ -0,0 +1,4 @@ + + +

Mibew Hosting

+
This will be $50/month.
\ No newline at end of file diff --git a/site/login/login/register-exec.php b/site/login/login/register-exec.php new file mode 100644 index 00000000..3c58f7fd --- /dev/null +++ b/site/login/login/register-exec.php @@ -0,0 +1,110 @@ + 0) { + $errmsg_arr[] = 'Login ID already in use'; + $errflag = true; + } + @mysql_free_result($result); + } + else { + die("Query failed"); + } + } + + + //If there are input validations, redirect back to the registration form + if($errflag) { + $_SESSION['ERRMSG_ARR'] = $errmsg_arr; + session_write_close(); + header("location: register-form.php"); + exit(); + } + + //Create INSERT query + $qry = "INSERT INTO members(firstname, lastname, email, login, passwd) VALUES('$fname','$lname', '$email', '$login','".md5($_POST['password'])."')"; + $result = @mysql_query($qry); + + //Check whether the query was successful or not + if($result) { + header("location: register-success.php"); + exit(); + }else { + die("Query failed"); + } +?> \ No newline at end of file diff --git a/site/login/login/register-form.php b/site/login/login/register-form.php new file mode 100644 index 00000000..5d3bceb2 --- /dev/null +++ b/site/login/login/register-form.php @@ -0,0 +1,59 @@ + + + + + +Login Form + + + +0 ) { + echo '