26 require_once(
"../class/config.php");
29 "confirm_del" => array (
"post",
"string",
""),
30 "siteid" => array (
"request",
"integer", -1),
35 $msg->raise(
"ERROR",
"piwik", _(
"Missing site parameters"));
36 include(
'piwik_sitelist.php');
40 if(!empty($confirm_del) ) {
42 if ($piwik->site_delete($siteid) ) {
43 $msg->raise(
"INFO",
"piwik", _(
"Site successfully deleted"));
46 include(
'piwik_sitelist.php');
51 include_once(
'head.php');
54 <h3><?php
__(
"Piwik site deletion confirm"); ?></h3>
57 <?php
__(
"Do you really want to delete this Piwik website ?");?>
61 <form method=
"post" action=
"piwik_site_dodel.php" name=
"main" id=
"main">
63 <input type=
"hidden" name=
"siteid" value=
"<?php ehe($siteid);?>" />
64 <input type=
"submit" class=
"inb" name=
"confirm_del" value=
"<?php __("Delete
")?>" />
65 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='piwik_sitelist.php'" />
69 include_once(
'foot.php');
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
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 ...
$fields
Delete piwik websites.