Browse Source

Returns banned list.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
6eba0250d6
  1. 6
      js/shop.js
  2. 10
      json/contact.php

6
js/shop.js

@ -15,6 +15,12 @@ $(function(){
$("[name='comment']").attr("tabindex",5);
$("[name='Submit']").attr("tabindex",6);
$(".shop_user_role").css({fontSize: ".75em", fontWeight: "bold"})
// return banned list
var banned_list;
$.post("json/contact.php", {banned: 1}, function (data) {
banned_list = data;
});
// error handler for shops with a popup dialog (TODO)
function error_handler(input,error_span,error,error_text,event) {

10
json/contact.php

@ -47,6 +47,16 @@ $ssl_certificate = SSL_CERTIFICATE;
}
// pass banned contact_id values if they exist
if (isset($_POST['banned'])) {
if ($banned_individuals) {
echo json_encode($banned_individuals);
}
}
// update email_list
if( isset($_POST['email_list']) ) {

Loading…
Cancel
Save