Location: PHPKode > scripts > WebsiteMemberManager > members-section/setup.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WMM setup</title>
<style type="text/css">
<!--
BODY{font-size: 9pt; font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>

<link type="text/css" href="JQUERY/development-bundle/themes/custom-admin/jquery.ui.all.css" rel="stylesheet" />
<link type="text/css" href="JQUERY/development-bundle/themes/custom-admin/jquery.ui.base.css" rel="stylesheet" />
<link type="text/css" href="JQUERY/development-bundle/themes/custom-admin/jquery.ui.theme.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="JQUERY/development-bundle/plugins/jquery.validate.css" />

<script type="text/javascript" src="JQUERY/development-bundle/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.ui.tabs.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.ui.accordion.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.ui.button.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.core.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.clip.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.drop.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.fold.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.highlight.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.scale.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.slide.js"></script>
<script type="text/javascript" src="JQUERY/development-bundle/ui/jquery.effects.transfer.js"></script>

<body leftMargin="0" topMargin="0" marginwidth="0" marginheight="0">
<div style="width:98%;padding-left:1%;padding-right:1%;">
<div class="ui-tabs" align="center">
	<ul class="ui-tabs-nav ui-widget-header ui-corner-all" style="height:85px;">
	  <div class="ui-tabs ui-widget ui-widget-content ui-corner-all" style="width:170px;float:left;">
	  <a href="http://www.websitemembermanager.com/"><img
   src="images/wmm-logo-small.gif"
    alt="WMM - Your automated members area for your own website" width="165" height="75" border="0" /></a></div>
<br />
<div style="float:left; width:80%"><div align="center">
<form action="http://www.dwalker.co.uk/forum/search.php" method="post" id="search">
  <h2><em>WMM</em> setup</h2>
</form>
</div>
</div>	
</ul>
</div>
</div>

<br />

<div style="padding-left:10%">
<div id="layer" style="width:90%; padding-left:3%;" class="ui-widget-content ui-corner-all">

<script src="JQUERY/development-bundle/plugins/jquery.validate.js" type="text/javascript"></script>
<script src="JQUERY/development-bundle/plugins/jquery.validation.functions.js" type="text/javascript"></script>
<script>
	$(function() {
		$( "button, input:submit, a", ".button" ).button();
		$( "a", ".button" ).click(function() { return false; });
	});

            jQuery(function(){
            jQuery("#dbhost").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#dbdriver").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#dbport").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#dbname").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#dbuser").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#dbpass").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
            jQuery("#coname").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Can not be blank!"
                });
			jQuery("#admin_folder").validate({
                    expression: "if (VAL.match(/^[a-zA-Z0-9]*$/) && VAL && VAL!='admin') return true; else return false;",
                    message: "Can not be \"admin\" or blank, & must only include chars & numbers."
                });
			jQuery("#email").validate({
                    expression: "if (VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_\\-]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/)) return true; else return false;",               
                    message: "Email address invalid!"
                });
            });
</script>

<form action="setup.php" method="POST" NAME="I_F" align="center">
  <input type="hidden" name="install" value="1"><div align="center"><center>

