added static defines to incl.php (for emails)

updated email sent out on delete comment to include the correct URL
This commit is contained in:
Tony Lambregts
2004-12-01 22:25:21 +00:00
committed by Jeremy Newman
parent fb0da948c3
commit 1e797f9364
2 changed files with 7 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ $email = getNotifyEmailAddressList($appId, $versionId);
if($email)
{
$fullAppName = "Application: ".lookupAppName($appId)." Version: ".lookupVersionName($appId, $versionId);
$ms .= apidb_fullurl("appview.php?appId=$appId&versionId=$versionId")."\n";
$ms .= APPDB_ROOT."appview.php?appId=$appId&versionId=$versionId\n";
$ms .= "\n";
$ms .= ($current->username ? $current->username : "Anonymous")." deleted comment from ".$fullAppName."\n";
$ms .= "\n";

View File

@@ -238,9 +238,12 @@ function dumpmsgbuffer()
mysql_query("DELETE FROM sessionMessages WHERE sessionId = '$PHPSESSID'");
}
/*
* Statics
*/
define("APPDB_ROOT", "http://appdb.winehq.org/");
define("STANDARD_NOTIFY_FOOTER","------- You are receiving this mail because: -------\n".
"You are an maintainer of this app or an appdb administrator\n".
"to change your preverences go to: http://appdb.winehq.org/preferences.php\n");
"You are an maintainer of this app or an appdb administrator\n".
"to change your preferences go to: ".APPDB_ROOT."preferences.php\n");
?>