Changeset 1793

Show
Ignore:
Timestamp:
09/25/06 13:31:58 (2 years ago)
Author:
sam
Message:

Improved antispam protection system. Few tweaks here and there

Location:
trunk
Files:
1 added
11 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/css/common.css

    r1787 r1793  
    6666          height: 100px; } 
    6767 
     68p.ask   { padding: 1em; padding-left: 120px; 
     69          background-image: url("../interface/ask.png"); 
     70          background-repeat: no-repeat; background-position: left center; 
     71          height: 100px; } 
     72 
    6873span#autherror { color: red; font-size: smaller; font-weight: bold; 
    6974                 padding: 0 1em; } 
  • trunk/htdocs/install/zwe-data-common.sql

    r1792 r1793  
    2828INSERT INTO `__PREFIX__config` VALUES (19, 'checkbox', 'on', 'Use Access Control Lists', 'use_acl', 'on'); 
    2929INSERT INTO `__PREFIX__config` VALUES (20, 'checkbox', 'on', 'Use Gravatars', 'gravatars', 'on'); 
    30 INSERT INTO `__PREFIX__config` VALUES (20, 'checkbox', 'on', 'Math Antispam', 'math_antispam', 'on'); 
    3130INSERT INTO `__PREFIX__css` VALUES (1, 'zwe-v2-5', 'screen', 'stylesheet', 'Zwe v2.5'); 
    3231INSERT INTO `__PREFIX__css` VALUES (2, 'zwe-v2-4', 'screen', 'alternate stylesheet', 'Zwe v2.4'); 
     
    4039INSERT INTO `__PREFIX__modules` VALUES ('admin', 'admin', 'core'); 
    4140INSERT INTO `__PREFIX__modules` VALUES ('menus', 'menus', 'core'); 
    42 INSERT INTO `__PREFIX__users_accounts` VALUES (1, '__LOGIN__', '__PASSWORD__', '__NAME__', '__EMAIL__', 'mixed', '__URL__', '', '1', '__TIMESTAMP__'); 
     41INSERT INTO `__PREFIX__users_accounts` VALUES (1, '__LOGIN__', '__PASSWORD__', '__NAME__', '__EMAIL__', 'mixed', '__URL__', '', '1', '__TIMESTAMP__', 1); 
    4342INSERT INTO `__PREFIX__users_groups` VALUES ('admin', 'Administration', 'Administration group'); 
    4443INSERT INTO `__PREFIX__users_group_links` VALUES (1, 'admin') 
  • trunk/htdocs/install/zwe-db.sql

    r1790 r1793  
    88CREATE TABLE IF NOT EXISTS `__PREFIX__menu` (  `key` varchar(32) NOT NULL default '',  `contents` text NOT NULL default '',  PRIMARY KEY  (`key`)) TYPE=MyISAM COMMENT='Menu entries'; 
    99CREATE TABLE IF NOT EXISTS `__PREFIX__modules` (  `name` varchar(32) NOT NULL default '',  `type` varchar(32) NOT NULL default '',  `status` enum('inactive','active','core') NOT NULL default 'inactive',  PRIMARY KEY  (`name`)) TYPE=MyISAM PACK_KEYS=0 COMMENT='Module management'; 
    10 CREATE TABLE IF NOT EXISTS `__PREFIX__users_accounts` (  `id` smallint(6) NOT NULL auto_increment,  `login` varchar(255) default NULL,  `pass` varchar(255) default NULL,  `name` text,  `email` text,  `private` enum('private','mixed','public') NOT NULL default 'mixed',  `url` varchar(255) default NULL,  `css` varchar(64) NOT NULL default '',  `confirmation` varchar(255) default NULL,  `created` varchar(42) NOT NULL default '',  PRIMARY KEY  (`id`)) TYPE=MyISAM COMMENT='Site users'; 
     10CREATE TABLE IF NOT EXISTS `__PREFIX__users_accounts` (  `id` smallint(6) NOT NULL auto_increment,  `login` varchar(255) default NULL,  `pass` varchar(255) default NULL,  `name` text,  `email` text,  `private` enum('private','mixed','public') NOT NULL default 'mixed',  `url` varchar(255) default NULL,  `css` varchar(64) NOT NULL default '',  `confirmation` varchar(255) default NULL,  `created` varchar(42) NOT NULL default '',  `human` tinyint(1) NOT NULL default 0,  PRIMARY KEY  (`id`)) TYPE=MyISAM COMMENT='Site users'; 
    1111CREATE TABLE IF NOT EXISTS `__PREFIX__users_group_links` (  `userid` smallint(6) NOT NULL default '0',  `group` varchar(32) NOT NULL default '',  PRIMARY KEY  (`userid`, `group`)) TYPE=MyISAM COMMENT='Group linkings'; 
    1212CREATE TABLE IF NOT EXISTS `__PREFIX__users_groups` (  `key` varchar(32) NOT NULL default '',  `name` varchar(32) NOT NULL default '',  `desc` text NOT NULL,  PRIMARY KEY  (`key`)) TYPE=MyISAM COMMENT='User groups'; 
  • trunk/php-include/core/admin/admin.inc.php

    r1780 r1793  
    430430  function DeleteModule ($name) 
    431431  { 
     432    $this->parser->open_parag (_msg ("Delete module"), false); 
     433 
    432434    if (!array_key_exists($name, $GLOBALS['modules']->modules)) 
    433435      ZweError ("Module not found!"); 
     
    444446      } 
    445447 
    446     $this->parser->open_parag (_msg ("Delete module:") . " $name"); 
     448    $this->parser->output ("<p class=\"ask\">\n", 1); 
    447449    $this->parser->output (_msg ("Are you sure you want to delete this module?")); 
     450    $this->parser->output ("<br /><br />" . _msg ("The name of this module is:") . 
     451                           " <i>" . $name . "</i>\n"); 
    448452    $this->parser->output ("</p>\n", -1); 
    449453 
     
    741745      } 
    742746 
    743     $this->parser->open_parag (_msg ("Delete a stylesheet")); 
     747    $this->parser->open_parag (_msg ("Delete a stylesheet"), false); 
     748 
     749    $this->parser->output ("<p class=\"ask\">\n", 1); 
    744750    $this->parser->output (_msg("Are you sure you want to delete the stylesheet") . " <b>" . 
    745751                            $stylesheet['title'] . "</b> ?"); 
  • trunk/php-include/core/admin/i18n/fr

    r1767 r1793  
    103103Supprimer une feuille de style 
    104104 
    105 :Delete module: 
    106 Supprimer le module : 
     105:Delete module 
     106Supprimer un module 
    107107 
    108108:Delete this module 
     
    300300Tâches : 
    301301 
     302:The name of this module is: 
     303Le nom de ce module est : 
     304 
    302305:The stylesheet key name can only contain alphanumeric characters ([a-zA-Z0-9_-/]+). 
    303306La clé de la feuille de style ne peut contenir que des caractères alphanumériques ([a-zA-Z0-9_-/]+). 
  • trunk/php-include/core/users/i18n/fr

    r1746 r1793  
    77Compte créé 
    88 
     9:activates antispam protection again on all accounts 
     10active a nouveau la protection antispam sur tous les comptes 
     11 
    912:Activation canceled 
    1013Activation annulée 
     
    1417 
    1518:Activated: 
    16 Activé il y a: 
     19Activé il y a : 
    1720 
    1821:Activation failed! Please check your login and password and try again. 
     
    3437Souhaitez-vous vraiment supprimer cet utilisateur ? 
    3538 
     39:Are you sure you want to deshumanize all users, thus re-enabling the antispam protection? 
     40Souhaitez-vous vraiment déshumaniser tous les utilisateurs, ré-activant ainsi la protection antispam ? 
     41 
    3642:As mail confirmation is needed, you must give an email address! 
    3743La confirmation par mail étant nécessaire, vous devez fournir une adresse email ! 
     
    5662Confirmer 
    5763 
     64:Confirmed 
     65Confirmé 
     66 
    5867:Create 
    5968Créer 
     
    8594Radier cet utilisateur du groupe 
    8695 
    87 :Delete group: 
    88 Supprimer le groupe : 
     96:Delete group 
     97Supprimer un groupe 
    8998 
    9099:Details 
     
    94103Description : 
    95104 
     105:Deshumanize 
     106Déshumaniser 
     107 
    96108[e] 
    97109 
     
    123135Erreur lors de la création du groupe ! 
    124136 
     137:Error while deshumanizing user accounts! 
     138Erreur lors de la déshumanisation des comptes utilisateur ! 
     139 
    125140:Error while removing user! 
    126141Erreur lors de la suppression de l'utilisateur ! 
     
    186201Bonjour 
    187202 
     203:Human: 
     204Humain : 
     205 
    188206[i] 
    189207 
     
    237255Aucun 
    238256 
     257:Not yet confirmed, antispam protection active 
     258Pas encore confirmé, protection antispam active 
     259 
    239260[o] 
    240261 
     
    297318[t] 
    298319 
     320:The name of this group is: 
     321Le nom de ce groupe est : 
     322 
    299323:There is currently one user in the database. 
    300324Il y a actuellement un seul utilisateur dans la base de données. 
  • trunk/php-include/core/users/users.inc.php

    r1756 r1793  
    7373    ZweError ("You must be logged in to access this page!"); 
    7474 
    75   $user = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`,`private`,`created`,`confirmation` 
     75  $user = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`, 
     76                                    `private`,`created`,`confirmation`, 
     77                                    `human` 
    7678                              FROM `" . $this->tables['users'] . "` 
    7779                              WHERE `login` = '" . $GLOBALS['db']->EscapeString($parts[1]) . "'"); 
     
    126128      $this->CreateAccount (); 
    127129 
     130    elseif (preg_match("/^deshumanize$/", $GLOBALS['context']['context'])) 
     131      $this->Deshumanize (); 
     132 
    128133    elseif (preg_match("/^lost$/", $GLOBALS['context']['context'])) 
    129134      $this->LostPassword (); 
     
    193198  function ShowAccounts () 
    194199  { 
    195     $query = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`,`private`,`created`,`confirmation` 
     200    $query = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`, 
     201                                 `private`,`created`,`confirmation`, 
     202                                 `human` 
    196203                           FROM `" . $this->tables['users'] . "` 
    197204                           ORDER BY `confirmation` ASC"); 
     
    209216    $this->parser->output ("</p>\n", -1); 
    210217 
     218    $this->parser->output ("<ul id=\"adminmenu\">\n", 1); 
     219    $this->parser->output ("<li><a href=\"" . $this->flow->GetBaseURL ("users") . "/deshumanize\">" . 
     220                           _msg ("Deshumanize") . "</a> (" . 
     221                           _msg ("activates antispam protection again on all accounts") . ")</li>\n"); 
     222    $this->parser->output ("<li><a href=\"" . $this->flow->GetBaseURL ("users") . "/groups\">" . 
     223                           _msg ("Groups management") . "</a></li>\n"); 
     224    $this->parser->output ("</ul>\n", -1); 
     225 
    211226    $this->parser->output ("<table border=\"0\" width=\"99%\">\n", 1); 
    212227    $this->parser->output ("<thead><tr>\n", 1); 
     
    231246 
    232247        $this->parser->output ("</a>\n", -1); 
     248 
     249        if ($row['human'] != 1) 
     250          $this->parser->output ("<img src=\"" . $GLOBALS['config']['site_path']['value'] . 
     251                                 "interface/puce.gif\" alt=\"" . _msg ("No antispam confirmation yet") . "\" />\n"); 
     252 
    233253        $this->parser->output ("</td>\n", -1); 
    234254 
     
    591611  function DeleteGroup ($group) 
    592612  { 
     613    $this->parser->open_parag (_msg ("Delete group"), false); 
     614 
    593615    if ($group == $GLOBALS['config']['users_admin_group']['value']) 
    594616      ZweError ("You can't remove the administration group!"); 
     
    614636    $grp = $query->Step (); 
    615637 
    616     $this->parser->open_parag (_msg ("Delete group:") . " " . $grp['name']); 
     638    $this->parser->output ("<p class=\"ask\">\n", 1); 
    617639    $this->parser->output (_msg ("Are you sure you want to delete this group?")); 
    618     $this->parser->output ("</p>\n", -1); 
     640    $this->parser->output ("<br /><br />" . _msg ("The name of this group is:") . 
     641                           " <i>" . $grp['name'] . "</i>\n"); 
     642    $this->parser->output ("</p>\n", -1); 
     643 
    619644    $this->parser->output ("<form method=\"post\" action=\"" . $this->flow->GetBaseURL () . "/groups/$group/delete\">\n", 1); 
    620645 
     
    631656  function ManageGroups () 
    632657  { 
     658    $this->parser->open_parag (_msg ("Create group")); 
     659 
    633660    if (isset($_POST['__add_group'])) 
    634661      { 
     
    662689      } 
    663690 
    664     $this->parser->open_parag (_msg ("Create group")); 
    665691    $this->parser->output ("</p>\n", -1); 
    666692    $this->parser->output ("<form method=\"post\" action=\"" . $this->flow->GetBaseURL () . "/groups\">\n", 1); 
     
    737763  function GroupDetails ($group) 
    738764  { 
     765    $this->parser->open_parag (_msg ("Edit group:") . " " . $group, false); 
     766 
    739767    $group_query = new cQuery ("SELECT `name`,`desc` FROM `" . $this->tables['groups'] . "` 
    740768                                 WHERE `key` = '" . $GLOBALS['db']->EscapeString($group) . "'"); 
     
    762790 
    763791    $grp = $group_query->Step (); 
    764  
    765     $this->parser->open_parag (_msg ("Edit group:") . " " . $group, false); 
    766792 
    767793    $this->parser->output ("<form method=\"post\" action=\"" . $this->flow->GetBaseURL () . 
     
    11741200  } 
    11751201 
     1202  function Deshumanize () 
     1203  { 
     1204    if (isset($_POST['__cancel'])) 
     1205      ReloadPage ($this->flow->GetBaseURL ()); 
     1206 
     1207    $this->parser->open_parag (_msg ("Deshumanize"), false); 
     1208 
     1209    if (isset($_POST['__deshumanize'])) 
     1210      { 
     1211        $query = new cUpdate($this->tables['users'], 
     1212                             array("human" => 0), 
     1213                             array("human" => 1)); 
     1214        if (!$query) 
     1215          ZweError ("Error while deshumanizing user accounts!"); 
     1216 
     1217        ReloadPage ($this->flow->GetBaseURL ()); 
     1218      } 
     1219 
     1220    $this->parser->output ("<p class=\"ask\">\n", 1); 
     1221    $this->parser->output (_msg ("Are you sure you want to deshumanize all users, thus re-enabling the antispam protection?")); 
     1222    $this->parser->output ("</p>\n", -1); 
     1223 
     1224    $this->parser->output ("<form method=\"post\" action=\"" . $this->flow->GetBaseURL () . "/deshumanize\">\n", 1); 
     1225 
     1226    $this->parser->output ("<div style=\"text-align: center;\">\n", 1); 
     1227    $this->parser->output ("<input type=\"submit\" name=\"__deshumanize\" value=\"" . _msg ("Deshumanize") . "\" />\n"); 
     1228    $this->parser->output ("<input type=\"submit\" name=\"__cancel\"      value=\"" . _msg ("Cancel") . "\" />\n"); 
     1229    $this->parser->output ("</div>\n", -1); 
     1230 
     1231    $this->parser->output ("</form>\n", -1); 
     1232    $this->parser->output ("<p>\n", 1); 
     1233 
     1234    $this->parser->close_parag (); 
     1235  } 
     1236 
    11761237  function ShowProfile ($info, $small = false) 
    11771238  { 
     
    12061267    $this->parser->output ("</dt><dd>" . DateOffset ($info['created']) . "</dd>\n", 2); 
    12071268 
     1269    /* Antispam confirmation */ 
     1270    $this->parser->output ("<dt>" . _msg ("Human:") . "</dt>"); 
     1271    if ($info['human'] == 1) 
     1272      $this->parser->output ("<dd>" . _msg ("Confirmed") . "</dd>\n", 2); 
     1273    else 
     1274      $this->parser->output ("<dd>" . _msg ("Not yet confirmed, antispam protection active") . "</dd>\n", 2); 
     1275 
    12081276    /* Groups */ 
    12091277    $groups = $GLOBALS['session']->LoadGroups ($info['id']); 
     
    12461314  function DeleteAccount ($login) 
    12471315  { 
    1248     $user = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`,`private`,`created`,`confirmation` 
     1316    $this->parser->open_parag (_msg ("Delete user"), false); 
     1317 
     1318    $user = new cQuery ("SELECT `id`,`name`,`login`,`email`,`url`, 
     1319                                `private`,`created`,`confirmation`, 
     1320                                `human` 
    12491321                          FROM `" . $this->tables['users'] . "` 
    12501322                          WHERE `login` = '" . $GLOBALS['db']->EscapeString($login) . "'"); 
     
    12671339    $user = $user->Step (); 
    12681340 
    1269     $this->parser->open_parag (_msg ("Delete user")); 
     1341    $this->parser->output ("<p class=\"ask\">\n", 1); 
    12701342    $this->parser->output (_msg ("Are you sure you want to delete this user?")); 
    12711343    $this->parser->output ("</p>\n", -1); 
  • trunk/php-include/kernel/session.inc.php

    r1729 r1793  
    129129  function LoadFromSID ($sid) 
    130130  { 
    131     $info = new cQuery ("SELECT `id`,`login`,`name`,`email`,`url`,`private`,`css` 
     131    $info = new cQuery ("SELECT `id`,`login`,`name`,`email`,`url`,`private`,`css`,`human` 
    132132                          FROM `" . ZWE_TABLE_PREFIX . "users_sessions` 
    133133                          RIGHT JOIN `" . ZWE_TABLE_PREFIX . "users_accounts` 
     
    147147  function LoadFromLogin ($login) 
    148148  { 
    149     $info = new cQuery ("SELECT `id`,`login`,`name`,`email`,`private`,`css` 
     149    $info = new cQuery ("SELECT `id`,`login`,`name`,`email`,`private`,`css`,`human` 
    150150                          FROM `" . ZWE_TABLE_PREFIX . "users_accounts` 
    151151                          WHERE (`login`= '" . $GLOBALS['db']->EscapeString($login) . "')"); 
     
    232232      return NULL; 
    233233  } 
     234 
     235  /** Toggle the status of a registered user to 'human, confirmed'. 
     236   * 
     237   * @param int An optionnal user id. Defaults to currently logged in. 
     238   */ 
     239  function SetHuman ($id = null) 
     240  { 
     241    if (!$id) 
     242      { 
     243        $user = $_SESSION[$this->key]; 
     244 
     245        if (!$user || !isset($user['id'])) 
     246          return false; 
     247 
     248        $id = $user['id']; 
     249      } 
     250 
     251    $query = new cUpdate(ZWE_TABLE_PREFIX . "users_accounts", 
     252                         array("human" => 1), 
     253                         array("id"    => $id)); 
     254    if ($query->nrows == 1) 
     255      return true; 
     256 
     257    return false; 
     258  } 
    234259} 
    235260 
  • trunk/php-include/modules/blog/blog.inc.php

    r1792 r1793  
    840840  function DeleteCategory ($category) 
    841841  { 
     842    $this->parser->open_parag (_msg ("Delete category"), false); 
     843 
    842844    if (!array_key_exists ($category, $this->categories)) 
    843845      ZweError ("This category does not exist!"); 
     
    854856      } 
    855857 
    856     $this->parser->open_parag (_msg ("Delete category:") . " " . $this->categories[$category]['name']); 
     858    $this->parser->output ("<p class=\"ask\">\n", 1); 
    857859    $this->parser->output (_msg ("Are you sure you want to delete this category?")); 
     860    $this->parser->output ("<br /><br />" . _msg ("The name of this category is:") . 
     861                           " <i>" . $this->categories[$category]['name'] . "</i>\n"); 
    858862    $this->parser->output ("</p>\n", -1); 
    859863    $this->parser->output ("<form method=\"post\" action=\"" . $this->flow->GetBaseURL () . 
     
    11651169          ZweError("Could not add empty comment!"); 
    11661170 
    1167         if ($GLOBALS['config']['math_antispam']['value'] == "on") 
     1171        /* If the user is not logged in, or logged in but not human 
     1172         * confirmed, check the antispam thingy. */ 
     1173        if (!$islogged || ($islogged && ($GLOBALS['session']->GetProperty ("human") == 0))) 
    11681174          { 
    11691175            if (!isset($_POST['__comment_antispam_rand1']) || 
     
    11721178              ZweError("Mandatory antispam protection informations are missing!"); 
    11731179 
     1180            /* If the sum does not match, exit on error. Otherwise, 
     1181             * toggle the human status of the user if he's logged in. */ 
    11741182            if ($_POST['__comment_antispam_total'] != ($_POST['__comment_antispam_rand1'] + 
    11751183                                                       $_POST['__comment_antispam_rand2'])) 
    11761184              ZweError("Antispam protection triggered!"); 
     1185            elseif ($islogged) 
     1186              $GLOBALS['session']->SetHuman ($islogged); 
    11771187          } 
    11781188 
     
    13011311 
    13021312    /* Optionnal antispam protection */ 
    1303     if ($GLOBALS['config']['math_antispam']['value'] == "on") 
     1313    if (!$islogged || ($islogged && ($GLOBALS['session']->GetProperty ("human") == 0))) 
    13041314      { 
    13051315        $rands = array(rand(1,9), rand(1,9)); 
     
    13101320        $this->parser->output ("<input type=\"hidden\" name=\"__comment_antispam_rand1\" value=\"" . $rands[0] . "\" />\n"); 
    13111321        $this->parser->output ("<input type=\"hidden\" name=\"__comment_antispam_rand2\" value=\"" . $rands[1] . "\" />\n"); 
    1312         $this->parser->output ("<input type=\"text\" name=\"__comment_antispam_total\" />\n"); 
     1322        $this->parser->output ("<input type=\"text\"   name=\"__comment_antispam_total\" style=\"width: 2em\" size=\"2\" />\n"); 
     1323 
     1324        if (!$islogged) 
     1325          $this->parser->output ("<a href=\"" . $this->flow->GetBaseURL ("users") . "/create\">" . _msg ("Create an account")    . 
     1326                                 "</a> " . _msg ("to get rid of this!") . "\n"); 
     1327 
    13131328        $this->parser->output ("</dd>\n", -1); 
    13141329      } 
     
    19431958      ReloadPage ($this->flow->GetBaseURL () . "/" . $id); 
    19441959 
     1960    $this->parser->open_parag (_msg ("Delete entry"), false); 
     1961 
    19451962    if (isset($_POST['__delete_blog'])) 
    19461963      { 
     
    19631980      ZweError ("This entry does not belong to you!"); 
    19641981 
    1965     $this->parser->open_parag (_msg ("Delete entry")); 
     1982    $this->parser->output ("<p class=\"ask\">\n", 1); 
    19661983    $this->parser->output (_msg ("Are you sure you want to delete this entry and all its comments?")); 
    1967     $this->parser->output ("</p>\n", -1); 
    1968     $this->parser->output ("<p>\n", 1); 
    1969     $this->parser->output (_msg ("The title of this entry is:") . " <i>" . $blog['title'] . "</i>\n"); 
     1984    $this->parser->output ("<br /><br />" . _msg ("The title of this entry is:") . 
     1985                           " <i>" . $blog['title'] . "</i>\n"); 
    19701986    $this->parser->output ("</p>\n", -1); 
    19711987 
     
    19942010      ReloadPage ($this->flow->GetBaseURL () . "/" . $_POST['__blogid']); 
    19952011 
     2012    $this->parser->open_parag (_msg("Delete comment"), false); 
     2013 
    19962014    if (isset($_POST['__delete_comment'])) 
    19972015      { 
     
    20112029    $comment = $comment->Step (); 
    20122030 
    2013     $this->parser->open_parag (_msg("Delete comment")); 
     2031    $this->parser->output ("<p class=\"ask\">\n", 1); 
    20142032    $this->parser->output (_msg("Are you sure you want to delete this comment from") . " <b>" . 
    20152033                           $comment['login'] . "</b> ?"); 
  • trunk/php-include/modules/blog/i18n/fr

    r1792 r1793  
    134134Impossible de supprimer le titre de l'entrée ! 
    135135 
     136:Create an account 
     137Créez-vous un compte 
     138 
    136139:Create category 
    137140Créer une catégorie 
     
    151154Supprimer 
    152155 
    153 :Delete category: 
    154 Supprimer la catégorie : 
     156:Delete category 
     157Supprimer une catégorie 
    155158 
    156159:Delete comment 
     
    393396Il n'y a aucune entrée dans la base de données pour cette année ! 
    394397 
     398:The name of this category is: 
     399Le nom de cette catégorie est : 
     400 
    395401:The title of this entry is: 
    396402Le titre de cette entrée est : 
     
    429435Titre : 
    430436 
     437:to get rid of this! 
     438pour en être débarrassé ! 
     439 
    431440:Type: 
    432441Type : 
  • trunk/php-include/modules/pages/pages.inc.php

    r1762 r1793  
    210210 
    211211    $this->parser->output ("<ul id=\"pagelist\">\n", 1); 
    212     foreach ($list as $name => $page)      
     212    foreach ($list as $name => $page) 
    213213    { 
    214214       $this->parser->output ("<li><a href=\"" . $this->flow->GetBaseURL () . "/" . 
     
    250250        return; 
    251251      } 
    252          
     252 
    253253    $this->parser->output ("</p><p>\n" . _msg ("No page available.")); 
    254254    $this->parser->close_parag (); 
     
    482482      ReloadPage ($this->flow->GetBaseURL () . "/" . $page); 
    483483 
    484     $this->parser->open_parag (_msg ("Delete page")); 
     484    $this->parser->open_parag (_msg ("Delete page"), false); 
    485485 
    486486    if (isset($_POST['__delete_page']))