<table width="1065" border="0" cellpadding="3" cellSpacing="0" bordercolor="#CCCCCC" bordercolordark="#CCCCCC">
<TBODY>
    <tr align="center">
      <td vAlign="top" align="center" bgcolor="#FFFFFF" width="178"><h3>Database Parameters</h3></td>
      <td align="left" >&nbsp;</td>
      <td align="left" >&nbsp;</td>
    </tr>
    <tr>
      <td align="left"><div align="right">
          <b>Database Host:</b></td>
      <td align="left"><input class="box" size="18" value="localhost" name="dbhost" id="dbhost" /></td>
      <td align="left">MySQL host address - leave as localhost if unsure </td>
    </tr>
    <tr>
      <td align="left"><div align="right">
          <b>Database Driver:</b></td>
      <td align="left"><input class="box" size="18" value="mysql" name="dbdriver" id="dbdriver" /></td>
      <td align="left">MySQL is currently the only database type supported<small> (feel free to try others but remember they are not supported)</small></td>
    </tr>
    <tr>
      <td align="left" width="178"><div align="right">
  <b>Database Port:</b></td>
      <td width="123" align="left">
        <input class="box" size="18" value="3306" name="dbport" id="dbport"></td>
      <td width="746" align="left">MySQL port - leave as 3306 if unsure </td>
    </tr>
    <tr align="center">
      <td width="178"><div align="right">
        <b>Database Name:</b></td>
      <td align="left"><input class="box" size="18" name="dbname" id="dbname" value=""></td>
      <td align="left">The database must already exist before installation</font> (please ask your webhost) </td>
    </tr>
    <tr align="center">
      <td width="178"><div align="right">
       <b>Database Username:</b></td>
      <td align="left"><input class="box" size="18" name="dbuser" id="dbuser" value=""></td>
      <td align="left">Username to access MySQL  (please ask your webhost) </td>
    </tr>
    <tr align="center">
      <td width="178"><div align="right">
     <b>Database Password:</b></td>
      <td align="left"><input class="box" type="password" size="18" value="" name="dbpass" id="dbpass"></td>
      <td align="left">Password to access MySQL (this will also used as the
      initial admin login password).</font></td>
    </tr>
</TBODY>
    <tr>
      <td vAlign="top" align="center"  width="178" bgcolor="#FFFFFF"><h3>Personalisation</h3></td>
      <td align="left" ></td>
      <td align="left" ></td>
    </tr>
    <tr>
      <td valign="top" align="right"><div align="right"><b>Your Company Name:</b></div></td>
      <td align="left"><input class="box" size="18" value="" name="coname" id="coname" /></td>
      <td align="left">This will be used to personalise the pages on your members
        area (can be changed later).</td>
    </tr>
    <tr>
      <td vAlign="top" align="right" width="178"><b>ADMIN folder name :</b></td>
      <td align="left"><input class="box" size="18" value="" name="admin_folder" id="admin_folder"></td>
      <td align="left">Folder name,  which will only be known to administrators. Use  something like: &quot;admin129&quot;, or something similar others can not guess. </td>
    </tr>
    <tr>
      <td vAlign="top" align="right" width="178"><div align="right"><b>Your email address:</b></div></td>
      <td align="left"><input class="box" size="18" value="" name="email" id="email"></td>
      <td align="left">Used as the admin login username, and as the initial admin contact email address.</font></td>
    </tr>
    <tr>
      <td vAlign="top" align="right" width="178"></td>
      <td align="right"><div class="button">
<button>Configure</button></div></td>
      <td align="left"><div class="button"><a href="#" onclick="location.href='./'">Cancel</a></div></td>
    </tr>
  </table>
  </center></div>
  
</div></div>  
<center>
 When the form is complete click the configure button. <br />
 <br />
If the details are entered correctly and a connection is made to your database the file: <strong>/members-section/php-lib/config.inc.php<br />
</strong>will be                          modified, and the following <strong>tables</strong> will be created:<br />
<textarea rows="10" cols="40">wmm_admin
wmm_blocked_ips
wmm_blocked_ranges
wmm_config
wmm_daily
wmm_failed_logins
wmm_failed_logins_ip_count
wmm_forgotten_password
wmm_jquery_themes
wmm_logged_in
wmm_logged_in_config
wmm_logins
wmm_members
wmm_paypal_config
wmm_paypal_items
wmm_paypal_subscriptions
wmm_phpbb_user_ids
</textarea>
</center>
<script>
var warning = true;
window.onbeforeunload = function() { 
  if (warning) {
    return "If you have entered details on this page and navigate away you will loose those details";
  }
}

$('form').submit(function() {
   window.onbeforeunload = null;
});
</script>

<br />
<div id="pageFooterOuter" style="width:100%;position:fixed;bottom:0;height:22px;">
<div class="ui-tabs" align="center">
<ul class="ui-tabs-nav ui-widget-header ui-corner-all"">
<div align="center"><a href="http://www.websitemembermanager.com/" target="_blank">WebsiteMemberManager</a> - developed by <a href="http://www.dwalker.co.uk/">DWalker.co.uk</a></body></html>
Return current item: WebsiteMemberManager