openfirst-cvscommit Mailing List for openFIRST (Page 90)
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: <xt...@us...> - 2003-06-29 04:09:45
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv5006
Modified Files:
first.php headers.php
Log Message:
Add 'home' option to menu
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** first.php 29 Jun 2003 03:33:23 -0000 1.14
--- first.php 29 Jun 2003 04:09:42 -0000 1.15
***************
*** 116,120 ****
// If it is the current module then color the item
if (\$currentmodule == \$module->modulename){
! \$headers .= \" » <font color='red'><b><a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a></b></font> |\";
// Declare important variables so that headers can pick them up and preview them
--- 116,120 ----
// If it is the current module then color the item
if (\$currentmodule == \$module->modulename){
! \$headers .= \" | » <font color='red'><b><a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a></b></font>\";
// Declare important variables so that headers can pick them up and preview them
Index: headers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/headers.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** headers.php 29 Jun 2003 04:02:24 -0000 1.15
--- headers.php 29 Jun 2003 04:09:42 -0000 1.16
***************
*** 54,58 ****
<?php
if(ISSET($headers)){
! echo $headers;
}else{
?>
--- 54,58 ----
<?php
if(ISSET($headers)){
! echo("» <a accesskey='h' href='$home'><u>H</u>ome</a>" . $headers);
}else{
?>
|
|
From: <xt...@us...> - 2003-06-29 04:02:27
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv4220b
Modified Files:
headers.php
Log Message:
Is being able to *see* links too much to ask? (feature request)
Index: headers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/headers.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** headers.php 28 Jun 2003 19:06:39 -0000 1.14
--- headers.php 29 Jun 2003 04:02:24 -0000 1.15
***************
*** 21,28 ****
#adminmenu a:hover { color: #ffffff; }
! a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
! a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
! a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
! a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: Underline; }
#topmenu { text-align: left; }
--- 21,28 ----
#adminmenu a:hover { color: #ffffff; }
! a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; }
! a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; }
! a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; }
! a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; }
#topmenu { text-align: left; }
|
|
From: <xt...@us...> - 2003-06-29 03:58:53
|
Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv3794
Modified Files:
updateprofile.php
Log Message:
Fix broken link.
Index: updateprofile.php
===================================================================
RCS file: /cvsroot/openfirst/members/updateprofile.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** updateprofile.php 28 Jun 2003 03:01:25 -0000 1.2
--- updateprofile.php 29 Jun 2003 03:58:50 -0000 1.3
***************
*** 50,55 ****
<h1>Update Profile</h1>
! <p>You may use this page to update your members profile. You should also: <a
! href="updateskills.php">update your skills list</a>.</p>
<form action='updateprofile.php' method='post'>
--- 50,54 ----
<h1>Update Profile</h1>
! <p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p>
<form action='updateprofile.php' method='post'>
***************
*** 81,83 ****
showlogin();
}
! include($footer); ?>
\ No newline at end of file
--- 80,82 ----
showlogin();
}
! include($footer); ?>
|
|
From: <xt...@us...> - 2003-06-29 03:55:11
|
Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv3565
Modified Files:
logout.php
Log Message:
Prevent annoying error messages that do not actually affect functionality in any way.
Index: logout.php
===================================================================
RCS file: /cvsroot/openfirst/members/logout.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** logout.php 28 Jun 2003 03:01:25 -0000 1.2
--- logout.php 29 Jun 2003 03:55:07 -0000 1.3
***************
*** 35,41 ****
<?php
$q = mysql_query("UPDATE ofirst_members SET authcode = NULL WHERE user='$user->user';");
! echo(mysql_error());
! session_start();
! session_destroy();
?>
--- 35,41 ----
<?php
$q = mysql_query("UPDATE ofirst_members SET authcode = NULL WHERE user='$user->user';");
! @echo(mysql_error());
! @session_start();
! @session_destroy();
?>
***************
*** 47,49 ****
showlogin();
}
! include($footer); ?>
\ No newline at end of file
--- 47,49 ----
showlogin();
}
! include($footer); ?>
|
|
From: <xt...@us...> - 2003-06-29 03:38:21
|
Update of /cvsroot/openfirst/awards/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv1897/admin
Modified Files:
index.php
Log Message:
Remove obsolte membersmenu()
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/awards/admin/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.php 23 Jun 2003 11:39:37 -0000 1.4
--- index.php 29 Jun 2003 03:38:17 -0000 1.5
***************
*** 55,59 ****
<h1>Manage Award Information</h1>
- <?php membersmenu($user->membertype); ?>
<p><a href="./">Manage Awards</a> <a href="<?php echo("$basepath/awards/"); ?>">View Awards</a>
</p>
--- 55,58 ----
|
|
From: <xt...@us...> - 2003-06-29 03:37:05
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv1782 Modified Files: messenger.php Log Message: Fix 'ga' messenger problem. Index: messenger.php =================================================================== RCS file: /cvsroot/openfirst/messenger/messenger.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** messenger.php 28 Jun 2003 16:09:19 -0000 1.3 --- messenger.php 29 Jun 2003 03:37:02 -0000 1.4 *************** *** 1,3 **** ! ga<?php /* * openFIRST.messenger - messenger.php --- 1,3 ---- ! <?php /* * openFIRST.messenger - messenger.php |
|
From: <xt...@us...> - 2003-06-29 03:35:17
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv1654
Modified Files:
install.php
Log Message:
Fix error in install.php that was preventing it from working.
Index: install.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/install.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** install.php 28 Jun 2003 17:29:29 -0000 1.12
--- install.php 29 Jun 2003 03:35:14 -0000 1.13
***************
*** 30,33 ****
--- 30,35 ----
include("../config/globals.php");
include($header);
+
+ if(isset($user->user) == true && $user->membertype == "administrator") {
?>
|
|
From: <xt...@us...> - 2003-06-29 03:33:25
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv1395 Modified Files: first.php Log Message: Fix minor problem causing headers not to work on some systems. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** first.php 28 Jun 2003 19:06:39 -0000 1.13 --- first.php 29 Jun 2003 03:33:23 -0000 1.14 *************** *** 191,196 **** <input type="text" name="home" value="http://openfirst.sourceforge.net"></td></tr> <tr><td>Header file (this should be a full system path)</td><td><input type="text" name="header" value="<?php echo(getcwd()); ?>/headers.php" /></td></tr> ! <tr><td>Footer file (this should be a full system path)</td><td><input type="text" name=" ! footer" value="<?php echo(getcwd()); ?>/footers.php" /></td></tr> <tr><td>Mail Notification (the e-mail address used to notify you when significant events occur)</td><td><input type="text" name="mailnotify" value="nobody@localhost"></td></tr> --- 191,195 ---- <input type="text" name="home" value="http://openfirst.sourceforge.net"></td></tr> <tr><td>Header file (this should be a full system path)</td><td><input type="text" name="header" value="<?php echo(getcwd()); ?>/headers.php" /></td></tr> ! <tr><td>Footer file (this should be a full system path)</td><td><input type="text" name="footer" value="<?php echo(getcwd()); ?>/footers.php" /></td></tr> <tr><td>Mail Notification (the e-mail address used to notify you when significant events occur)</td><td><input type="text" name="mailnotify" value="nobody@localhost"></td></tr> |
|
From: <xt...@us...> - 2003-06-28 19:06:45
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv6976
Modified Files:
first.php footers.php headers.php
Log Message:
Make changes to make footers not lie (now headers+footers+first.php are certified valid HTML 4.01)
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** first.php 28 Jun 2003 17:29:29 -0000 1.12
--- first.php 28 Jun 2003 19:06:39 -0000 1.13
***************
*** 172,179 ****
?>
<h1>Base Configuration</h1>
! <p>Congratulations on your choice of OpenFIRST software. Please proceed through this setup wizard
! to get your new OpenFIRST portal software set up and working quickly and painlessly.</p>
<table>
- <form action="<?php echo($_SERVER["PHP_SELF"]); ?>" method="post">
<tr><th>Option</th><th>Value</th></tr>
<tr><td>Operating System of Web Server</td><td><select name="ostype">
--- 172,179 ----
?>
<h1>Base Configuration</h1>
! <p><form action="<?php echo($_SERVER["PHP_SELF"]); ?>" method="post">
! Congratulations on your choice of OpenFIRST software. Please proceed through this setup wizard
! to get your new OpenFIRST portal software set up and working quickly and painlessly.
<table>
<tr><th>Option</th><th>Value</th></tr>
<tr><td>Operating System of Web Server</td><td><select name="ostype">
***************
*** 207,212 ****
</td><td><input type="text" name="fbasepath" value="<?php chdir(".."); echo getcwd(); ?>"></td></tr>
<tr><td></td><td><input type="submit" value="Set up OpenFIRST"></td></tr>
- </form>
</table>
<?php
}
--- 207,212 ----
</td><td><input type="text" name="fbasepath" value="<?php chdir(".."); echo getcwd(); ?>"></td></tr>
<tr><td></td><td><input type="submit" value="Set up OpenFIRST"></td></tr>
</table>
+ </form>
<?php
}
***************
*** 216,218 ****
include("../config/footers.php");
}
! ?>
\ No newline at end of file
--- 216,218 ----
include("../config/footers.php");
}
! ?>
Index: footers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/footers.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** footers.php 27 Jun 2003 01:00:03 -0000 1.5
--- footers.php 28 Jun 2003 19:06:39 -0000 1.6
***************
*** 6,11 ****
<table class="menu" width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
! <td class="menu" background="<?php echo("$basepath/images/"); ?>back-light.gif">
! <div>
<div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. All rights reserved.</div>
</div>
--- 6,11 ----
<table class="menu" width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
! <td class="menu" style="background=image: url('<?php echo("$basepath/images/"); ?>back-light.gif');">
! <div>
<div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. All rights reserved.</div>
</div>
***************
*** 14,23 ****
<tr>
<td class="menu">
! <div>
<div align="right"><a href=
"http://openfirst.sourceforge.net"><img src="<?php echo("$basepath/images/"); ?>poweredby-small.png"
! width="177" height="30" border="0"></a><a href=
! "http://validator.w3.org/check?uri=http%3A//openfirst.sourceforge.net/">
! <img src="<?php echo("$basepath/images/"); ?>w3c401.png" width="88" height="31"
border="0"></a> </div>
</div>
--- 14,23 ----
<tr>
<td class="menu">
! <div>
<div align="right"><a href=
"http://openfirst.sourceforge.net"><img src="<?php echo("$basepath/images/"); ?>poweredby-small.png"
! width="177" height="30" border="0" alt="Powered by openFIRST Software - http://openfirst.sourceforge.net"></a><a href=
! "http://validator.w3.org/check?uri=http%3A//openfirst.sourceforge.net/">
! <img src="<?php echo("$basepath/images/"); ?>w3c401.png" alt="Valid HTML 4.01" width="88" height="31"
border="0"></a> </div>
</div>
***************
*** 25,29 ****
</tr>
</table>
!
<p> </p>
</body>
--- 25,29 ----
</tr>
</table>
!
<p> </p>
</body>
Index: headers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/headers.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** headers.php 28 Jun 2003 16:27:39 -0000 1.13
--- headers.php 28 Jun 2003 19:06:39 -0000 1.14
***************
*** 37,43 ****
table.menu { border-left:0px;border-right:0px;border-bottom:0px; }
td.menu {border-left:0px;border-right:0px;border-bottom:0px; }
! body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center;
! margin: 0px;
! }
td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; }
td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; }
--- 37,41 ----
table.menu { border-left:0px;border-right:0px;border-bottom:0px; }
td.menu {border-left:0px;border-right:0px;border-bottom:0px; }
! body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center; margin: 0px; }
td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; }
td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; }
***************
*** 46,57 ****
</head>
<body>
!
! <table width="100%" border="0" cellspacing="0" cellpadding="6">
! <tr>
! <td > <img src="<?php echo("$basepath/images/"); ?>openfirst.png">
</td>
</tr>
! <tr>
! <th id="topmenu" style="background-image: url('<?php echo($basepath); ?>/images/back.gif');">
<?php
if(ISSET($headers)){
--- 44,55 ----
</head>
<body>
!
! <table width="100%" border="0" cellspacing="0" cellpadding="6">
! <tr>
! <td> <img src="<?php echo("$basepath/images/"); ?>openfirst.png" alt="openFIRST Portal System">
</td>
</tr>
! <tr>
! <th id="topmenu" style="background-image: url('<?php echo($basepath); ?>/images/back.gif');">
<?php
if(ISSET($headers)){
***************
*** 59,67 ****
}else{
?>
! » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a>
! | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a>
! | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a>
! | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a>
! | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a>
| » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a>
| » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a>
--- 57,65 ----
}else{
?>
! » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a>
! | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a>
! | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a>
! | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a>
! | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a>
| » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a>
| » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a>
***************
*** 71,89 ****
</th>
</tr>
! <tr>
! <td background="<?php echo("$basepath/images/"); ?>back-light.gif">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
! <tr>
<td width="63%">
<?php
// Check if module name has been set then echo
! if(ISSET($modulename)){
echo "<b>$currentmodulen</b> -";
}
// Check if navigation bar option is set then echo options
! if(ISSET($subnav)){
// Output module navigation bar
--- 69,87 ----
</th>
</tr>
! <tr>
! <td style="background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif'); ">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
! <tr>
<td width="63%">
<?php
// Check if module name has been set then echo
! if(isset($modulename)){
echo "<b>$currentmodulen</b> -";
}
// Check if navigation bar option is set then echo options
! if(isset($subnav)){
// Output module navigation bar
***************
*** 92,104 ****
?>
</td>
! <td width="37%"> <div>
! <div align="right" style="color: #333333;">
<?php
!
// Check if messenger module has activated usersonline option then echo value
! if(ISSET($usersonline)){
! echo $usersonline;
! }else{
! echo "Welcome to the <b>".$title."</b> website!";
}
--- 90,102 ----
?>
</td>
! <td width="37%"> <div>
! <div align="right" style="color: #333333;">
<?php
!
// Check if messenger module has activated usersonline option then echo value
! if(isset($usersonline)){
! echo $usersonline;
! } else {
! echo "Welcome to the <b>".$title."</b> website!";
}
***************
*** 112,129 ****
if (isset($user->user)){
! if(ISSET($adminnav)){
!
?>
<tr>
<td id="adminmenu" background="<?php echo("$basepath/images/"); ?>back-admin.png"><b>Admin Options -</b>
<?php
! // Print admin navigation bar
! echo $adminnav;
?></td>
</tr>
<?php
! }
! }
?>
--- 110,127 ----
if (isset($user->user)){
! if(isset($adminnav)){
!
?>
<tr>
<td id="adminmenu" background="<?php echo("$basepath/images/"); ?>back-admin.png"><b>Admin Options -</b>
<?php
! // Print admin navigation bar
! echo $adminnav;
?></td>
</tr>
<?php
! }
! }
?>
***************
*** 131,136 ****
<?php
! if($basepath == "http://openfirst.sourceforge.net/"){
! unset($basepath);
}
--- 129,134 ----
<?php
! if ($basepath == "http://openfirst.sourceforge.net/") {
! unset($basepath);
}
|
|
From: <xt...@us...> - 2003-06-28 18:52:24
|
Update of /cvsroot/openfirst/emoticon
In directory sc8-pr-cvs1:/tmp/cvs-serv5244
Modified Files:
emoticonf.php
Log Message:
Make indenting in emoticonf.php proper
Index: emoticonf.php
===================================================================
RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** emoticonf.php 28 Jun 2003 15:46:27 -0000 1.5
--- emoticonf.php 28 Jun 2003 18:52:21 -0000 1.6
***************
*** 32,43 ****
// switched text.
! function emoticon_translate ($text)
! {
$query = mysql_query("SELECT * FROM ofirst_emoticon");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->emoticon, $er->substitution, $text);
! }
}
--- 32,42 ----
// switched text.
! function emoticon_translate ($text) {
$query = mysql_query("SELECT * FROM ofirst_emoticon");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->emoticon, $er->substitution, $text);
! }
}
***************
*** 49,60 ****
// or have as reference page.
! function emoticon_preview ()
! {
! $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT 0,5");
! echo "<table>";
! while ($emot = mysql_fetch_object($query)) {
! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
! }
! echo "</table>";
}
--- 48,58 ----
// or have as reference page.
! function emoticon_preview () {
! $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT 0,5");
! echo "<table>";
! while ($emot = mysql_fetch_object($query)) {
! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
! }
! echo "</table>";
}
***************
*** 63,74 ****
// substitution value.
! function slur_block ($text)
! {
$query = mysql_query("SELECT * FROM ofirst_slurblock");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->slur, $er->substitution, $text);
! }
}
--- 61,71 ----
// substitution value.
! function slur_block ($text) {
$query = mysql_query("SELECT * FROM ofirst_slurblock");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->slur, $er->substitution, $text);
! }
}
***************
*** 76,78 ****
}
! ?>
--- 73,75 ----
}
! ?>
\ No newline at end of file
|
|
From: <dav...@us...> - 2003-06-28 18:51:39
|
Update of /cvsroot/openfirst/emoticon/setup
In directory sc8-pr-cvs1:/tmp/cvs-serv4997
Modified Files:
setup.mysql
Log Message:
switched order of slur
Index: setup.mysql
===================================================================
RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** setup.mysql 28 Jun 2003 18:39:16 -0000 1.7
--- setup.mysql 28 Jun 2003 18:51:36 -0000 1.8
***************
*** 441,447 ****
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>';
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('fuck','****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('shit','****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('pussy','*****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('ass','***');
- INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('motherfucker','************');
\ No newline at end of file
--- 441,447 ----
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>';
+ INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('motherfucker','************');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('fuck','****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('shit','****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('pussy','*****');
INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('ass','***');
|
|
From: <dav...@us...> - 2003-06-28 18:39:18
|
Update of /cvsroot/openfirst/emoticon/setup
In directory sc8-pr-cvs1:/tmp/cvs-serv3656
Modified Files:
setup.mysql
Log Message:
ofirst_slurblock added and a few slur inserts added.
Index: setup.mysql
===================================================================
RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** setup.mysql 28 Jun 2003 15:46:27 -0000 1.6
--- setup.mysql 28 Jun 2003 18:39:16 -0000 1.7
***************
*** 1,3 ****
--- 1,4 ----
CREATE TABLE ofirst_emoticon (ID tinyint(3) unsigned NOT NULL auto_increment, emoticon text, substitution text, PRIMARY KEY (ID)) TYPE=MyISAM;
+ CREATE TABLE ofirst_slurblock (ID tinyint(3) unsigned NOT NULL auto_increment, slur text, substitution text, PRIMARY KEY (ID)) TYPE=MyISAM;
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES (':-)','<img src=\"http://openfirst.sourceforge.net/image/icon/emote/smile.png\" alt=\":-)\" title=\":-)\" />');
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES (':-(','<img src=\"http://openfirst.sourceforge.net/image/icon/emote/frown.png\" alt=\":-(\" title=\":-(\" />');
***************
*** 439,441 ****
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />');
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>';
\ No newline at end of file
--- 440,447 ----
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />');
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>';
! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('fuck','****');
! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('shit','****');
! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('pussy','*****');
! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('ass','***');
! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('motherfucker','************');
\ No newline at end of file
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv28393/config
Modified Files:
auth.php first.php globals-default.php globals.php index.php
install.php modules.php
Log Message:
Convert code to comply with openFIRST coding standards, fix incorrect headers, add more verbosity to some descriptions and explanations where they might be useful.
Index: auth.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/auth.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** auth.php 21 Jun 2003 15:48:35 -0000 1.2
--- auth.php 28 Jun 2003 17:29:29 -0000 1.3
***************
*** 32,36 ****
// Provide functions for the various encryption types...
! // syntax: cryptpassword(password, encryption-type, salt);
function cryptpassword ($password, $encryption = "md5", $salt="") {
--- 32,36 ----
// Provide functions for the various encryption types...
! // syntax: cryptpassword(password, encryption-type, salt);
function cryptpassword ($password, $encryption = "md5", $salt="") {
***************
*** 47,71 ****
}
- function membersmenu($membertype) {
- global $basepath;
- $basep = $basepath;
- // Show a members area menu.
- echo("<p><a href='$basep/members'>Members Home</a>
-
- <a href='$basep/awards/admin/'>Manage Awards</a>
- <a href='$basep/members/profile.php'>Members Profiles</a>
- <a href='$basep/members/updateprofile.php'>Update Profile</a>
- <a href='$basep/members/skills.php'>Update Skills</a>
- <a href='$basep/members/logout.php'>Logout</a>");
- if($membertype == "administrator") {
- echo("<br /><b>Admin</b>: <a href='$basep/config/'>Configuration Area</a> <a href='$basep/members/adduser.php'>Add User</a>");
- if(is_readable("$basep/news/addnews.php") == true) {
- echo(" <a href='$basep/news/addnews.php'>Add news</a>");
- }
- echo ("</p>");
- }
- return(0);
- }
-
function showlogin () {
// Show a login form for the user.
--- 47,50 ----
***************
*** 87,175 ****
$query = mysql_query("SELECT * FROM ofirst_members WHERE authcode='$authcode';");
if(mysql_errno() == 0 && mysql_num_rows($query) == 1) {
! $user = mysql_fetch_object($query);
} else {
! unset($_SESSION['authcode']);
!
! $query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';");
! if(mysql_errno() == 0) {
! $user = mysql_fetch_object($query);
! if(mysql_num_rows($query) == 1) {
! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) {
! session_register("authcode");
! $_SESSION["authcode"] = rand(1,50000000);
! $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
! } else {
! unset($user);
! }
! }}
}
! } elseif(isset($_POST["login"]) == true && isset($_POST["password"]) == true) {
!
$query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';");
if(mysql_errno() == 0) {
! $user = mysql_fetch_object($query);
! if(mysql_num_rows($query) == 1) {
! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) {
! session_register("authcode");
! $_SESSION["authcode"] = rand(1,50000000);
! $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
! } else {
! unset($user);
! }
! }
}
! }
if(mysql_errno() != 0) {
! // There was an error, check if it's because they didn't create the
! // members table.
! if(mysql_errno() == 1146) {
! echo("<p>Members table does not exist, therefore I am creating it.</p>");
! $query = mysql_query("CREATE TABLE ofirst_members (
! UNIQUE(user),
! user CHAR(128),
! firstname TINYTEXT,
! lastname TINYTEXT,
! lastseen TINYTEXT,
! ip TINYTEXT,
! password TEXT,
! authcode TEXT,
! membertype TINYTEXT,
! division TINYTEXT,
! year INTEGER,
! email TEXT,
! icq INTEGER,
! aim TINYTEXT,
! msn TINYTEXT,
! yim TINYTEXT,
! description TEXT,
! signature TINYTEXT,
! dateregistered TINYTEXT,
! picturelocation TINYTEXT,
! team INTEGER,
! skills TEXT
! );");
! if(mysql_errno() == 0) {
! // Insert a default user 'administrator' and set them to have
! // administrative access and some password.
!
! $query = mysql_query("INSERT INTO ofirst_members (user,
! membertype, password) VALUES('admin', 'administrator', '" .
! cryptpassword("openfirst", $encryption) ."');");
! echo("<p>Members table has been created. Please login as <b>admin</b> using the password <b>openfirst</b> to set configuration options.</p>");
! showlogin();
! die();
! } else {
! die(mysql_error());
! }
! }
}
! if(isset($user->user)) {
! $query = "UPDATE ofirst_members SET lastseen='" . date("h:m:s M d, Y") . "' WHERE user='$user->user';";
! $q = mysql_query($query);
! unset($q);
! }
! ?>
--- 66,153 ----
$query = mysql_query("SELECT * FROM ofirst_members WHERE authcode='$authcode';");
if(mysql_errno() == 0 && mysql_num_rows($query) == 1) {
! $user = mysql_fetch_object($query);
} else {
! unset($_SESSION['authcode']);
+ $query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';");
+ if(mysql_errno() == 0) {
+ $user = mysql_fetch_object($query);
+ if(mysql_num_rows($query) == 1) {
+ if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) {
+ session_register("authcode");
+ $_SESSION["authcode"] = rand(1,50000000);
+ $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
+ } else {
+ unset($user);
+ }
+ }
+ }
}
! } elseif(isset($_POST["login"]) == true && isset($_POST["password"]) == true) {
!
$query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';");
if(mysql_errno() == 0) {
! $user = mysql_fetch_object($query);
! if(mysql_num_rows($query) == 1) {
! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) {
! session_register("authcode");
! $_SESSION["authcode"] = rand(1,50000000);
! $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
! } else {
! unset($user);
! }
! }
}
! }
if(mysql_errno() != 0) {
! // There was an error, check if it's because they didn't create the
! // members table.
! if(mysql_errno() == 1146) {
! echo("<p>Members table does not exist, therefore I am creating it.</p>");
! $query = mysql_query("CREATE TABLE ofirst_members (
! UNIQUE(user),
! user CHAR(128),
! firstname TINYTEXT,
! lastname TINYTEXT,
! lastseen TINYTEXT,
! ip TINYTEXT,
! password TEXT,
! authcode TEXT,
! membertype TINYTEXT,
! division TINYTEXT,
! year INTEGER,
! email TEXT,
! icq INTEGER,
! aim TINYTEXT,
! msn TINYTEXT,
! yim TINYTEXT,
! description TEXT,
! signature TINYTEXT,
! dateregistered TINYTEXT,
! picturelocation TINYTEXT,
! team INTEGER,
! skills TEXT
! );");
! if(mysql_errno() == 0) {
! // Insert a default user 'administrator' and set them to have
! // administrative access and some password.
! $query = mysql_query("INSERT INTO ofirst_members (user,
! membertype, password) VALUES('admin', 'administrator', '" .
! cryptpassword("openfirst", $encryption) ."');");
! echo("<p>Members table has been created. Please login as <b>admin</b> using the password <b>openfirst</b> to set configuration options.</p>");
! showlogin();
! die();
! } else {
! die(mysql_error());
! }
! }
}
! if(isset($user->user)) {
! $query = "UPDATE ofirst_members SET lastseen='" . date("h:m:s M d, Y") . "' WHERE user='$user->user';";
! $q = mysql_query($query);
! unset($q);
! }
! ?>
\ No newline at end of file
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** first.php 27 Jun 2003 23:55:29 -0000 1.11
--- first.php 28 Jun 2003 17:29:29 -0000 1.12
***************
*** 33,48 ****
if(isset($_POST["login"])) {
! // User is attempting to login for the first time.
! die("You have successfully logged in.
! <a href='index.php'>Access Administrative Configuration Options</a>");
}
if(isset($_POST["ostype"])) {
! // They have submitted the form, write a new globals.php file and test
! // options.
! if(is_writable("./globals.php")) {
! $of = fopen("./globals.php", "w");
! fputs($of, "<?php
! /*
* OpenFIRST base configuration file
* This file has been automatically generated by first.php.
--- 33,47 ----
if(isset($_POST["login"])) {
! // User is attempting to login for the first time.
! die("You have successfully logged in. <a href='index.php'>Access Administrative Configuration Options</a> (you will be prompted for your password again)");
}
if(isset($_POST["ostype"])) {
! // They have submitted the form, write a new globals.php file and test
! // options.
! if(is_writable("./globals.php")) {
! $of = fopen("./globals.php", "w");
! fputs($of, "<?php
! /*
* OpenFIRST base configuration file
* This file has been automatically generated by first.php.
***************
*** 93,141 ****
if(mysql_errno() == 0) {
// Begin to loop through modules from the databaes
! while(\$module = mysql_fetch_object(\$incl)) {
! // Check if the value is try, if it is then run an include
! if( (bool) \$module->active == true) {
! // Check if there are includes that need to be included
! if(! \$module->includes == \"\"){
! // If the list is not empty then explode the value and put it into inclist
! \$inclist = explode(\",\",\$module->includes);
! // This is to remove an error that you have if you don't check if there are more then 2
! if(count(\$inclist) >= 2){
! // Loop through the inclist and add them according to their paths
! foreach(\$inclist As \$inc){
! include(\"\$fbasepath/\$module->modulename/\$inc\");
! }
! } else {
! // If there is only 1 include available then use this line to include it instead
! include(\"\$fbasepath/\$module->modulename/\$module->includes\");
! }
! }
! // If the module has requested to be shown on the menu then add it
! if( (bool) \$module->showonmenu == true) {
! // If it is the current module then color the item
! if (\$currentmodule == \$module->modulename){
! \$headers .= \" » <font color='red'><b><a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a></b></font> |\";
! // Declare important variables so that headers can pick them up and preview them
! \$adminnav = str_replace(\"\\\$basepath\", \$basepath, \$module->adminnavigation);
! \$subnav = str_replace(\"\\\$basepath\", \$basepath, \$module->modulenavigation);
! }else{
! \$headers .= \" » <a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a> |\";
! }
! }
! }
! }
! }
! session_write_close();
?>");
fclose($of);
include("../config/globals.php");
include("$header");
! echo("<h1>OpenFIRST Software Configured</h1>
<p>If this page does not display errors elsewhere, then your openFIRST has now been successfully
configured. If there are errors, check your configuration options and try again. You may now
--- 92,140 ----
if(mysql_errno() == 0) {
// Begin to loop through modules from the databaes
! while(\$module = mysql_fetch_object(\$incl)) {
! // Check if the value is try, if it is then run an include
! if( (bool) \$module->active == true) {
! // Check if there are includes that need to be included
! if(! \$module->includes == \"\"){
! // If the list is not empty then explode the value and put it into inclist
! \$inclist = explode(\",\",\$module->includes);
! // This is to remove an error that you have if you don't check if there are more then 2
! if(count(\$inclist) >= 2){
! // Loop through the inclist and add them according to their paths
! foreach(\$inclist As \$inc){
! include(\"\$fbasepath/\$module->modulename/\$inc\");
! }
! } else {
! // If there is only 1 include available then use this line to include it instead
! include(\"\$fbasepath/\$module->modulename/\$module->includes\");
! }
! }
! // If the module has requested to be shown on the menu then add it
! if( (bool) \$module->showonmenu == true) {
! // If it is the current module then color the item
! if (\$currentmodule == \$module->modulename){
! \$headers .= \" » <font color='red'><b><a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a></b></font> |\";
! // Declare important variables so that headers can pick them up and preview them
! \$adminnav = str_replace(\"\\\$basepath\", \$basepath, \$module->adminnavigation);
! \$subnav = str_replace(\"\\\$basepath\", \$basepath, \$module->modulenavigation);
! } else {
! \$headers .= \" » <a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a> |\";
! }
! }
! }
! }
! }
! session_write_close();
?>");
fclose($of);
include("../config/globals.php");
include("$header");
! echo("<h1>OpenFIRST Software Configured</h1>
<p>If this page does not display errors elsewhere, then your openFIRST has now been successfully
configured. If there are errors, check your configuration options and try again. You may now
***************
*** 143,155 ****
options. You should be able to login below using the username <b>admin</b> and the password
<b>openfirst</b>, if not, then either the password for that account has been changed, or the
! MySQL settings are incorrect.</p>
! ");
! showlogin();
die(include("$footer"));
! } else {
if(is_readable("config/headers.php")) {
! include("config/headers.php");
} else {
! include("../config/headers.php");
}
echo("<h1>Base Configuration Error</h1>
--- 142,153 ----
options. You should be able to login below using the username <b>admin</b> and the password
<b>openfirst</b>, if not, then either the password for that account has been changed, or the
! MySQL settings are incorrect.</p>");
! showlogin();
die(include("$footer"));
! } else {
if(is_readable("config/headers.php")) {
! include("config/headers.php");
} else {
! include("../config/headers.php");
}
echo("<h1>Base Configuration Error</h1>
***************
*** 162,179 ****
cd config
<br />chmod 666 globals.php
! </code></p>
! ");
! }
} else {
! if(is_readable("config/headers.php")) {
! include("config/headers.php");
! } else {
! include("../config/headers.php");
! }
! // User is visiting the configuration page, present them with a form
! // of options to fill out.
?>
<h1>Base Configuration</h1>
! <p>Congratulations on your choice of OpenFIRST software. Please proceed through this setup wizard
to get your new OpenFIRST portal software set up and working quickly and painlessly.</p>
<table>
--- 160,176 ----
cd config
<br />chmod 666 globals.php
! </code></p>");
! }
! } else {
! if(is_readable("config/headers.php")) {
! include("config/headers.php");
} else {
! include("../config/headers.php");
! }
! // User is visiting the configuration page, present them with a form
! // of options to fill out.
?>
<h1>Base Configuration</h1>
! <p>Congratulations on your choice of OpenFIRST software. Please proceed through this setup wizard
to get your new OpenFIRST portal software set up and working quickly and painlessly.</p>
<table>
***************
*** 215,221 ****
}
if(is_readable("config/footers.php")) {
! include("config/footers.php");
} else {
! include("../config/footers.php");
}
! ?>
--- 212,218 ----
}
if(is_readable("config/footers.php")) {
! include("config/footers.php");
} else {
! include("../config/footers.php");
}
! ?>
\ No newline at end of file
Index: globals-default.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/globals-default.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** globals-default.php 24 Jun 2003 13:22:26 -0000 1.2
--- globals-default.php 28 Jun 2003 17:29:29 -0000 1.3
***************
*** 7,15 ****
*/
if(file_exists("../config/first.php")) {
! header("Location: ../config/first.php");
} elseif(file_exists("config/first.php")) {
! header("Location: config/first.php");
} elseif(file_exists("../../config/first.php")) {
! header("Location: ../../config/first.php");
}
! ?>
--- 7,15 ----
*/
if(file_exists("../config/first.php")) {
! header("Location: ../config/first.php");
} elseif(file_exists("config/first.php")) {
! header("Location: config/first.php");
} elseif(file_exists("../../config/first.php")) {
! header("Location: ../../config/first.php");
}
! ?>
\ No newline at end of file
Index: globals.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/globals.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** globals.php 24 Jun 2003 13:22:26 -0000 1.2
--- globals.php 28 Jun 2003 17:29:29 -0000 1.3
***************
*** 7,15 ****
*/
if(file_exists("../config/first.php")) {
! header("Location: ../config/first.php");
} elseif(file_exists("config/first.php")) {
! header("Location: config/first.php");
} elseif(file_exists("../../config/first.php")) {
! header("Location: ../../config/first.php");
}
! ?>
--- 7,15 ----
*/
if(file_exists("../config/first.php")) {
! header("Location: ../config/first.php");
} elseif(file_exists("config/first.php")) {
! header("Location: config/first.php");
} elseif(file_exists("../../config/first.php")) {
! header("Location: ../../config/first.php");
}
! ?>
\ No newline at end of file
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php 28 Jun 2003 15:37:58 -0000 1.3
--- index.php 28 Jun 2003 17:29:29 -0000 1.4
***************
*** 33,44 ****
?>
<h1>OpenFIRST Configuration Area</h1>
! <p><a href="install.php">Install Component</a> - required to install several new
openFIRST modules.</p>
! <p><a href="modules.php">Module Administrator</a> - required to manage openFIRST
modules.</p>
<?php
} else {
! showlogin();
}
include($footer);
! ?>
--- 33,44 ----
?>
<h1>OpenFIRST Configuration Area</h1>
! <p><a href="install.php">Install Component</a> - required to install several new
openFIRST modules.</p>
! <p><a href="modules.php">Module Administrator</a> - required to manage openFIRST
modules.</p>
<?php
} else {
! showlogin();
}
include($footer);
! ?>
\ No newline at end of file
Index: install.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/install.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** install.php 28 Jun 2003 15:37:58 -0000 1.11
--- install.php 28 Jun 2003 17:29:29 -0000 1.12
***************
*** 30,42 ****
include("../config/globals.php");
include($header);
-
- membersmenu($user->membertype);
-
?>
! <h1>SQL Install</h1>
<p>This utility will create the tables required for certain openFIRST
! components to run. Select the SQL scripts you would like to
! install...</p>
<form method="post" action="install.php">
--- 30,40 ----
include("../config/globals.php");
include($header);
?>
! <h1>Module Install</h1>
<p>This utility will create the tables required for certain openFIRST
! components to run. Select the modules you would like to
! install. Once installed, modules must be enabled from the
! <a href="modules.php"><strong>Module Administrator</strong></a>.</p>
<form method="post" action="install.php">
***************
*** 50,55 ****
if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") {
! $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL,
! `showonmenu` BOOL, `active` BOOL, `adminnavigation` TEXT,
`modulenavigation` TEXT, `includes` TEXT, PRIMARY KEY (`modulename`));");
--- 48,53 ----
if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") {
! $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL,
! `showonmenu` BOOL, `active` BOOL, `adminnavigation` TEXT,
`modulenavigation` TEXT, `includes` TEXT, PRIMARY KEY (`modulename`));");
***************
*** 61,65 ****
}
}
! echo(" - <b>Submitted, and added.</b>");
fclose($sf);
}
--- 59,63 ----
}
}
! echo(" - <b>Submitted, and added.</b> - This module must be configured in the module administrator to show up on menus.");
fclose($sf);
}
***************
*** 79,84 ****
if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") {
! $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL,
! `showonmenu` BOOL, `active` BOOL, `adminnavigation` TEXT,
`modulenavigation` TEXT, `includes` TEXT, PRIMARY KEY (`modulename`));");
--- 77,82 ----
if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") {
! $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL,
! `showonmenu` BOOL, `active` BOOL, `adminnavigation` TEXT,
`modulenavigation` TEXT, `includes` TEXT, PRIMARY KEY (`modulename`));");
***************
*** 107,111 ****
showlogin();
}
-
include($footer); ?>
--- 105,108 ----
Index: modules.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/modules.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** modules.php 28 Jun 2003 15:37:58 -0000 1.3
--- modules.php 28 Jun 2003 17:29:29 -0000 1.4
***************
*** 1,9 ****
<?php
/*
! * openFIRST.base - config/install.php
*
* Copyright (C) 2003,
* openFIRST Project
! * Original Author: Tim Ginn <tim...@po...>
*
* This program is free software; you can redistribute it and/or modify
--- 1,9 ----
<?php
/*
! * openFIRST.base - config/modules.php
*
* Copyright (C) 2003,
* openFIRST Project
! * Original Author: Dave DiBiase <dav...@ea...>
*
* This program is free software; you can redistribute it and/or modify
***************
*** 26,30 ****
*
*/
! // Purpose: set up OpenFIRST modules -- currently only installs MySQL tables
include("../config/globals.php");
--- 26,30 ----
*
*/
! // Purpose: configure OpenFIRST modules, including their position on menus
include("../config/globals.php");
***************
*** 34,80 ****
if($user->membertype == "administrator") {
! // Check if user wishes to make updates
! if(ISSET($_POST['update'])){
! // Query for current module information and loop through with while
! $query = mysql_query("SELECT * FROM ofirst_config");
! while($module = mysql_fetch_object($query)){
! // Set values to update db for checkboxes
! if(ISSET($_POST[$module->modulename.'-active'])){ $active = "1"; }else{ $active = "0"; }
! if(ISSET($_POST[$module->modulename.'-showonmenu'])){ $showonmenu = "1"; }else{ $showonmenu = "0"; }
!
! // Creater query string then update information in database
! mysql_query("UPDATE ofirst_config SET
! modulename = '".$_POST[$module->modulename.'-modulename']."',
! includes = '".$_POST[$module->modulename.'-includes']."',
! showonmenu = '".$showonmenu."',
! active = '".$active."' WHERE modulename = '".$module->modulename."'") or die(mysql_error());
! }
! // Successful creation response and die with footers.
! echo "<br><br><center>Module information has been updated, thank you. [ <a href='modules.php'>Modules</a> ]<br><br>";
! die(include($footer));
!
! }
?>
<h1>Module Administrator</h1>
! <p>This utility will allow you to manage modules for certain openFIRST components.
! You may find the options below:</p>
<form method="post" action="modules.php">
! <table width="52%" align="center">
<tr>
! <td width="32%">Module Name</td>
! <td width="14%">Activate</td>
! <td width="19%">Show Menu</td>
! <td width="35%">Includes</td>
</tr>
! <?php
! $query = mysql_query("SELECT * FROM ofirst_config");
! while($module = mysql_fetch_object($query)){
! ?>
! <tr>
<td><input name="<?php echo $module->modulename; ?>-modulename" type="text" id="modulename" value="<?php echo $module->modulename; ?>"></td>
<td><input name="<?php echo $module->modulename; ?>-active" type="checkbox" id="active" value="checkbox" <?php if((bool) $module->active == true){ echo "checked"; } ?>></td>
--- 34,78 ----
if($user->membertype == "administrator") {
! // Check if user wishes to make updates
! if(isset($_POST['update'])) {
! // Query for current module information and loop through with while
! $query = mysql_query("SELECT * FROM ofirst_config");
! while($module = mysql_fetch_object($query)){
! // Set values to update db for checkboxes
! if(isset($_POST[$module->modulename.'-active'])) { $active = "1"; } else { $active = "0"; }
! if(isset($_POST[$module->modulename.'-showonmenu'])){ $showonmenu = "1"; } else { $showonmenu = "0"; }
! // Creater query string then update information in database
! mysql_query("UPDATE ofirst_config SET
! modulename = '".$_POST[$module->modulename.'-modulename']."',
! includes = '".$_POST[$module->modulename.'-includes']."',
! showonmenu = '".$showonmenu."',
! active = '".$active."' WHERE modulename = '".$module->modulename."'") or die(mysql_error());
! }
! // Successful creation response and die with footers.
! echo "<p>Module information has been updated, thank you. [ <a href='modules.php'>Modules</a> ]</p>";
! die(include($footer));
!
! }
?>
<h1>Module Administrator</h1>
! <p>This utility will allow you to manage modules for certain openFIRST components. This includes enabling them, and setting them to be displayed on the menus.</p>
<form method="post" action="modules.php">
! <table>
<tr>
! <th>Module Name</th>
! <th>Activate</th>
! <th>Show Menu</th>
! <th>Includes</th>
</tr>
! <?php
! $query = mysql_query("SELECT * FROM ofirst_config");
! while($module = mysql_fetch_object($query)){
! ?>
! <tr>
<td><input name="<?php echo $module->modulename; ?>-modulename" type="text" id="modulename" value="<?php echo $module->modulename; ?>"></td>
<td><input name="<?php echo $module->modulename; ?>-active" type="checkbox" id="active" value="checkbox" <?php if((bool) $module->active == true){ echo "checked"; } ?>></td>
***************
*** 82,95 ****
<td><input name="<?php echo $module->modulename; ?>-includes" type="text" id="includes" value="<?php echo $module->includes; ?>" size="30"></td>
</tr>
! <?php } ?>
</table>
- <br />
<input type="submit" name="update" value="Update Values" />
</form>
! <?php } else {
! showlogin();
! }
!
!
! include($footer); ?>
--- 80,93 ----
<td><input name="<?php echo $module->modulename; ?>-includes" type="text" id="includes" value="<?php echo $module->includes; ?>" size="30"></td>
</tr>
! <?php
! }
! ?>
</table>
<input type="submit" name="update" value="Update Values" />
</form>
! <?php
! } else {
! showlogin();
! }
! include($footer); ?>
\ No newline at end of file
|
|
From: <xt...@us...> - 2003-06-28 17:24:02
|
Update of /cvsroot/openfirst/news
In directory sc8-pr-cvs1:/tmp/cvs-serv21079
Modified Files:
index.php
Log Message:
Fix redundant include
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/news/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php 21 Jun 2003 13:09:33 -0000 1.3
--- index.php 28 Jun 2003 16:55:21 -0000 1.4
***************
*** 28,32 ****
include("../config/globals.php");
include($header);
- include("./viewnews.php");
shownews(5); // Shows 5 pieces of news.
--- 28,31 ----
|
|
From: <xt...@us...> - 2003-06-28 16:59:18
|
Update of /cvsroot/openfirst/base
In directory sc8-pr-cvs1:/tmp/cvs-serv21530
Modified Files:
index.php
Log Message:
Add some functionality to the main page.
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/base/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php 7 Jun 2003 16:11:31 -0000 1.1.1.1
--- index.php 28 Jun 2003 16:59:15 -0000 1.2
***************
*** 32,40 ****
include($header);
?>
! <h1>OpenFIRST Web Portal</h1>
! <p>Congratulations, your OpenFIRST Web Portal has been successfully set up. You may wish to <a
! href="<?php echo("$basepath/config/"); ?>">Login and configure options</a></p>
<?php
include($footer);
--- 32,55 ----
include($header);
+ $count = 0;
?>
! <h1>OpenFIRST Web Portal</h1>
! <table>
! <tr>
! <?php
! if(isset($headers) == false) {
! echo("You may: <a href='config/'>login to configure openFIRST options</a>.");
! }
+ echo("<th>Features</th><td>$headers</td></tr>");
+
+ if(function_exists("shownews")) {
+ echo("<tr><th>News</th>
+ <td>" . shownews(5) . "</td>");
+ }
+
+ ?>
+ </tr>
+ </table>
<?php
include($footer);
|
|
From: <xt...@us...> - 2003-06-28 16:27:44
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv17431
Modified Files:
headers.php
Log Message:
Add more spacing to tables
Index: headers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/headers.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** headers.php 28 Jun 2003 16:22:24 -0000 1.12
--- headers.php 28 Jun 2003 16:27:39 -0000 1.13
***************
*** 20,24 ****
#adminmenu a:active { color: #ffffff; }
#adminmenu a:hover { color: #ffffff; }
!
a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
--- 20,24 ----
#adminmenu a:active { color: #ffffff; }
#adminmenu a:hover { color: #ffffff; }
!
a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; }
***************
*** 33,36 ****
--- 33,38 ----
table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; margin-left:auto; margin-right:auto; }
+ td { padding: 5px; }
+ th { padding: 5px; }
table.menu { border-left:0px;border-right:0px;border-bottom:0px; }
td.menu {border-left:0px;border-right:0px;border-bottom:0px; }
|
|
From: <xt...@us...> - 2003-06-28 16:22:27
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv16813
Modified Files:
headers.php
Log Message:
Center all tables
Index: headers.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/headers.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** headers.php 28 Jun 2003 02:22:16 -0000 1.11
--- headers.php 28 Jun 2003 16:22:24 -0000 1.12
***************
*** 32,36 ****
#topmenu a:hover { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none; }
! table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; }
table.menu { border-left:0px;border-right:0px;border-bottom:0px; }
td.menu {border-left:0px;border-right:0px;border-bottom:0px; }
--- 32,36 ----
#topmenu a:hover { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none; }
! table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; margin-left:auto; margin-right:auto; }
table.menu { border-left:0px;border-right:0px;border-bottom:0px; }
td.menu {border-left:0px;border-right:0px;border-bottom:0px; }
|
|
From: <dav...@us...> - 2003-06-28 16:14:30
|
Update of /cvsroot/openfirst/guestbook/setup In directory sc8-pr-cvs1:/tmp/cvs-serv14990 Modified Files: setup.mysql Log Message: Separated links in module nav using | Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/guestbook/setup/setup.mysql,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** setup.mysql 28 Jun 2003 00:36:29 -0000 1.6 --- setup.mysql 28 Jun 2003 16:08:23 -0000 1.7 *************** *** 1,2 **** CREATE TABLE ofirst_guestbook (`guest` text, `email` text, `ICQ` text, `AIM` text, `MSN` text, `YIM` text, `IRC` text, `webpage` text, `location` text, `comment` text, `date` text, `deletecode` text) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='guestbook',showonmenu='0',active='0',adminnavigation='<a href="$basepath/guestbook/deleteentry.php">Delete Entry</a>',modulenavigation='<a href="$basepath/guestbook/">View Guestbook</a> <a href="$basepath/guestbook/sign.php">Sign Guestbook</a>'; --- 1,2 ---- CREATE TABLE ofirst_guestbook (`guest` text, `email` text, `ICQ` text, `AIM` text, `MSN` text, `YIM` text, `IRC` text, `webpage` text, `location` text, `comment` text, `date` text, `deletecode` text) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='guestbook',showonmenu='0',active='0',adminnavigation='<a href="$basepath/guestbook/deleteentry.php">Delete Entry</a>',modulenavigation='<a href="$basepath/guestbook/">View Guestbook</a> | <a href="$basepath/guestbook/sign.php">Sign Guestbook</a>'; |
|
From: <xt...@us...> - 2003-06-28 16:09:22
|
Update of /cvsroot/openfirst/messenger
In directory sc8-pr-cvs1:/tmp/cvs-serv15113
Modified Files:
inbox.php index.php messenger.php newmsg.php viewmsg.php
Removed Files:
messenger.sql
Log Message:
Update messenger to comply with openFIRST coding standards.
Index: inbox.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/inbox.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** inbox.php 21 Jun 2003 13:03:51 -0000 1.2
--- inbox.php 28 Jun 2003 16:09:19 -0000 1.3
***************
*** 1,3 ****
! <?php
/*
* openFIRST.messenger - inbox.php
--- 1,3 ----
! <?php
/*
* openFIRST.messenger - inbox.php
***************
*** 28,59 ****
include("../config/globals.php");
include($header);
! mysql_select_db($sqldatabase,$sqlconnection);
!
// If querystring delete is set with a value then delete the specified recordset
! if (ISSET($_GET['DELETE'])){
mysql_query("DELETE FROM ofirst_messages WHERE ID='".$_GET['DELETE']."'") or die(mysql_error());
! die("<br><br><br><center>Message has been removed, thank you! [ <a href='inbox.php'>Inbox</a> ]");
}
! ?>
<h1>Visitor Inbox for Messaging</h1>
! <p>[ <a href="inbox.php">Current Messages For You </a>] [ <a href="newmsg.php">Compose Message </a>] [ <a href="./">Online
! Users </a>] <br><br><br><center><?php echo $usersonline."<br>".$usersonpage; ?><br>
! <br></center>
! <table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#999999">
! <tr bgcolor="#999999">
! <td></td>
! <td width="40%"><div align="center"><font color="#FFFFFF">Subject</font></div></td>
! <td width="20%"><div align="center"><font color="#FFFFFF">Date</font></div></td>
! <td width="21%"><div align="center"><font color="#FFFFFF">Sender</font></div></td>
! <td width="19%"><div align="center"><font color="#FFFFFF">Option</font></div></td>
</tr>
<?php
! // Retrieve Messages relating to the users IP address then loop through them
! $query = mysql_query("SELECT * FROM ofirst_messages WHERE Receiver = '$IP'");
! while($Messages = mysql_fetch_object($query)){
! $queryuser = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress = '".$Messages->Sender."'");
! $senderinfo = mysql_fetch_object($queryuser);
?>
<tr>
--- 28,55 ----
include("../config/globals.php");
include($header);
!
// If querystring delete is set with a value then delete the specified recordset
! if (isset($_GET['DELETE'])) {
mysql_query("DELETE FROM ofirst_messages WHERE ID='".$_GET['DELETE']."'") or die(mysql_error());
! die("<p>Message has been removed, thank you! [ <a href='inbox.php'>Inbox</a> ]</p>");
}
! ?>
<h1>Visitor Inbox for Messaging</h1>
! <table>
! <tr>
! <th></th>
! <th>Subject</th>
! <th>Date</th>
! <th>Sender</th>
! <th>Option</th>
</tr>
<?php
! // Retrieve Messages relating to the users IP address then loop through them
! $query = mysql_query("SELECT * FROM ofirst_messages WHERE Receiver = '$IP'");
! while($Messages = mysql_fetch_object($query)){
! $queryuser = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress = '".$Messages->Sender."'");
! $senderinfo = mysql_fetch_object($queryuser);
?>
<tr>
***************
*** 62,70 ****
<?php
! if (empty($Messages->Subject)){
! echo "< No Subject >";
! }else{
! echo $Messages->Subject;
! }
?>
--- 58,66 ----
<?php
! if (empty($Messages->Subject)){
! echo "< No Subject >";
! } else {
! echo $Messages->Subject;
! }
?>
***************
*** 77,79 ****
<?php } ?>
</table>
! <?php include($footer); ?>
--- 73,77 ----
<?php } ?>
</table>
! <?php
! include($footer);
! ?>
\ No newline at end of file
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php 21 Jun 2003 13:03:51 -0000 1.2
--- index.php 28 Jun 2003 16:09:19 -0000 1.3
***************
*** 1,3 ****
! <?php
/*
* openFIRST.messenger - index.php
--- 1,3 ----
! <?php
/*
* openFIRST.messenger - index.php
***************
*** 28,59 ****
include("../config/globals.php");
include($header);
! mysql_select_db($sqldatabase,$sqlconnection);
! ?>
<h1>Current Online Users</h1>
! <p>[ <a href="inbox.php">Current Messages For You </a>] [ <a href="newmsg.php">Compose Message </a>] [ <a href="./">Online Users </a>]
! <br><br>
! <center><?php echo $usersonline."<br>".$usersonpage; ?></center>
! <br><br>
! <table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#999999">
! <tr bgcolor="#999999">
! <td></td>
! <td width="33%"><div align="center"><font color="#FFFFFF">User Level</font></div></td>
! <td width="34%"><div align="center"><font color="#FFFFFF">Previewing</font></div></td>
! <td width="33%"><div align="center"><font color="#FFFFFF">Options</font></div></td>
</tr>
<?php
! // Find user online records in the database
! $query = mysql_query("SELECT * FROM ofirst_usersonline");
! while($user = mysql_fetch_object($query)){
?>
<tr>
<td><img src="visitors.png" alt="Visitor"></td>
! <td><?php if ($user->Member = "none"){ echo "Visiting Guest #".$user->ID; }else{ echo $user->Member; } ?></td>
<td><?php echo $user->Location; ?></td>
! <td>[ <a href="newmsg.php?REPLY=<?php echo $user->ID; ?>"> Message User</a>
]</td>
</tr>
! <?php } ?>
</table>
! <?php include($footer); ?>
--- 28,64 ----
include("../config/globals.php");
include($header);
! ?>
<h1>Current Online Users</h1>
! <table>
! <tr>
! <th></th>
! <th>User Level</th>
! <th>Previewing</th>
! <th>Options</th>
</tr>
<?php
! // Find user online records in the database
! $query = mysql_query("SELECT * FROM ofirst_usersonline");
! while($user = mysql_fetch_object($query)){
?>
<tr>
<td><img src="visitors.png" alt="Visitor"></td>
! <td><?php
! if ($user->Member = "none") {
! echo "Visiting Guest #".$user->ID;
! } else {
! echo $user->Member;
! }
! ?></td>
<td><?php echo $user->Location; ?></td>
! <td>[ <a href="newmsg.php?REPLY=<?php echo $user->ID; ?>"> Message User</a>
]</td>
</tr>
! <?php
! }
! ?>
</table>
! <?php
! include($footer);
! ?>
\ No newline at end of file
Index: messenger.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/messenger.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** messenger.php 21 Jun 2003 13:03:51 -0000 1.2
--- messenger.php 28 Jun 2003 16:09:19 -0000 1.3
***************
*** 1,3 ****
! <?php
/*
* openFIRST.messenger - messenger.php
--- 1,3 ----
! ga<?php
/*
* openFIRST.messenger - messenger.php
***************
*** 26,30 ****
*
*/
- mysql_select_db($sqldatabase,$sqlconnection);
// Declare information to be used in all messenger files
$IP = $_SERVER['REMOTE_ADDR'];
--- 26,29 ----
***************
*** 34,51 ****
// Check if a record for the persons IP is made if not then create it or else update current record info
$query = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress = '".$IP."'");
!
if (mysql_num_rows($query) == 0){
! $timeout = $TIME+30;
! mysql_query("INSERT INTO ofirst_usersonline (IPAddress,Location,Timestamp,Member) values(
'".$IP."'
,'".$SCRIPT."'
,'".$timeout."'
,'none')") or die("INSERT: ".mysql_error());
! }else{
! $timeout = $TIME + 480;
! mysql_query("UPDATE ofirst_usersonline SET Timestamp = '".$timeout."', Location = '".$SCRIPT."' WHERE IPAddress = '".$IP."'") or die("UPDATE: ".mysql_error());
}
-
// Delete all records that are overdue the Timestamp expiry amount based on current time
--- 33,49 ----
// Check if a record for the persons IP is made if not then create it or else update current record info
$query = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress = '".$IP."'");
!
if (mysql_num_rows($query) == 0){
! $timeout = $TIME+30;
! mysql_query("INSERT INTO ofirst_usersonline (IPAddress,Location,Timestamp,Member) values(
'".$IP."'
,'".$SCRIPT."'
,'".$timeout."'
,'none')") or die("INSERT: ".mysql_error());
! } else {
! $timeout = $TIME + 480;
! mysql_query("UPDATE ofirst_usersonline SET Timestamp = '".$timeout."', Location = '".$SCRIPT."' WHERE IPAddress = '".$IP."'") or die("UPDATE: ".mysql_error());
}
// Delete all records that are overdue the Timestamp expiry amount based on current time
***************
*** 72,89 ****
// If there are one ore more then one Messages then preview the Message box
! if($Messages >= 1){
?>
! <table style="position: absolute; left: 306px; top: 64px; width: 384px; height: 19px" width="400" border="1" cellpadding="4" cellspacing="0" bordercolor="#666666" bgcolor="#CCCCCC">
! <tr>
! <td height="25" bgcolor="#999999"><div align="center"><font color="#FFFFFF">Private
! Messaging System Alert</font></div></td>
</tr>
<tr>
! <td height="25"><p align="center"><br>
! <img src="<?php echo $home; ?>/messenger/msg.png" alt="Message" width="28" height="25"> <br>
! You have <b><?php echo $Messages; ?></b> new Messages(s) in your visitor
inbox!<br>
<br>
! [ <a href="<?php echo $home; ?>/messenger/inbox.php">Visitor Inbox</a> ]<br>
<br>
</p></td>
--- 70,85 ----
// If there are one ore more then one Messages then preview the Message box
! if ($Messages >= 1) {
?>
! <table style="position: absolute; left: 306px; top: 64px; width: 384px; height: 19px" width="400">
! <tr>
! <th>Private Messaging System Alert</th>
</tr>
<tr>
! <td height="25"><img src="<?php echo $basepath; ?>/messenger/msg.png" alt="New Message"> <br>
! You have <b><?php echo $Messages; ?></b> new Messages(s) in your visitor
inbox!<br>
<br>
! [ <a href="<?php echo $basepath; ?>/messenger/inbox.php">Visitor Inbox</a> ]<br>
<br>
</p></td>
Index: newmsg.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/newmsg.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** newmsg.php 21 Jun 2003 13:03:51 -0000 1.2
--- newmsg.php 28 Jun 2003 16:09:19 -0000 1.3
***************
*** 1,3 ****
! <?php
/*
* openFIRST.messenger - newmsg.php
--- 1,3 ----
! <?php
/*
* openFIRST.messenger - newmsg.php
***************
*** 28,36 ****
include("../config/globals.php");
include($header);
- mysql_select_db($sqldatabase,$sqlconnection);
// If the user has posted a send command then insert the Message into the database
!
! if (ISSET($_POST['send'])){
mysql_query("INSERT INTO ofirst_messages (Sender,Receiver,Subject,Body, Status, Date) values(
'".$IP."'
--- 28,35 ----
include("../config/globals.php");
include($header);
// If the user has posted a send command then insert the Message into the database
!
! if (isset($_POST['send'])) {
mysql_query("INSERT INTO ofirst_messages (Sender,Receiver,Subject,Body, Status, Date) values(
'".$IP."'
***************
*** 41,93 ****
,'".time()."')") or die("INSERT ERROR: ".mysql_error());
! echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]");
! die(include($footer));
}
! ?>
<form method="POST" action="newmsg.php">
<h1>Visitor Inbox for Messaging</h1>
! <p>[ <a href="inbox.php">Current Messages For You </a>] [ <a href="newmsg.php">Compose Message </a>] [ <a href="./">Online
! Users </a>] <br>
! <br>
! <center>
! <?php echo $usersonline; ?>
! <br>
! <br>
! </center>
! <table width="53%" border="0" cellspacing="0" cellpadding="6">
! <tr>
! <td><div align="right">Recipient:</div></td>
<td>
<select name="recip" id="recip">
<?php
! // Set the reply based on a regular member or visitor (David Notes: Coding to be changed later)
! if (ISSET($_GET['REPLY'])){
! $query = mysql_query("SELECT * FROM ofirst_usersonline WHERE ID = '".$_GET['REPLY']."'");
! $replyuser = mysql_fetch_object($query);
! if (! $replyuser->Member = "None"){
! echo "<option value='".$replyuser->IPAddress."'>".$replyuser->Member." (REPLY MSG)</option>";
! }else{
! echo "<option value='".$replyuser->IPAddress."'>Visitor #".$replyuser->ID." (REPLY MSG)</option>";
}
! }else{
! $query = mysql_query("SELECT * FROM ofirst_usersonline");
! while($user = mysql_fetch_object($query)){
! if (! $user->Member = "None"){
! echo "<option value='".$user->IPAddress."'>".$user->Member."</option>";
! }else{
! echo "<option value='".$user->IPAddress."'>Visitor #".$user->ID."</option>";
}
}
- }
?>
</select></td>
</tr>
! <tr>
! <td><div align="right">Subject:</div></td>
! <td><input name="subject" type="text" id="subject" size="50" value="<?php if (ISSET($_GET['SUBJECT'])){ echo $_GET['SUBJECT']; } ?>"></td>
</tr>
<tr>
! <td><div align="right">Body:</div></td>
<td>
<textarea name="body" cols="50" rows="10" id="body"></textarea>
--- 40,84 ----
,'".time()."')") or die("INSERT ERROR: ".mysql_error());
! echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]");
! die(include($footer));
}
! ?>
<form method="POST" action="newmsg.php">
<h1>Visitor Inbox for Messaging</h1>
! <table>
! <tr>
! <th>Recipient</th>
<td>
<select name="recip" id="recip">
<?php
! // Set the reply based on a regular member or visitor (David Notes: Coding to be changed later)
! if (ISSET($_GET['REPLY'])){
! $query = mysql_query("SELECT * FROM ofirst_usersonline WHERE ID = '".$_GET['REPLY']."'");
! $replyuser = mysql_fetch_object($query);
! if (! $replyuser->Member = "None"){
! echo "<option value='".$replyuser->IPAddress."'>".$replyuser->Member." (REPLY MSG)</option>";
! } else {
! echo "<option value='".$replyuser->IPAddress."'>Visitor #".$replyuser->ID." (REPLY MSG)</option>";
}
! } else {
! $query = mysql_query("SELECT * FROM ofirst_usersonline");
! while($user = mysql_fetch_object($query)){
! if (! $user->Member = "None"){
! echo "<option value='".$user->IPAddress."'>".$user->Member."</option>";
! } else {
! echo "<option value='".$user->IPAddress."'>Visitor #".$user->ID."</option>";
! }
}
}
?>
</select></td>
</tr>
! <tr>
! <th>Subject</th>
! <td><input name="subject" type="text" id="subject" size="50" value="<?php if (isset($_GET['SUBJECT'])) { echo $_GET['SUBJECT']; } ?>"></td>
</tr>
<tr>
! <th>Body</th>
<td>
<textarea name="body" cols="50" rows="10" id="body"></textarea>
***************
*** 95,99 ****
<font size="2">(HTML Messages enabled)</font></td>
</tr>
! <tr>
<td></td>
<td><input name="send" type="submit" value="Send Message"></td>
--- 86,90 ----
<font size="2">(HTML Messages enabled)</font></td>
</tr>
! <tr>
<td></td>
<td><input name="send" type="submit" value="Send Message"></td>
***************
*** 101,103 ****
</table>
</form>
! <?php include($footer); ?>
--- 92,96 ----
</table>
</form>
! <?php
! include($footer);
! ?>
\ No newline at end of file
Index: viewmsg.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** viewmsg.php 21 Jun 2003 13:03:51 -0000 1.2
--- viewmsg.php 28 Jun 2003 16:09:19 -0000 1.3
***************
*** 28,32 ****
include("../config/globals.php");
include($header);
- mysql_select_db($sqldatabase,$sqlconnection);
// Retrieve recordset based on querystring ID data, then preview the information
--- 28,31 ----
***************
*** 39,67 ****
$qsend = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress='".$msg->Sender."'") or die("SELECT: ".mysql_error());
$sender = mysql_fetch_object($qsend);
! ?>
<h1>Viewing Message</h1>
! <p>[ <a href="inbox.php">Current Messages For You </a>] [ <a href="newmsg.php">Compose Message </a>] [ <a href="./">Online
! Users </a>] <br><br><br><center><?php echo $usersonline; ?><br>
! <br></center>
! <table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#999999">
! <tr bgcolor="#999999">
! <td width="25%"> </td>
! <td width="75%"><font color="#FFFFFF">Current Message</font></td>
</tr>
! <tr>
! <td><div align="right">Sender:</div></td>
<td>Visitor <?php echo $sender->ID; ?></td>
</tr>
! <tr>
! <td><div align="right">Subject:</div></td>
<td><?php echo $msg->Subject; ?></td>
</tr>
<tr>
! <td><div align="right">Body:</div></td>
<td><?php echo $msg->Body; ?></td>
</tr>
</table>
! <p>[ <a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'> Delete </a> ] [
! <a href="newmsg.php?REPLY=<?php echo $sender->ID; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>">Reply</a>
]</p>
! <?php include($footer); ?>
--- 38,65 ----
$qsend = mysql_query("SELECT * FROM ofirst_usersonline WHERE IPAddress='".$msg->Sender."'") or die("SELECT: ".mysql_error());
$sender = mysql_fetch_object($qsend);
! ?>
<h1>Viewing Message</h1>
! <table>
! <tr>
! <th> </th>
! <th>Current Message</th>
</tr>
! <tr>
! <th>Sender</th>
<td>Visitor <?php echo $sender->ID; ?></td>
</tr>
! <tr>
! <th>Subject</th>
<td><?php echo $msg->Subject; ?></td>
</tr>
<tr>
! <th>Body</th>
<td><?php echo $msg->Body; ?></td>
</tr>
</table>
! <p>[ <a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'> Delete </a> ] [
! <a href="newmsg.php?REPLY=<?php echo $sender->ID; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>">Reply</a>
]</p>
! <?php
! include($footer);
! ?>
\ No newline at end of file
--- messenger.sql DELETED ---
|
|
From: <dav...@us...> - 2003-06-28 16:09:10
|
Update of /cvsroot/openfirst/messenger/setup In directory sc8-pr-cvs1:/tmp/cvs-serv15096 Modified Files: setup.mysql Log Message: Separated links in module nav using | Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/messenger/setup/setup.mysql,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** setup.mysql 27 Jun 2003 02:41:27 -0000 1.7 --- setup.mysql 28 Jun 2003 16:09:07 -0000 1.8 *************** *** 1,3 **** CREATE TABLE `ofirst_messages` (`ID` int(6) unsigned NOT NULL auto_increment, `Sender` tinytext, `Receiver` tinytext, `Subject` tinytext, `Body` text, `Status` tinytext, `Date` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_usersonline` (`ID` int(6) unsigned NOT NULL auto_increment, `IPAddress` tinytext, `Location` tinytext, `Timestamp` text, `Member` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='messenger',showonmenu='0',active='0',modulenavigation='<a href="$basepath/messenger/">Users Online</a> <a href="$basepath/messenger/inbox.php">Inbox</a> <a href="$basepath/messenger/newmsg.php">Send Message</a>',includes='messenger.php'; \ No newline at end of file --- 1,3 ---- CREATE TABLE `ofirst_messages` (`ID` int(6) unsigned NOT NULL auto_increment, `Sender` tinytext, `Receiver` tinytext, `Subject` tinytext, `Body` text, `Status` tinytext, `Date` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_usersonline` (`ID` int(6) unsigned NOT NULL auto_increment, `IPAddress` tinytext, `Location` tinytext, `Timestamp` text, `Member` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='messenger',showonmenu='0',active='0',modulenavigation='<a href="$basepath/messenger/">Users Online</a> | <a href="$basepath/messenger/inbox.php">Inbox</a> | <a href="$basepath/messenger/newmsg.php">Send Message</a>',includes='messenger.php'; \ No newline at end of file |
|
From: <dav...@us...> - 2003-06-28 16:08:54
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv15046 Modified Files: setup.mysql Log Message: Separated links in module nav using | Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mysql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mysql 28 Jun 2003 00:41:35 -0000 1.2 --- setup.mysql 28 Jun 2003 16:08:52 -0000 1.3 *************** *** 1 **** ! INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> <a href="$basepath/config/">Configuration</a>',modulenavigation='<a href="$basepath/members/profile.php">Profile</a> <a href="$basepath/members/skills.php">Skills</a> <a href="$basepath/members/updateprofile.php">Update Profile</a> <a href="$basepath/members/logout.php">Logout</a>'; --- 1 ---- ! INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/config/">Configuration</a>',modulenavigation='<a href="$basepath/members/profile.php">Profile</a> | <a href="$basepath/members/skills.php">Skills</a> | <a href="$basepath/members/updateprofile.php">Update Profile</a> | <a href="$basepath/members/logout.php">Logout</a>'; |
|
From: <dav...@us...> - 2003-06-28 16:08:41
|
Update of /cvsroot/openfirst/logger/setup In directory sc8-pr-cvs1:/tmp/cvs-serv15013 Modified Files: setup.mysql Log Message: Separated links in module nav using | Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/logger/setup/setup.mysql,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** setup.mysql 27 Jun 2003 20:50:51 -0000 1.7 --- setup.mysql 28 Jun 2003 16:08:38 -0000 1.8 *************** *** 1,2 **** CREATE TABLE `ofirst_logger` (`ID` int(6) unsigned NOT NULL auto_increment, `IPAddress` tinytext, `Date` tinytext, `Location` tinytext, `QueryString` tinytext, `HostLookup` tinytext, `Browser` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='logger',showonmenu='0',active='0',adminnavigation='<a href="$basepath/logger/reset.php">Reset Logger</a> <a href="$basepath/logger/rawdata.php">Raw Data</a>',includes='logger.php'; \ No newline at end of file --- 1,2 ---- CREATE TABLE `ofirst_logger` (`ID` int(6) unsigned NOT NULL auto_increment, `IPAddress` tinytext, `Date` tinytext, `Location` tinytext, `QueryString` tinytext, `HostLookup` tinytext, `Browser` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='logger',showonmenu='0',active='0',adminnavigation='<a href="$basepath/logger/reset.php">Reset Logger</a> | <a href="$basepath/logger/rawdata.php">Raw Data</a>',includes='logger.php'; \ No newline at end of file |
|
From: <xt...@us...> - 2003-06-28 15:46:31
|
Update of /cvsroot/openfirst/emoticon/setup
In directory sc8-pr-cvs1:/tmp/cvs-serv12504/setup
Modified Files:
setup.mysql
Log Message:
Add preview as index.php to emoticon, add include to MySQL setup file, move include functions to emoticonf.php
Index: setup.mysql
===================================================================
RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** setup.mysql 27 Jun 2003 23:15:30 -0000 1.5
--- setup.mysql 28 Jun 2003 15:46:27 -0000 1.6
***************
*** 439,441 ****
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />');
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>';
\ No newline at end of file
--- 439,441 ----
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />');
INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />');
! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>';
\ No newline at end of file
|
|
From: <xt...@us...> - 2003-06-28 15:46:31
|
Update of /cvsroot/openfirst/emoticon
In directory sc8-pr-cvs1:/tmp/cvs-serv12504
Modified Files:
index.php
Added Files:
emoticonf.php
Log Message:
Add preview as index.php to emoticon, add include to MySQL setup file, move include functions to emoticonf.php
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/emoticon/index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.php 8 Jun 2003 02:06:09 -0000 1.1
--- index.php 28 Jun 2003 15:46:27 -0000 1.2
***************
*** 26,79 ****
*
*/
!
! mysql_select_db($sqldatabase,$sqlconnection);
!
! // Switches all emoticon text for the
! // proper symbol and returns the
! // switched text.
!
! function emoticon_translate ($text)
! {
! $query = mysql_query("SELECT * FROM ofirst_emoticon");
!
! if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->emoticon, $er->substitution, $text);
! }
! }
!
! return $text;
! }
!
! // Displays emoticons in a table.
! // Its a good function to place on a messaging system
! // or have as reference page.
!
! function emoticon_preview ()
! {
! $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT 0,5");
! echo "<table>";
! while ($emot = mysql_fetch_object($query)) {
! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
! }
! echo "</table>";
! }
!
! // Analyzis database and compares slur words
! // then it replaces the slur words with its
! // substitution value.
!
! function slur_block ($text)
! {
! $query = mysql_query("SELECT * FROM ofirst_slurblock");
!
! if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->slur, $er->substitution, $text);
! }
}
!
! return $text;
! }
!
?>
--- 26,36 ----
*
*/
! include("../config/globals.php");
! include($header);
! if(function_exists("emoticon_preview")) {
! emoticon_preview();
! } else {
! echo("Emoticon functions are not enabled");
}
! include($footer);
?>
|
|
From: <dav...@us...> - 2003-06-28 15:38:43
|
Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv11442
Modified Files:
modules.php install.php index.php
Log Message:
Removed membersmenu()
Index: modules.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/modules.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** modules.php 27 Jun 2003 20:14:43 -0000 1.2
--- modules.php 28 Jun 2003 15:37:58 -0000 1.3
***************
*** 31,36 ****
include($header);
- membersmenu($user->membertype);
-
// Check if user is actually an admin
if($user->membertype == "administrator") {
--- 31,34 ----
***************
*** 38,42 ****
// Check if user wishes to make updates
if(ISSET($_POST['update'])){
!
// Query for current module information and loop through with while
$query = mysql_query("SELECT * FROM ofirst_config");
--- 36,40 ----
// Check if user wishes to make updates
if(ISSET($_POST['update'])){
!
// Query for current module information and loop through with while
$query = mysql_query("SELECT * FROM ofirst_config");
Index: install.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/install.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** install.php 24 Jun 2003 13:44:19 -0000 1.10
--- install.php 28 Jun 2003 15:37:58 -0000 1.11
***************
*** 33,37 ****
membersmenu($user->membertype);
- if($user->membertype == "administrator") {
?>
--- 33,36 ----
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php 27 Jun 2003 20:14:16 -0000 1.2
--- index.php 28 Jun 2003 15:37:58 -0000 1.3
***************
*** 31,35 ****
include($header);
if(isset($user->user) == true && $user->membertype == "administrator") {
- membersmenu($user->membertype);
?>
<h1>OpenFIRST Configuration Area</h1>
--- 31,34 ----
|