salve.. dovrei aggiungere nella pagina anche l'opzione dell'aggiornamento manuale, qualche idea?
Codice PHP:
if ($action=="")
{
echo "<head>";
echo "<title>$rname</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
$unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'"));
if ($unreadpopup[0]<1)
{
echo "<meta http-equiv=\"refresh\" content=\"30; url=chat.php?time=";
echo "".date("dmHis")."";
echo "&sid=$sid&rid=$rid&rpw=$rpw\">";
}
echo "</head>";
echo "<body>";
echo "<bgsound src=\"$sound\" loop=\"infinite\"/>";
$mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
addonline($uid,"Chatta in $rname ($mmsg)","chat.php?rid=$rid&rpw=$rpw");
//echo "<p>";
echo popup($sid);
echo "<b>1 </b><a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&sid=$sid&rid=$rid&rpw=$rpw\">Scrivi</a><br/>";
echo "<b>2 </b><a accesskey=\"2\" href=\"#opt\">vai giu</a><br/>";
echo "<b>* </b><a accesskey=\"*\" href=\"chat.php?time=";
echo "".date("dmHis")."";
echo "&sid=$sid&rid=$rid&rpw=$rpw\">Aggiorna</a><br/>";