
Originally Posted by
Congerman
All I did was put all the files, in the supplied structure, into my admin folder. Not sure what you mean by "finger-check" are you saying that I should put all the files except the extra functions one?
Nope, that extra-functions one is what adds the link to the report itself. What happens if you edit that /extra_functions/sales_report.php, changing
Code:
<?php
/**
* SALES REPORT 3.1
*
* @author Frank Koehl (PM: BlindSide)
* @author Conor Kerr <[email protected]>
* @updated by stellarweb to work with version 1.5.0 02-29-12
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License V2.0
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (function_exists('zen_register_admin_page')) {
if (!zen_page_key_exists('stats_sales_report')) {
// Add Monthly Report link to Reports menu
zen_register_admin_page('stats_sales_report', 'BOX_REPORTS_SALES_REPORT','FILENAME_STATS_SALES_REPORT', '', 'reports', 'Y', 17);
}
}
?>
to
Code:
<?php
/**
* SALES REPORT 3.1
*
* @author Frank Koehl (PM: BlindSide)
* @author Conor Kerr <[email protected]>
* @updated by stellarweb to work with version 1.5.0 02-29-12
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License V2.0
*/
if (!defined('IS_ADMIN_FLAG')) {
trigger_error('Illegal Access', E_USER_WARNING);
}
if (function_exists('zen_register_admin_page')) {
if (!zen_page_key_exists('stats_sales_report')) {
// Add Monthly Report link to Reports menu
zen_register_admin_page('stats_sales_report', 'BOX_REPORTS_SALES_REPORT','FILENAME_STATS_SALES_REPORT', '', 'reports', 'Y', 17);
}
}
?>
Is a debug-log generated after that change or do you still see the "Illegal access" message? If a debug-log is created, please post it back.
Bookmarks