Discussion groups

\n"); echo("
\n $ERRMSG \n
\n

\n"); exit(0); } if (msqlSelectDB($sock, "leptospira")<0) { echo("

\n"); echo("
\n $ERRMSG \n
\n

\n"); exit(0); } if (msqlQuery($sock, "SELECT * FROM group WHERE gid=$gid")<0) { echo("

\n"); echo("
\n WARNING 1: $ERRMSG \n
\n

\n"); exit(0); } $fd=msqlStoreResult(); $data=msqlFetchRow($fd); $grpname=$data[1]; msqlFreeResult($fd); if (msqlQuery($sock, "SELECT * FROM subgroup WHERE gid=$gid AND sgid=$sgid")<0) { echo("

\n"); echo("
\n WARNING 2: $ERRMSG \n
\n

\n"); exit(0); } $fd=msqlStoreResult(); $data=msqlFetchRow($fd); $sgrpname=$data[2]; msqlFreeResult($fd); if (msqlQuery($sock, "SELECT * FROM icons")<0) { echo("

\n"); echo("
\n WARNING: $ERRMSG \n
\n

\n"); exit(0); } $fd=msqlStoreResult(); $icon=msqlFetchRow($fd); while (#$icon>0) { $tt=(int)$icon[0]; $icn[$tt]=$icon[1]; $icon=msqlFetchRow($fd); } msqlFreeResult($fd); $slicica=(int)$slicica; $icn=""; if ($slicica==0) { $icn=""; } $sati=strftime("%T", $time); $date=strftime("%D", $time); if ((int)$msg_type == 0) { if ((char)$msg_type=="TEXT") { $msg_type=1; } if ((char)$msg_type=="HTML") { $msg_type=2; } if ((char)$msg_type=="HTML") { $msg_type=3; } if (msqlQuery($sock, "SELECT _seq FROM message")<0) { echo("

\n"); echo("
\n $ERRMSG \n
\n

\n"); exit(0); } $fd=msqlStoreResult(); $nn=msqlFetchRow($fd); msqlFreeResult($fd); $next=(int)$nn[0]; if ((int)$reply==0) { $reply=$next; } $nnn=tr($message, "^'", "<>"); $unos="$gid,$sgid,$next,$reply,'$remote_user','$subject','$msg_type',$slicica,'$nnn',$time"; if (msqlQuery($sock, "INSERT INTO message VALUES($unos)")<0) { echo("

\n"); echo("
\n $ERRMSG \n
\n

\n"); exit(0); } msqlClose($sock); echo("\n"); echo("
\n\nYour message has been received
\nplease wait ...
\n"); echo("\n
\n
\n"); exit(0); } > ", "^'"); >

| LEPTO Discussions : $grpname : $sgrpname :
Preview Message In: "$sgrpname" |
From: $remote_user Date: $date $sati Subject: $subject $icn
| \n"); $t=$t + 1; } > |