25 require_once(
"../class/config.php");
26 include_once(
"head.php");
29 if (!
$r=$aws->get_list()) {
30 $msg->raise(
'Info',
"aws", _(
"No statistics currently defined"));
35 if (!$quota->cancreate(
"aws")) {
36 $msg->raise(
'Info',
"aws", _(
"Your stat quota is over..."));
41 <h3><?php
__(
"Statistics List"); ?></h3>
45 echo
$msg->msg_html_all(
"<li>",
true,
true);
52 <span
class=
"ina"><a href=
"aws_users.php"><?php
__(
"Manage allowed users' accounts"); ?></a></span><br /><br />
56 <span
class=
"ina"><a href=
"aws_add.php"><?php
__(
"Create new Statistics"); ?></a></span><br />
62 <form method=
"post" action=
"aws_del.php">
64 <table cellspacing=
"0" cellpadding=
"4">
65 <tr><th colspan=
"2"><?php
__(
"Action"); ?></th><th><?php
__(
"Domain name"); ?></th><th><?php
__(
"Allowed Users"); ?></th><th><?php
__(
"View the statistics"); ?></th></tr>
72 <tr
class=
"lst<?php echo $col; ?>">
73 <td><input type=
"checkbox" class=
"inc" id=
"del_<?php echo $val["id"]; ?>" name=
"del_<?php echo $val["id"]; ?>" value=
"<?php echo $val["id"]; ?>" /></td>
74 <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>
75 <td
class=
'retour-auto'><label
for=
"del_<?php echo $val["id"]; ?>" ><?php echo
$val[
"hostname"] ?></label></td>
76 <td><?php echo
$val[
"users"] ?></td>
77 <td><div
class=
"ina"><a href=
"/cgi-bin/awstats.pl?config=<?php echo $val["hostname
"]; ?>" target=
"_blank" ><img src=
"images/stat.png" alt=
"<?php __("View the statistics
"); ?>" /><?php
__(
"View the statistics"); ?></a></div></td>
81 <tr><td colspan=
"5"><input type=
"submit" class=
"inb" name=
"submit" onClick=
'return confirm("<?php __("Are you sure you want to delete the selected statistics?");?>");' value=
"<?php __("Delete the checked Statistics
"); ?>" /></td></tr>
87 include_once(
"foot.php");
if(! $r=$aws->get_list()) $create
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
if(empty($_POST['key'])||empty($_POST['val'])) $key