[Openfirst-cvscommit] members updateprofile.php,1.13,1.14
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-04-03 01:31:12
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22424/members Modified Files: updateprofile.php Log Message: <br> fixes. Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** updateprofile.php 25 Dec 2003 02:47:15 -0000 1.13 --- updateprofile.php 3 Apr 2005 01:30:56 -0000 1.14 *************** *** 53,57 **** if(isset($_POST["sendsmstestmessage"]) && $user->cellphonesms == true) { mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); ! echo("<br><br> A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); } --- 53,57 ---- if(isset($_POST["sendsmstestmessage"]) && $user->cellphonesms == true) { mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); ! echo("<br /><br /> A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); } *************** *** 78,88 **** if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { $query = ofirst_dbquery("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("<br><br>Password Changed. "); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("<br><br>The password and confirm password fields do not match."); } } $user = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='$user->user';")); ! echo("<br><font color='green'>Profile updated.</font>"); } ?> --- 78,88 ---- if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { $query = ofirst_dbquery("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("<br /><br />Password Changed. "); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("<br /><br />The password and confirm password fields do not match."); } } $user = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='$user->user';")); ! echo("<br /><font color='green'>Profile updated.</font>"); } ?> *************** *** 104,108 **** <td> Existing: ! <br><select name='division'> <?php $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); --- 104,108 ---- <td> Existing: ! <br /><select name='division'> <?php $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); *************** *** 114,119 **** ?> </select> ! <br> ! <br> <table width="75%"> <tr> --- 114,119 ---- ?> </select> ! <br /> ! <br /> <table width="75%"> <tr> *************** *** 121,127 **** </tr> <tr> ! <td>Division Name<br> ! <input type='text' name='ndivision' /> <br> ! Description of New Division <br> <input type='text' name='divisiondescription' /></td> </tr> </table> </td> --- 121,127 ---- </tr> <tr> ! <td>Division Name<br /> ! <input type='text' name='ndivision' /> <br /> ! Description of New Division <br /> <input type='text' name='divisiondescription' /></td> </tr> </table> </td> *************** *** 131,135 **** <tr><th>Cell Phone/Pager Information</th><td> Number (10 digit)<input type='text' value='<?php echo $user->cellphonenumber; ?>' name='cellphonenumber' maxlength='10'> ! <br>Carrier <select name='cellphonecarrier'> <?php --- 131,135 ---- <tr><th>Cell Phone/Pager Information</th><td> Number (10 digit)<input type='text' value='<?php echo $user->cellphonenumber; ?>' name='cellphonenumber' maxlength='10'> ! <br />Carrier <select name='cellphonecarrier'> <?php *************** *** 148,157 **** // Check user specified cell info if($user->cellphonesms == "1") { ! echo("</select><br><input type='checkbox' checked='checked' value='0' name='cellphonesms'>Device is SMS Enabled"); } else { ! echo("</select><br><input type='checkbox' value='0' name='cellphonesms'>Device is SMS Enabled"); } ?> ! <br><input type='checkbox' value='on' name='sendsmstestmessage'>Send a test SMS message to my device</td></tr> <tr> <th>ICQ Number</th><td><input type='text' name='icq' value='<?php echo $user->icq; ?>'></td> --- 148,157 ---- // Check user specified cell info if($user->cellphonesms == "1") { ! echo("</select><br /><input type='checkbox' checked='checked' value='0' name='cellphonesms'>Device is SMS Enabled"); } else { ! echo("</select><br /><input type='checkbox' value='0' name='cellphonesms'>Device is SMS Enabled"); } ?> ! <br /><input type='checkbox' value='on' name='sendsmstestmessage'>Send a test SMS message to my device</td></tr> <tr> <th>ICQ Number</th><td><input type='text' name='icq' value='<?php echo $user->icq; ?>'></td> |