<?php // Init error_reporting(NULL); ob_start(); session_start(); include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); $back=getenv("HTTP_REFERER"); if (!empty($back)) { header("Location: ".$back); exit; } header("Location: /"); exit;