26 require_once(
"../class/config.php");
27 include_once(
"head.php");
35 <h3><?php
__(
"Create a new piwik account");?></h3>
37 echo
$msg->msg_html_all(
true,
true);
39 <form method=
"post" action=
"piwik_addaccount.php" id=
"main" name=
"addaccount" >
43 <th><label
for=
"account_name"><?php
__(
"Account Name"); ?></label></th>
44 <td><span
class=
"int" id=
"account_namefx"><?php echo
$mem->user[
"login"]; ?>_</span><input type=
"text" class=
"int" name=
"account_name" size=
"20" id=
"account_name" maxlength=
"32" value=
""/>
47 <th><label
for=
"account_mail"><?php
__(
"Linked Account Email"); ?></label></th>
48 <td><input type=
"text" class=
"int" name=
"account_mail" size=
"20" id=
"account_mail" maxlength=
"32" value=
"<?php if (count($userslist) == 0) {echo $mem->user["mail
"];}?>"/>
50 <tr
class=
"trbtn"><td colspan=
"2">
51 <input type=
"submit" name=
"submit" class=
"inb" value=
"<?php __("Create
"); ?>" />
54 <i>(<?php
ehe(
"Max. 3 accounts"); ?>)</i>
56 <script type=
"text/javascript">
57 document.forms[
'main'].account_name.focus();
63 $msg->raise(
"INFO",
"piwik", _(
"You cannot add any new Piwik account, your quota is over."));
67 <h3><?php
__(
"Existing Piwik accounts"); ?></h3>
69 echo
$msg->msg_html_all(
true,
true);
73 $msg->raise(
"INFO",
"piwik", _(
"No existing Piwik accounts"));
74 echo
$msg->msg_html_all();
79 <tr><th/><th><?php
__(
"Username");?></th><th align=center><?php
__(
"Connect"); ?></th></tr>
85 $form_id=
"main_".$user->login;
87 $db->query(
"SELECT passwd FROM piwik_users WHERE login = '$user->login'");
88 if (
$db->next_record()) {
89 $piwik_pwd =
$db->f(
'passwd');
94 <tr
class=
"lst_clic<?php echo $col; ?>">
97 <form method=
"post" action=
"piwik_user_dodel.php" name=
"<?php echo $form_id; ?>" id=
"<?php echo $form_id; ?>">
99 <input type=
"hidden" name=
"login" value=
"<?php ehe($user->login);?>" />
100 <input type=
"button" class=
"ina" name=
"delete" value=
"<?php __("Delete
"); ?>" onclick=
"document.getElementById('<?php echo $form_id; ?>').submit();" style=
"background: url('/images/delete.png') no-repeat 3px 3px; padding-left: 16px;" />
104 <td><?php echo
$user->login ?></td>
105 <!--<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>-->
110 <div
class=
"ina"><a href=
"<?php printf('%s?module=Login&action=logme&login=%s&password=%s', $piwik->url(), $user->login, $piwik_pwd); ?>" target=
"_blank"><?php
__(
'Connect'); ?></a>
114 <div
class=
"ina"><img src=
"images/warning.png" onmouseover=
'$("#alert_div_msg").show();' onmouseout=
'$("#alert_div_msg").hide();'></div>
124 <div
class=
"ina" id=
"alert_div_msg" style=
"display:none;background-color:yellow;padding:5px;border:2px solid black;margin-top:3em;";>
125 <?php
__(
"An error occurred. It was not possible to retrieve the access information to the Piwik interface") ?>
127 <?php include_once(
"foot.php"); ?>
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
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 ...
$userslist
List Piwik users.