/[LeafOK_CVS]/fenglin/www/search.php
ViewVC logotype

Diff of /fenglin/www/search.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Fri May 16 06:18:35 2008 UTC Revision 1.6 by sysadm, Fri Jul 28 11:45:21 2023 UTC
# Line 137  Line 137 
137                          $rs=mysql_query("select * from journal_index where enable order by dt");                          $rs=mysql_query("select * from journal_index where enable order by dt");
138                          while($row=mysql_fetch_array($rs))                          while($row=mysql_fetch_array($rs))
139                          {                          {
140  ?><option value="<? echo $row["JID"]; ?>"><? echo strftime("%Y-%m-%d",strtotime($row["dt"]));?></option>  ?><option value="<? echo $row["JID"]; ?>"><? echo date("Y-m-d",strtotime($row["dt"]));?></option>
141  <?  <?
142                          }                          }
143                          mysql_free_result($rs);                          mysql_free_result($rs);
# Line 198  Line 198 
198                          {                          {
199                                  $ip_str=gethostbyname($ip_str);                                  $ip_str=gethostbyname($ip_str);
200    
201                                  if (!(ereg("^([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})$",$ip_str,$ips)))                                  if (!(preg_match("/^([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})$/",$ip_str,$ips)))
202                                  {                                  {
203                                          echo "<p>Invalid IP address!</p>";                                          echo "<p>Invalid IP address!</p>";
204                                  }                                  }
205    
206  //                              if (ereg("^10.",$ip_str) || ereg("^192.168.",$ip_str))  //                              if (preg_match("/^10./",$ip_str) || preg_match("/^192.168./",$ip_str))
207                                  if (false)                                  if (false)
208                                  {                                  {
209                                          $xml_parser = xml_parser_create();                                          $xml_parser = xml_parser_create();


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1