debug($_REQUEST); if(isset($_REQUEST['action']) && isset($_REQUEST['module'])) { $action = $_REQUEST['action']; $current_module_file = 'modules/'.$_REQUEST['module'].'/'.$action.'.php'; $current_module = $_REQUEST['module']; } elseif(isset($_REQUEST['module'])) { $current_module = $_REQUEST['module']; $current_module_file = 'modules/'.$_REQUEST['module'].'/Charts.php'; } else { exit(); } $current_language = $default_language; if(isset($_REQUEST['current_language'])) { $current_language = $_REQUEST['current_language']; } // retrieve the translated strings. $app_strings = return_application_language($current_language); if(isset($app_strings['LBL_CHARSET'])) { $charset = $app_strings['LBL_CHARSET']; } else { $charset = $default_charset; } $log->info("current langugage is $current_language"); $log->info("current module is $current_module "); $log->info("including $current_module_file"); require_once($current_module_file); $draw_this = new jpgraph(); if (isset($_REQUEST['graph'])) $graph = $_REQUEST['graph']; else $graph = 'default'; if (isset($_REQUEST['flat_array1'])) $flat_array1 = $_REQUEST['flat_array1']; else $flat_array1="foo,bar"; if (isset($_REQUEST['flat_array2'])) $flat_array2 = $_REQUEST['flat_array2']; else $flat_array2="1,2"; if (isset($_REQUEST['title'])) $title = $_REQUEST['title']; else $title="the title"; if (isset($_REQUEST['subtitle'])) $subtitle = $_REQUEST['subtitle']; else $subtitle="the subtitle"; $log->debug("draw_this->$graph"); $log->debug("flat_array1 is ".$flat_array1); $log->debug("flat_array2 is ".$flat_array2); $log->debug("title is ".$title); $log->debug("subtitle is ".$subtitle); $array1 = explode(",", $flat_array1); $array2 = explode(",", $flat_array2); $draw_this->$graph($array1, $array2, $title, $subtitle); ?>