dunque ho messo questo codice nella index.html
Codice PHP:
<?php if($_COOKIE('scaricafile')=="ok") <p style="text-align: center;">[url="click.php?dest=Mind.jar"][img]http://mindogame.altervista.org/Mind_file/image293.png[/img][/url]</p> } else{ <p style="text-align: center;">You must sign in to download this file.</p> } ?>
poi nella cartella dello script ho trovato il file login process
Codice PHP:
session_start();
define('QUADODO_IN_SYSTEM', true);
// What language?
require_once('includes/Blank.lang.php');
require_once('includes/qls.class.php');
// Start the main class
$qls = new qls(SYS_CURRENT_LANG);
if (isset($_POST['process'])) {
// Try to login the user
if ($qls->User->login_user()) {
$qls->redirect($qls->config['login_redirect']);
setcookie("scaricafile","ok",time(+3600));
}
else {
$qls->redirect('login.php');
}
}
else {
$qls->redirect('login.php');
}
?>
ma così non funziona..il link si vede sempre