adding a non-celeb photo quickreject
authorToby Elliott <telliott@mozilla.com>
Tue, 09 Jun 2009 17:39:52 -0700
changeset 1014 9d0ca5e5ef76036e12df7ad4b12f34686e95041c
parent 1013 3afd6b26f66d57793f04076b3b648710560b0dc9
child 1015 67ba571133878dd5a589c4dce1f09548e4c029cd
push id642
push usertelliott@mozilla.com
push dateWed, 10 Jun 2009 00:41:23 +0000
adding a non-celeb photo quickreject
server/admin/pending.php
--- a/server/admin/pending.php
+++ b/server/admin/pending.php
@@ -151,16 +151,23 @@
 				break;				
 			case 'duplicatereject':
 				$reason = "The design appears to be identical to a previous version you submitted";
 				$db->reject_persona($persona['id']);
 				send_problem_email($user->get_email($persona['author']), $reason, $persona['name']);
 				$db->log_action($user->get_username(), $persona['id'], "Rejected - Duplicate");
 				$id = null;
 				break;				
+			case 'photoreject':
+				$reason = "We cannot allow photos of identifiable non-celebrity individuals at this time";
+				$db->reject_persona($persona['id']);
+				send_problem_email($user->get_email($persona['author']), $reason, $persona['name']);
+				$db->log_action($user->get_username(), $persona['id'], "Rejected - Identifiable Photo");
+				$id = null;
+				break;				
 			case 'flagforlegal':
 				$db->flag_persona_for_legal($persona['id']);
 				$db->log_action($user->get_username(), $persona['id'], "Flagged for Legal");
 				$id = null;
 				break;				
 			case 'reject':
 				$db->reject_persona($persona['id']);
 				send_problem_email($user->get_email($persona['author']), $_GET['reason'], $persona['name']);
@@ -292,16 +299,17 @@
                                 <p class="added"><strong>Submitted:</strong> <?= $persona['submit'] ?></p>
                                 <p><?= $persona['description'] ?></p>
                                 <p><a href="/admin/pending.php?id=<?= $persona['id'] ?>&category=<?= $page_category ?>" class="view">Administer ยป</a></p>
                                 <p align=right>
 									<select onChange="rejectselect(<?= $persona['id'] ?>, this)">
 										<option value="" selected>quickverdict >></option>
 										<option value="copyrightreject">Copyright</option>
 										<option value="duplicatereject">Duplicate</option>
+										<option value="photoreject">PersonPhoto</option>
 									</select>
                                 </p>
                             </div>
                         </li>
  <?php
  			}
 			print "</ul>\n";
 		}