30 require_once(
"../class/config.php");
31 include_once(
"head.php");
34 echo
"<p class=\"alert alert-danger\">$error</p>";
38 if ($quota->cancreate(
"piwik")) {
39 $quotapiwik=$quota->getquota(
'piwik');
41 <h3><?php
__(
"Create a new piwik account");?></h3>
42 <form method=
"post" action=
"piwik_addaccount.php" id=
"main" name=
"addaccount" >
43 <input type=
"text" class=
"int" name=
"account_name" size=
"20" id=
"account_name" maxlength=
"32" value=
"<?php if ($quotapiwik['u']==0) {echo $mem->user["login
"];}?>"/>
44 <input type=
"submit" name=
"submit" class=
"inb" value=
"<?php __("Create
"); ?>" />
51 if ($quotapiwik[
'u']>0) {
53 <h3><?php
__(
"Add a new website");?></h3>
54 <form method=
"post" action=
"piwik_addsites.php" id=
"main" name=
"addsites" >
55 <input type=
"text" class=
"int" name=
"site_urls" size=
"50" id=
"site_name" maxlength=
"255" value=
"" placeholder=
"<?php __("URL of the website
")?>"/>
56 <input type=
"submit" name=
"submit" class=
"inb" value=
"<?php __("Create
"); ?>" />
66 <h3><?php
__(
"Existing Piwik accounts"); ?></h3>
74 __(
"No existing Piwik users");
79 <tr><th/><th><?php
__(
"Username");?></th><th align=center><?php
__(
"Connect"); ?></th></tr>
86 <tr
class=
"lst_clic<?php echo $col; ?>">
87 <td><div
class=
"ina"><a href=
"piwik_user_dodel.php?login=<?php echo urlencode($user->login); ?>"><img src=
"images/delete.png" alt=
"<?php __("Delete
"); ?>" /><?php
__(
"Delete"); ?></a></div></td>
88 <td align=right><?php echo $user->login ?></td>
89 <td><div
class=
"ina"><a href=
"<?php printf('%s?module=Login&action=logme&login=%s&password=%s', $piwik->url(), $user->login, $user->password); ?>" target=
"_blank"><?php
__(
'Connect'); ?></a></td>
97 <?php include_once(
"foot.php"); ?>