mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-23 05:40:30 +03:00
fix demo
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@712 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
c64d4d3525
commit
8824ee3923
@ -1,5 +1,5 @@
|
|||||||
<li>
|
<li>
|
||||||
<h2><b>More</b></h2>
|
<h2><?php echo getlocal("submenu.title") ?></h2>
|
||||||
<ul id="submenu">
|
<ul id="submenu">
|
||||||
<li<?php echo $subpage == 'demo' ? ' class="active"' : '' ?>><a href="demo.php"><?php echo getlocal("menu.demo") ?></a></li>
|
<li<?php echo $subpage == 'demo' ? ' class="active"' : '' ?>><a href="demo.php"><?php echo getlocal("menu.demo") ?></a></li>
|
||||||
<li<?php echo $subpage == 'features' ? ' class="active"' : '' ?>><a href="features.php"><?php echo getlocal("menu.features") ?></a></li>
|
<li<?php echo $subpage == 'features' ? ' class="active"' : '' ?>><a href="features.php"><?php echo getlocal("menu.features") ?></a></li>
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
#legal {
|
|
||||||
clear: both;
|
|
||||||
line-height: 30px;
|
|
||||||
padding-top:10px;
|
|
||||||
text-align: center;
|
|
||||||
color: #375C69;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
#footer {
|
|
||||||
background: white url(footer.gif) bottom repeat-x;
|
|
||||||
font-size:11px;
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
min-height: 40px;
|
|
||||||
height:40px;
|
|
||||||
vertical-align:middle;
|
|
||||||
|
|
||||||
width:100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 162 B |
@ -1,64 +0,0 @@
|
|||||||
|
|
||||||
<form id="loginForm" name="loginForm" method="post" action=".php">
|
|
||||||
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<th>First Name </th>
|
|
||||||
<td><input name="fname" type="text" class="textfield" id="fname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Last Name </th>
|
|
||||||
<td><input name="lname" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>City </th>
|
|
||||||
<td><input name="city" type="text" class="textfield" id="city" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>State </th>
|
|
||||||
<td><input name="state" type="text" class="textfield" id="state" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Country </th>
|
|
||||||
<td><input name="country" type="text" class="textfield" id="country" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Phone </th>
|
|
||||||
<td><input name="phone" type="text" class="textfield" id="phone" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Email </th>
|
|
||||||
<td><input name="email" type="text" class="textfield" id="email" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th width="124">Login</th>
|
|
||||||
<td width="168"><input name="login" type="text" class="textfield" id="login" /></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th>Password</th>
|
|
||||||
<td><input name="password" type="text" class="textfield" id="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Confirm Password </th>
|
|
||||||
<td><input name="cpassword" type="text" class="textfield" id="cpassword" /></td>
|
|
||||||
</tr>
|
|
||||||
<div align="center" ><font color="red">Please click the PayPal button before you click submit!</font></div>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><input type="submit" name="Submit" value="Register" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div align="center" >Your username will follow http://host.mibew.com/. </div>
|
|
||||||
<div align="center" ><font color="red">If you have any questions, please don't fill this out. Post a ticket <a href="http://support.openwebim.org"> Click here </a></font> </div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
<form align="center" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
|
||||||
<input align="center" type="hidden" name="cmd" value="_s-xclick">
|
|
||||||
<input type="hidden" name="hosted_button_id" value="5951679">
|
|
||||||
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
|
||||||
<img align="center" alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
|
||||||
</form>
|
|
||||||
<link href="default.css" rel="stylesheet" type="text/css" />
|
|
||||||
<div id="footer">
|
|
||||||
<p id="legal"><a href="http://openwebim.org/" class="flink">Open Web Messenger</a> 1.6.1 | (c) 2009 openwebim.org</p>
|
|
||||||
</div>
|
|
@ -1,20 +0,0 @@
|
|||||||
#legal {
|
|
||||||
clear: both;
|
|
||||||
line-height: 30px;
|
|
||||||
padding-top:10px;
|
|
||||||
text-align: center;
|
|
||||||
color: #375C69;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
#footer {
|
|
||||||
background: white url(footer.gif) bottom repeat-x;
|
|
||||||
font-size:11px;
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
min-height: 40px;
|
|
||||||
height:40px;
|
|
||||||
vertical-align:middle;
|
|
||||||
|
|
||||||
width:100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 162 B |
@ -1,13 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Access Denied</title>
|
|
||||||
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p align="center"> </p>
|
|
||||||
<h1 align="center" class="err">Access Denied!<br />
|
|
||||||
You do not have access to this resource.</h4>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
//Start session
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
//Check whether the session variable SESS_MEMBER_ID is present or not
|
|
||||||
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
|
|
||||||
header("location: access-denied.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once('auth.php');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<p>Welcome to the admin panel. </p>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
//Start session
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
//Check whether the session variable SESS_MEMBER_ID is present or not
|
|
||||||
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
|
|
||||||
header("location: access-denied.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
// db info
|
|
||||||
$hostname="localhost";
|
|
||||||
$mysql_login="root";
|
|
||||||
$mysql_password="";
|
|
||||||
$database="mibew";
|
|
||||||
|
|
||||||
if (!($db = mysql_connect($hostname, $mysql_login , $mysql_password))){
|
|
||||||
die("Can't connect to mysql.");
|
|
||||||
}else{
|
|
||||||
if (!(mysql_select_db("$database",$db))) {
|
|
||||||
die("Can't connect to db.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,20 +0,0 @@
|
|||||||
#legal {
|
|
||||||
clear: both;
|
|
||||||
line-height: 30px;
|
|
||||||
padding-top:10px;
|
|
||||||
text-align: center;
|
|
||||||
color: #375C69;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
#footer {
|
|
||||||
background: white url(image/footer.gif) bottom repeat-x;
|
|
||||||
font-size:11px;
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
min-height: 40px;
|
|
||||||
height:40px;
|
|
||||||
vertical-align:middle;
|
|
||||||
|
|
||||||
width:100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
<? require('libs/menu.php'); ?>
|
|
||||||
<p>Get your copy of Mibew 1.6.1 at <b > <a href="http://sourceforge.net/project/showfiles.php?group_id=195701&package_id=231073">Download Here</a></p>
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
@ -1 +0,0 @@
|
|||||||
<? require('libs/menu.php'); ?>
<p> </p>
<b><font color="#99CC00">Version 1.6.1 Released</font></b></p>
<p>We are pleased to announce the immediate availability of 1.6.1. This is a major release with new features and improvements.</p>
<p><dd>[!] 404 installation problem</dd><p></p>
<dd>new permission: "Ability to modify profile"</dd><p></p>
<dd>new project name: Mibew Messenger </dd><p></p>
<dd>[!] fixed localization of dates for all languages, nice formatting: Today/Yesterday</dd><p></p>
<dd>[!] fixed online/offline image for groups</dd><p></p>
<dd>ability to delete operators, confirmation dialog when deleting group/operator/blocked address </dd><p></p>
<dd>Information about last activity for operators: Online, Today at 22, 01 Jan.., or Never </dd><p></p>
<dd>new theme: simplicity (by Sheldmandu) </dd><p></p>
<dd>[!] chat templates are fixed according to html standards </dd><p></p>
<b><font color="#99CC00">Version 1.6.0 Released</font></b></p>
<p>We are pleased to announce the immediate availability of 1.6.0. This is a major release with new features and improvements.</p>
<dl>
<dd>* operator groups</dd>
<dd>* pre-chat survey</dd>
<dd>* statistics</dd>
<dd>* canned messages</dd>
<dd>* new operator console</dd>
<? include('libs/footer.php'); ?>
|
|
Binary file not shown.
Before Width: | Height: | Size: 162 B |
@ -1,28 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Login Form</title>
|
|
||||||
<link href="libs/loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p> </p>
|
|
||||||
<form id="loginForm" name="loginForm" method="post" action="login-exec.php">
|
|
||||||
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<td width="112"><b>Login</b></td>
|
|
||||||
<td width="188"><input name="login" type="text" class="textfield" id="login" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><b>Password</b></td>
|
|
||||||
<td><input name="password" type="password" class="textfield" id="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><input type="submit" name="Submit" value="Login" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form><p></p>
|
|
||||||
<div align="center"></font>Not a Member? <a href="register-form.php">Click Here</a></div>
|
|
||||||
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
define('DB_HOST', 'localhost');
|
|
||||||
define('DB_USER', 'root');
|
|
||||||
define('DB_PASSWORD', '');
|
|
||||||
define('DB_DATABASE', 'mibew');
|
|
||||||
//Maynot be needed it is deleteable, not sure if it's needed for profile page.
|
|
||||||
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
|
|
||||||
$db = mysql_select_db(DB_DATABASE);
|
|
||||||
$result = mysql_query("SELECT * FROM members") or die(mysql_error());
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
<link href="default.css" rel="stylesheet" type="text/css" />
|
|
||||||
<div id="footer">
|
|
||||||
<p id="legal"><a href="http://mibew.com/" class="flink">Open Web Messenger</a> 1.6.1 | (c) 2009 openwebim.org</p>
|
|
||||||
</div>
|
|
@ -1,17 +0,0 @@
|
|||||||
<!-- Begin
|
|
||||||
|
|
||||||
function Login(form) {
|
|
||||||
username = new Array("u1","u2","u3","u4","u5","u6","u7","u8","u9","u10");
|
|
||||||
password = new Array("p1","p2","p3","p4","p5","p6","p7","p8","p9","p10");
|
|
||||||
page = "secretpage" + ".html";
|
|
||||||
if (form.username.value == username[0] && form.password.value == password[0] || form.username.value == username[1] && form.password.value == password[1] || form.username.value == username[2] && form.password.value == password[2] || form.username.value == username[3] && form.password.value == password[3] || form.username.value == username[4] && form.password.value == password[4] || form.username.value == username[5] && form.password.value == password[5] || form.username.value == username[6] && form.password.value == password[6] || form.username.value == username[7] && form.password.value == password[7] || form.username.value == username[8] && form.password.value == password[8] || form.username.value == username[9] && form.password.value == password[9]) {
|
|
||||||
self.location.href = page;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert("Either the username or password you entered is incorrect.\nPlease try again.");
|
|
||||||
form.username.focus();
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// End -->
|
|
@ -1,34 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Member's Page</title>
|
|
||||||
<link href="libs/loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Welcome </h1>
|
|
||||||
<a href="member-profile.php">My Profile</a> |<a href="payware.php">Payware</a>| <a href="downloads.php">Downloads</a>| <a href="features.php">Features</a> |
|
|
||||||
<a href="ticket.php">Ticket Support</a> |<a href="logout.php">Logout</a>
|
|
||||||
<p></p>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?php
|
|
||||||
//Start session
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
//Include database connection details
|
|
||||||
require_once('libs/config.php');
|
|
||||||
|
|
||||||
//Array to store validation errors
|
|
||||||
$errmsg_arr = array();
|
|
||||||
|
|
||||||
//Validation error flag
|
|
||||||
$errflag = false;
|
|
||||||
|
|
||||||
//Connect to mysql server
|
|
||||||
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
|
|
||||||
if(!$link) {
|
|
||||||
die('Failed to connect to server: ' . mysql_error());
|
|
||||||
}
|
|
||||||
|
|
||||||
//Select database
|
|
||||||
$db = mysql_select_db(DB_DATABASE);
|
|
||||||
if(!$db) {
|
|
||||||
die("Unable to select database");
|
|
||||||
}
|
|
||||||
|
|
||||||
//Function to sanitize values received from the form. Prevents SQL injection
|
|
||||||
function clean($str) {
|
|
||||||
$str = @trim($str);
|
|
||||||
if(get_magic_quotes_gpc()) {
|
|
||||||
$str = stripslashes($str);
|
|
||||||
}
|
|
||||||
return mysql_real_escape_string($str);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Sanitize the POST values
|
|
||||||
$login = clean($_POST['login']);
|
|
||||||
$password = clean($_POST['password']);
|
|
||||||
|
|
||||||
//Input Validations
|
|
||||||
if($login == '') {
|
|
||||||
$errmsg_arr[] = 'Login ID is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($password == '') {
|
|
||||||
$errmsg_arr[] = 'Password is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//If there are input validations, redirect back to the login form
|
|
||||||
if($errflag) {
|
|
||||||
$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
|
|
||||||
session_write_close();
|
|
||||||
header("location: member-index.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
//Create query
|
|
||||||
$qry="SELECT * FROM members WHERE login='$login' AND passwd='".md5($_POST['password'])."'";
|
|
||||||
$result=mysql_query($qry);
|
|
||||||
|
|
||||||
//Check whether the query was successful or not
|
|
||||||
if($result) {
|
|
||||||
if(mysql_num_rows($result) == 1) {
|
|
||||||
//Login Successful
|
|
||||||
session_regenerate_id();
|
|
||||||
$member = mysql_fetch_assoc($result);
|
|
||||||
$_SESSION['SESS_MEMBER_ID'] = $member['member_id'];
|
|
||||||
$_SESSION['SESS_FIRST_NAME'] = $member['firstname'];
|
|
||||||
$_SESSION['SESS_LAST_NAME'] = $member['lastname'];
|
|
||||||
session_write_close();
|
|
||||||
header("location: member-index.php");
|
|
||||||
exit();
|
|
||||||
}else {
|
|
||||||
//Login failed
|
|
||||||
header("location: login-failed.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
die("Query failed");
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Login Failed</title>
|
|
||||||
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Login Failed </h1>
|
|
||||||
<p align="center"> </p>
|
|
||||||
<h4 align="center" class="err">Login Failed!<br />
|
|
||||||
Please check your username and password</h4>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
//Start session
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
//Unset the variables stored in session
|
|
||||||
unset($_SESSION['SESS_MEMBER_ID']);
|
|
||||||
unset($_SESSION['SESS_FIRST_NAME']);
|
|
||||||
unset($_SESSION['SESS_LAST_NAME']);
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Logged Out</title>
|
|
||||||
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Logout </h1>
|
|
||||||
<p align="center"> </p>
|
|
||||||
<h4 align="center" class="err">You have been logged out.</h4>
|
|
||||||
<p align="center">Click here to <a href="index.php">Login</a></p>
|
|
||||||
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once('auth.php');
|
|
||||||
require('libs/menu.php');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<p>This is a password protected area only accessible to members. </p>
|
|
||||||
<p>This is also where you can get the current news, downloads, and more!</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once('auth.php');
|
|
||||||
require('libs/menu.php');
|
|
||||||
require('libs/config.php')
|
|
||||||
?>
|
|
||||||
|
|
||||||
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<th>First Name </th>
|
|
||||||
<td><input name="fname" type="text" class="textfield" id="fname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Last Name </th>
|
|
||||||
<td><input name="lname" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>City </th>
|
|
||||||
<td><input name="city" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr><tr>
|
|
||||||
<th>State </th>
|
|
||||||
<td><input name="state" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr><tr>
|
|
||||||
<th>Country </th>
|
|
||||||
<td><input name="country" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr><tr>
|
|
||||||
<th>Email </th>
|
|
||||||
<td><input name="email" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr>
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# 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,
|
|
||||||
`email` varchar(100) default NULL,
|
|
||||||
`city` varchar(100) default NULL,
|
|
||||||
`state` varchar(100) default NULL,
|
|
||||||
`country` varchar(100) default NULL,
|
|
||||||
`phone` varchar(100) default NULL,
|
|
||||||
`login` varchar(100) NOT NULL default '',
|
|
||||||
`passwd` varchar(32) NOT NULL default '',
|
|
||||||
PRIMARY KEY (`member_id`)
|
|
||||||
) TYPE=MyISAM;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
<? require('libs/menu.php'); ?>
|
|
||||||
|
|
||||||
<p>Mibew Hosting</p>
|
|
||||||
<dd>This will be $50/month.</dd>
|
|
||||||
<p>
|
|
@ -1,134 +0,0 @@
|
|||||||
<?php
|
|
||||||
//Start session
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
//Include database connection details
|
|
||||||
require_once('libs/config.php');
|
|
||||||
|
|
||||||
//Array to store validation errors
|
|
||||||
$errmsg_arr = array();
|
|
||||||
|
|
||||||
//Validation error flag
|
|
||||||
$errflag = false;
|
|
||||||
|
|
||||||
//Connect to mysql server
|
|
||||||
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
|
|
||||||
if(!$link) {
|
|
||||||
die('Failed to connect to server: ' . mysql_error());
|
|
||||||
}
|
|
||||||
|
|
||||||
//Select database
|
|
||||||
$db = mysql_select_db(DB_DATABASE);
|
|
||||||
if(!$db) {
|
|
||||||
die("Unable to select database");
|
|
||||||
}
|
|
||||||
|
|
||||||
//Function to sanitize values received from the form. Prevents SQL injection
|
|
||||||
function clean($str) {
|
|
||||||
$str = @trim($str);
|
|
||||||
if(get_magic_quotes_gpc()) {
|
|
||||||
$str = stripslashes($str);
|
|
||||||
}
|
|
||||||
return mysql_real_escape_string($str);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Sanitize the POST values
|
|
||||||
$fname = clean($_POST['fname']);
|
|
||||||
$lname = clean($_POST['lname']);
|
|
||||||
$city = clean($_POST['city']);
|
|
||||||
$state = clean($_POST['state']);
|
|
||||||
$country = clean($_POST['country']);
|
|
||||||
$phone = clean($_POST['phone']);
|
|
||||||
$email = clean($_POST['email']);
|
|
||||||
$login = clean($_POST['login']);
|
|
||||||
$password = clean($_POST['password']);
|
|
||||||
$cpassword = clean($_POST['cpassword']);
|
|
||||||
|
|
||||||
//Input Validations
|
|
||||||
if($fname == '') {
|
|
||||||
$errmsg_arr[] = 'First name is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($lname == '') {
|
|
||||||
$errmsg_arr[] = 'Last name is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($city == '') {
|
|
||||||
$errmsg_arr[] = 'City is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($state == '') {
|
|
||||||
$errmsg_arr[] = 'State is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($country == '') {
|
|
||||||
$errmsg_arr[] = 'Country is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($phone == '') {
|
|
||||||
$errmsg_arr[] = 'Phone is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($phone == '000-000-0000') {
|
|
||||||
$errmsg_arr[] = 'Phone is invalid';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($email == '') {
|
|
||||||
$errmsg_arr[] = 'Email is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($login == '') {
|
|
||||||
$errmsg_arr[] = 'Login ID is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($password == '') {
|
|
||||||
$errmsg_arr[] = 'Password is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if($cpassword == '') {
|
|
||||||
$errmsg_arr[] = 'Confirm password is missing';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
if( strcmp($password, $cpassword) != 0 ) {
|
|
||||||
$errmsg_arr[] = 'Passwords do not match';
|
|
||||||
$errflag = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Check for duplicate login ID
|
|
||||||
if($login != '') {
|
|
||||||
$qry = "SELECT * FROM members WHERE login='$login'";
|
|
||||||
$result = mysql_query($qry);
|
|
||||||
if($result) {
|
|
||||||
if(mysql_num_rows($result) > 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, city, state, country, phone, email, login, passwd) VALUES('$fname','$lname', '$city','$state', '$country', '$phone', '$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");
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,77 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Login Form</title>
|
|
||||||
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<?php
|
|
||||||
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
|
|
||||||
echo '<ul class="err">';
|
|
||||||
foreach($_SESSION['ERRMSG_ARR'] as $msg) { ?>
|
|
||||||
<div align="center" ><font color="red" <? echo '<li>',$msg,'</li>'; ?> </div> </font> <?
|
|
||||||
}
|
|
||||||
echo '</ul>';
|
|
||||||
unset($_SESSION['ERRMSG_ARR']);
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<? include('libs/footer.php'); ?>
|
|
||||||
|
|
||||||
<form id="loginForm" name="loginForm" method="post" action="register-exec.php">
|
|
||||||
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<th>First Name </th>
|
|
||||||
<td><input name="fname" type="text" class="textfield" id="fname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Last Name </th>
|
|
||||||
<td><input name="lname" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>City </th>
|
|
||||||
<td><input name="city" type="text" class="textfield" id="city" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>State </th>
|
|
||||||
<td><input name="state" type="text" class="textfield" id="state" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Country </th>
|
|
||||||
<td><input name="country" type="text" class="textfield" id="country" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Phone </th>
|
|
||||||
<td><input name="phone" type="text" class="textfield" id="phone" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Email </th>
|
|
||||||
<td><input name="email" type="text" class="textfield" id="email" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th width="124">Login</th>
|
|
||||||
<td width="168"><input name="login" type="text" class="textfield" id="login" /></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th>Password</th>
|
|
||||||
<td><input name="password" type="password" class="textfield" id="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Confirm Password </th>
|
|
||||||
<td><input name="cpassword" type="password" class="textfield" id="cpassword" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><input type="submit" name="Submit" value="Register" /></td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
||||||
<title>Registration Successful</title>
|
|
||||||
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div align="center"><b><font color="#99CC00"> Registration Successful</font></b></div>
|
|
||||||
<div align="center"><p><a align="center" href="index.php">Click here</a> to login to your account.</p></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,3 +0,0 @@
|
|||||||
<?
|
|
||||||
require('libs/menu.php'); ?>
|
|
||||||
<iframe ORDER=0 FRAMEBORDER=0 FRAMESPACING=0 src="http://support.openwebim.org" width=100% height=100% style="border:0"></iframe>
|
|
@ -1,10 +0,0 @@
|
|||||||
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.tab-size=8
|
|
||||||
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width=80
|
|
||||||
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=default
|
|
||||||
include.path=\
|
|
||||||
${php.global.include.path}
|
|
||||||
source.encoding=UTF-8
|
|
||||||
src.dir=.
|
|
||||||
tags.asp=true
|
|
||||||
tags.short=true
|
|
||||||
web.root=.
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.php.project</type>
|
|
||||||
<configuration>
|
|
||||||
<data xmlns="http://www.netbeans.org/ns/php-project/1">
|
|
||||||
<name>mibewlogin</name>
|
|
||||||
</data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,64 +0,0 @@
|
|||||||
|
|
||||||
<form id="loginForm" name="loginForm" method="post" action=".php">
|
|
||||||
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<th>First Name </th>
|
|
||||||
<td><input name="fname" type="text" class="textfield" id="fname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Last Name </th>
|
|
||||||
<td><input name="lname" type="text" class="textfield" id="lname" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>City </th>
|
|
||||||
<td><input name="city" type="text" class="textfield" id="city" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>State </th>
|
|
||||||
<td><input name="state" type="text" class="textfield" id="state" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Country </th>
|
|
||||||
<td><input name="country" type="text" class="textfield" id="country" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Phone </th>
|
|
||||||
<td><input name="phone" type="text" class="textfield" id="phone" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Email </th>
|
|
||||||
<td><input name="email" type="text" class="textfield" id="email" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th width="124">Login</th>
|
|
||||||
<td width="168"><input name="login" type="text" class="textfield" id="login" /></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th>Password</th>
|
|
||||||
<td><input name="password" type="text" class="textfield" id="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Confirm Password </th>
|
|
||||||
<td><input name="cpassword" type="text" class="textfield" id="cpassword" /></td>
|
|
||||||
</tr>
|
|
||||||
<div align="center" ><font color="red">Please click the PayPal button before you click submit!</font></div>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><input type="submit" name="Submit" value="Register" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div align="center" >Your username will follow http://host.mibew.com/. </div>
|
|
||||||
<div align="center" ><font color="red">If you have any questions, please don't fill this out. Post a ticket <a href="http://support.openwebim.org"> Click here </a></font> </div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
<form align="center" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
|
||||||
<input align="center" type="hidden" name="cmd" value="_s-xclick">
|
|
||||||
<input type="hidden" name="hosted_button_id" value="5951679">
|
|
||||||
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
|
||||||
<img align="center" alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
|
||||||
</form>
|
|
||||||
<link href="default.css" rel="stylesheet" type="text/css" />
|
|
||||||
<div id="footer">
|
|
||||||
<p id="legal"><a href="http://openwebim.org/" class="flink">Open Web Messenger</a> 1.6.1 | (c) 2009 openwebim.org</p>
|
|
||||||
</div>
|
|
Loading…
Reference in New Issue
Block a user