<?php require_once 'requests/_main.php'; $sliders = getSliders(); $stories = getStories(); $myths = getMyths(); ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title>FuDIT - Conciencia de Vida</title> <link rel="shortcut icon" href="images/favicon.ico" /> <link href="css/fudit_style.css" rel="stylesheet" /> <!--[if IE]> <link href="css/ie.css" rel="stylesheet" /> <![endif]--> <!--@font-face--> <link href="css/stylesheet.css" rel="stylesheet" /> <!--Hover effect--> <link href="css/hover.css" rel="stylesheet" /> <!--Slideshow--> <link rel="stylesheet" type="text/css" href="css/bx_styles.css" /> <!-- Libreria JQuery--> <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script> <!--HTML5 IE--> <script src="js/modernizr-2.5.3.js" type="text/javascript"></script>
<a id="display_table" type="button" class="btn btn-primary" href="help.php">Help</a> </ul> </div> </div> </nav> <?php $valid_input = false; $project_id_input = htmlspecialchars(filter_input(INPUT_POST, 'projectid', FILTER_SANITIZE_STRING)); if (!($project_id_input == "")) { require 'lib.php'; require_once 'database.ini'; //If project id is a number if (is_numeric($project_id_input)) { //Get all of the stories, epics and attachments from pivotal API $raw_data = getStories(PT_TOKEN, $project_id_input); $epics_raw_data = getEpics(PT_TOKEN, $project_id_input); $attachments_raw_data = getAttachments(PT_TOKEN, $project_id_input); //if the pivotal story contains a field named 'error' (leads to error message) if (!isset($raw_data["error"]) || !isset($epics_raw_data["error"]) || !isset($attachments_raw_data["error"])) { $connection = connectToDb(); $history_id_check = getHistoryId($connection, $project_id_input); //If the project already exists, perform update if ($history_id_check == NULL) { //Get project name $project_data = getProject(PT_TOKEN, $project_id_input); if ($connection == true) { try { //Make an entry in the history table insertIntoHistory($connection, $project_data["id"], $project_data["name"]); $latest_history_sql = 'SELECT MAX(history.id) FROM history;';
<?php $request = $_POST['request']; switch ($request) { case 15: $cat = $_POST['cat']; echo getStories($cat); break; case 30: $cat = $_POST['cat']; $id = $_POST['id']; echo getStoryById($id, $cat); break; } function getURLOptions($file_to_open) { $urlData = array(); $x = array(); $y = array(); $height = array(); $width = array(); $k = array(); $b = array(); $file = fopen($file_to_open, "r"); while (!feof($file)) { $line = fgets($file); $read_line = explode('x=', $line); $read_line = explode('&y=', $read_line[1]); array_push($x, $read_line[0]); $read_line = explode('&height=', $read_line[1]); array_push($y, $read_line[0]);
$cli->get("name", "Enter your full name. ( You will only need to do this once ):", TRUE); $cli->set("token", getToken(), TRUE); $cli->get("project", "Enter you Pivotal Tracker project ID. ( You will only need to do this once ):", TRUE); $cli->get("title", "Title: "); $cli->get("filter", "Filter: "); $cli->set("script", getScript()); // Make sure we have everything. if ($cli->args['token'] && $cli->args['project'] && $cli->args['title'] && $cli->args['script']) { // Get the PDF. $pdf = getPDF($cli->args); // Get the stories. $stories = getStories($cli->args); if ($stories) { // Include the script. require_once($files[$cli->args['script']]); // counts for stories //var_dump($stories); //exit(); //counts for stories $type_cnt = array('bug'=>0,'feature'=>0,'release'=>0); $est_type_cnt = array('bug'=>0,'feature'=>0,'release'=>0); $est_accept_type_cnt = array('bug'=>0,'feature'=>0,'release'=>0); $state_type_cnt = array();