Changeset 1036

Show
Ignore:
Timestamp:
09/08/04 16:20:03 (4 years ago)
Author:
anonymous
Message:

fin du module, a tester

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bureau/admin/aws_add.php

    r1034 r1036  
    3030require_once("../class/config.php"); 
    3131 
    32 if (!$quota->cancreate("aws")) { 
     32if (!$id && !$quota->cancreate("aws")) { 
    3333        $error=_("You cannot add any new statistics, your quota is over."); 
    3434} 
     
    3838</head> 
    3939<body> 
    40 <h3><?php __("New Statistics"); ?></h3> 
     40<h3><?php if (!$id) { __("New Statistics"); } else { __("Edit Statistics"); } ?></h3> 
    4141<?php 
    4242        if ($error) { 
     
    4545        } 
    4646?> 
    47 <form method="post" action="aws_doadd.php" id="main" name="main"> 
     47<form method="post" action="<?php if (!$id) echo "aws_doadd.php"; else echo "aws_doedit"; ?>" id="main" name="main"> 
    4848<table border="1" cellspacing="0" cellpadding="4"> 
    4949<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> 
    50 // TODO JE SUIS ICI, DEV EN COURS, MAIS JE COMMITE QUAND MEME ... // 
     50        <label for="hostname"><?php __("Domain name"); ?></label></th><td> 
     51<?php if (!$id) { ?> 
     52        <select class="inl" name="hostname" id="hostname"><?php $aws->select_host_list($hostname); ?></select> 
     53<?php } else { ?> 
     54        <code><?php echo $hostname; ?></code> 
     55<?php } ?> 
     56</td></tr> 
     57<tr><th><?php __("Allowed Users"); ?></th><td> 
     58<?php  
     59// List the users (and check allowed ones) :  
     60$r=$aws->list_allowed_login($id); 
    5161 
    52         <label for="hostname"><?php __("Domain name"); ?></label></th><td> 
    53         <select class="inl" name="hostname" id="hostname"><?php $stats->select_host_list($hostname); ?></select> 
    54 </td></tr> 
    55 <tr><th><label for="stalang"><?php __("Language"); ?></label></th><td><select class="inl" name="stalang" id="stalang"><?php $stats->select_lang_list($lang) ?></select></td></tr> 
    56 <tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php echo $dir; ?>" size="20" maxlength="255" /> 
    57 <script type="text/javascript"> 
    58 <!-- 
    59   document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.dir');\" value=\" ... \" class=\"inb\" />"); 
    60 //  --> 
    61 </script> 
    62 </td></tr> 
    63 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create those statistics"); ?>" /></td></tr> 
     62if (is_array($r)) { 
     63?> 
     64<select class="inl" name="awsusers[]" id="awsusers" multiple="multiple" size="10"> 
     65<?php 
     66foreach($r as $v) { 
     67        echo "<option"; 
     68        if ($v["selected"]) echo " selected=\"selected\""; 
     69        echo ">".$v["login"]."</option>\n"; 
     70
     71?> 
     72</select> 
     73<?php 
     74} else { 
     75        __("No users currently defined, you must create login with the 'Manage allowed users' accounts' menu."); 
     76
     77 
     78?></td></tr> 
     79<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php if (!$id)  __("Create those statistics"); else __("Edit those statistics"); ?>" /></td></tr> 
    6480</table> 
    6581</form> 
    66 <?php $mem->show_help("sta_add"); ?> 
    6782 
    6883</body> 
  • trunk/bureau/admin/aws_doadd.php

    r1030 r1036  
    3030require_once("../class/config.php"); 
    3131 
    32 $r=$stats->add_stats($hostname,$dir,$stalang); 
     32$r=$aws->add_stats($hostname,$awsusers); 
    3333if (!$r) { 
    3434        $error=$err->errstr(); 
    35         include("sta_add.php"); 
     35        include("aws_add.php"); 
    3636        exit(); 
    3737} else { 
    3838        $error=_("The statistics has been successfully created"); 
    39         include("sta_list.php"); 
     39        include("aws_list.php"); 
    4040        exit(); 
    4141} 
  • trunk/bureau/admin/aws_doedit.php

    r1030 r1036  
    2424 To read the license please visit http://www.gnu.org/copyleft/gpl.html 
    2525 ---------------------------------------------------------------------- 
    26  Original Author of file: 
    27  Purpose of file: 
     26 Original Author of file: Benjamin Sonntag 
     27 Purpose of file: Edit a statistic set 
    2828 ---------------------------------------------------------------------- 
    2929*/ 
     
    3333        $error=_("No Statistics selected!"); 
    3434} else { 
    35         $r=$stats->put_stats_details($id,$dir,$stalang); 
     35        $r=$aws->put_stats_details($id,$awsusers); 
    3636        if (!$r) { 
    3737                $error=$err->errstr(); 
    38                 include("sta_edit.php"); 
     38                include("aws_edit.php"); 
    3939                exit(); 
    4040        } else { 
    4141                $error=_("The Statistics has been successfully changed"); 
    42                 include("sta_list.php"); 
     42                include("aws_list.php"); 
    4343                exit(); 
    4444        } 
  • trunk/bureau/admin/aws_edit.php

    r1030 r1036  
    2424 To read the license please visit http://www.gnu.org/copyleft/gpl.html 
    2525 ---------------------------------------------------------------------- 
    26  Original Author of file: 
    27  Purpose of file: 
     26 Original Author of file: Benjamin Sonntag 
     27 Purpose of file: Edit a statistic set 
    2828 ---------------------------------------------------------------------- 
    2929*/ 
     
    3333        $error=_("No Statistics selected!"); 
    3434} else { 
    35         $r=$stats->get_stats_details($id); 
     35        $r=$aws->get_stats_details($id); 
    3636        if (!$r) { 
    3737                $error=$err->errstr(); 
     
    3939} 
    4040 
    41 include("head.php"); 
     41$id=$r["id"]; 
     42$hostname=$r["hostname"]; 
     43$awsusers=$r["users"]; 
     44 
     45include("aws_add.php"); 
     46exit(); 
     47 
    4248?> 
    43 </head> 
    44 <body> 
    45 <h3><?php __("Change the Statistics"); ?></h3> 
    46 <?php 
    47         if ($error) { 
    48                 echo "<p class=\"error\">$error</p></body></html>"; 
    49                 exit(); 
    50         } 
    51 ?> 
    52 <form method="post" action="sta_doedit.php" id="main" name="main"> 
    53 <table border="1" cellspacing="0" cellpadding="4"> 
    54 <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> 
    55         <?php __("Domain name"); ?></th><td> 
    56         <?php echo $r["hostname"]; ?> 
    57 </td></tr> 
    58 <tr><th><label for="stalang"><?php __("Language"); ?></label></th><td><select class="inl" name="stalang" id="stalang"><?php $stats->select_lang_list($r["lang"]) ?></select></td></tr> 
    59 <tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php echo $r["dir"]; ?>" size="20" maxlength="255" /> 
    60 <script type="text/javascript"> 
    61 <!-- 
    62   document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.dir');\" value=\" ... \" class=\"inb\" />"); 
    63 //  --> 
    64 </script> 
    65 </td></tr> 
    66 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change those Statistics."); ?>" /></td></tr> 
    67 </table> 
    68 </form> 
    69  
    70 </body> 
    71 </html> 
  • trunk/bureau/class/m_aws.php

    r1035 r1036  
    2929*/ 
    3030/** 
    31 * Classe de gestion des statistiques web awstats / apache des hébergés 
     31* This class manage awstats statistic sets. 
    3232*  
    33 * Cette classe permet de gérer les statistiques web générées par awstats 
    34 * Copyleft {@link http://alternc.net/ AlternC Team} 
     33* Copyleft {@link http://alternc.org/ AlternC Team} 
    3534*  
    3635* @copyright    AlternC-Team 2004-09-01 http://alternc.org/ 
     
    3938class m_aws { 
    4039 
    41   /** Emplacement des fichiers de conf awstats 
     40  /** Where are the awstats configuration files :  
    4241   * @access private  
    4342   */ 
    4443  var $CONFDIR="/etc/awstats"; 
    4544 
    46   /** Emplacement du fichier patron pour recopie. 
     45  var $CACHEDIR="/var/cache/awstats"; 
     46 
     47  /** Where is the template for conf files : 
    4748   * @access private  
    4849   */ 
     
    5152  /* ----------------------------------------------------------------- */ 
    5253  /** 
    53    * Constructeu
     54   * Constructo
    5455   */ 
    5556  function m_aws() { 
     
    5859  /* ----------------------------------------------------------------- */ 
    5960  /** 
    60    * Nom du quota 
     61   * Quota's name 
    6162   */ 
    6263  function alternc_quota_names() { 
     
    6667  /* ----------------------------------------------------------------- */ 
    6768  /** 
    68    * Nom des fonctions du module 
     69   * Name of the module function 
    6970   */ 
    7071  function alternc_module_description() { 
     
    7475  /* ----------------------------------------------------------------- */ 
    7576  /** 
    76    * Retourne un tableau contenant les jeux de statistiques d'un membre
     77   * Returns an array with all the statistics of a member
    7778   * 
    78    * @return array retourne un tableau indexé de tableaux associatif de la  
    79    * forme :  
    80    *  $r[0-n]["id"] = numéros du jeu 
    81    *  $r[0-n]["hostname"]= domaine concerné 
    82    *  $r[0-n]["users"]= Allowed users. 
     79   * @return array Returns an indexed array of associative arrays  
     80   * like that : 
     81   *  $r[0-n]["id"] = Id of the stat set 
     82   *  $r[0-n]["hostname"]= domain 
     83   *  $r[0-n]["users"]= list of allowed users separated with ' ' 
    8384   */ 
    8485  function get_list() { 
     
    105106      return $t; 
    106107    } else { 
    107       $err->raise("aws",0); // No statistics currently defined 
     108      $err->raise("aws",1); // No statistics currently defined 
    108109      return false; 
    109110    } 
     
    112113  /* ----------------------------------------------------------------- */ 
    113114  /** 
    114    * Retourne un tableau contenant les détails d'un jeu de statistiques 
    115    *  d'un membre. 
     115   * Return an array with the details for 1 statistic set  
    116116   * 
    117    * @param integer $id Numéro du jeu de stats dont on veut les infos. 
    118    * @return array retourne un tableau associatif de la forme :  
    119    *  $r["id"] = numéros du jeu 
    120    *  $r["hostname"]= domaine concerné 
     117   * @param integer $id ID of the set we want. 
     118   * @return array Returns an associative array as follow :  
     119   *  $r["id"] = Id 
     120   *  $r["hostname"]= domain 
     121   *  $r["users"] = List of allowed users, separated by ' ' 
    121122   */ 
    122123  function get_stats_details($id) { 
     
    127128    if ($db->num_rows()) { 
    128129      $db->next_record(); 
     130      $id=$db->f("id"); 
     131      $hostname=$db->f("hostname"); 
     132      $db->query("SELECT login FROM aws_access WHERE id='$id';"); 
     133      $u=""; 
     134      while ($db->next_record()) { 
     135        $u.=$db->f("login")." "; 
     136      } 
    129137      return array( 
    130                    "id"=>$db->f("id"), 
    131                    "hostname"=> $db->f("hostname"), 
     138                "id"=>$id, 
     139                "hostname"=>$hostname, 
     140                "users"=>$u 
    132141                   ); 
    133142    } else { 
    134       $err->raise("aws",0); // This statistic does not exist 
    135       return false; 
    136     } 
    137   } 
    138  
    139   /* ----------------------------------------------------------------- */ 
    140   /** Retourne la liste des domaines / sous-domaines autorisés pour le membre. 
     143      $err->raise("aws",2); // This statistic does not exist 
     144      return false; 
     145    } 
     146  } 
     147 
     148  /* ----------------------------------------------------------------- */ 
     149  /** Return the list of domains / subdomains allowed for this member 
    141150   *  
    142    * @return array retourne un tableau indexé des domaines / sous-domaines utilisables. 
     151   * @return array an array of allowed domains / subdomains. 
    143152   */ 
    144153  function host_list() { 
     
    155164    return $r; 
    156165  } 
     166  /* ----------------------------------------------------------------- */ 
     167  /** Returns the list of allowed prefix for the login names. 
     168   */ 
    157169  function prefix_list() { 
    158170    global $mem; 
     
    164176  /* ----------------------------------------------------------------- */ 
    165177  /**  
    166    * Affiche des options select de la liste des noms de domaines autorisés pour 
    167    * le membre. sous forme de champs d'options (select) 
     178   * Draw options for a select html code with the list of allowed domains 
     179   * for this member. 
    168180   */ 
    169181  function select_host_list($current) { 
     
    179191  /* ----------------------------------------------------------------- */ 
    180192  /**  
    181    * Modifie un jeu de statistiques existant ( non necessaire pour l'instant...) 
    182     */ 
    183 //  function put_stats_details($id,$dir,$stlang)  
     193   * Edit a statistic set (change allowed user list) 
     194   * @param integer $id the stat number we change 
     195   * @param array $users the list of allowed users 
     196   */ 
     197  function put_stats_details($id,$users) { 
     198    global $err,$db,$cuid; 
     199    if ($c=$this->get_stats_detail($id)) { 
     200      $this->delete_allowed_login($id); 
     201      if (is_array($users)) { 
     202        foreach($users as $v) { 
     203          $this->allow_login($v,$id,1); 
     204        } 
     205      } 
     206      $this->_createconf($c["hostname"]); 
     207      return true; 
     208    } else return false; 
     209  } 
    184210 
    185211  /* ----------------------------------------------------------------- */ 
     
    194220    $db->query("SELECT hostname FROM aws WHERE id='$id' and uid='$cuid';"); 
    195221    if (!$db->num_rows()) { 
    196       $err->raise("aws",0); // This statistic does not exist 
     222      $err->raise("aws",2); // This statistic does not exist 
    197223      return false; 
    198224    } 
    199225    $db->next_record(); 
    200     $this->_delconf($db->f("hostname")); 
     226    $hostname=$db->f("hostname"); 
     227    $this->delete_allowed_login($id,1); 
     228    $this->_delconf($hostname); 
    201229    $db->query("DELETE FROM aws WHERE id='$id'"); 
    202230    $quota->dec("aws"); 
    203     // TODO : delete the cache file ! 
     231    system("rm ".$this->CACHEDIR."/$hostname/ -rf"); 
    204232    return $name; 
    205233  } 
     
    211239   * @return boolean TRUE si le jeu de stats a été créé avec succès, FALSE sinon. 
    212240   */ 
    213   function add_stats($hostname) { 
     241  function add_stats($hostname,$users="") { 
    214242    global $db,$err,$quota,$mem,$cuid; 
    215243    $err->log("aws","add_stats",$hostname); 
    216244    $r=$this->host_list(); 
    217245    if (!in_array($hostname,$r) || $hostname=="") { 
    218       $err->raise("aws",0); // This hostname does not exist 
     246      $err->raise("aws",3); // This hostname does not exist 
    219247      return false; 
    220248    } 
     
    222250      $quota->inc("aws"); 
    223251      $db->query("INSERT INTO aws (hostname,uid) VALUES ('$hostname','$cuid')"); 
     252      $id=$db->lastid(); 
     253      if (is_array($users)) { 
     254        foreach($users as $v) { 
     255          $this->allow_login($v,$id); 
     256        } 
     257      } 
    224258      $this->_createconf($hostname); 
    225259      return true; 
    226260    } else { 
    227       $err->raise("aws",0); // Your stat quota is over... 
     261      $err->raise("aws",4); // Your stat quota is over... 
    228262      return false; 
    229263    } 
     
    246280 
    247281  /* ----------------------------------------------------------------- */ 
     282  function list_allowed_login($id) { 
     283    global $db,$err,$cuid; 
     284    $err->log("aws","list_allowed_login"); 
     285    $db->query("SELECT u.login,a.id FROM aws_users u LEFT JOIN aws_access a ON a.id='$id' AND a.login=u.login WHERE u.id='$id';"); 
     286    $res=array(); 
     287    if (!$db->next_record()) { 
     288      return false; 
     289    } 
     290    do {  
     291      $res[]=array("login"=>$db->f("login"),"selected"=>($db->f("id"))); 
     292    } while ($db->next_record()); 
     293    return $res; 
     294  } 
     295 
     296  /* ----------------------------------------------------------------- */ 
    248297  /* Check that a login exists ($exists=1) or doesn't exist ($exists=0) 
    249298  function login_exists($login,$exists=1) { 
     
    263312    $err->log("aws","del_login"); 
    264313    if (!$this->login_exists($login,1)) { 
    265       $err->raise("aws",0); // Login does not exists 
     314      $err->raise("aws",5); // Login does not exists 
    266315      return false; 
    267316    } 
     
    274323    global $db,$err,$cuid; 
    275324    $err->log("aws","add_login"); 
     325 
     326    if (!($login=$this->_check($login))) { 
     327      $err->raise("aws",6); // Login incorrect  
     328      return false;       
     329    } 
     330    if (!$this->login_exists($login,0)) { 
     331      $err->raise("aws",5); // Login does not exists 
     332      return false; 
     333    } 
     334    $db->query("SELECT login FROM aws_users WHERE login='$login';"); 
     335    if ($db->next_record()) { 
     336      $err->raise("aws",7); // Login already exists. 
     337      return false; 
     338    } 
     339    $pass=md5cr($pass); 
     340    $db->query("INSERT INTO aws_users (uid,login,pass) VALUES ('$cuid','$login','$pass');"); 
     341    return true; 
     342  } 
     343 
     344  /* ----------------------------------------------------------------- */ 
     345  function allow_login($login,$id,$noconf=0) { // allow user $login to access stats $id. 
     346    global $db,$err,$cuid; 
     347    $err->log("aws","allow_login"); 
    276348 
    277349    if (!($login=$this->_check($login))) { 
     
    283355      return false; 
    284356    } 
    285     $db->query("SELECT login FROM aws_users WHERE login='$login';"); 
     357    $db->query("SELECT id FROM aws WHERE id='$id' AND uid='$cuid'"); 
     358    if (!$db->next_record()) { 
     359      $err->raise("aws",0); // The requested statistic does not exist. 
     360      return false; 
     361    } 
     362    $db->query("SELECT login FROM aws_access WHERE id='$id' AND login='$login'"); 
    286363    if ($db->next_record()) { 
    287       $err->raise("aws",0); // Login already exists. 
    288       return false; 
    289     } 
    290     $pass=md5cr($pass); 
    291     $db->query("INSERT INTO aws_users (uid,login,pass) VALUES ('$cuid','$login','$pass');"); 
    292     return true; 
    293   } 
    294  
    295   /* ----------------------------------------------------------------- */ 
    296   function allow_login($login,$id) { // allow user $login to access stats $id. 
    297     global $db,$err,$cuid; 
    298     $err->log("aws","allow_login"); 
     364      $err->raise("aws",0); // This login is already allowed for this statistics. 
     365      return false; 
     366    } 
     367    $db->query("INSERT INTO aws_access (uid,id,login) VALUES ('$cuid','$id','$login');"); 
     368    if (!$noconf) { $this->_createconf($id); } 
     369    return true; 
     370  } 
     371  /* ----------------------------------------------------------------- */ 
     372  function delete_allowed_login($id,$noconf=0) { 
     373    global $db,$err,$cuid; 
     374    $err->log("aws","delete_allowed_login"); 
     375 
     376    $db->query("SELECT id FROM aws WHERE id='$id' AND uid='$cuid'"); 
     377    if (!$db->next_record()) { 
     378      $err->raise("aws",0); // The requested statistic does not exist. 
     379      return false; 
     380    } 
     381    $db->query("DELETE FROM aws_access WHERE id='$id';"); 
     382    if (!$noconf) { $this->_createconf($id); } 
     383    return true; 
     384  } 
     385  /* ----------------------------------------------------------------- */ 
     386  function deny_login($login,$id,$noconf=0) { // deny user $login to access stats $id. 
     387    global $db,$err,$cuid; 
     388    $err->log("aws","deny_login"); 
    299389 
    300390    if (!($login=$this->_check($login))) { 
     
    312402    } 
    313403    $db->query("SELECT login FROM aws_access WHERE id='$id' AND login='$login'"); 
    314     if ($db->next_record()) { 
    315       $err->raise("aws",0); // This login is already allowed for this statistics. 
    316       return false; 
    317     } 
    318     $db->query("INSERT INTO aws_access (uid,id,login) VALUES ('$cuid','$id','$login');"); 
    319     $this->_createconf($id); 
    320     return true; 
    321   } 
    322   /* ----------------------------------------------------------------- */ 
    323   function deny_login($login,$id) { // deny user $login to access stats $id. 
    324     global $db,$err,$cuid; 
    325     $err->log("aws","deny_login"); 
    326  
    327     if (!($login=$this->_check($login))) { 
    328       $err->raise("aws",0); // Login incorrect  
    329       return false;       
    330     } 
    331     if (!$this->login_exists($login,0)) { 
    332       $err->raise("aws",0); // Login does not exists 
    333       return false; 
    334     } 
    335     $db->query("SELECT id FROM aws WHERE id='$id' AND uid='$cuid'"); 
    336     if (!$db->next_record()) { 
    337       $err->raise("aws",0); // The requested statistic does not exist. 
    338       return false; 
    339     } 
    340     $db->query("SELECT login FROM aws_access WHERE id='$id' AND login='$login'"); 
    341404    if (!$db->next_record()) { 
    342405      $err->raise("aws",0); // This login is already denied for this statistics. 
     
    344407    } 
    345408    $db->query("DELETE FROM aws_access WHERE id='$id' AND login='$login';"); 
    346     $this->_createconf($id); 
     409    if (!$noconf) { $this->_createconf($id); } 
    347410    return true; 
    348411  } 
  • trunk/bureau/locales/aws.po

    r1030 r1036  
    1 # AlternC-webalizer module 
    2 # Copyright (C) 2004 AlternC Team 
    3 # This file is distributed under the same license as the AlternC package. 
    4 # Benjamin Sonntag <benjamin@alternc.org>, 2004 
     1# AlternC's Translation 
     2# Copyright (C) 2004 AlternC's translation team <i18n@alternc.org> 
     3# This file is distributed under the same license as the AlternC's package. 
     4# AlternC's translation team <i18n@alternc.org> 
    55# 
    66#, fuzzy 
    77msgid "" 
    88msgstr "" 
    9 "Project-Id-Version: $id$ \n" 
     9"$id$\n" 
    1010"Report-Msgid-Bugs-To: i18n@alternc.org\n" 
    11 "POT-Creation-Date: 2004-05-24 17:39+0200\n" 
    12 "PO-Revision-Date: 2004-05-24 17:41+0200\n" 
    13 "Last-Translator: Benjamin Sonntag <benjamin@alternc.org>\n" 
    14 "Language-Team: Team <i18n@alternc.org>\n" 
     11"POT-Creation-Date: 2004-09-08 11:18+0200\n" 
     12"PO-Revision-Date: 2004-09-08 11:18 CEST\n" 
     13"Last-Translator: Team AlternC <i18n@alternc.org>\n" 
     14"Language-Team: Team AlternC <i18n@alternc.org>\n" 
    1515"MIME-Version: 1.0\n" 
    1616"Content-Type: text/plain; charset=ISO-8859-1\n" 
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: admin/sta_add.php:33 
     19#: admin/aws_add.php:33 
    2020msgid "You cannot add any new statistics, your quota is over." 
    2121msgstr "" 
    2222 
    23 #: admin/sta_del.php:42 
    24 #, php-format 
    25 msgid "" 
    26 "The statistics %s has been successfully deleted (the stats files must be " 
    27 "manually deleted)" 
     23#: admin/aws_add.php:40 
     24msgid "New Statistics" 
    2825msgstr "" 
    2926 
    30 #: admin/sta_doadd.php:38 
     27#: admin/aws_add.php:40 
     28msgid "Edit Statistics" 
     29msgstr "" 
     30 
     31#: admin/aws_add.php:50 admin/aws_list.php:61 
     32msgid "Domain name" 
     33msgstr "" 
     34 
     35#: admin/aws_add.php:57 
     36msgid "Allowed Users" 
     37msgstr "" 
     38 
     39#: admin/aws_add.php:75 
     40msgid "" 
     41"No users currently defined, you must create login with the 'Manage allowed " 
     42"users' accounts' menu." 
     43msgstr "" 
     44 
     45#: admin/aws_add.php:79 
     46msgid "Create those statistics" 
     47msgstr "" 
     48 
     49#: admin/aws_add.php:79 
     50msgid "Edit those statistics" 
     51msgstr "" 
     52 
     53#: admin/aws_del.php:42 
     54#, php-format 
     55msgid "The statistics %s has been successfully deleted" 
     56msgstr "" 
     57 
     58#: admin/aws_doadd.php:38 
    3159msgid "The statistics has been successfully created" 
    3260msgstr "" 
    3361 
    34 #: admin/sta_doedit.php:33 admin/sta_edit.php:33 
     62#: admin/aws_doedit.php:33 admin/aws_edit.php:33 
    3563msgid "No Statistics selected!" 
    3664msgstr "" 
    3765 
    38 #: admin/sta_doedit.php:41 
     66#: admin/aws_doedit.php:41 
    3967msgid "The Statistics has been successfully changed" 
    4068msgstr "" 
    4169 
    42 #: admin/sta_list.php:74 
    43 msgid "lang
     70#: admin/aws_list.php:42 
     71msgid "Statistics List
    4472msgstr "" 
    4573 
    46 #: admin/sta_list.php:77 
     74#: admin/aws_list.php:44 
     75msgid "Manage allowed users' accounts" 
     76msgstr "" 
     77 
     78#: admin/aws_list.php:47 
     79msgid "Create new Statistics" 
     80msgstr "" 
     81 
     82#: admin/aws_list.php:61 admin/aws_list.php:74 
    4783msgid "View" 
    4884msgstr "" 
    4985 
    50 #: class/m_stats.php:93 
     86#: admin/aws_list.php:71 
     87msgid "Edit" 
     88msgstr "" 
     89 
     90#: admin/aws_list.php:81 
     91msgid "Delete the checked Statistics" 
     92msgstr "" 
     93 
     94#: admin/aws_useradd.php:36 
     95msgid "The Awstat account has been successfully created" 
     96msgstr "" 
     97 
     98#: admin/aws_userdel.php:42 
     99#, php-format 
     100msgid "The awstat account %s has been successfully deleted" 
     101msgstr "" 
     102 
     103#: admin/aws_users.php:42 
     104msgid "Awstats allowed user list" 
     105msgstr "" 
     106 
     107#: admin/aws_users.php:47 admin/aws_users.php:69 
     108msgid "Username" 
     109msgstr "" 
     110 
     111#: admin/aws_users.php:50 admin/aws_users.php:69 
     112msgid "Password" 
     113msgstr "" 
     114 
     115#: admin/aws_users.php:51 
     116msgid "Create this new awstat account." 
     117msgstr "" 
     118 
     119#: admin/aws_users.php:77 
     120msgid "Change password" 
     121msgstr "" 
     122 
     123#: admin/aws_users.php:79 
     124msgid "<-No Password->" 
     125msgstr "" 
     126 
     127#: admin/aws_users.php:84 
     128msgid "Delete checked accounts" 
     129msgstr "" 
     130 
     131#: admin/menu_awstats.php:37 
     132msgid "Web Statistics" 
     133msgstr "" 
     134 
     135#: class/m_aws.php:72 
    51136msgid "" 
    52137"The stats module allows any user to ask for statistics about his web site. " 
    53138"Statistics are web pages generated daily based on the visits of the day " 
    54 "before. Webalizer is the soft used to produce those stats. The statistics
    55 "can be produced in many languages." 
     139"before. Awstats is the soft used to produce those stats. The statistics are
     140"then protected by a login and a password." 
    56141msgstr "" 
  • trunk/bureau/locales/aws_manual.po

    r1034 r1036  
    1717 
    1818msgid "quota_aws" 
    19 msgstr "
     19msgstr "AwStats
    2020 
    2121msgid "err_aws_1" 
    22 msgstr "Aucun jeu de statistiques de trouvé.
     22msgstr "No statistics currently defined
    2323 
    2424msgid "err_aws_2" 
    25 msgstr "Ce jeu de statistiques n'existe pas.
     25msgstr "This statistic does not exist
    2626 
    27 msgid "err_stats_3" 
    28 msgstr "
     27msgid "err_aws_3" 
     28msgstr "This hostname does not exist
    2929 
    30 msgid "err_stats_4" 
    31 msgstr "
     30msgid "err_aws_4" 
     31msgstr "Your stat quota is over...
    3232 
    33 msgid "err_stats_5" 
    34 msgstr "
     33msgid "err_aws_5" 
     34msgstr "Login does not exists
    3535 
    36 msgid "err_stats_6" 
    37 msgstr "" 
     36msgid "err_aws_6" 
     37msgstr "Login incorrect 
     38 
     39msgid "err_aws_7" 
     40msgstr "Login already exists." 
    3841 
    3942msgid "Web Statistics"