1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 17:03:22 -05:00

Returns banned list.

This commit is contained in:
Jonathan Rosenbaum 2017-10-11 06:18:00 +00:00
parent 5695fe8b07
commit 6eba0250d6
2 changed files with 16 additions and 0 deletions

View File

@ -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) {

View File

@ -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']) ) {