connect(); $ng->query("insert into click_inserzioni (id_inserzione, data) values (".$_GET['q'].", now())"); $ng->disconnect(); $p=parse_url($_SERVER['REQUEST_URI']); header("Location: http://www.musiqua.it".$p['path']); } else { require_once("classi.php/class.Mysql.php"); $ng=new Mysql(); $ngLink=$ng->connect(); $ngAuth=$ng->getAuth("select directory from gruppi where id=".$_GET['id']); $ngRow=mysqli_fetch_array($ngAuth); $idGruppoExt=$_GET['id']; $ng->disconnect(); $homedir = substr($_SERVER['SCRIPT_FILENAME'],0,-strlen($_SERVER['SCRIPT_NAME']) ); require_once "gruppi/session.php"; require_once "gruppi/html.php"; require_once "gruppi/head.php"; require_once "gruppi/body.php"; } ?>