Piwik is the next generation of phpMyVisites and aims to be an open source alternative to Google Analytics.
include_once('CAS/CAS.php');
phpCAS::client(CAS_VERSION_2_0,'adresse.serveur.cas',port_cas,'dossier_cas');
phpCAS::authenticateIfNeeded();
switch (phpCAS::getUser())
{
case 'login1':
case 'login2':
case 'login3':
case 'login4':
case 'login5':
break;
default:
die("Accès refusé");
}
login1, login2, etc., are the identifiers of the users who are allowed to view the statistics. Please note that you must configure phpMyVisites with public access to the statistics in order to by-pass the internal authentification procedure. The only access handled by phpMyVisites is the access to the admin account.