tiki-user_reports_send.php 687 Bytes
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3 4
/**
 * @package tikiwiki
 */
5
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
changi67's avatar
changi67 committed
6 7 8
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
changi67's avatar
changi67 committed
9
// $Id$
10

11
require_once ('tiki-setup.php');
12

13 14
if (php_sapi_name() != 'cli') {
	$access->check_permission('tiki_p_admin');
15
}
16

17 18
echo("This script is deprecated and does not work in Multitiki installations.\nPlease use 'console.php daily-report:send' instead.");

19
$access->check_feature('feature_daily_report_watches');
20

21 22
$reportsManager = Reports_Factory::build('Reports_Manager');
$reportsManager->send();