![]() |
|---|
| [ Index ] |
Source Code Reference for V1.00 |
[Summary view] [Print] [Text view]
1 <?php /* $Id: createuser.php 102 2008-03-18 19:52:59Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/createuser.php $ */ 2 if (!defined('W2P_BASE_DIR')) { 3 die('You should not access this file directly'); 4 } 5 ?> 6 <script language="javascript"> 7 function submitIt(){ 8 var form = document.editFrm; 9 if (form.user_username.value.length < <?php echo w2PgetConfig('username_min_len'); ?>) { 10 alert("<?php echo $AppUI->_('Username size is invalid, should be greater than', UI_OUTPUT_JS); ?>" + ' ' + <?php echo w2PgetConfig('username_min_len'); ?>); 11 form.user_username.focus(); 12 } else if (form.user_password.value.length < <?php echo w2PgetConfig('password_min_len'); ?>) { 13 alert("<?php echo $AppUI->_('Password size is invalid, should be greater than', UI_OUTPUT_JS); ?>" + ' ' + <?php echo w2PgetConfig('password_min_len'); ?>); 14 form.user_password.focus(); 15 } else if (form.user_password.value != form.password_check.value) { 16 alert("<?php echo $AppUI->_('Password confirmation failed', UI_OUTPUT_JS); ?>"); 17 form.user_password.focus(); 18 } else if (form.contact_first_name.value.length < 1) { 19 alert("<?php echo $AppUI->_('First name is invalid', UI_OUTPUT_JS); ?>"); 20 form.contact_first_name.focus(); 21 } else if (form.contact_last_name.value.length < 1) { 22 alert("<?php echo $AppUI->_('Last name is invalid', UI_OUTPUT_JS); ?>"); 23 form.contact_last_name.focus(); 24 } else if (form.contact_email.value.length < 4) { 25 alert("<?php echo $AppUI->_('Email is invalid', UI_OUTPUT_JS); ?>"); 26 form.contact_email.focus(); 27 } else if (form.spam_check.value.length < 1 ) { 28 alert("<?php echo $AppUI->_('Anti Spam Security is invalid', UI_OUTPUT_JS); ?>"); 29 } else { 30 form.submit(); 31 } 32 } 33 </script> 34 <table width="100%" cellspacing="0" cellpadding="0" border="0"> 35 <tbody><tr> 36 <td width="508"><a href="http://www.web2project.net"><img border="0" alt="web2Project Home" src="../style/<?php echo $uistyle; ?>/w2p_logo.jpg"/></a></td> 37 <td style="background: url(../style/<?php echo $uistyle; ?>/logo_bkgd.jpg)"> </td> 38 </tr> 39 </tbody> 40 </table> 41 <table width="100%" cellspacing="0" cellpadding="0" border="0"> 42 <tbody> 43 <tr> 44 <td valign="top" style="background: url(../style/<?php echo $uistyle; ?>/nav_shadow.jpg)" align="left"> 45 <img width="1" height="13" border="0" src="../style/<?php echo $uistyle; ?>/nav_shadow.jpg"/> 46 </td> 47 </tr> 48 </tbody> 49 </table> 50 51 <table align="center" border="0" width="75%" cellpadding="0" cellspacing="0" class=""> 52 <tr> 53 <td style="padding-top:10px;padding-bottom:10px;" align="left" valign="top" class="txt"><h1>Welcome to web2Project Installer!</h1> 54 This interface will guide you through the installation of web2Project on your server.<br /><br /> 55 Below you must provide the necessary information required to interact with the Database that you should have previously created.<br /> 56 Please check any Fatal Errors, which prevent the install process, and fix them before installing.<br /> 57 The Warnings section provides you information regarding portions of the product that may not work properly due to the lack of system capabilities. 58 </td> 59 </tr> 60 </table> 61 <form name="setupFrm" action="./do_setup.php" method="post"> 62 <input type="hidden" name="cid" value="<?php echo $cid ?>" /> 63 64 <table class="text" style="background-color:#FFFFFF;" align="center" border="0" width="75%" cellpadding="0" cellspacing="0"> 65 <tr> 66 <td class="item" align="center" colspan="3"><b>Database Connection Settings</b></td> 67 </tr> 68 <tr> 69 <td width="10"> </td> 70 <td> </td> 71 </tr> 72 <tr> 73 <td width="10"> </td> 74 <td>Database Server Type</td> 75 <td align="left"> 76 <select name="dbtype" size="1" style="width:227px;" class="text"> 77 <option value="mysql" selected="selected">MySQL</option> 78 </select> 79 </td> 80 </tr> 81 <tr> 82 <td width="10"> </td> 83 <td>Database Host Name</td> 84 <td align="left"><input class="text" maxlength="255" size="40" type="text" name="dbhost" value="<?php echo $w2Pconfig['dbhost']; ?>" title="The Name of the Host the Database Server is installed on" /></td> 85 </tr> 86 <tr> 87 <td width="10"> </td> 88 <td>Database Name</td> 89 <td align="left"><input class="text" maxlength="255" size="40" type="text" name="dbname" value="<?php echo $w2Pconfig['dbname']; ?>" title="The Name of the Database web2Project will use and/or install" /></td> 90 </tr> 91 <tr> 92 <td width="10"> </td> 93 <td>Database User Name</td> 94 <td align="left"><input class="text" maxlength="255" size="40" type="text" name="dbuser" value="<?php echo $w2Pconfig['dbuser']; ?>" title="The Database User that web2Project uses for Database Connection" /></td> 95 </tr> 96 <tr> 97 <td width="10"> </td> 98 <td>Database User Password</td> 99 <td align="left"><input class="text" maxlength="255" size="40" type="password" name="dbpass" value="<?php echo $w2Pconfig['dbpass']; ?>" title="The Password according to the above User." /></td> 100 </tr> 101 <tr> 102 <td width="10"> </td> 103 <td>Table Prefix</td> 104 <td align="left"><input class="text" maxlength="255" size="40" type="text" name="dbprefix" value="<?php echo $w2Pconfig['dbprefix']; ?>" title="Prefix to be used when naming web2Projects Database Tables" /></td> 105 </tr> 106 <tr> 107 <td width="10"> </td> 108 <td>Use Persistent Connection?</td> 109 <td align="left"><input type="checkbox" name="dbpersist" value="1" <?php echo ($w2Pconfig['dbpersist']==true) ? 'checked="checked"' : ''; ?> title="Use a persistent Connection to your Database Server." /></td> 110 </tr> 111 <tr> 112 <td width="10"> </td> 113 <td> </td> 114 </tr> 115 <tr> 116 <td width="10"> </td> 117 <td colspan="2" align="right"> 118 <input type="button" value="<?php echo $AppUI->_('Install!'); ?>" onclick="submitIt()" class="button" /> 119 </td> 120 </tr> 121 <tr> 122 <td width="10"> </td> 123 <td> </td> 124 </tr> 125 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Jul 17 03:00:04 2010 | Cross-referenced by PHPXref 0.7 |