- To show more than 5 frequent lastnames in the main page:
on file include/mainindex_cls.php
change the number '5' in line:
- To keep IP addresses of visitors and whether they are regular users or administrators:$persoonqry="SELECT pers_lastname, pers_prefix,
CONCAT(pers_prefix,pers_lastname) as totaalnaam, count(pers_lastname) as aantal
FROM ".veilig($_SESSION['tree_prefix'])."person
WHERE pers_lastname NOT LIKE ''
AND pers_lastname != 'doodgeboren kind'
GROUP BY totaalnaam ORDER BY aantal DESC LIMIT 0,5";
on file header.php
modify this line as shown:
Code: Select all
$sql="INSERT INTO humo_user_log SET log_date='".date("Y-m-d H:i")."', log_username='".veilig($_POST["username"])." U ".$_SERVER[REMOTE_ADDR]."'";
modify this line:
Code: Select all
$sql="INSERT INTO humo_user_log SET log_date='$datum', log_username='".veilig($_POST["username"])." A ".$_SERVER[REMOTE_ADDR]."'";
Cheers