include_once "includes/init.inc.php"; init("DATABASE "); if ($_POST['page'] && $_SESSION['membre']['membre_id'] > 0) { if ($_POST['a'] == 'a') saveArray('jadore', array( 'membre_id' => $_SESSION['membre']['membre_id'], 'site' => parse_url($_POST['page'],1), 'page' => $_POST['page'], 'commentaire' => 'toto' ) ); else if ($_POST['a'] == 'r') sqlExec("DELETE FROM jadore WHERE membre_id = '".$_SESSION['membre']['membre_id']."' AND page = '".mysqli_real_escape_string($GLOBALS['dbh'],$_POST['page'])."'" ,0); } $page = ($_POST['page'])?$_POST['page']:$_SERVER['HTTP_REFERER']; $jadore = sqlArray("SELECT count(*) as nb FROM jadore WHERE page = '".mysqli_real_escape_string($GLOBALS['dbh'],$page)."'"); $jadoreSite = sqlArray("SELECT count(*) as nb FROM jadore WHERE site = '".mysqli_real_escape_string($GLOBALS['dbh'],parse_url($page,1))."'"); $jadoreMe = sqlArray("SELECT sum(membre_id=".$_SESSION['membre']['membre_id'].") as me FROM jadore WHERE page = '".mysqli_real_escape_string($GLOBALS['dbh'],$page)."'"); ?>
if ( isset($_GET['m']) ) { ?> }?> if ( isset($_GET['insc']) ) { ?> } ?> if (isset($_GET['login'])) { ?>