Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. // print_r($application);
  2. $redact_array = [' woman',' man\.',' lady ',' lady\. ',' ladies ','Mr\. ','Mrs\. ','Ms\. ','Miss ',' himself ',' hiself ',' him ',' him.',' his ',' he ',' he\'s ',' herself ',' her ',' her. ',' her, ',' her; ',' hers ',' she ',' she\'s ',' girl ',' girl, ',' daughter ','GSMST','Gwinnett School of Math, Science, and Technology','Gwinnett School of Mathematics, Science, and Technology','Gwinnett School of Mathematics, Science and Technology','Gwinnett School of Math Science and Technology ','Gwinnett School of Math, Science & Technology'];
  3. $sname_arr = explode(' ', $application->applicant_name);
  4. $nickname_arr = explode(',', $application->nicknames);
  5. foreach ($sname_arr as $skey => $sname) {
  6. $redact_array[] = trim($sname);
  7. }
  8. foreach ($nickname_arr as $nnkey => $nickname) {
  9. if (!empty(trim($nickname))) {
  10. $redact_array[] = trim($nickname);
  11. }
  12. }
  13. $redact_array[] = $application->school;
  14. $redact_array[] = trim(str_replace('High School', '', $application->school));
  15. $redact_array[] = $application->counselor;
  16. $redact_array[] = $application->counselor_email;
  17.  
  18. $counselor_name_arr = explode(' ', $application->counselor);
  19. foreach ($counselor_name_arr as $ckey => $counselorname) {
  20. $redact_array[] = " {$counselorname} ";
  21. } ?>
  22. <p><label>Essay:</label></p>
  23. <div id="essay-container" class="essay-container"><?=preg_replace('|white-space: pre;|Ui', '', $application->essay)?></div>
  24. <p><label>Recommendation(s):</label></p>
  25. <?php
  26. $recommnedations = json_decode($application->reference);
  27. foreach ($recommnedations as $key => $rec) {
  28. if(empty($rec->recommendation)) continue;
  29. $redact_array[] = $rec->email;
  30. $redact_array = array_merge($redact_array, explode(" ", trim($rec->name)));
  31.  
  32. // print_r($redact_array);
  33. // Do some redaction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement