X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageAdmin.js;h=faf5f8cb3948ae9502d9929142a93bb5668d612c;hb=2c27419e5ff0d1d064cf4d7e1417c469c82aef34;hp=35c3d239058158ad256a150c69c6b033265756c3;hpb=1c6438b9ec36fcbf9af786e0ac9bd3eb871976f0;p=euphorik.git diff --git a/js/pageAdmin.js b/js/pageAdmin.js index 35c3d23..faf5f8c 100644 --- a/js/pageAdmin.js +++ b/js/pageAdmin.js @@ -1,4 +1,20 @@ -// coding: utf-8 +// coding: utf-8 +// Copyright 2008 Grégory Burri +// +// This file is part of Euphorik. +// +// Euphorik is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Euphorik is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Euphorik. If not, see . function PageAdmin(client, formateur, util) { @@ -75,7 +91,7 @@ PageAdmin.prototype.posterTroll = function() "content" : content } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -85,7 +101,7 @@ PageAdmin.prototype.posterTroll = function() success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "ok") { @@ -116,7 +132,7 @@ PageAdmin.prototype.majIPs = function() "cookie" : this.client.cookie } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -126,7 +142,7 @@ PageAdmin.prototype.majIPs = function() success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "list_banned_ips") { @@ -197,7 +213,7 @@ PageAdmin.prototype.deban = function(ip) "ip" : ip } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -207,7 +223,7 @@ PageAdmin.prototype.deban = function(ip) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) switch(data["reply"]) { case "error" : @@ -386,7 +402,7 @@ Trolls.prototype.modifier = function(id, content) "content" : content } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -396,7 +412,7 @@ Trolls.prototype.modifier = function(id, content) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "error") { thisTrolls.util.messageDialogue(data["error_message"]) @@ -420,7 +436,7 @@ Trolls.prototype.supprimer = function(id) "troll_id" : id } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -430,7 +446,7 @@ Trolls.prototype.supprimer = function(id) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "error") { thisTrolls.util.messageDialogue(data["error_message"])