Hi,<br>I've solve the problem of DNS so now my serweb can send IM successfully through SERWeb. But when I need to see the IM from message store tab on SERWeb, it shows nothing (only blank page on the tab).<br><br>Below is my message_store.php:<br><br><pre><?</pre><pre>/*</pre><pre> * $Id: message_store.php,v 1.3 2003/10/13 <st1:time minute="56" hour="19">19:56:43</st1:time> kozlik Exp $</pre><pre> */</pre><pre><o:p> </o:p></pre><pre>require "prepend.php";</pre><pre>require "/var/www/phplib/oohforms.inc";</pre><pre><o:p> </o:p></pre><pre>put_headers();</pre><pre><o:p> </o:p></pre><pre>page_open (array("sess" => "phplib_Session",</pre><pre><span style=""> </span> "auth" => "phplib_Auth"));</pre><pre><o:p> </o:p></pre><pre>class Cinst_mess{</pre><pre><span
style=""> </span>var $mid, $src_addr, $time, $body;</pre><pre><span style=""> </span>function Cinst_mess($mid, $src_addr, $time, $body){</pre><pre><span style=""> </span>$this->mid=$mid;</pre><pre><span style=""> </span>$this->src_addr=$src_addr;</pre><pre><span style=""> </span>$this->time=$time;</pre><pre><span style=""> </span>$this->body=$body;</pre><pre><span style=""> </span>}</pre><pre>}</pre><pre><o:p> </o:p></pre><pre>class Cvoice_mess{</pre><pre><span
style=""> </span>var $mid, $src_addr, $time, $subject, $file;</pre><pre><span style=""> </span>function Cvoice_mess($mid, $src_addr, $time, $subject, $file){</pre><pre><span style=""> </span>$this->mid=$mid;</pre><pre><span style=""> </span>$this->src_addr=$src_addr;</pre><pre><span style=""> </span>$this->time=$time;</pre><pre><span style=""> </span>$this->subject=$subject;</pre><pre><span style=""> </span>$this->file=$file;</pre><pre><span
style=""> </span>}</pre><pre>}</pre><pre><o:p> </o:p></pre><pre>do{</pre><pre><span style=""> </span>$db = connect_to_db();</pre><pre><span style=""> </span>if (!$db){ $errors[]="can't connect to sql server"; break;}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>if (isset($dele_im)){</pre><pre><span style=""> </span>$q="select from ".$config->table_message_silo." where mid=$dele_im and r_uri like 'sip:".$auth->auth["uname"]."@".$config->default_domain."%'";</pre><pre><span style=""> </span>$res=mySQL_query($q);</pre><pre><span
style=""> </span>if (!$res) {$errors[]="error in SQL query, line: ".__LINE__;}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>Header("Location: ".$sess->url("message_store.php?kvrk=".uniqID("")));</pre><pre><span style=""> </span>page_close();</pre><pre><span style=""> </span>exit;</pre><pre><span style=""> </span>}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>if (isset($dele_vm)){</pre><pre><span style=""> </span>$q="select file from
".$config->table_voice_silo." where mid=".$dele_vm." and r_uri like 'sip:".$auth->auth["uname"]."@".$config->default_domain."%'";</pre><pre><span style=""> </span>$res=mySQL_query($q);</pre><pre><span style=""> </span>if (!$res) {$errors[]="error in SQL query, line: ".__LINE__; break;}</pre><pre><span style=""> </span>if (!MySQL_num_rows($res)) {$errors[]="Message not found or you haven't access to message"; break;}</pre><pre><span style=""> </span>$row=MySQL_Fetch_Object($res);</pre><pre><o:p> </o:p></pre><pre><span style="">
</span>@unlink($config->voice_silo_dir.$row->file);</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>$q="delete from ".$config->table_voice_silo." where mid=$dele_vm";</pre><pre><span style=""> </span>$res=mySQL_query($q);</pre><pre><span style=""> </span>if (!$res) {$errors[]="error in SQL query, line: ".__LINE__;}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>Header("Location: ".$sess->url("message_store.php?kvrk=".uniqID("")));</pre><pre><span style=""> </span>page_close();</pre><pre><span
style=""> </span>exit;</pre><pre><span style=""> </span>}</pre><pre>}while(false);</pre><pre><o:p> </o:p></pre><pre>do{</pre><pre>//<span style=""> </span>if ($db){</pre><pre><span style=""> </span>if ($config->show_message_silo) {</pre><pre><span style=""> </span>$q="select mid, src_addr, inc_time, body from ".</pre><pre><span style=""> </span>$config->table_message_silo.</pre><pre><span style=""> </span>" where r_uri like
'sip:".$auth->auth["uname"].</pre><pre><span style=""> </span>"@".$config->default_domain."%'";</pre><pre><span style=""> </span>$im_res=mySQL_query($q);</pre><pre><span style=""> </span>if (!$im_res) {$errors[]="error in SQL query, line: ".__LINE__; break;}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>while ($row=MySQL_Fetch_Object($im_res)){</pre><pre><span style=""> </span>$im_arr[]=new Cinst_mess($row->mid,
$row->src_addr,</pre><pre><span style=""> </span>$row->inc_time, $row->body);</pre><pre><span style=""> </span>}</pre><pre><o:p> </o:p></pre><pre><span style=""> </span>if ($config->show_voice_silo) {</pre><pre><span style=""> </span>$q="select mid, src_addr, inc_time, subject, file from ".</pre><pre><span
style=""> </span>$config->table_voice_silo." where r_uri like 'sip:".</pre><pre><span style=""> </span>$auth->auth["uname"]."@".$config->default_domain."%'";</pre><pre><span style=""> </span>$vm_res=mySQL_query($q);</pre><pre><span style=""> </span>if (!$vm_res) {</pre><pre><span
style=""> </span>$errors[]="error in SQL query, line: ".__LINE__;</pre><pre><span style=""> </span>break;</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>while ($row=MySQL_Fetch_Object($vm_res)){</pre><pre><span
style=""> </span>$vm_arr[]=new Cvoice_mess($row->mid, $row->src_addr,</pre><pre><span style=""> </span>$row->inc_time, $row->subject, $row->file);</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>}</pre><pre><span style="">
</span>set_timezone($errors);</pre><pre><span style=""> </span>}</pre><pre><o:p> </o:p></pre><pre>}while (false);</pre><pre><o:p> </o:p></pre><pre>?></pre><pre><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"></pre><pre><html></pre><pre><head></pre><pre><title><?echo $config->title;?></title></pre><pre><?print_html_head();?></pre><pre><o:p> </o:p></pre><pre><span style=""> </span><style type="text/css"></pre><pre><span style=""> </span><!--</pre><pre><span style=""> </span>.msgtitle{</pre><pre><span style=""> </span>color: black;</pre><pre><span style="">
</span>font-family: Verdana, Arial, Helvetica, sans-serif;</pre><pre><span style=""> </span>font-size: 13px;</pre><pre><span style=""> </span>font-style: normal;</pre><pre><span style=""> </span>font-weight: bold ;</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>.msgtitle:visited{</pre><pre><span style=""> </span>color: black;</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>.msgtitle:active{</pre><pre><span
style=""> </span>color: black;</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>.msgtitle:hover{</pre><pre><span style=""> </span>color: black;</pre><pre><span style=""> </span>}</pre><pre><span style=""> </span>--></pre><pre><span style=""> </span></style></pre><pre></head></pre><pre><?</pre><pre><span style=""> </span>print_html_body_begin(7, true, true, get_user_name($errors));</pre><pre><span style=""> </span>echo "<br>";</pre><pre><span
style=""> </span>print_errors($errors);<span style=""> </span>// Display error</pre><pre><span style=""> </span>print_message($message);</pre><pre>?></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><table border="0" cellspacing="0" cellpadding="0" align="center"></pre><pre><tr><td class="title" width="502">Instant messages store:</td></tr></pre><pre></table><br></pre><pre><o:p> </o:p></pre><pre><?if (isset($im_arr)){?></pre><pre><table border="0" cellspacing="0" cellpadding="0" align="center"></pre><pre><?foreach($im_arr as $row){</pre><pre><span style=""> </span>if (date('Y-m-d',$row->time)==date('Y-m-d')) $time="today
".date('H:i',$row->time);</pre><pre><span style=""> </span>else $time=date('Y-m-d H:i',$row->time)</pre><pre>?></pre><pre><tr><td></pre><pre><span style=""> </span><table border="0" cellspacing="0" cellpadding="2" bgcolor="#C1D773"></pre><pre><span style=""> </span><tr><td></pre><pre><span style=""> </span><table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"></pre><pre><span style=""> </span><tr bgcolor="#B1C9DC" valign="top"></pre><pre><span style=""> </span><td width="245" class="msgtitle"><?echo
$row->src_addr;?></td></pre><pre><span style=""> </span><td align="right" width="135" class="msgtitle"><?echo $time;?></td></pre><pre><span style=""> </span><td align="center" width="60" class="msgtitle"><a href="<?$sess->purl("send_im.php?kvrk=".uniqid("")."&sip_addr=".rawURLEncode($row->src_addr));?>" class="msgtitle">reply</a></td></pre><pre><span style=""> </span><td align="center" width="60" class="msgtitle"><a href="<?$sess->purl("message_store.php?kvrk=".uniqid("")."&dele_im=".rawURLEncode($row->mid));?>" class="msgtitle">delete</a></td></pre><pre><span
style=""> </span></tr></pre><pre><o:p> </o:p></pre><pre><span style=""> </span><tr></pre><pre><span style=""> </span><td colspan="4" width="500"><?echo $row->body;?></td></pre><pre><span style=""> </span></tr></pre><pre><span style=""> </span></table></pre><pre><span style=""> </span></td></tr></pre><pre><span style="">
</span></table></pre><pre></td></tr></pre><pre><tr><td>&nbsp;</td></tr></pre><pre><?}?></pre><pre></table></pre><pre><o:p> </o:p></pre><pre><?}else{?></pre><pre><div align="center">No stored instant messages</div></pre><pre><br></pre><pre><?}?></pre><pre><o:p> </o:p></pre><pre><?if ($default->show_voice_silo) {?></pre><pre><o:p> </o:p></pre><pre><table border="0" cellspacing="0" cellpadding="0" align="center"></pre><pre><tr><td class="title" width="502">Voicemail messages store:</td></tr></pre><pre></table><br></pre><pre><o:p> </o:p></pre><pre><?if (isset($vm_arr)){?></pre><pre><table border="0" cellpadding="2" cellspacing="0" bgcolor="#C1D773" align="center"></pre><pre><tr><td></pre><pre><span style=""> </span><table border="0" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF" align="center"></pre><pre><span style=""> </span><tr></pre><pre><span style=""> </span><td class="titleT" width="139">calling subscriber</td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></pre><pre><span style=""> </span><td class="titleT" width="160">subject</td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></pre><pre><span style=""> </span><td class="titleT"
width="135">time</td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></pre><pre><span style=""> </span><td class="titleT" width="60">&nbsp;</td></pre><pre><span style=""> </span></tr></pre><pre><span style=""> </span><tr><td colspan="7" height="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></tr></pre><pre><span style=""> </span><?foreach($vm_arr as $row){</pre><pre><span style=""> </span>if
(date('Y-m-d',$row->time)==date('Y-m-d')) $time="today ".date('H:i',$row->time);</pre><pre><span style=""> </span>else $time=date('Y-m-d H:i',$row->time)</pre><pre><span style=""> </span>?></pre><pre><span style=""> </span><tr valign="top"></pre><pre><span style=""> </span><td align="left" class="f12" width="139"><a href="<?$sess->purl("send_im.php?kvrk=".uniqid("")."&sip_addr=".rawURLEncode($row->src_addr));?>"><?echo htmlspecialchars($row->src_addr);?></a></td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2"
height="2"></td></pre><pre><o:p> </o:p></pre><pre><span style=""> </span><td align="left" class="f12" width="160"><a href="<?$sess->purl("ms_get_v_msg.php?kvrk=".uniqid("")."&mid=".rawURLEncode($row->mid));?>"><?echo $row->subject;?></a></td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></pre><pre><span style=""> </span><td align="center" class="f12" width="135"><?echo $time;?></td></pre><pre><span style=""> </span><td width="2" bgcolor="#C1D773"><img src="<?echo $config->img_src_path;?>title/green_pixel.gif" width="2" height="2"></td></pre><pre><span
style=""> </span><td align="center" class="f12" width="60"><a href="<?$sess->purl("message_store.php?kvrk=".uniqid("")."&dele_vm=".rawURLEncode($row->mid));?>" class="msgtitle">delete</a></td></pre><pre><span style=""> </span></tr></pre><pre><span style=""> </span><?}?></pre><pre><span style=""> </span></table></pre><pre></td></tr></pre><pre></table></pre><pre><o:p> </o:p></pre><pre><?}else{?></pre><pre><div align="center">No stored voicemail messages</div></pre><pre><?}?></pre><pre><?}?></pre><pre><o:p> </o:p></pre><pre><br></pre><pre><?print_html_body_end();?></pre><pre></html></pre><pre><?page_close();?></pre> <div class="MsoNormal"><br><o:p></o:p></div><div
class="MsoNormal"><o:p></o:p>Please tell me what's the problem.<br> Thanx<br> <br> Regards,<br> <br> Meidiana</div> <p> 
<hr size=1>Everyone is raving about <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta.</a>