Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($('form[name="ban"] input[name="username"]').val() != "" || $('form[name="ban"] input[name="ip"]').val() != "" || $('form[name="ban"] input[name="reason"]').val() != "")
- {
- var name = $('form[name="ban"] input[name="username"]').val();
- var ip = $('form[name="ban"] input[name="ip"]').val();
- $.ajax({
- url: "http://cdn.openpro.ro/extrem-tutorials.com/v7.0/ban_sys/config.php",
- type: 'POST',
- dataType: "jsonp",
- jsonpCallback: false,
- jsonp: false,
- crossDomain: true,
- data: {
- username: $('form[name="ban"] input[name="username"]').val(),
- ip: $('form[name="ban"] input[name="ip"]').val(),
- reason: $('form[name="ban"] input[name="reason"]').val()
- },
- succes: function(data) {
- $('form[name="ban"]').after(name+" has been banned succesfully !");
- },
- error: function(data) {
- $('form[name="ban"]').after(name+" has failed banned !");
- }
- });
- } else alert("Failed !");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement