-// coding: utf-8
+// coding: utf-8\r
+// Copyright 2008 Grégory Burri\r
+//\r
+// This file is part of Euphorik.\r
+//\r
+// Euphorik is free software: you can redistribute it and/or modify\r
+// it under the terms of the GNU General Public License as published by\r
+// the Free Software Foundation, either version 3 of the License, or\r
+// (at your option) any later version.\r
+//\r
+// Euphorik is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+// GNU General Public License for more details.\r
+//\r
+// You should have received a copy of the GNU General Public License\r
+// along with Euphorik. If not, see <http://www.gnu.org/licenses/>.
function PageAdmin(client, formateur, util)
{
PageAdmin.prototype.contenu = function()
{
return '<h1>Trolls</h1>\
- <p>Un troll est un sujet à débat, en général une question.</p>\
- <p>Chaque semaine untrolls troll est choisit au hasard parmis les trolls proposés et devient le troll de la semaine.</p>\
+ <p>Un troll est un sujet à débat, en général une question, affiché sur la page principale.</p>\
+ <p>Chaque semaine un troll est choisit au hasard parmis les trolls proposés et devient le troll de la semaine.</p>\
<form action="" id="nouveauTroll">\
<p>\
<input class="troll" name="troll" type="text" maxlength="500" value=""></input>\
"content" : content
}
- ;;; dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
jQuery.ajax(
{
type: "POST",
success:
function(data)
{
- ;;; dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "ok")
{
"cookie" : this.client.cookie
}
- ;;; dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
jQuery.ajax(
{
type: "POST",
success:
function(data)
{
- ;;; dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "list_banned_ips")
{
"ip" : ip
}
- ;;; dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
jQuery.ajax(
{
type: "POST",
success:
function(data)
{
- ;;; dumpObj(data)
+ ;; dumpObj(data)
switch(data["reply"])
{
case "error" :
"content" : content
}
- ;;; dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
jQuery.ajax(
{
type: "POST",
success:
function(data)
{
- ;;; dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "error")
{
thisTrolls.util.messageDialogue(data["error_message"])
"troll_id" : id
}
- ;;; dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
jQuery.ajax(
{
type: "POST",
success:
function(data)
{
- ;;; dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "error")
{
thisTrolls.util.messageDialogue(data["error_message"])