array ("post", "string", ""), "site_urls" => array ("post", "string", ""), ); getFields($fields); if(empty($site_name)) $site_name=$site_urls; if (empty($site_name)) { $error=("Error : missing arguments."); } elseif (! $piwik->site_add($site_name, $site_urls) ) { $error=_("Error during adding website.
".$err->errstr()); } else { $error=_("Successfully add website"); } include_once("piwik_sitelist.php"); ?>