25 require_once(
"../class/config.php");
28 "id" => array (
"request",
"integer", 0),
32 if (!$id && !$quota->cancreate(
"aws")) {
33 $error=_(
"You cannot add any new statistics, your quota is over.");
36 include_once(
"head.php");
38 <h3><?php
if (!$id) {
__(
"New Statistics"); }
else {
__(
"Edit Statistics"); } ?></h3>
41 <?php
__(
"Awstats will analyze every logs availables for this domain (since its creation).");?>
46 echo
"<p class=\"error\">$error</p></body></html>";
49 <form method=
"post" action=
"<?php if (!$id) echo "aws_doadd.php
"; else echo "aws_doedit.php
"; ?>" id=
"main" name=
"main">
51 <tr><th><input type=
"hidden" name=
"id" value=
"<?php echo $id ?>" />
52 <label
for=
"hostname"><?php
__(
"Domain name"); ?></label></th><td>
54 <select
class=
"inl" name=
"hostname" id=
"hostname"><?php $aws->select_host_list($hostname); ?></select>
56 <code><?php echo $hostname; ?></code>
59 <tr><th><?php
__(
"Hostaliases"); ?></th><td>
61 $hl=$aws->host_list();
63 $hatab=$aws->get_hostaliases($id);
67 echo
"<input type=\"checkbox\" name=\"hostaliases[]\" id=\"ha_$ho\" value=\"$ho\"";
68 if (in_array($ho,@explode(
" ",$hatab[0]))) echo
" checked=\"checked\"";
69 echo
" /><label for=\"ha_$ho\">$ho ($ty)</label><br />\n";
73 <tr><th><?php
__(
"Allowed Users"); ?></th><td>
76 $r=$aws->list_allowed_login($id);
82 echo
"<input type=\"checkbox\" name=\"awsusers[]\" class=\"int\" id=\"u_".htmlentities($v[
"login"]).
"\" value=\"".htmlentities($v[
"login"]).
"\" ";
83 if ($v[
"selected"]) echo
" checked=\"checked\"";
84 echo
"><label for=\"u_".htmlentities($v[
"login"]).
"\">".$v[
"login"].
"</label><br />\n";
89 __(
"No users currently defined, you must create login with the 'Manage allowed users' accounts' menu.");
93 <tr
class=
"trbtn"><td colspan=
"2">
94 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php if (!$id) __("Create those statistics
"); else __("Edit those statistics
"); ?>" />
95 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='aws_list.php'"/>
100 <?php include_once(
"foot.php"); ?>