Fix missing reply text by renaming replyText to sReplyText

This commit is contained in:
Jonathan Ernst
2006-07-13 18:54:10 +00:00
committed by WineHQ
parent 04e7fa9906
commit a4e384604b
9 changed files with 53 additions and 53 deletions

View File

@@ -305,7 +305,7 @@ class Application {
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -331,7 +331,7 @@ class Application {
$sMsg .= "Reason given:\n";
break;
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
}
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
@@ -343,7 +343,7 @@ class Application {
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
switch($sAction)
{
@@ -358,10 +358,10 @@ class Application {
$sMsg .= "This application has been submitted by ".$oSubmitter->sRealname.".";
$sMsg .= "\n";
}
if($aClean['replyText'])
if($aClean['sReplyText'])
{
$sMsg .= "Appdb admin reply text:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("The application was successfully added into the database.", "green");
@@ -381,11 +381,11 @@ class Application {
case "delete":
$sSubject = $this->sName." has been deleted by ".$_SESSION['current']->sRealname;
// if replyText is set we should report the reason the application was deleted
if($aClean['replyText'])
// if sReplyText is set we should report the reason the application was deleted
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Application deleted.", "green");
@@ -394,11 +394,11 @@ class Application {
$sSubject = $this->sName." has been rejected by ".$_SESSION['current']->sRealname;
$sMsg .= APPDB_ROOT."appsubmit.php?sAppType=application&sSub=view&iAppId=".$this->iAppId."\n";
// if replyText is set we should report the reason the application was rejected
if($aClean['replyText'])
// if sReplyText is set we should report the reason the application was rejected
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Application rejected.", "green");

View File

@@ -193,7 +193,7 @@ class Bug {
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -208,7 +208,7 @@ class Bug {
$sSubject = "Submitted Bug Link rejected";
$sMsg = "The Bug Link you submitted for ".$sAppName." has been rejected.";
}
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);

View File

@@ -257,7 +257,7 @@ class distribution{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -276,7 +276,7 @@ class distribution{
$sMsg = "The Distribution you submitted (".$this->sName.") has been rejected.";
$sMsg .= APPDB_ROOT."testingData.php?sSub=view&iVersionId=".$this->iVersionId."\n";
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
break;
@@ -285,7 +285,7 @@ class distribution{
$sSubject = "Submitted Distribution deleted";
$sMsg = "The Distribution you submitted (".$this->sName.") has been deleted.";
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
break;
}
@@ -300,7 +300,7 @@ class distribution{
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
switch($sAction)
{
case "add":
@@ -314,7 +314,7 @@ class distribution{
$sMsg .= "This Distribution has been submitted by ".$oSubmitter->sRealname.".";
$sMsg .= "\n";
$sMsg .= "Appdb admin reply text:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("The Distribution was successfully added into the database.", "green");
} else // testing data queued.
@@ -333,11 +333,11 @@ class distribution{
case "delete":
$sSubject = "Distribution ".$this->sName." has been deleted by ".$_SESSION['current']->sRealname;
// if replyText is set we should report the reason the data was deleted
if($aClean['replyText'])
// if sReplyText is set we should report the reason the data was deleted
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Distribution deleted.", "green");
@@ -346,11 +346,11 @@ class distribution{
$sSubject = "Distribution '".$this->sName." has been rejected by ".$_SESSION['current']->sRealname;
$sMsg = APPDB_ROOT."distributionView.php?iDistributionId=".$this->iDistributionId."\n";
// if replyText is set we should report the reason the data was rejected
if($aClean['replyText'])
// if sReplyText is set we should report the reason the data was rejected
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Distribution rejected.", "green");

View File

@@ -2,7 +2,7 @@
require_once(BASE."include/util.php");
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe( $_REQUEST['replyText'] );
$aClean['sReplyText'] = makeSafe( $_REQUEST['sReplyText'] );
/************************************/
/* note class and related functions */
@@ -153,8 +153,8 @@ class Note {
$sMsg .= $this->sBody."\n";
$sMsg .= "\n";
$sMsg .= "Because:\n";
if($aClean['replyText'])
$sMsg .= $aClean['replyText']."\n";
if($aClean['sReplyText'])
$sMsg .= $aClean['sReplyText']."\n";
else
$sMsg .= "No reason given.\n";

View File

@@ -301,7 +301,7 @@ class Screenshot {
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -316,7 +316,7 @@ class Screenshot {
$sSubject = "Submitted screenshot rejected";
$sMsg = "The screenshot you submitted for ".$sAppName." has been rejected.";
}
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);

View File

@@ -244,7 +244,7 @@ class testData{
$aClean = array(); //array of filtered user input
$aClean = makeSafe($_REQUEST['replyText']);
$aClean = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -269,7 +269,7 @@ class testData{
$sMsg .= "Reason given:\n";
break;
}
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
@@ -281,7 +281,7 @@ class testData{
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
$oVersion = new Version($this->iVersionId);
$oApp = new Application($oVersion->iAppId);
@@ -300,10 +300,10 @@ class testData{
$sMsg .= "This Testing data has been submitted by ".$oSubmitter->sRealname.".";
$sMsg .= "\n";
}
if($aClean['replyText'])
if($aClean['sReplyText'])
{
$sMsg .= "Appdb admin reply text:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("The testing data was successfully added into the database.", "green");
} else // testing data queued.
@@ -323,10 +323,10 @@ class testData{
case "delete":
$sSubject = "Test Results deleted for version ".$oVersion->sName." of ".$oApp->sName." submitted by ".$_SESSION['current']->sRealname;
// if replyText is set we should report the reason the data was deleted
if($aClean['replyText'])
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("testing data deleted.", "green");
@@ -335,10 +335,10 @@ class testData{
$sSubject = "Test Results rejected for version ".$oVersion->sName." of ".$oApp->sName." submitted by ".$_SESSION['current']->sRealname;
$sMsg .= $sBacklink;
// if replyText is set we should report the reason the data was rejected
if($aClean['replyText'])
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("testing data rejected.", "green");
break;

View File

@@ -182,7 +182,7 @@ class Url {
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
$sAppName = Application::lookup_name($this->appId)." ".Version::lookup_name($this->versionId);
@@ -196,7 +196,7 @@ class Url {
$sSubject = "Submitted url rejected";
$sMsg = "The url you submitted for ".$sAppName." has been rejected.";
}
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);

View File

@@ -339,7 +339,7 @@ class User {
{
$aClean = array();
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
/* if the user isn't already a supermaintainer of the application and */
/* if they are trying to become a maintainer and aren't already a maintainer of */
@@ -367,7 +367,7 @@ class User {
{
$sSubject = "Application Maintainer Request Report";
$sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted. ";
$sMsg .= $aClean['replyText'];
$sMsg .= $aClean['sReplyText'];
$sMsg .= "We appreciate your help in making the Application Database better for all users.\n\n";
mail_appdb($sEmail, $sSubject ,$sMsg);

View File

@@ -395,7 +395,7 @@ class Version {
function mailSubmitter($sAction="add")
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
if($this->iSubmitterId)
{
@@ -422,7 +422,7 @@ class Version {
$sMsg .= "Reason given:\n";
break;
}
$sMsg .= $aClean['replyText']."\n";
$sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Version Database better for all users.";
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
@@ -433,7 +433,7 @@ class Version {
function SendNotificationMail($sAction="add",$sMsg=null)
{
$aClean = array(); //array of filtered user input
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
$oApp = new Application($this->iAppId);
switch($sAction)
@@ -449,10 +449,10 @@ class Version {
$sMsg .= "This version has been submitted by ".$oSubmitter->sRealname.".";
$sMsg .= "\n";
}
if($aClean['replyText'])
if($aClean['sReplyText'])
{
$sMsg .= "Appdb admin reply text:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("The version was successfully added into the database.", "green");
@@ -472,11 +472,11 @@ class Version {
case "delete":
$sSubject = "Version '".$this->sName."' of '".$oApp->sName."' has been deleted by ".$_SESSION['current']->sRealname;
// if replyText is set we should report the reason the application was deleted
if($aClean['replyText'])
// if sReplyText is set we should report the reason the application was deleted
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Version deleted.", "green");
@@ -485,11 +485,11 @@ class Version {
$sSubject = "Version '".$this->sName."' of '".$oApp->sName."' has been rejected by ".$_SESSION['current']->sRealname;
$sMsg .= APPDB_ROOT."appsubmit.php?sAppType=application&sSub=view&iVersionId=".$this->iVersionId."\n";
// if replyText is set we should report the reason the version was rejected
if($aClean['replyText'])
// if sReplyText is set we should report the reason the version was rejected
if($aClean['sReplyText'])
{
$sMsg .= "Reason given:\n";
$sMsg .= $aClean['replyText']."\n"; // append the reply text, if there is any
$sMsg .= $aClean['sReplyText']."\n"; // append the reply text, if there is any
}
addmsg("Version rejected.", "green");