aboutsummaryrefslogtreecommitdiff
path: root/src/balloon.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/balloon.php')
-rw-r--r--src/balloon.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/balloon.php b/src/balloon.php
index ae5e186..81b7b5c 100644
--- a/src/balloon.php
+++ b/src/balloon.php
@@ -1,4 +1,5 @@
<?php
+
////////////////////////////////////////////////////////////////////////////////
//BOCA Online Contest Administrator
// Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
@@ -16,6 +17,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
// Last modified 05/aug/2012 by cassio@ime.usp.br
+
ob_start();
header ("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
@@ -27,11 +29,15 @@ ob_end_flush();
require_once('fballoon.php');
$get_s=false;
+
if(isset($_GET["s"]))
$get_s=true;
+
$get_color=null;
+
if(isset($_GET["color"]))
$get_color=$_GET["color"];
balloonpng($_SESSION["locr"],$get_s,$get_color,null);
+
?>