cvs: php-gtk-web /manual add-note.php

[email protected] ("Steph Fox") Sat, 08 Jul 2006 20:24:34 -0000
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1152390274@cvsserver>
sfox		Sat Jul  8 20:24:34 2006 UTC

  Modified files:              
    /php-gtk-web/manual	add-note.php 
  Log:
  turn off mailouts so we can test it without spamming ourselves/users
  
http://cvs.php.net/viewvc.cgi/php-gtk-web/manual/add-note.php?r1=1.18&r2=1.19&diff_format=u
Index: php-gtk-web/manual/add-note.php
diff -u php-gtk-web/manual/add-note.php:1.18 php-gtk-web/manual/add-note.php:1.19
--- php-gtk-web/manual/add-note.php:1.18	Sat Jul  8 20:20:45 2006
+++ php-gtk-web/manual/add-note.php	Sat Jul  8 20:24:34 2006
@@ -276,14 +276,14 @@
 		file_put_contents($stats, "GTK_ERROR:$errmsg Backup is in $id.txt\n", FILE_APPEND);
 		$bytes = file_put_contents(DB_DIR."/$id.txt", $id."\n".$page."\n".$lang."\n".$date."\n".$email."\n".$display."\n".$content."\n\n".$ip);
 		$msg = "page: $page\n\n$content\n\n$display - ".date('d-M-Y H:i', $date);
-		mail($mailto, "queue system failed: note $id was backed up ($bytes bytes)", $msg, "From: $mailfrom");
+		//mail($mailto, "queue system failed: note $id was backed up ($bytes bytes)", $msg, "From: $mailfrom");
 		commonFooter();
 		exit;
 	}
 
 	/* Mail success notification to the list */
 	$msg = "page: <a href='$referrer'>$page</a>\n\n$content\n\n$display - ".date('d-M-Y H:i', $date);
-	mail($mailto, "note $id has been queued", $msg, "From: $mailfrom");
+	//mail($mailto, "note $id has been queued", $msg, "From: $mailfrom");
 	/*
 	 * We can't check for the current id without holding up the page for a whole
 	 * unacceptable minute - so we keep the current entry in the queue and
@@ -363,7 +363,7 @@
 				/* Mail the user to confirm good stuff */
 				if ($errcode != 'GTK_888' && !strstr($last['email'], "GTK_000")) {
 					$msg = "Hi\n\nThis is to confirm that your PHP-GTK manual note reached the top of the queue and will be available for viewing shortly at <a href='$referrer'>$referrer</a>.\n\nThank you again for your contribution!\n\nRegards,\nThe PHP-GTK Documentation Group";
-					mail($lastemail, "PHP-GTK Manual Note $lastid added", $msg, "From: $mailfrom");
+					//mail($lastemail, "PHP-GTK Manual Note $lastid added", $msg, "From: $mailfrom");
 				}
 
 				if (!$errcode) {
@@ -379,7 +379,7 @@
 		/* We're being attacked and they've managed to screw up at least one db */
 		/* use GTK_999 but preserve the original combo so we know where to look */
 		$msg = "page: <a href='$referrer'>$page</a>\n\n$content\n\n$display - ".date('d-M-Y H:i', $date);
-		mail($mailto, "GTK_999 notification", $msg, "From: $mailfrom");
+		//mail($mailto, "GTK_999 notification", $msg, "From: $mailfrom");
 		exit;
 	}