Fix missing reply text by renaming replyText to sReplyText
This commit is contained in:
@@ -305,7 +305,7 @@ class Application {
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -331,7 +331,7 @@ class Application {
|
|||||||
$sMsg .= "Reason given:\n";
|
$sMsg .= "Reason given:\n";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
$sMsg .= $aClean['replyText']."\n";
|
$sMsg .= $aClean['sReplyText']."\n";
|
||||||
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
||||||
}
|
}
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
@@ -343,7 +343,7 @@ class Application {
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
switch($sAction)
|
switch($sAction)
|
||||||
{
|
{
|
||||||
@@ -358,10 +358,10 @@ class Application {
|
|||||||
$sMsg .= "This application has been submitted by ".$oSubmitter->sRealname.".";
|
$sMsg .= "This application has been submitted by ".$oSubmitter->sRealname.".";
|
||||||
$sMsg .= "\n";
|
$sMsg .= "\n";
|
||||||
}
|
}
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Appdb admin reply text:\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 application was successfully added into the database.", "green");
|
addmsg("The application was successfully added into the database.", "green");
|
||||||
@@ -381,11 +381,11 @@ class Application {
|
|||||||
case "delete":
|
case "delete":
|
||||||
$sSubject = $this->sName." has been deleted by ".$_SESSION['current']->sRealname;
|
$sSubject = $this->sName." has been deleted by ".$_SESSION['current']->sRealname;
|
||||||
|
|
||||||
// if replyText is set we should report the reason the application was deleted
|
// if sReplyText is set we should report the reason the application was deleted
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Application deleted.", "green");
|
addmsg("Application deleted.", "green");
|
||||||
@@ -394,11 +394,11 @@ class Application {
|
|||||||
$sSubject = $this->sName." has been rejected by ".$_SESSION['current']->sRealname;
|
$sSubject = $this->sName." has been rejected by ".$_SESSION['current']->sRealname;
|
||||||
$sMsg .= APPDB_ROOT."appsubmit.php?sAppType=application&sSub=view&iAppId=".$this->iAppId."\n";
|
$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 sReplyText is set we should report the reason the application was rejected
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Application rejected.", "green");
|
addmsg("Application rejected.", "green");
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ class Bug {
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -208,7 +208,7 @@ class Bug {
|
|||||||
$sSubject = "Submitted Bug Link rejected";
|
$sSubject = "Submitted Bug Link rejected";
|
||||||
$sMsg = "The Bug Link you submitted for ".$sAppName." has been 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.";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
||||||
|
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ class distribution{
|
|||||||
|
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -276,7 +276,7 @@ class distribution{
|
|||||||
$sMsg = "The Distribution you submitted (".$this->sName.") has been rejected.";
|
$sMsg = "The Distribution you submitted (".$this->sName.") has been rejected.";
|
||||||
$sMsg .= APPDB_ROOT."testingData.php?sSub=view&iVersionId=".$this->iVersionId."\n";
|
$sMsg .= APPDB_ROOT."testingData.php?sSub=view&iVersionId=".$this->iVersionId."\n";
|
||||||
$sMsg .= "Reason given:\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;
|
break;
|
||||||
@@ -285,7 +285,7 @@ class distribution{
|
|||||||
$sSubject = "Submitted Distribution deleted";
|
$sSubject = "Submitted Distribution deleted";
|
||||||
$sMsg = "The Distribution you submitted (".$this->sName.") has been deleted.";
|
$sMsg = "The Distribution you submitted (".$this->sName.") has been deleted.";
|
||||||
$sMsg .= "Reason given:\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;
|
break;
|
||||||
}
|
}
|
||||||
@@ -300,7 +300,7 @@ class distribution{
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
switch($sAction)
|
switch($sAction)
|
||||||
{
|
{
|
||||||
case "add":
|
case "add":
|
||||||
@@ -314,7 +314,7 @@ class distribution{
|
|||||||
$sMsg .= "This Distribution has been submitted by ".$oSubmitter->sRealname.".";
|
$sMsg .= "This Distribution has been submitted by ".$oSubmitter->sRealname.".";
|
||||||
$sMsg .= "\n";
|
$sMsg .= "\n";
|
||||||
$sMsg .= "Appdb admin reply text:\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");
|
addmsg("The Distribution was successfully added into the database.", "green");
|
||||||
} else // testing data queued.
|
} else // testing data queued.
|
||||||
@@ -333,11 +333,11 @@ class distribution{
|
|||||||
case "delete":
|
case "delete":
|
||||||
$sSubject = "Distribution ".$this->sName." has been deleted by ".$_SESSION['current']->sRealname;
|
$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 sReplyText is set we should report the reason the data was deleted
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Distribution deleted.", "green");
|
addmsg("Distribution deleted.", "green");
|
||||||
@@ -346,11 +346,11 @@ class distribution{
|
|||||||
$sSubject = "Distribution '".$this->sName." has been rejected by ".$_SESSION['current']->sRealname;
|
$sSubject = "Distribution '".$this->sName." has been rejected by ".$_SESSION['current']->sRealname;
|
||||||
$sMsg = APPDB_ROOT."distributionView.php?iDistributionId=".$this->iDistributionId."\n";
|
$sMsg = APPDB_ROOT."distributionView.php?iDistributionId=".$this->iDistributionId."\n";
|
||||||
|
|
||||||
// if replyText is set we should report the reason the data was rejected
|
// if sReplyText is set we should report the reason the data was rejected
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Distribution rejected.", "green");
|
addmsg("Distribution rejected.", "green");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
require_once(BASE."include/util.php");
|
require_once(BASE."include/util.php");
|
||||||
|
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
$aClean['replyText'] = makeSafe( $_REQUEST['replyText'] );
|
$aClean['sReplyText'] = makeSafe( $_REQUEST['sReplyText'] );
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/* note class and related functions */
|
/* note class and related functions */
|
||||||
@@ -153,8 +153,8 @@ class Note {
|
|||||||
$sMsg .= $this->sBody."\n";
|
$sMsg .= $this->sBody."\n";
|
||||||
$sMsg .= "\n";
|
$sMsg .= "\n";
|
||||||
$sMsg .= "Because:\n";
|
$sMsg .= "Because:\n";
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
$sMsg .= $aClean['replyText']."\n";
|
$sMsg .= $aClean['sReplyText']."\n";
|
||||||
else
|
else
|
||||||
$sMsg .= "No reason given.\n";
|
$sMsg .= "No reason given.\n";
|
||||||
|
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ class Screenshot {
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -316,7 +316,7 @@ class Screenshot {
|
|||||||
$sSubject = "Submitted screenshot rejected";
|
$sSubject = "Submitted screenshot rejected";
|
||||||
$sMsg = "The screenshot you submitted for ".$sAppName." has been 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.";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
||||||
|
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ class testData{
|
|||||||
|
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean = makeSafe($_REQUEST['replyText']);
|
$aClean = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -269,7 +269,7 @@ class testData{
|
|||||||
$sMsg .= "Reason given:\n";
|
$sMsg .= "Reason given:\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$sMsg .= $aClean['replyText']."\n";
|
$sMsg .= $aClean['sReplyText']."\n";
|
||||||
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
||||||
|
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
@@ -281,7 +281,7 @@ class testData{
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
$oVersion = new Version($this->iVersionId);
|
$oVersion = new Version($this->iVersionId);
|
||||||
$oApp = new Application($oVersion->iAppId);
|
$oApp = new Application($oVersion->iAppId);
|
||||||
@@ -300,10 +300,10 @@ class testData{
|
|||||||
$sMsg .= "This Testing data has been submitted by ".$oSubmitter->sRealname.".";
|
$sMsg .= "This Testing data has been submitted by ".$oSubmitter->sRealname.".";
|
||||||
$sMsg .= "\n";
|
$sMsg .= "\n";
|
||||||
}
|
}
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Appdb admin reply text:\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 testing data was successfully added into the database.", "green");
|
addmsg("The testing data was successfully added into the database.", "green");
|
||||||
} else // testing data queued.
|
} else // testing data queued.
|
||||||
@@ -323,10 +323,10 @@ class testData{
|
|||||||
case "delete":
|
case "delete":
|
||||||
$sSubject = "Test Results deleted for version ".$oVersion->sName." of ".$oApp->sName." submitted by ".$_SESSION['current']->sRealname;
|
$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 replyText is set we should report the reason the data was deleted
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("testing data deleted.", "green");
|
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;
|
$sSubject = "Test Results rejected for version ".$oVersion->sName." of ".$oApp->sName." submitted by ".$_SESSION['current']->sRealname;
|
||||||
$sMsg .= $sBacklink;
|
$sMsg .= $sBacklink;
|
||||||
// if replyText is set we should report the reason the data was rejected
|
// if replyText is set we should report the reason the data was rejected
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
addmsg("testing data rejected.", "green");
|
addmsg("testing data rejected.", "green");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ class Url {
|
|||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
|
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
$sAppName = Application::lookup_name($this->appId)." ".Version::lookup_name($this->versionId);
|
$sAppName = Application::lookup_name($this->appId)." ".Version::lookup_name($this->versionId);
|
||||||
@@ -196,7 +196,7 @@ class Url {
|
|||||||
$sSubject = "Submitted url rejected";
|
$sSubject = "Submitted url rejected";
|
||||||
$sMsg = "The url you submitted for ".$sAppName." has been 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.";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.";
|
||||||
|
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ class User {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$aClean = array();
|
$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 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 */
|
/* 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";
|
$sSubject = "Application Maintainer Request Report";
|
||||||
$sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted. ";
|
$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";
|
$sMsg .= "We appreciate your help in making the Application Database better for all users.\n\n";
|
||||||
|
|
||||||
mail_appdb($sEmail, $sSubject ,$sMsg);
|
mail_appdb($sEmail, $sSubject ,$sMsg);
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ class Version {
|
|||||||
function mailSubmitter($sAction="add")
|
function mailSubmitter($sAction="add")
|
||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
if($this->iSubmitterId)
|
if($this->iSubmitterId)
|
||||||
{
|
{
|
||||||
@@ -422,7 +422,7 @@ class Version {
|
|||||||
$sMsg .= "Reason given:\n";
|
$sMsg .= "Reason given:\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$sMsg .= $aClean['replyText']."\n";
|
$sMsg .= $aClean['sReplyText']."\n";
|
||||||
$sMsg .= "We appreciate your help in making the Version Database better for all users.";
|
$sMsg .= "We appreciate your help in making the Version Database better for all users.";
|
||||||
|
|
||||||
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
|
||||||
@@ -433,7 +433,7 @@ class Version {
|
|||||||
function SendNotificationMail($sAction="add",$sMsg=null)
|
function SendNotificationMail($sAction="add",$sMsg=null)
|
||||||
{
|
{
|
||||||
$aClean = array(); //array of filtered user input
|
$aClean = array(); //array of filtered user input
|
||||||
$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
|
$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
|
||||||
|
|
||||||
$oApp = new Application($this->iAppId);
|
$oApp = new Application($this->iAppId);
|
||||||
switch($sAction)
|
switch($sAction)
|
||||||
@@ -449,10 +449,10 @@ class Version {
|
|||||||
$sMsg .= "This version has been submitted by ".$oSubmitter->sRealname.".";
|
$sMsg .= "This version has been submitted by ".$oSubmitter->sRealname.".";
|
||||||
$sMsg .= "\n";
|
$sMsg .= "\n";
|
||||||
}
|
}
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Appdb admin reply text:\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 version was successfully added into the database.", "green");
|
addmsg("The version was successfully added into the database.", "green");
|
||||||
@@ -472,11 +472,11 @@ class Version {
|
|||||||
case "delete":
|
case "delete":
|
||||||
$sSubject = "Version '".$this->sName."' of '".$oApp->sName."' has been deleted by ".$_SESSION['current']->sRealname;
|
$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 sReplyText is set we should report the reason the application was deleted
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Version deleted.", "green");
|
addmsg("Version deleted.", "green");
|
||||||
@@ -485,11 +485,11 @@ class Version {
|
|||||||
$sSubject = "Version '".$this->sName."' of '".$oApp->sName."' has been rejected by ".$_SESSION['current']->sRealname;
|
$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";
|
$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 sReplyText is set we should report the reason the version was rejected
|
||||||
if($aClean['replyText'])
|
if($aClean['sReplyText'])
|
||||||
{
|
{
|
||||||
$sMsg .= "Reason given:\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
|
||||||
}
|
}
|
||||||
|
|
||||||
addmsg("Version rejected.", "green");
|
addmsg("Version rejected.", "green");
|
||||||
|
|||||||
Reference in New Issue
Block a user