diff --git a/Repositories/statistics/config/inc.vars.es_src.php b/Repositories/statistics/config/inc.vars.es_src.php new file mode 100755 index 0000000..0d5aaf3 --- /dev/null +++ b/Repositories/statistics/config/inc.vars.es_src.php @@ -0,0 +1,140 @@ + array( + "vTITLE" => "Debug output", + "vDESCRIPTION" => "TRUE or FALSE selected for public or private", + /* the initial page needs to be able to identify if public (no auth) or private (auth) */ + "public" => 1 + ), + "connections" => array( + "vTITLE" => "SQL server settings", + "vDESCRIPTION" => "Specify the server name, database name, and user accounts to use.", + "sqlserver" => "localhost", + "sqldatabase" => "eprintstats", + "sqluser_public" => "eprintstatspub", + "sqlpass_public" => "AuldGrizzel", + ), + "filelocation" => array( + "vTITLE" => "File locations", + "vDESCRIPTION" => "Install directory and location of required files.", + "base_install_dir" => array( + "unix" => "/usr/local/eprints/ePrintsStats", + "windows" => "C:/ePrintsStats", + ), + "base_log_dir" => "logs", + "base_includes_dir" => "includes", + "base_session_dir" => "session", + "base_config_dir" => "config", + ), + "input_filter" => array( + "vTITLE" => "Input filtering.", + "vDESCRIPTION" => "Input checking for GET POST", + /* List of allowed key/value pairs and COOKIES Values either explicit or a function */ + /* Escaping of strings destined for sql are dealt with by the sql object. */ + /* Excludes the action array which is explicitly named below. */ + /* How to deal with sets of parameters. Define arrays of them? */ + "keys" => array( + "public" => array( + "action" => array( + "maxlength" => "20", + "type" => "string", + "action" => UNSET_REQUEST, + "pattern" => "/[^\w]/i", + "values" => array('one','two'), + ), + "year" => array( + "maxlength" => "50", + "type" => "freetext", + "action" => UNSET_REPLACE, + "pattern" => "/[%;#--<>\(\)]/i", + "replacement" => "", + "content" => NOT_EMPTY, + ), + "month" => array( + "maxlength" => "50", + "type" => "freetext", + "action" => UNSET_REPLACE, + "pattern" => "/[%;#--<>\(\)]/i", + "replacement" => "", + "content" => NOT_EMPTY, + ), + "range" => array( + "maxlength" => "20", + "type" => "string", + "action" => UNSET_REQUEST, + "pattern" => "/[^\w]/i", + "values" => array('one','two'), + ), + /* maxlength here refers to largest integer */ + "id" => array( + "maxlength" => "1005", + "type" => "integer", + "action" => UNSET_REQUEST, + ), + ), + ), + ), + "general" => array( + "vTITLE" => "General progam details", + "vDESCRIPTION" => "Admin name and contact, prog title", + "admin_name" => "ePrints Administrator", + "admin_email" => "admin@eprints.otago.ac.nz", + "support_name" => "ePrints Administrator", + "support_email" => "admin@eprints.otago.ac.nz", + "prog_title" => "ePrints Statistics", + "prog_title_public" => "ePrints Statistics", + "short_prog_title" => "es", + "public_prog" => "index.php", + "public_prog_request_uri" => "/index.php", + "eprints_location" => "http://eprints.otago.ac.nz", + /* replaced admin_prog */ + "prog_address" => array( + "public" => "index.php", + ), + ), + "messages" => array( + "vTITLE" => "Messages", + "vDESCRIPTION" => "Error messages.", + "message_noservice" => "This service is currently unavailable.", + "message_missing_include" => "Missing include file.", + ), + "actions" => array( + "vTITLE" => "Form actions", + "vDESCRIPTION" => "Which files are included for get/post actions. i.e the pub_default action will include the files listed in the array", + "includes" => array( + 'public' => array( + 'pub_default' => array ('inc.html.header.es.php','inc.html.pub_default.es.php','inc.html.footer.es.php'), + 'no_service_public' => array ('inc.html.header.es.php','inc.html.no_service_public.es.php','inc.html.footer.es.php'), + 'cumulative_usage' => array ('inc.fns.cumulative_usage.es.php','inc.html.header.es.php','inc.html.cumulative_usage.es.php','inc.html.footer.es.php'), + 'cumulative_usage_country' => array ('inc.fns.cumulative_usage_country.es.php','inc.html.header.es.php','inc.html.cumulative_usage_country.es.php','inc.html.footer.es.php'), + 'show_detail_date' => array ('inc.fns.show_detail_date.es.php','inc.html.header.es.php','inc.html.show_detail_date.es.php','inc.html.footer.es.php'), + 'show_detail_eprint' => array ('inc.fns.show_detail_eprint.es.php','inc.html.header.es.php','inc.html.show_detail_eprint.es.php','inc.html.footer.es.php'), + ), + ), + ), + ); +