diff --git a/include/application.php b/include/application.php index f745f0c..47b4067 100644 --- a/include/application.php +++ b/include/application.php @@ -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"); diff --git a/include/bugs.php b/include/bugs.php index 663ae40..e3300b5 100644 --- a/include/bugs.php +++ b/include/bugs.php @@ -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); diff --git a/include/distributions.php b/include/distributions.php index dcabfd1..74bc91d 100644 --- a/include/distributions.php +++ b/include/distributions.php @@ -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"); diff --git a/include/note.php b/include/note.php index 1f8e863..f5d6002 100644 --- a/include/note.php +++ b/include/note.php @@ -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"; diff --git a/include/screenshot.php b/include/screenshot.php index d570267..6a81bcc 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -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); diff --git a/include/testData.php b/include/testData.php index ad9d09c..7de4450 100644 --- a/include/testData.php +++ b/include/testData.php @@ -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; diff --git a/include/url.php b/include/url.php index ad411cd..f0d52c2 100644 --- a/include/url.php +++ b/include/url.php @@ -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); diff --git a/include/user.php b/include/user.php index e8367aa..ba11337 100644 --- a/include/user.php +++ b/include/user.php @@ -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); diff --git a/include/version.php b/include/version.php index 9dcbc3f..db3b83c 100644 --- a/include/version.php +++ b/include/version.php @@ -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");