openfirst-cvscommit Mailing List for openFIRST (Page 64)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dav...@us...> - 2003-12-23 16:28:14
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv6206 Modified Files: gallery.php Log Message: New icons, and added column selection (depending on the $gallery_columns it sets columns wider or thiner. Index: gallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/gallery.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** gallery.php 13 Oct 2003 18:00:23 -0000 1.14 --- gallery.php 23 Dec 2003 16:28:10 -0000 1.15 *************** *** 31,34 **** --- 31,37 ---- include_once("admin/galleryglobals.php"); + // Set this variable to the number of rows you want to display the images with + $gallery_columns = 3; + // Retrieve gallery information $query = ofirst_dbquery("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); *************** *** 39,42 **** --- 42,48 ---- <table width="497"> <tr> + <th><?php echo $gallery->GalleryName; ?></th> + </tr> + <tr> <td><b>Description:</b> <?php echo $gallery->Description; ?></td> </tr> *************** *** 44,52 **** <br> <table width="450" border="0" align="center" cellpadding="5" cellspacing="0"> - <tr> - <th width="150"> </th> - <th width="150"><?php echo $gallery->GalleryName; ?></th> - <th width="150"> </th> - </tr> <?php --- 50,53 ---- *************** *** 78,82 **** // If the current loop if greater then three then create a new row and set value back to 1 ! if ($num > 3){ echo " </tr>\n <tr>\n"; $num = 1; --- 79,83 ---- // If the current loop if greater then three then create a new row and set value back to 1 ! if ($num > $gallery_columns){ echo " </tr>\n <tr>\n"; $num = 1; |
From: <xt...@us...> - 2003-12-23 16:23:02
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv5444 Modified Files: profile.php Log Message: Feature enhancements pertaining to MSN, fix erroneous alt tag information Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** profile.php 23 Nov 2003 23:26:49 -0000 1.22 --- profile.php 23 Dec 2003 16:22:59 -0000 1.23 *************** *** 88,95 **** echo "<td><a href='profile.php?id=$q->user'>$q->user</a></td>"; if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td><img src='email-none.png' alt='email available' /></td>"); } ! if($q->msn != "") { echo("<td><img src='msmsgs.png' alt='msn available' /></td>"); } else { echo("<td><img src='msmsgs-none.png' alt='email available' /></td>"); } ! if($q->icq != "" && $q->icq != "0") { echo("<td><img src='icq.png' alt='icq available' /></td>"); } else { echo("<td><img src='icq-none.png' alt='email available' /></td>"); } ! if($q->aim != "") { echo("<td><img src='aim.png' alt='aim available' /></td>"); } else { echo("<td><img src='aim-none.png' alt='email available' /></td>"); } ! if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='photo available' /></td>"); }else{ echo("<td><img src='photo-none.png' alt='email available' /></td>"); } echo("</tr>"); --- 88,95 ---- echo "<td><a href='profile.php?id=$q->user'>$q->user</a></td>"; if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td><img src='email-none.png' alt='email available' /></td>"); } ! if($q->msn != "") { echo("<td><img src='msmsgs.png' alt='MSN available' /></td>"); } else { echo("<td><img src='msmsgs-none.png' alt='MSN not available' /></td>"); } ! if($q->icq != "" && $q->icq != "0") { echo("<td><img src='icq.png' alt='ICQ available' /></td>"); } else { echo("<td><img src='icq-none.png' alt='ICQ not available' /></td>"); } ! if($q->aim != "") { echo("<td><img src='aim.png' alt='AIM available' /></td>"); } else { echo("<td><img src='aim-none.png' alt='AIM not available' /></td>"); } ! if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='Photo available' /></td>"); }else{ echo("<td><img src='photo-none.png' alt='Picture not available' /></td>"); } echo("</tr>"); *************** *** 200,206 **** // Check if MSN information is available if($q->msn == "") { ! echo("No MSN contact information provided"); ! } else { ! echo $q->msn; } ?> --- 200,206 ---- // Check if MSN information is available if($q->msn == "") { ! echo("No MSN contact information provided"); ! } else { ! echo "<a href='http://members.msn.com/$q->msn'>$q->msn</a> <a href=\"javascript:MsgrApp.LaunchIMUI('$q->msn');\">Send Message</a> <a href=\"javascript:MsgrApp.LaunchAddContactUI('$q->msn');\">Add to List</a>"; } ?> |
From: <xt...@us...> - 2003-12-23 15:55:22
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv32537 Modified Files: debug.php Log Message: Whoops, parse error ;_; Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/debug.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** debug.php 23 Dec 2003 15:53:00 -0000 1.3 --- debug.php 23 Dec 2003 15:55:19 -0000 1.4 *************** *** 40,44 **** $checksum = "md5_file not supported by PHP version."; } else { ! $checksum = md5_file($_SERVER["PATH_TRANSLATED"]) . } --- 40,44 ---- $checksum = "md5_file not supported by PHP version."; } else { ! $checksum = md5_file($_SERVER["PATH_TRANSLATED"]); } |
From: <xt...@us...> - 2003-12-23 15:53:04
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv31971 Modified Files: debug.php Log Message: Account for systems which do not have md5_file() Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/debug.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** debug.php 22 Dec 2003 16:55:35 -0000 1.2 --- debug.php 23 Dec 2003 15:53:00 -0000 1.3 *************** *** 36,39 **** --- 36,46 ---- function ofirst_error_handler($errno,$error,$file,$line) { global $dbasetype, $ostype, $sqlserver, $currentmodule, $user, $mailnotify, $mailfrom; + + if(! function_exists("md5_file")) { + $checksum = "md5_file not supported by PHP version."; + } else { + $checksum = md5_file($_SERVER["PATH_TRANSLATED"]) . + } + mail("ope...@li..., $mailnotify", "$currentmodule module - openFIRST Error", "PHP_SELF: " . $_SERVER["PHP_SELF"] . " *************** *** 41,45 **** HTTP Referer: " . $_SERVER["HTTP_REFERER"] . " Translated Path: " . $_SERVER["PATH_TRANSLATED"] . " ! MD5: " . md5_file($_SERVER["PATH_TRANSLATED"]) . " Datebase Type: $dbasetype Operating System: $ostype --- 48,52 ---- HTTP Referer: " . $_SERVER["HTTP_REFERER"] . " Translated Path: " . $_SERVER["PATH_TRANSLATED"] . " ! MD5: $checksum Datebase Type: $dbasetype Operating System: $ostype |
From: <dav...@us...> - 2003-12-23 15:37:27
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv29278 Modified Files: auth.php Log Message: Added forgot password to reset features. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** auth.php 22 Dec 2003 22:25:14 -0000 1.13 --- auth.php 23 Dec 2003 15:37:24 -0000 1.14 *************** *** 56,59 **** --- 56,60 ---- function showlogin () { + // Show a login form for the user. echo("<br><br><form action='". $_SERVER["PHP_SELF"] . "' method='post'>"); *************** *** 61,65 **** echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); } ! echo("<table width='27%'> <tr> <th width='36%'> </th> --- 62,66 ---- echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); } ! echo "<table width='200'> <tr> <th width='36%'> </th> *************** *** 77,85 **** <tr> <td> </td> ! <td><input type='submit' value='Login'>"); if(!isset($GLOBALS["pass_save_disabled"])){ ! echo(" <input type=checkbox name=savepass id=savepass value=1 checked><label for=savepass>Save Password</label>"); } echo("</td></tr> </table> </form><br><br>"); --- 78,87 ---- <tr> <td> </td> ! <td><input type='submit' value='Login'>"; if(!isset($GLOBALS["pass_save_disabled"])){ ! echo " <br><input type=checkbox name=savepass id=savepass value=1 checked><label for=savepass>Save Password</label>"; } echo("</td></tr> + <tr><td> </td><td><a href='/members/forgotten.php'>Forgot Password</a></td></tr> </table> </form><br><br>"); |
From: <xt...@us...> - 2003-12-23 15:19:51
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv24933 Modified Files: reset.php Added Files: forgotten.php Log Message: Add forgotten password functionality, and fix indenting/code style issues in reset.php --- NEW FILE: forgotten.php --- <?php /* * openFIRST.members - forgotten.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include system globals and headers include_once("../config/globals.php"); include_once($header); if(isset($_POST['reset'])) { $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_POST['email']."';"); $member = ofirst_dbfetch_object($member_query); if(ofirst_dbnum_rows($member_query) == 0) { echo "<br><br>There is no member registered with that e-mail address, try again!<br><br>"; } else { mt_srand(microtime() * 1000000); $authcode = (microtime()|mt_rand(1,mt_getrandmax())); ofirst_dbquery("UPDATE ofirst_members SET authcode = '".$authcode."' WHERE email = '".$_POST['email']."';"); mail($member->email, "$title Account Password Reset","Hello ".$member->firstname.",\n\nYou are receiving this email because either you or someone else has requested that your password for $home be reset. Your reset code is: ".$authcode."\n\nClick on the following link to visit the reset password page:\n$home$basepath/members/reset.php?code=$authcode&email=".$member->email."\n\nThank you!", "From: $mailfrom"); echo "<br><br>An e-mail with information on how to reset your account password has been sent to the specified address.<br> Check your e-mail account for this message and follow the instructions contained within it.<br><br>"; die(include_once($footer)); } } ?> <h1>Forgotten Password</h1> <form method="POST" action="forgotten.php"> <table width="40%"> <tr> <th>Reset Password</th> </tr> <tr> <td><div align="center">In order to reset your account we will need your e-mail address: <br> <br> <input name="email" type="text" id="email" size="30"> <input name="reset" type="submit" id="reset" value="Reset Password"> </div></td> </tr> </table> </form> <?php include_once($footer); ?> Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/members/reset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reset.php 23 Dec 2003 14:46:52 -0000 1.2 --- reset.php 23 Dec 2003 15:19:41 -0000 1.3 *************** *** 31,47 **** // Get password, encrypt and send to database ! if(isset($_POST['set'])){ ! $newpass = cryptpassword($_POST['pass'],$encryption); ! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>"; ! die(include_once($footer)); } ! if(isset($_GET['code'])){ ! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! $member = ofirst_dbfetch_object($member_query); ! if(ofirst_dbnum_rows($member_query) == 0){ ! echo "<br><br>There is no account with that information, sorry!<br><br>"; ! }else{ ?> <h1>Reset Password</h1> --- 31,47 ---- // Get password, encrypt and send to database ! if(isset($_POST['set'])) { ! $newpass = cryptpassword($_POST['pass'],$encryption); ! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>"; ! die(include_once($footer)); } ! if(isset($_GET['code'])) { ! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! $member = ofirst_dbfetch_object($member_query); ! if(ofirst_dbnum_rows($member_query) == 0){ ! echo "<br><br>There is no account with that information, sorry!<br><br>"; ! } else { ?> <h1>Reset Password</h1> *************** *** 61,64 **** <?php } ! } ! include_once($footer); ?> \ No newline at end of file --- 61,64 ---- <?php } ! } ! include_once($footer); ?> |
From: <xt...@us...> - 2003-12-23 14:55:28
|
Update of /cvsroot/openfirst/members/admin In directory sc8-pr-cvs1:/tmp/cvs-serv18319 Modified Files: editdivisions.php Log Message: Fix indenting issue which was overlooked the first time around. Index: editdivisions.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/editdivisions.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editdivisions.php 23 Dec 2003 14:48:30 -0000 1.2 --- editdivisions.php 23 Dec 2003 14:55:25 -0000 1.3 *************** *** 36,40 **** if(isset($_POST["newdivision"])) { ! $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( '" . $_POST["division"] . "', '" . $_POST["divisiondescription"] . "');"); --- 36,40 ---- if(isset($_POST["newdivision"])) { ! $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( '" . $_POST["division"] . "', '" . $_POST["divisiondescription"] . "');"); |
From: <xt...@us...> - 2003-12-23 14:51:33
|
Update of /cvsroot/openfirst/members/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv17606 Modified Files: admin.php Log Message: Repair admin.php which seems to have been broken in error by a previous commit. Index: admin.php =================================================================== RCS file: /cvsroot/openfirst/members/phpicalendar/admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin.php 21 Dec 2003 23:17:20 -0000 1.2 --- admin.php 23 Dec 2003 14:51:30 -0000 1.3 *************** *** 7,11 **** // Redirect if administration is not allowed. Now includes openFIRST modifications. ! if ($allow_admin != "yes" || isset($user->membertype) == false || $user->membertype != "administrator") {) { header("Location: index.php"); die(); --- 7,11 ---- // Redirect if administration is not allowed. Now includes openFIRST modifications. ! if ($allow_admin != "yes" || isset($user->membertype) == false || $user->membertype != "administrator") { header("Location: index.php"); die(); |
From: <xt...@us...> - 2003-12-23 14:48:33
|
Update of /cvsroot/openfirst/members/admin In directory sc8-pr-cvs1:/tmp/cvs-serv16911 Modified Files: editdivisions.php editmember.php index.php Log Message: Fix white space issues and indenting mistakes, also correct system design flaws. Index: editdivisions.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/editdivisions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** editdivisions.php 22 Dec 2003 23:10:08 -0000 1.1 --- editdivisions.php 23 Dec 2003 14:48:30 -0000 1.2 *************** *** 38,46 **** $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( '" . $_POST["division"] . "', ! '" . $_POST["divisiondescription"] . "');"); } if(isset($_GET["delete"])) { ! $q = ofirst_dbquery("DELETE FROM ofirst_divisions WHERE division = '" . $_GET["delete"] . "';"); } --- 38,46 ---- $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( '" . $_POST["division"] . "', ! '" . $_POST["divisiondescription"] . "');"); } if(isset($_GET["delete"])) { ! $q = ofirst_dbquery("DELETE FROM ofirst_divisions WHERE division = '" . $_GET["delete"] . "';"); } *************** *** 52,64 **** if(isset($_GET['update'])){ ! if(isset($_POST["update"])) { ! $q = ofirst_dbquery("UPDATE ofirst_divisions SET division = '".$_POST['updivision']."', ! description = '".$_POST['updescription']."' WHERE division = '" . $_GET["update"] . "';"); ! } ! $division_query = ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division = '".$_GET['update']."';"); ! $division = ofirst_dbfetch_object($division_query); ?> </p> --- 52,64 ---- if(isset($_GET['update'])){ ! if(isset($_POST["update"])) { ! $q = ofirst_dbquery("UPDATE ofirst_divisions SET division = '".$_POST['updivision']."', ! description = '".$_POST['updescription']."' WHERE division = '" . $_GET["update"] . "';"); ! } ! $division_query = ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division = '".$_GET['update']."';"); ! $division = ofirst_dbfetch_object($division_query); ?> </p> *************** *** 75,79 **** <tr> <td>Description </td> ! <td><textarea name="updescription" cols="40" rows="10" id="textarea2" value="<?php echo $division->description; ?>"><?php echo $division->description; ?></textarea></td> </tr> <tr> --- 75,79 ---- <tr> <td>Description </td> ! <td><textarea name="updescription" cols="40" rows="10" id="textarea2" value="<?php echo $division->description; ?>"><?php echo $division->description; ?></textarea></td> </tr> <tr> *************** *** 101,105 **** </tr> <?php ! } ?> </table> --- 101,105 ---- </tr> <?php ! } ?> </table> *************** *** 127,132 **** </table> </form> ! <p> ! <?php include_once($footer); ?> ! </p> ! <p> </p> --- 127,129 ---- </table> </form> ! <?php include_once($footer); ?> Index: editmember.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/editmember.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** editmember.php 22 Dec 2003 23:10:08 -0000 1.1 --- editmember.php 23 Dec 2003 14:48:30 -0000 1.2 *************** *** 52,70 **** $query = "UPDATE ofirst_members SET ! firstname='" . $_POST["firstname"] . "', ! lastname='" . $_POST["lastname"] . "', ! division='" . $_POST["division"] . "', ! year='" . $_POST["year"] . "', ! email='" . $_POST["email"] ."', ! icq='" . $_POST["icq"] . "', ! aim='" . $_POST["aim"] . "', ! msn='" . $_POST["msn"] . "', ! yim='" . $_POST["yim"] . "', ! signature='" . $_POST["signature"] . "', ! description='" . $_POST["description"] . "', ! picturelocation='" . $_POST["picturelocation"] . "', ! cellphonenumber='" . $_POST["cellphonenumber"] . "', ! cellphonecarrier='" . $_POST["cellphonecarrier"] . "', ! cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='".$_GET['user']."';"; $q = ofirst_dbquery($query); --- 52,70 ---- $query = "UPDATE ofirst_members SET ! firstname='" . $_POST["firstname"] . "', ! lastname='" . $_POST["lastname"] . "', ! division='" . $_POST["division"] . "', ! year='" . $_POST["year"] . "', ! email='" . $_POST["email"] ."', ! icq='" . $_POST["icq"] . "', ! aim='" . $_POST["aim"] . "', ! msn='" . $_POST["msn"] . "', ! yim='" . $_POST["yim"] . "', ! signature='" . $_POST["signature"] . "', ! description='" . $_POST["description"] . "', ! picturelocation='" . $_POST["picturelocation"] . "', ! cellphonenumber='" . $_POST["cellphonenumber"] . "', ! cellphonecarrier='" . $_POST["cellphonecarrier"] . "', ! cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='".$_GET['user']."';"; $q = ofirst_dbquery($query); *************** *** 98,111 **** <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> <tr><th>Division</th> ! <td> Existing: <br><select name='division'> ! <?php ! $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); while($d = ofirst_dbfetch_object($div)) { ! echo("<option value='$d->division'"); ! if($d->division == $user->division) { echo(" selected='selected'"); } ! echo(">$d->division</option>"); ! } ?> </select> --- 98,111 ---- <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> <tr><th>Division</th> ! <td> Existing: <br><select name='division'> ! <?php ! $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); while($d = ofirst_dbfetch_object($div)) { ! echo("<option value='$d->division'"); ! if($d->division == $user->division) { echo(" selected='selected'"); } ! echo(">$d->division</option>"); ! } ?> </select> *************** *** 128,136 **** Number (10 digit)<input type='text' value='<?php echo $user->cellphonenumber; ?>' name='cellphonenumber' maxlength='10'> <br>Carrier ! <select name='cellphonecarrier'> ! <?php ! // Populate cell phone carrier space ! $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); ! while($sms = ofirst_dbfetch_object($query)) { if(isset($user->smsaddress) == true && ($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); --- 128,136 ---- Number (10 digit)<input type='text' value='<?php echo $user->cellphonenumber; ?>' name='cellphonenumber' maxlength='10'> <br>Carrier ! <select name='cellphonecarrier'> ! <?php ! // Populate cell phone carrier space ! $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); ! while($sms = ofirst_dbfetch_object($query)) { if(isset($user->smsaddress) == true && ($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); *************** *** 139,146 **** } } ! ?> ! </select> <?php ! // 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"); --- 139,146 ---- } } ! ?> ! </select> <?php ! // 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"); *************** *** 177,185 **** <tr> <th>Picture Location</th> ! <td><input type='text' name='picturelocation' value='<?php echo $user->picturelocation; ?>'></td> </tr> <tr> <td> </td> ! <td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> </tr> </table> --- 177,185 ---- <tr> <th>Picture Location</th> ! <td><input type='text' name='picturelocation' value='<?php echo $user->picturelocation; ?>'></td> </tr> <tr> <td> </td> ! <td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> </tr> </table> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 22 Dec 2003 23:10:08 -0000 1.1 --- index.php 23 Dec 2003 14:48:30 -0000 1.2 *************** *** 59,63 **** <td><a href='/members/divisions.php?division=<?php echo $member->division; ?>'><?php echo $member->division; ?></a></td> <td> ! <a href='editmember.php?user=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/edit.png' border="0"></a> <a href='index.php?delete=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a> </td> --- 59,63 ---- <td><a href='/members/divisions.php?division=<?php echo $member->division; ?>'><?php echo $member->division; ?></a></td> <td> ! <a href='editmember.php?user=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/edit.png' border="0"></a> <a href='index.php?delete=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a> </td> *************** *** 65,67 **** <?php } ?> </table><br> ! <?php include_once($footer); ?> \ No newline at end of file --- 65,67 ---- <?php } ?> </table><br> ! <?php include_once($footer); ?> |
From: <dav...@us...> - 2003-12-23 14:46:55
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv16544 Modified Files: reset.php Log Message: Syntax fix. Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/members/reset.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** reset.php 22 Dec 2003 23:09:05 -0000 1.1 --- reset.php 23 Dec 2003 14:46:52 -0000 1.2 *************** *** 30,47 **** include_once($header); if(isset($_POST['set'])){ ! $newpass = cryptpassword($_POST['pass'],$encryption); ! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>"; die(include_once($footer)); } if(isset($_GET['code'])){ ! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! $member = ofirst_dbfetch_object($member_query); ! ! if(ofirst_dbnum_rows($member_query) == 0){ ! echo "<br><br>There is no account with that information, sorry!<br><br>"; ! }else{ ?> <h1>Reset Password</h1> --- 30,47 ---- include_once($header); + // Get password, encrypt and send to database if(isset($_POST['set'])){ ! $newpass = cryptpassword($_POST['pass'],$encryption); ! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>"; die(include_once($footer)); } if(isset($_GET['code'])){ ! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); ! $member = ofirst_dbfetch_object($member_query); ! if(ofirst_dbnum_rows($member_query) == 0){ ! echo "<br><br>There is no account with that information, sorry!<br><br>"; ! }else{ ?> <h1>Reset Password</h1> *************** *** 60,64 **** </form> <?php ! } } include_once($footer); ?> --- 60,64 ---- </form> <?php ! } } include_once($footer); ?> |
From: <xt...@us...> - 2003-12-23 14:41:27
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv15542 Modified Files: setup.mssql setup.mysql Log Message: Add new administrative features to the menu. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mssql,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** setup.mssql 8 Oct 2003 22:46:20 -0000 1.5 --- setup.mssql 23 Dec 2003 14:41:24 -0000 1.6 *************** *** 1,4 **** INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); DROP TABLE IF EXISTS ofirst_cellphonecarriers; --- 1,4 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/members/admin/">Manage Users</a> | <a href="$basepath/members/admin/editdivisions.php">Edit Divisions</a> | <a href="$basepath/members/admin/editmember.php">Edit Member</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); DROP TABLE IF EXISTS ofirst_cellphonecarriers; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mysql,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** setup.mysql 8 Oct 2003 22:46:20 -0000 1.14 --- setup.mysql 23 Dec 2003 14:41:24 -0000 1.15 *************** *** 1,4 **** INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); DROP TABLE IF EXISTS ofirst_cellphonecarriers; --- 1,4 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/members/admin/">Manage Users</a> | <a href="$basepath/members/admin/editdivisions.php">Edit Divisions</a> | <a href="$basepath/members/admin/editmember.php">Edit Member</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); DROP TABLE IF EXISTS ofirst_cellphonecarriers; |
From: <dav...@us...> - 2003-12-23 04:17:02
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv19176 Modified Files: viewmsg.php messenger.php index.php inbox.php Log Message: Graphical changes, making good use of members icon folders to spice up the design. Index: viewmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** viewmsg.php 2 Dec 2003 23:07:06 -0000 1.11 --- viewmsg.php 23 Dec 2003 04:16:58 -0000 1.12 *************** *** 47,51 **** <p>If this message contains profanity or abusive material then please contact the webmaster!</p> ! <table width="597"> <tr> <th width="127"> </th> --- 47,51 ---- <p>If this message contains profanity or abusive material then please contact the webmaster!</p> ! <table width="597" cellpadding="4"> <tr> <th width="127"> </th> *************** *** 53,57 **** </tr> <tr> ! <th>Sender</th> <td><a href='../members/profile.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); --- 53,57 ---- </tr> <tr> ! <td><div align="right">Sender</div></td> <td><a href='../members/profile.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); *************** *** 60,74 **** </tr> <tr> ! <th>Subject</th> ! <td><?php if(function_exists("slur_block")){ echo slur_block(emoticon_translate($msg->Subject)); }else{ echo $msg->Subject; } ?></td> </tr> <tr> ! <th>Body</th> ! <td><?php if(function_exists("slur_block")){ echo slur_block(emoticon_translate($msg->Body)); }else{ echo $msg->Body; } ?></td> </tr> </table> - <p>[ <a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'> Delete </a> ] [ - <a href="newmsg.php?RECIP=<?php echo $msg->Sender; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>">Reply</a> - ]</p> <?php include_once($footer); --- 60,80 ---- </tr> <tr> ! <td><div align="right">Subject</div></td> ! <td> ! <?php if(function_exists("slur_block")){ echo slur_block(emoticon_translate($msg->Subject)); }else{ echo $msg->Subject; } ?> ! </td> </tr> <tr> ! <td><div align="right">Body</div></td> ! <td> ! <?php if(function_exists("slur_block")){ echo slur_block(emoticon_translate($msg->Body)); }else{ echo $msg->Body; } ?> ! </td> ! </tr> ! <tr> ! <td> </td> ! <td><a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a> ! <a href="newmsg.php?RECIP=<?php echo $msg->Sender; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>"><img src='<?php echo $home.$basepath; ?>/members/icons/actions/mail_replay.png' border="0" alt="Reply"></a></td> </tr> </table> <?php include_once($footer); Index: messenger.php =================================================================== RCS file: /cvsroot/openfirst/messenger/messenger.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** messenger.php 22 Dec 2003 16:13:35 -0000 1.10 --- messenger.php 23 Dec 2003 04:16:58 -0000 1.11 *************** *** 99,103 **** <tr> <td height="25" style="background-color: #ffffff; color: #000000;" ! ><img src="<?php echo $basepath; ?>/messenger/msg.png" alt="New Message"> <br> <center>You have <b><?php echo $messages; ?></b> new Messages(s) in your visitor --- 99,103 ---- <tr> <td height="25" style="background-color: #ffffff; color: #000000;" ! ><img src="<?php echo $home.$basepath; ?>/members/icons/actions/mail_new.png" alt="New Message"> <br> <center>You have <b><?php echo $messages; ?></b> new Messages(s) in your visitor Index: index.php =================================================================== RCS file: /cvsroot/openfirst/messenger/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.php 6 Dec 2003 20:07:46 -0000 1.10 --- index.php 23 Dec 2003 04:16:58 -0000 1.11 *************** *** 50,54 **** ?> <tr> ! <td><img src="visitors.png" alt="Visitor"></td> <td><?php if ($userinf->Member == "none") { --- 50,54 ---- ?> <tr> ! <td><img src="<?php echo $home.$basepath; ?>/members/icons/actions/personal.png" alt="Visitor"></td> <td><?php if ($userinf->Member == "none") { Index: inbox.php =================================================================== RCS file: /cvsroot/openfirst/messenger/inbox.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** inbox.php 6 Dec 2003 20:07:46 -0000 1.11 --- inbox.php 23 Dec 2003 04:16:58 -0000 1.12 *************** *** 65,69 **** ?> <tr> ! <td><img src="msg.png" alt="Message"></td> <td><a href='viewmsg.php?ID=<?php echo $messages->ID; ?>'> <?php --- 65,69 ---- ?> <tr> ! <td><img src="<?php echo $home.$basepath; ?>/members/icons/actions/mail_new.png" alt="Message"></td> <td><a href='viewmsg.php?ID=<?php echo $messages->ID; ?>'> <?php |
From: <xt...@us...> - 2003-12-23 00:28:39
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv15960 Modified Files: stats.php Log Message: Remove error message by first checking if there is in fact a ['ID'] set. Index: stats.php =================================================================== RCS file: /cvsroot/openfirst/logger/stats.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** stats.php 22 Dec 2003 19:32:45 -0000 1.5 --- stats.php 23 Dec 2003 00:28:36 -0000 1.6 *************** *** 85,89 **** </tr> <tr> ! <td width="32"><a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/apps/kcalc.png" border="0"></a></td> <td width="286"><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage Graphs</a></b></td> --- 85,89 ---- </tr> <tr> ! <td width="32"><a href='track.php?ID=<?php if(isset($_GET['ID'])) { echo $_GET['ID']; } ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/apps/kcalc.png" border="0"></a></td> <td width="286"><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage Graphs</a></b></td> |
From: <dav...@us...> - 2003-12-22 23:10:12
|
Update of /cvsroot/openfirst/members/admin In directory sc8-pr-cvs1:/tmp/cvs-serv2107 Added Files: index.php editmember.php editdivisions.php Log Message: initial upload --- NEW FILE: index.php --- <?php /* * openFIRST.members - admin/index.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include system globals and headers include_once("../../config/globals.php"); include_once($header); // Check if user is a member if(! isset($user->user)) { die(showlogin() . include($footer)); } if(isset($_GET["delete"])) { $q = ofirst_dbquery("DELETE FROM ofirst_members WHERE member = '" . $_GET["delete"] . "';"); } ?> <h1>Manage Users</h1> <table> <tr> <th>Username</th> <th>Full Name</th> <th>Division Name</th> <th>Options</th> </tr> <?php // List divisions $member_query = ofirst_dbquery("SELECT * FROM ofirst_members;"); while($member = ofirst_dbfetch_object($member_query)) { ?> <tr> <td><?php echo $member->user; ?></td> <td><?php echo $member->firstname; ?> <?php echo $member->lastname; ?></td> <td><a href='/members/divisions.php?division=<?php echo $member->division; ?>'><?php echo $member->division; ?></a></td> <td> <a href='editmember.php?user=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/edit.png' border="0"></a> <a href='index.php?delete=<?php echo $member->user; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a> </td> </tr> <?php } ?> </table><br> <?php include_once($footer); ?> --- NEW FILE: editmember.php --- <?php /* * openFIRST.members - admin/editmember.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include system globals and headers include_once("../../config/globals.php"); include_once($header); // Check if user is a member if(! isset($user->user)) { die(showlogin() . include($footer)); } if (isset($_POST["firstname"]) == true) { if(isset($_POST["ndivision"]) == true && $_POST["ndivision"] != "") { $_POST["division"] = $_POST["ndivision"]; $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division) VALUES ('" . $_POST["division"] . "');"); $q = ofirst_dbquery("UPDATE ofirst_divisions SET description='" . $_POST["divisiondescription"] . "' WHERE division='" . $_POST["division"] . "';"); } if($_POST["cellphonesms"] == "0") { $_POST["cellphonesms"] = true; $user->cellphonesms = "1"; } else { $_POST["cellphonesms"] = false; $user->cellphonesms = "0"; } $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "', division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] ."', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . $_POST["yim"] . "', signature='" . $_POST["signature"] . "', description='" . $_POST["description"] . "', picturelocation='" . $_POST["picturelocation"] . "', cellphonenumber='" . $_POST["cellphonenumber"] . "', cellphonecarrier='" . $_POST["cellphonecarrier"] . "', cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='".$_GET['user']."';"; $q = ofirst_dbquery($query); if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { 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='".$_GET['user']."';")); echo("<br><font color='green'>Profile updated.</font>"); } ?> <h1>Edit Member Account</h1> <p><a href="<?php echo $basepath; ?>/members/admin/">Back to Member List</a></p> <form action='editmember.php?user=<?php echo $_GET['user']; ?>' onsubmit="return dhtmlEditorPrepareSubmit();" method='post'> <table> <tr> <th> </th> <th>Content</th></tr> <tr><th>Username</th><td><?php echo $user->user; ?></td></tr> <tr><th>First Name</th><td><input type='text' name='firstname' value='<?php echo $user->firstname; ?>' /></td></tr> <tr><th>Last Name</th><td><input type='text' name='lastname' value='<?php echo$user->lastname; ?>' /></td></tr> <tr><th>Password</th><td><input type='password' name='password' value='' /></td></tr> <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> <tr><th>Division</th> <td> Existing: <br><select name='division'> <?php $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); while($d = ofirst_dbfetch_object($div)) { echo("<option value='$d->division'"); if($d->division == $user->division) { echo(" selected='selected'"); } echo(">$d->division</option>"); } ?> </select> <br> <br> <table align="left"> <tr> <th>New Division</th> </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> </tr> <tr><th>Year</th><td><input type='text' name='year' value='<?php echo $user->year; ?>'></td></tr> <tr><th>E-mail Address</th><td><input type='text' name='email' value='<?php echo $user->email; ?>'></td></tr> <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 // Populate cell phone carrier space $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); while($sms = ofirst_dbfetch_object($query)) { if(isset($user->smsaddress) == true && ($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); } else { echo("<option value='$sms->smsaddress'>$sms->fullname</option>\n"); } } ?> </select> <?php // 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"); } ?> </td> </tr> <tr> <th>ICQ Number</th><td><input type='text' name='icq' value='<?php echo $user->icq; ?>'></td> </tr> <tr> <th>AIM Screenname</th><td><input type='text' name='aim' value='<?php echo $user->aim; ?>'></td></tr> <tr> <th>MSN Messenger</th> <td><input type='text' name='msn' value='<?php echo $user->msn; ?>'></td></tr> <tr> <th>Yahoo! Instant Messenger</th> <td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr> <tr> <th>Freeform Description</th><td> <?php if (function_exists("make_wysiwyg")) { make_wysiwyg("description",400,200,$user->description); } else { ?><textarea name="description" cols="40" rows="20">$user->description</textarea> <?php } ?> </td> </tr> <tr> <th>Signature</th> <td><textarea name='signature' cols="40" rows="5"><?php echo $user->signature; ?></textarea></td> </tr> <tr> <th>Picture Location</th> <td><input type='text' name='picturelocation' value='<?php echo $user->picturelocation; ?>'></td> </tr> <tr> <td> </td> <td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> </tr> </table> </form> <?php include_once($footer); ?> --- NEW FILE: editdivisions.php --- <?php /* * openFIRST.members - admin/editdivisions.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include system globals and headers include_once("../../config/globals.php"); include_once($header); // Check if user is a member if(! isset($user->user)) { die(showlogin() . include($footer)); } if(isset($_POST["newdivision"])) { $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( '" . $_POST["division"] . "', '" . $_POST["divisiondescription"] . "');"); } if(isset($_GET["delete"])) { $q = ofirst_dbquery("DELETE FROM ofirst_divisions WHERE division = '" . $_GET["delete"] . "';"); } ?> <h1>Edit Divisions</h1> <p> <?php if(isset($_GET['update'])){ if(isset($_POST["update"])) { $q = ofirst_dbquery("UPDATE ofirst_divisions SET division = '".$_POST['updivision']."', description = '".$_POST['updescription']."' WHERE division = '" . $_GET["update"] . "';"); } $division_query = ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division = '".$_GET['update']."';"); $division = ofirst_dbfetch_object($division_query); ?> </p> <form method="POST" action="editdivisions.php?update=<?php echo $_GET['update']; ?>"> <table width="41%"> <tr> <th> </th> <th><?php echo $_GET['update']; ?> Division Edit</th> </tr> <tr> <td width="32%">Division Name</td> <td width="68%"> <input name="updivision" type="text" id="updivision" value="<?php echo $division->division; ?>" /> </td> </tr> <tr> <td>Description </td> <td><textarea name="updescription" cols="40" rows="10" id="textarea2" value="<?php echo $division->description; ?>"><?php echo $division->description; ?></textarea></td> </tr> <tr> <td> </td> <td><input name="update" type="submit" id="update" value="Update"></td> </tr> </table> </form> <?php } ?> <table width="519"> <tr> <th>Division Name</th> <th>Description</th> <th>Delete</th> </tr> <?php // List divisions $d = ofirst_dbquery("SELECT * FROM ofirst_divisions;"); while ($div = ofirst_dbfetch_object($d)) { ?> <tr> <td width="138"><a href='editdivisions.php?update=<?php echo $div->division; ?>'><?php echo $div->division; ?></a></td> <td width="321"><?php echo $div->description; ?></td> <td width="44"><a href='editdivisions.php?delete=<?php echo $div->division; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a></td> </tr> <?php } ?> </table> <br> Note: Please make sure no one is in a division before you delete it. If you delete<br> a division with users assigned to it, you may receive errors.<br> <form method="POST" action="editdivisions.php"> <table width="41%"> <tr> <th> </th> <th>Add New Division</th> </tr> <tr> <td width="32%">Division Name</td> <td width="68%"> <input name="division" type="text" id="division" /> </td> </tr> <tr> <td>Description </td> <td><textarea name="divisiondescription" id="divisiondescription"></textarea></td> </tr> <tr> <td> </td> <td><input name="newdivision" type="submit" id="newdivision" value="Create Division"></td> </tr> </table> </form> <p> <?php include_once($footer); ?> </p> <p> </p> |
From: <dav...@us...> - 2003-12-22 23:09:40
|
Update of /cvsroot/openfirst/members/admin In directory sc8-pr-cvs1:/tmp/cvs-serv2055/admin Log Message: Directory /cvsroot/openfirst/members/admin added to the repository |
From: <dav...@us...> - 2003-12-22 23:09:08
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv1975 Added Files: reset.php Log Message: initial upload --- NEW FILE: reset.php --- <?php /* * openFIRST.members - reset.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include system globals and headers include_once("../config/globals.php"); include_once($header); if(isset($_POST['set'])){ $newpass = cryptpassword($_POST['pass'],$encryption); ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>"; die(include_once($footer)); } if(isset($_GET['code'])){ $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';"); $member = ofirst_dbfetch_object($member_query); if(ofirst_dbnum_rows($member_query) == 0){ echo "<br><br>There is no account with that information, sorry!<br><br>"; }else{ ?> <h1>Reset Password</h1> <form method="POST" action="reset.php?email=<?php echo $_GET['email']; ?>&code=<?php echo $_GET['code']; ?>"> <table width="40%"> <tr> <th>New Password</th> </tr> <tr> <td><div align="center">Please enter your new password: <br> <input name="pass" type="password" id="pass" size="30"> <input name="set" type="submit" id="set" value="Set Password"> </div></td> </tr> </table> </form> <?php } } include_once($footer); ?> |
From: <dav...@us...> - 2003-12-22 23:08:40
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv1859 Modified Files: index.php Log Message: Mostly design changes. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.php 23 Nov 2003 19:07:28 -0000 1.11 --- index.php 22 Dec 2003 23:08:37 -0000 1.12 *************** *** 33,43 **** <h1>Members Area</h1> ! <?php ! if(isset($user->email) == false || $user->email == "") { ! echo("<p><strong>You have not <a href='updateprofile.php'>updated your e-mail address</a>. ! Important team announcements will be delivered to you via e-mail, and if you do not have ! an up to date e-mail address listed in your profile you will miss out on these.</strong></p>"); ! } ! ?> <table width="400"> <tr> --- 33,50 ---- <h1>Members Area</h1> ! <?php if(isset($user->email) == false || $user->email == "") { ?> ! <table width="636"> ! <tr> ! <th>Account Preferences</th> ! </tr> ! <tr> ! <td><strong>You have not <a href='updateprofile.php'>updated your e-mail address</a>. ! Important team announcements will be delivered to you via e-mail, and if ! you do not have an up to date e-mail address listed in your profile you ! will miss out on these.</strong></td> ! </tr> ! </table> ! <p> </p> ! <?php } ?> <table width="400"> <tr> |
From: <xt...@us...> - 2003-12-22 22:25:17
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv25834 Modified Files: auth.php Log Message: Some configurations of PHP had difficulties dealing with the previous method of generating session authcodes. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** auth.php 23 Nov 2003 22:47:34 -0000 1.12 --- auth.php 22 Dec 2003 22:25:14 -0000 1.13 *************** *** 117,121 **** session_register("authcode"); mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { --- 117,121 ---- session_register("authcode"); mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { |
From: <xt...@us...> - 2003-12-22 22:13:22
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv23480 Modified Files: logger.php Log Message: Fix issues encountered when using programs which operate directly, rather than through a web server. This fix also marks user agents which do not identify themselves as being unknown. Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** logger.php 30 Sep 2003 23:45:29 -0000 1.7 --- logger.php 22 Dec 2003 22:13:19 -0000 1.8 *************** *** 27,35 **** */ ! $IP = $_SERVER['REMOTE_ADDR']; $HOST = gethostbyaddr($IP); $DATE = date("F j, Y, g:i a"); $SCRIPT = $_SERVER['PHP_SELF']; ! $BROWSER = $_SERVER['HTTP_USER_AGENT']; if (ISSET($_SERVER['QUERY_STRING'])){ --- 27,55 ---- */ ! /* ! * If there isn't a remote address set, then this script is ! * being called from the shell, rather than through a web server ! * and therefore is operating on the local host. ! */ ! if(isset($_SERVER['REMOTE_ADDR'])) { ! $IP = $_SERVER['REMOTE_ADDR']; ! } else { ! $IP = "127.0.0.1"; ! } $HOST = gethostbyaddr($IP); $DATE = date("F j, Y, g:i a"); $SCRIPT = $_SERVER['PHP_SELF']; ! ! /* ! * If there isn't a user agent set, then this script is perhaps ! * being called from the shell, or by a browser which does not ! * identify itself. ! */ ! ! if(isset($_SERVER['HTTP_USER_AGENT'])) { ! $BROWSER = $_SERVER['HTTP_USER_AGENT']; ! } else { ! $BROWSER = "Unknown"; ! } if (ISSET($_SERVER['QUERY_STRING'])){ |
From: <dav...@us...> - 2003-12-22 19:43:09
|
Update of /cvsroot/openfirst/logger/backgrounds In directory sc8-pr-cvs1:/tmp/cvs-serv26073 Modified Files: back.png Log Message: Added alpha changes to the background so that it changes color, somewhat, depending on users designs. Index: back.png =================================================================== RCS file: /cvsroot/openfirst/logger/backgrounds/back.png,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvskSN2iJ and /tmp/cvs6Byzoi differ |
From: <dav...@us...> - 2003-12-22 19:42:57
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv21153 Modified Files: track.php stats.php reset.php index.php Log Message: Graphical design changes. Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** track.php 2 Nov 2003 21:32:58 -0000 1.15 --- track.php 22 Dec 2003 19:32:45 -0000 1.16 *************** *** 50,78 **** ?> <h1>View Log Information</h1> ! <p>You are tracking the hits by: <strong><?php print $_GET['ID']; ?></strong>, ! who has visited a total of <strong><?php echo($amount); ?></strong> pages. <br> ! <br>[ <a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'>Delete all hits by this user ]</a></p> - <?php - if(function_exists("identify_browser")){ ?> - <div><form action="<?php echo($_SERVER['PHP_SELF']); ?>"> - <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?>></input> - <label for="useragent">Identify browser</label> - <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"></input> - <input type="Submit" value="OK"></input> - </form></div> - <?php } ?> <table> ! <tr> <th>ID</th> <th>Date</th> - <th>IP Address</th> - <th>Host Lookup</th> <th>Location</th> <th>Query String</th> <th>Member</th> <th>Options</th> ! <?php if(function_exists("identify_browser")&&$browserid){ echo("<th>Browser</th> --- 50,99 ---- ?> <h1>View Log Information</h1> ! <div> ! <form action="<?php echo($_SERVER['PHP_SELF']); ?>"> ! <table width="323"> ! <tr> ! <th><strong>Tracking <?php print $_GET['ID']; ?></strong></th> ! </tr> ! <tr> ! <td><div align="center">The user has visited a total of <strong><?php echo($amount); ?></strong> ! pages.</div></td> ! </tr> ! <tr> ! <td> ! <div align="center"> ! <table width="75%"> ! ! <tr> ! <td width="18%"><a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/actions/messagebox_critical.png" border="0"></a></td> ! <td width="82%">Delete all hits by this user </td> ! </tr> ! </table> ! ! </div></td> ! </tr> ! <?php if(function_exists("identify_browser")){ ?> ! <tr> ! <td><div align="center"> ! <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?>> ! <label for="useragent">Identify browser</label> ! <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"> ! <input name="Submit" type="Submit" value="OK"> ! </div></td> ! </tr> ! <?php } ?> ! </table> ! </form></div> <table> ! <tr> <th>ID</th> <th>Date</th> <th>Location</th> <th>Query String</th> <th>Member</th> <th>Options</th> ! <?php if(function_exists("identify_browser")&&$browserid){ echo("<th>Browser</th> *************** *** 81,95 **** ?> </tr> ! <? while($log = ofirst_dbfetch_object($query)) { echo("<tr>"); echo(" <td>$log->ID</td>"); echo(" <td>$log->Date</td>"); - echo(" <td>$log->IPAddress</td>"); - echo(" <td>$log->HostLookup</td>"); echo(" <td>$log->Location</td>"); echo(" <td>$log->QueryString</td>"); if($log->Member != "null"){ echo(" <td>$log->Member</td>"); }else{ echo("<td>NULL</td>"); } ! echo(" <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"); if(function_exists("identify_browser")&&$browserid){ echo(" <td>"); --- 102,114 ---- ?> </tr> ! <? while($log = ofirst_dbfetch_object($query)) { echo("<tr>"); echo(" <td>$log->ID</td>"); echo(" <td>$log->Date</td>"); echo(" <td>$log->Location</td>"); echo(" <td>$log->QueryString</td>"); if($log->Member != "null"){ echo(" <td>$log->Member</td>"); }else{ echo("<td>NULL</td>"); } ! echo(" <td><a href='./?DELETE=$log->ID'><img border='0' src='$home$basepath/members/icons/actions/button_cancel.png'></a></td>"); if(function_exists("identify_browser")&&$browserid){ echo(" <td>"); *************** *** 104,110 **** echo("</tr>"); } ! ?> ! </tr> ! </table><br><br> <?php include_once("$footer"); --- 123,129 ---- echo("</tr>"); } ! ?></tr> ! </table> ! <br><br> <?php include_once("$footer"); Index: stats.php =================================================================== RCS file: /cvsroot/openfirst/logger/stats.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** stats.php 13 Oct 2003 17:57:22 -0000 1.4 --- stats.php 22 Dec 2003 19:32:45 -0000 1.5 *************** *** 77,83 **** ?> - <h1>Usage Statistics for <?php echo($title); ?></h1> ! <table cols=2 width=400> <tr align=left valign=bottom> <td height="23" colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> --- 77,95 ---- ?> ! <h1>Usage Statistics for <?php echo($title); ?></h1> ! <table width="261"> ! <tr> ! <th> </th> ! <th>Stats Options</th> ! </tr> ! <tr> ! <td width="32"><a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/apps/kcalc.png" border="0"></a></td> ! <td width="286"><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage ! Graphs</a></b></td> ! </tr> ! </table> ! <br> ! <table cols=2 width=566> <tr align=left valign=bottom> <td height="23" colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> *************** *** 90,94 **** </tr> <tr> ! <td><b>Total Pages Served</b> </td> <td align=right> <?php --- 102,106 ---- </tr> <tr> ! <td><b>Total Pages Served</b> (Hits)</td> <td align=right> <?php *************** *** 128,132 **** if($browser!="totalpages"){ if(function_exists("identify_browser")){ ! $browse=identify_browser($useragent->Name); } else { --- 140,144 ---- if($browser!="totalpages"){ if(function_exists("identify_browser")){ ! $browse = identify_browser($useragent->Name); } else { *************** *** 157,168 **** ?> <tr> ! <td><b>Total Visitors</b> </td> <td align=right><?php echo($total); ?> </td> </tr> <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Browsers</h3></td></tr><tr> ! <td class='sub'> ! </div></td><td class='sub'><div align="center">Items: <?php echo(sizeof($browsers)); --- 169,182 ---- ?> <tr> ! <td><b>Total Visitors</b> (Unique Visitors)</td> <td align=right><?php echo($total); ?> </td> </tr> <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Browsers</h3></td> ! </tr> ! <tr> ! <td class='sub'> </div></td> ! <td class='sub'><div align="center">Items: <?php echo(sizeof($browsers)); *************** *** 178,184 **** <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Platforms</h3></td></tr> ! <tr><td class='sub'> ! </div></td><td class='sub'><div align="center">Items: <?php echo(sizeof($platforms)); --- 192,200 ---- <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Platforms</h3></td> ! </tr> ! <tr> ! <td class='sub'> </div></td> ! <td class='sub'><div align="center">Items: <?php echo(sizeof($platforms)); *************** *** 192,199 **** } ?> - <tr> - <td colspan=2><br> <hr> <div align=right><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage - Graph</a></b></div></td> - </tr> </table> --- 208,211 ---- Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/logger/reset.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** reset.php 13 Oct 2003 17:57:22 -0000 1.7 --- reset.php 22 Dec 2003 19:32:45 -0000 1.8 *************** *** 42,49 **** <h1>View Log Information</h1> <form action="reset.php" method="POST"> ! <p>Are you sure that you want to reset the entire logger system?<br> ! <br /> ! <input name="confirm" type="submit" id="confirm" value="Delete all Entries"> ! </p> </form> <br> --- 42,54 ---- <h1>View Log Information</h1> <form action="reset.php" method="POST"> ! <table width="29%"> ! <tr> ! <td width="4%"><img src="<?php echo $home.$basepath; ?>/members/icons/actions/messagebox_warning.png" border="0"></td> ! <td width="96%">Are you sure that you want to reset the entire logger system?<br> <br /> ! <input name="confirm" type="submit" id="confirm" value="Delete all Entries"> ! </td> ! </tr> ! </table> ! <p> </p> </form> <br> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 2 Nov 2003 15:37:07 -0000 1.8 --- index.php 22 Dec 2003 19:32:45 -0000 1.9 *************** *** 68,73 **** <div align="center">This page displays grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below. Note that the below logs are listed in descending order ! with the most recent at the top. </div> --- 68,74 ---- <div align="center">This page displays grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below. Note that the below logs are listed in descending order ! with the most recent at the top.<br> ! <br> </div> *************** *** 88,92 **** echo " <td>$log->IPAddress</td>"; echo " <td>$log->HostLookup</td>"; ! echo " <td>[ <a href='./?DELETE=$log->IPAddress'>Delete</a> ] [ <a href='track.php?ID=$log->IPAddress'>Track</a> ]</td>"; echo "</tr>"; } --- 89,96 ---- echo " <td>$log->IPAddress</td>"; echo " <td>$log->HostLookup</td>"; ! echo "<td> ! <a href='./?DELETE=$log->IPAddress'><img border='0' src='$home$basepath/members/icons/actions/button_cancel.png'></a> ! <a href='track.php?ID=$log->IPAddress'><img src='$home$basepath/members/icons/actions/filefind.png' border='0'></a> ! </td>"; echo "</tr>"; } |
From: <xt...@us...> - 2003-12-22 19:38:45
|
Update of /cvsroot/openfirst/members/phpicalendar/includes In directory sc8-pr-cvs1:/tmp/cvs-serv23812 Modified Files: header.inc.php Log Message: This should clear up some problems, and also eliminate many of the errors people experience. Index: header.inc.php =================================================================== RCS file: /cvsroot/openfirst/members/phpicalendar/includes/header.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** header.inc.php 5 Oct 2003 15:31:07 -0000 1.2 --- header.inc.php 22 Dec 2003 19:38:42 -0000 1.3 *************** *** 1,4 **** --- 1,12 ---- <?php + global $header, $footer, $calendar_path; include($header); + if(! is_readable($calendar_path)) { + echo("<p>In order to use the Team Calendar functionality you must create a calendar directory, and set + the appropriate permissions on it. + <br>The calendar directory should be placed under the <tt>phpicalendar</tt> directory of + the members module. It should be readable and writable by the web-user.</p>"); + die(include($footer)); + } if(! isset($user->user) || $user->user == "") { die(showlogin() . include($footer)); |
From: <xt...@us...> - 2003-12-22 18:33:56
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv8231 Modified Files: browserid.php Log Message: Fix issues encountered with browscap on systems not posessing a browscap.ini. Unfortunately, browscap may not be modified using set_ini. Index: browserid.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/browserid.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** browserid.php 23 Nov 2003 23:39:07 -0000 1.3 --- browserid.php 22 Dec 2003 18:33:53 -0000 1.4 *************** *** 30,43 **** function identify_platform($useragent="") { - //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) - //only report critical errors - $err_prev=error_reporting(E_ERROR); - //get OS info from browscap.ini - $browser=get_browser($useragent); - //restore error reporting level - error_reporting($err_prev); - $return=""; ! if($browser!=null){ $return=$browser->platform; if ($return==""){ --- 30,38 ---- function identify_platform($useragent="") { $return=""; ! if((bool) ini_get("browscap")){ ! //get OS info from browscap.ini ! $browser=get_browser($useragent); ! //restore error reporting level $return=$browser->platform; if ($return==""){ *************** *** 55,68 **** function identify_browser($useragent="") { ! //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) ! //only report critical errors ! $err_prev=error_reporting(E_ERROR); ! //get browser info from browscap.ini ! $browser=get_browser($useragent); ! //restore error reporting level ! error_reporting($err_prev); ! $return=""; ! if($browser!=null){ //Get browser name $browsername=$browser->browser; --- 50,62 ---- function identify_browser($useragent="") { ! if((bool) ini_get("browscap")){ ! $err_prev=error_reporting(E_ERROR); ! //get browser info from browscap.ini ! $browser=get_browser($useragent); ! //restore error reporting level ! error_reporting($err_prev); ! $return=""; ! //Get browser name $browsername=$browser->browser; |
From: <xt...@us...> - 2003-12-22 17:25:49
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv25766 Modified Files: workspace.php Log Message: Remove errors given if the user viewing the workspace is not currently logged in. Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** workspace.php 22 Dec 2003 05:03:34 -0000 1.14 --- workspace.php 22 Dec 2003 17:25:46 -0000 1.15 *************** *** 34,39 **** // Get important data used throughout this. ! $wsu = ofirst_dbquery("SELECT * FROM ofirst_workspace_users WHERE user='$user->user';"); ! $ws = ofirst_dbfetch_object($wsu); if(isset($_GET["action"]) == true && $_GET["action"] == "view" && isset($_GET["view"]) == true) { --- 34,41 ---- // Get important data used throughout this. ! if(isset($user->user)) { ! $wsu = ofirst_dbquery("SELECT * FROM ofirst_workspace_users WHERE user='$user->user';"); ! $ws = ofirst_dbfetch_object($wsu); ! } if(isset($_GET["action"]) == true && $_GET["action"] == "view" && isset($_GET["view"]) == true) { |
From: <xt...@us...> - 2003-12-22 17:23:57
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv25256 Modified Files: updateprofile.php Log Message: Make update profile not show anything aside from a login prompt if the user is not logged in. Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** updateprofile.php 22 Dec 2003 15:50:40 -0000 1.11 --- updateprofile.php 22 Dec 2003 17:23:50 -0000 1.12 *************** *** 32,36 **** // Check if user is a member if(! isset($user->user)) { ! showlogin(); } --- 32,36 ---- // Check if user is a member if(! isset($user->user)) { ! die(showlogin() . include($footer)); } |