From: Ben H. <bdv...@us...> - 2010-12-20 14:19:21
|
Update of /cvsroot/stack/stack-dev/lib/reporting In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv11135/lib/reporting Modified Files: json.php StackReport.php Log Message: Some security for admin pages, requires login Index: StackReport.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/reporting/StackReport.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** StackReport.php 20 Dec 2010 12:43:51 -0000 1.28 --- StackReport.php 20 Dec 2010 14:19:11 -0000 1.29 *************** *** 23,26 **** --- 23,27 ---- global $config; $root = $config->get('docroot'); + require_once $root . '/lib/error.php'; require_once $root . '/lib/database/StackDBReporting.php'; Index: json.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/reporting/json.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** json.php 20 Dec 2010 12:43:51 -0000 1.4 --- json.php 20 Dec 2010 14:19:11 -0000 1.5 *************** *** 20,23 **** --- 20,24 ---- * */ + session_start(); require_once('../../config.php'); *************** *** 26,29 **** --- 27,32 ---- $root = $config->get('docroot'); + require $root . '/lib/ui/AdminInterface.php'; + require_once $root . '/lib/database/StackDBReporting.php'; require_once $root . '/lib/database/StackDBItem.php'; |