// Login info to your MySQL server $mysql_server = 'localhost'; $mysql_user = 'yourusername'; $mysql_password = 'yourpassword'; $mysql_database = 'yourdatabasename'; // Server time vs. local time difference in hours $interval = 0; // Number of past years to display in dropdown selection box $years_before = 3; // Directory of templates. If you follow our installation instruction, // then it should be: '/graphgen/templates/' $template_dir = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/graphgen/templates/'; // Special symbol in templates, scripts will look for this anchor mark // and replace with the dynamic contents $spec_symbol = '+++'; // Count number of days for calculation of maximum and minimum values of a graph $lastdayscount = 365; // Admin options // Set the admin username and the path to admin.pwd file. $admin_user = 'admin'; $password_path = '/home/yourusername/graphgen/admin.pwd'; // Values for graph $name_month_every = 1; $graph_width = 475; // UPPER GRAPH SETTINGS: // ================================================ $graph[0]['height'] = 220; $graph[0]['intervals'] = 5; // type: "continuous" for line chart OR "vertical" for bar chart $graph[0]['type'] = 'continuous'; // db_field: Do not change $graph[0]['db_field'] = 'cont_value'; // lable: Lable of vertical axis $graph[0]['label'] = 'US Dollar'; // LOWER GRAPH SETTINGS: // ================================================ $graph[1]['height'] = 70; $graph[1]['intervals'] = 4; // type: "continuous" for line chart OR "vertical" for bar chart $graph[1]['type'] = 'vertical'; // db_field: Do not change $graph[1]['db_field'] = 'vert_value'; // lable: Lable of vertical axis $graph[1]['label'] = 'tonnes'; $height_dateline = 15; $month[1] = 'Jan'; $month[2] = 'Feb'; $month[3] = 'Mar'; $month[4] = 'Apr'; $month[5] = 'May'; $month[6] = 'Jun'; $month[7] = 'Jul'; $month[8] = 'Aug'; $month[9] = 'Sep'; $month[10] = 'Oct'; $month[11] = 'Nov'; $month[12] = 'Dec'; // step values: $st_val[0] = 1; $st_val[1] = 1.25; $st_val[2] = 2; $st_val[3] = 2.5; $st_val[4] = 4; $st_val[5] = 5;