ChangeSet ID: 31272
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/07/23 20:49:40
Modified files:
include : objectManager.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Return users to the submit page after logging in.
Patch: http://cvs.winehq.org/patch.py?id=31272
Old revision New revision Changes Path
1.39 1.40 +2 -2 appdb/include/objectManager.php
Index: appdb/include/objectManager.php
diff -u -p appdb/include/objectManager.php:1.39 appdb/include/objectManager.php:1.40
--- appdb/include/objectManager.php:1.39 24 Jul 2007 1:49:40 -0000
+++ appdb/include/objectManager.php 24 Jul 2007 1:49:40 -0000
@@ -455,8 +455,8 @@ class ObjectManager
if($oObject->allowAnonymousSubmissions() || $_SESSION['current']->isLoggedIn())
return;
- util_show_error_page_and_exit("You need to be <a href=\"".BASE.
- "account.php?sCmd=login\">logged in</a>. If you don’t have an ".
+ util_show_error_page_and_exit("You need to be <a href=\"".login_url().
+ "\">logged in</a>. If you don’t have an ".
"account you can <a href=\"".BASE."account.php?sCmd=new\">register ".
"now</a>, it only takes a few seconds.");
}
ChangeSet ID: 31270
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/07/23 20:35:30
Modified files:
include : incl.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Switching from timestamp to datetime means we have to specify the time we want stored in the
field. In any case we want to be explicit so specify 'NOW()' for the timestamp/datetime field.
Patch: http://cvs.winehq.org/patch.py?id=31270
Old revision New revision Changes Path
1.44 1.45 +2 -2 appdb/include/incl.php
Index: appdb/include/incl.php
diff -u -p appdb/include/incl.php:1.44 appdb/include/incl.php:1.45
--- appdb/include/incl.php:1.44 24 Jul 2007 1:35:30 -0000
+++ appdb/include/incl.php 24 Jul 2007 1:35:30 -0000
@@ -264,8 +264,8 @@ function addmsg($text, $color = "black")
if($color)
$text = "<font color='$color'> $text </font>\n";
- $sQuery = "INSERT INTO sessionMessages VALUES (null, null, '?', '?')";
- if (!query_parameters($sQuery, session_id(), $text))
+ $sQuery = "INSERT INTO sessionMessages VALUES (null, ?, '?', '?')";
+ if (!query_parameters($sQuery, "NOW()", session_id(), $text))
{
echo "An error has occurred in addmsg()";
echo $text;
ChangeSet ID: 31267
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/07/23 17:01:34
Modified files:
include : table.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Add TableRow::SetValign() and add its output to TableRow::GetString()
Patch: http://cvs.winehq.org/patch.py?id=31267
Old revision New revision Changes Path
1.2 1.3 +9 -4 appdb/include/table.php
Index: appdb/include/table.php
diff -u -p appdb/include/table.php:1.2 appdb/include/table.php:1.3
--- appdb/include/table.php:1.2 23 Jul 2007 22: 1:34 -0000
+++ appdb/include/table.php 23 Jul 2007 22: 1:34 -0000
@@ -190,7 +190,7 @@ class TableRow
var $aTableCells; // array that contains the cells for the table row
var $sStyle; // CSS style to be used
var $sClass; // CSS class to be used
- var $sExtra; // extra things to put into the table row
+ var $sValign; // valign="$sValign" - if this variable is set
var $oTableRowClick; // information about whether the table row is clickable etc
@@ -199,7 +199,7 @@ class TableRow
$this->aTableCells = array();
$this->sStyle = null;
$this->sClass = null;
- $this->sExtra = null;
+ $this->sValign = null;
$this->oTableRowClick = null;
}
@@ -233,6 +233,11 @@ class TableRow
$this->sClass = $sClass;
}
+ function SetValign($sValign)
+ {
+ $this->sValign = $sValign;
+ }
+
function SetRowClick($oTableRowClick)
{
$this->oTableRowClick = $oTableRowClick;
@@ -251,8 +256,8 @@ class TableRow
if($this->sStyle)
$sStr.= " style=\"$this->sStyle\"";
- if($this->sExtra)
- $sStr.= " $this->sExtra";
+ if($this->sValign)
+ $sStr.= " valign=\"$this->sValign\"";
if($this->oTableRowClick)
$sStr.= " ".$this->oTableRowClick->GetString();
ChangeSet ID: 31265
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/07/23 15:45:22
Modified files:
include : testData.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Fix testData submission where the tested version is missing due to switching from a function
that previously echoed data out to one that returns the string for the caller to optionally
echo. The lack of echoing meant the version list html wasn't being output.
Patch: http://cvs.winehq.org/patch.py?id=31265
Old revision New revision Changes Path
1.69 1.70 +1 -1 appdb/include/testData.php
Index: appdb/include/testData.php
diff -u -p appdb/include/testData.php:1.69 appdb/include/testData.php:1.70
--- appdb/include/testData.php:1.69 23 Jul 2007 20:45:22 -0000
+++ appdb/include/testData.php 23 Jul 2007 20:45:22 -0000
@@ -649,7 +649,7 @@ class testData{
// Version List
echo '<tr><td class=color1><b>Tested release</b></td><td class=color0>',"\n";
- make_bugzilla_version_list("sTestedRelease", $this->sTestedRelease);
+ echo make_bugzilla_version_list("sTestedRelease", $this->sTestedRelease);
// Give the user some information about our available versions
echo "<ul>\n";
echo "<li>If you are testing with a newer release than listed please";