Changeset 2722
- Timestamp:
- 06/02/10 23:43:03 (3 years ago)
- Location:
- alternc-awstats/trunk/bureau
- Files:
-
- 6 edited
-
admin/aws_add.php (modified) (2 diffs)
-
admin/aws_del.php (modified) (2 diffs)
-
admin/aws_list.php (modified) (3 diffs)
-
admin/aws_pass.php (modified) (2 diffs)
-
admin/aws_users.php (modified) (5 diffs)
-
class/m_aws.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc-awstats/trunk/bureau/admin/aws_add.php
r2560 r2722 42 42 ?> 43 43 <h3><?php if (!$id) { __("New Statistics"); } else { __("Edit Statistics"); } ?></h3> 44 <hr id="topbar"/> 45 <br /> 44 46 <?php 45 47 if ($error) { 46 48 echo "<p class=\"error\">$error</p></body></html>"; 47 exit();48 49 } 49 50 ?> 50 51 <form method="post" action="<?php if (!$id) echo "aws_doadd.php"; else echo "aws_doedit.php"; ?>" id="main" name="main"> 51 <table border="1" cellspacing="0" cellpadding="4">52 <table class="tedit"> 52 53 <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> 53 54 <label for="hostname"><?php __("Domain name"); ?></label></th><td> … … 102 103 </select> 103 104 </td></tr> 104 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php if (!$id) __("Create those statistics"); else __("Edit those statistics"); ?>" /></td></tr> 105 <tr class="trbtn"><td colspan="2"> 106 <input type="submit" class="inb" name="submit" value="<?php if (!$id) __("Create those statistics"); else __("Edit those statistics"); ?>" /> 107 <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_list.php'"/> 108 109 </td></tr> 105 110 </table> 106 111 </form> -
alternc-awstats/trunk/bureau/admin/aws_del.php
r2560 r2722 33 33 // On parcours les POST_VARS et on repere les del_. 34 34 reset($_POST); 35 $found=false; 35 36 while (list($key,$val)=each($_POST)) { 36 37 if (substr($key,0,4)=="del_") { 37 38 // Effacement du jeu de stats $val 38 39 $r=$aws->delete_stats($val); 40 $found=true; 39 41 if (!$r) { 40 42 $error.=$err->errstr()."<br />"; … … 45 47 } 46 48 49 if (!$found) { 50 $error.=_("Please check the statistics set you want to delete"); 51 } 52 47 53 include("aws_list.php"); 48 54 exit(); -
alternc-awstats/trunk/bureau/admin/aws_list.php
r2560 r2722 39 39 ?> 40 40 <h3><?php __("Statistics List"); ?></h3> 41 <hr id="topbar"/> 42 <br /> 41 43 <p> 42 - <a href="aws_users.php"><?php __("Manage allowed users' accounts"); ?></a><br />44 <span class="ina"><a href="aws_users.php"><?php __("Manage allowed users' accounts"); ?></a></span><br /><br /> 43 45 <?php 44 46 if ($quota->cancreate("aws")) { ?> 45 - <a href="aws_add.php"><?php __("Create new Statistics"); ?></a><br />47 <span class="ina"><a href="aws_add.php"><?php __("Create new Statistics"); ?></a></span><br /> 46 48 <?php } 47 49 ?> … … 57 59 <form method="post" action="aws_del.php"> 58 60 <table cellspacing="0" cellpadding="4"> 59 <tr><th colspan="2"> </th><th><?php __("Domain name"); ?></th><th>Allowed Users</th><th><?php __("View"); ?></th></tr>61 <tr><th colspan="2"><?php __("Action"); ?></th><th><?php __("Domain name"); ?></th><th><?php __("Allowed Users"); ?></th><th><?php __("View the statistics"); ?></th></tr> 60 62 <?php 61 63 reset($r); … … 67 69 <tr class="lst<?php echo $col; ?>"> 68 70 <td><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td> 69 <td><a href="aws_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" title="<?php __("Edit"); ?>" /></a></td>71 <td><div class="ina"><a href="aws_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" title="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td> 70 72 <td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["hostname"] ?></label></td> 71 73 <td><?php echo $val["users"] ?></td> 72 <td>< a href="/cgi-bin/awstats.pl?config=<?php echo $val["hostname"]; ?>"><?php __("View"); ?></a></td>74 <td><div class="ina"><img src="images/stat.png" alt="<?php __("View the statistics"); ?>" /><a href="/cgi-bin/awstats.pl?config=<?php echo $val["hostname"]; ?>"><?php __("View the statistics"); ?></a></div></td> 73 75 </tr> 74 76 <?php -
alternc-awstats/trunk/bureau/admin/aws_pass.php
r2560 r2722 62 62 <?php } ?> 63 63 64 <form method="post" action="aws_pass.php" name="main" >65 <table border="1" cellspacing="0" cellpadding="4">64 <form method="post" action="aws_pass.php" name="main" id="main"> 65 <table class="tedit"> 66 66 <tr><th> 67 67 <?php __("Username"); ?></th><td> … … 69 69 </td></tr> 70 70 <tr><th><label for="pass"><?php __("New Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="<?php echo $pass; ?>" size="20" maxlength="64" /></td></tr> 71 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change this user's password"); ?>" /></td></tr> 71 <tr class="trbtn"><td colspan="2"> 72 <input type="submit" class="inb" name="submit" value="<?php __("Change this user's password"); ?>" /> 73 <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_users.php'"/> 74 </td></tr> 72 75 </table> 73 76 </form> 77 78 <script type="text/javascript"> 79 document.forms['main'].pass.focus(); 80 document.forms['main'].setAttribute('autocomplete', 'off'); 81 </script> 82 83 74 84 <?php include_once("foot.php"); ?> -
alternc-awstats/trunk/bureau/admin/aws_users.php
r2560 r2722 39 39 ?> 40 40 <h3><?php __("Awstats allowed user list"); ?></h3> 41 <hr id="topbar"/> 42 <br /> 41 43 42 44 <form method="post" action="aws_useradd.php" name="main"> 43 <table border="1" cellspacing="0" cellpadding="4">45 <table class="tedit"> 44 46 <tr><th> 45 47 <label for="login"><?php __("Username"); ?></label></th><td> … … 47 49 </td></tr> 48 50 <tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="" size="20" maxlength="64" /></td></tr> 49 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new awstat account."); ?>" /></td></tr> 51 <tr class="trbtn"><td colspan="2"> 52 <input type="submit" class="inb" name="submit" value="<?php __("Create this new awstat account"); ?>" /> 53 <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_list.php'"/> 54 55 </td></tr> 50 56 </table> 51 57 </form> 52 58 <br /> 53 59 <?php 54 60 … … 63 69 64 70 65 <form method="post" action="aws_userdel.php" >66 <table c ellspacing="0" cellpadding="4">67 <tr><th colspan="2"> </th><th><?php __("Username"); ?></th></tr>71 <form method="post" action="aws_userdel.php" name="main2" id="main2"> 72 <table class="tlist"> 73 <tr><th colspan="2"><?php __("Action"); ?></th><th><?php __("Username"); ?></th></tr> 68 74 <?php 69 75 $col=1; … … 73 79 <tr class="lst<?php echo $col; ?>"> 74 80 <td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val; ?>" name="del_<?php echo $val; ?>" value="<?php echo $val; ?>" /></td> 75 <td>< a href="aws_pass.php?login=<?php echo $val ?>"><?php __("Change password"); ?></a></td>81 <td><span class="ina"><a href="aws_pass.php?login=<?php echo $val ?>"><?php __("Change password"); ?></a></span></td> 76 82 <td><label for="del_<?php echo $val; ?>"><?php echo $val ?></label></td> 77 83 </tr> … … 82 88 </table> 83 89 </form> 90 91 84 92 <?php 85 93 } 86 94 ?> 95 <script type="text/javascript"> 96 document.forms['main'].login.focus(); 97 document.forms['main'].setAttribute('autocomplete', 'off'); 98 </script> 99 87 100 <?php include_once("foot.php"); ?> -
alternc-awstats/trunk/bureau/class/m_aws.php
r2697 r2722 675 675 $s=str_replace("%%HOSTNAME%%",$hostname,$s); 676 676 $s=str_replace("%%PUBLIC%%",$public,$s); 677 $s=str_replace("%%HOSTALIASES%%",$hostaliases ." ".$hostname,$s);677 $s=str_replace("%%HOSTALIASES%%",$hostaliases,$s); 678 678 $s=str_replace("%%USERS%%",$users,$s); 679 679 $f=fopen($this->CONFDIR."/awstats.".$hostname.".conf","wb");
Note: See TracChangeset
for help on using the changeset viewer.
