25 require_once(
"../class/config.php");
26 include_once(
"head.php");
29 <h3><?php
__(
"Awstats allowed user list"); ?></h3>
34 if (!
$r=$aws->list_login()) {
38 echo
$msg->msg_html_all();
40 $c=$admin->listPasswordPolicies();
43 if ($quota->cancreate(
"aws")) { ?>
44 <p><span
class=
"ina"><a href=
"aws_add.php"><?php
__(
"Create new Statistics"); ?></a></span></p>
47 <form method=
"post" action=
"aws_useradd.php" name=
"main">
51 <label
for=
"login"><?php
__(
"Username"); ?></label></th><td>
52 <select
class=
"inl" name=
"prefixe"><?php $aws->select_prefix_list($prefixe); ?></select> <b>_</b> <input type=
"text" class=
"int" name=
"login" id=
"login" value=
"" size=
"20" maxlength=
"64" />
55 <tr><th><label
for=
"passconf"><?php
__(
"Confirm password"); ?></label></th><td><input type=
"password" class=
"int" name=
"passconf" id=
"passconf" value=
"" size=
"20" maxlength=
"64" /></td></tr>
56 <tr
class=
"trbtn"><td colspan=
"2">
57 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Create
this new Awstats user
"); ?>" />
58 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='aws_list.php'"/>
70 <form method=
"post" action=
"aws_userdel.php" name=
"main2" id=
"main2">
73 <tr><th colspan=
"2"><?php
__(
"Action"); ?></th><th><?php
__(
"Username"); ?></th></tr>
79 <tr
class=
"lst<?php echo $col; ?>">
80 <td align=
"center"><input type=
"checkbox" class=
"inc" id=
"del_<?php echo $val; ?>" name=
"del_<?php echo $val; ?>" value=
"<?php echo $val; ?>" /></td>
81 <td><span
class=
"ina"><a href=
"aws_pass.php?login=<?php echo $val ?>"><?php
__(
"Change password"); ?></a></span></td>
82 <td><label
for=
"del_<?php echo $val; ?>"><?php echo
$val ?></label></td>
87 <tr><td colspan=
"5"><input type=
"submit" name=
"submit" class=
"inb" onClick=
'return confirm("<?php __("Are you sure you want to delete the selected accounts?");?>");' value=
"<?php __("Delete checked accounts
"); ?>" /></td></tr>
95 <script type=
"text/javascript">
96 document.forms[
'main'].login.focus();
97 document.forms[
'main'].setAttribute(
'autocomplete',
'off');
100 <?php include_once(
"foot.php"); ?>
const DEFAULT_PASS_SIZE
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel.
display_div_generate_password($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="", $classcount=3)
Show a button to set a random password for a password field.
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 ...