А ето выводит новый юзеров. Опят создаем файл пхп и копируем код. Под 18
<?php
$daytime=date("d",$sitetime);
$montime=date("d.m",$sitetime);
$yeartime=date("d.m.Y",$sitetime);
$filtime=filemtime("local/datatmp/newuserday.dat");
$filtime=$filtime+(3600*$config_newuserdaycache);
if($sitetime>$filtime){
$dirs = opendir ("local/profil");
while ($files = readdir ($dirs)) {
if (ereg ("\.prof$", $files)) {
$allnewusers[]=$files;
}}
closedir ($dirs);
clear_files("local/datatmp/newuserday.dat");
foreach($allnewusers as $value){
$tex = file("local/profil/$value");
$data = explode(":||:",$tex[0]);
if($yeartime==date("d.m.Y",$data[6])){
$dat_newuser.=$data[0].'|';
}}
$fp = fopen("local/datatmp/newuserday.dat","a+");
flock ($fp,LOCK_EX);
fputs($fp,$dat_newuser);
fflush ($fp);
flock ($fp,LOCK_UN);
fclose($fp);
chmod ($fp, 0666);
chmod ("local/datatmp/newuserday.dat", 0666);
}
echo'Новички: ';
$newuser = file_get_contents("local/datatmp/newuserday.dat");
$arr_newuser= explode("|",$newuser);
$countnewuser=count($arr_newuser)-1;
if($countnewuser>0){
echo'<font color="#FF0000">'.(int)$countnewuser.'</font> чел.<br>';
}else{
echo'<font color="#FF0000">нето!</font><br>';
}
foreach($arr_newuser as $key=>$value){
if($value!=""){
if($key==0){
echo '<a href="pages/anketa.php?uz='.check($value).'&'.SID.'"><blink>'.check(nickname($value)).'</blink></a>';
}else{
echo ', <a href="pages/anketa.php?uz='.check($value).'&'.SID.'"><blink>'.check(nickname($value)).'</blink></a>';
}}}
?>