Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (62 sloc) 2.01 KB
<?php header('Access-Control-Allow-Origin: *'); ?>
<!DOCTYPE html>
<html>
<head>
<title>HEALTH dashboard</title>
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-control" content="no-cache">
<style type="text/css">
/* a.crosszone.toplevel.gyroscope-logo,.gears {display: none !important;}
a.transitioned.overlay,span.left.arrow ,.upsell {display: none !important;}
.human .body .actions li a ,.human-nav a {pointer-events: none; cursor: default;} */
a.instructions,.upsell,.gears{display:none !important;}
</style>
</head>
<?php
include 'config.php';
if(!isset($_GET["page"])){
$url = "https://gyrosco.pe/".$username."/reports/helix/";
//".date('Y')."/".date("n")."/".date("j")."/"
}else{
$page = $_GET["page"];
$url = "https://gyrosco.pe/".$username."/reports/helix/".$page ."/";
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt( $ch, CURLOPT_COOKIE, $config_cookie );
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$output = curl_exec($ch);
echo $output;
curl_close($ch);
?>
<script type="text/javascript">
var links = $('.human-nav a').attr("href");
function fixUrl(tipo){
var username="giorat96";
var arr = new Array();
$(tipo).each(function() {
arr.push(this);
})
arr.forEach(function(element) {
console.log(element.href);
if(element.href.includes("reports"))
element.href = element.href.replace('/'+username+'/reports/helix/', '/goto.php?page=').slice(0,-1);
else
element.href = element.href.replace('/'+username+'/helix/', '/goto.php?page=').slice(0,-1);
})
}
fixUrl('.human-nav a');
fixUrl('.human .body .actions a');
fixUrl('a.transitioned.overlay');
fixUrl('.day-nav a');
fixUrl('.month-nav a');
var link = $('a[class="avatar transitioned hex"]');
link.attr('href',"/");
$('a').click(function(e) {
e.preventDefault();
});
</script>
<script type="text/javascript">
var clean_uri = location.protocol + "//" + location.host + location.pathname;
window.history.replaceState({}, document.title, clean_uri);
</script>