<?php define('GIS_ROOT', '..'); include_once GIS_ROOT . '/inc/common.php'; gis_session_start(); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); function color_rgb($color, $a) { $tab_color = explode(",", $color); if ($a) { $col_r = (1 - $a) * 255 + $a * $tab_color[0]; $col_g = (1 - $a) * 255 + $a * $tab_color[1]; $col_b = (1 - $a) * 255 + $a * $tab_color[2]; } else { $col_r = $tab_color[0]; $col_g = $tab_color[1]; $col_b = $tab_color[2]; } if ($tab_color[0] == 0 && $tab_color[1] == 0 && $tab_color[2] == 0 & $a == 0) { $col_r = 0; $col_g = 0; $col_b = 0; } $text = round($col_r) . ',' . round($col_g) . ',' . round($col_b);
function gis_init() { if (!gis_session_start()) { save_previous(); if ($_GET['authcode'] == '2') { header("Location: /auth.php?authcode=" . $_GET['authcode']); } else { header("Location: /auth.php"); } } }