31
hervet
Re: Security problem
  • 2004/2/2 18:11

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

One last thing, I suppose that you have already made it with your last beta version but I have completed the search.inc.php code. Before the line :
return $ret;

I have added, to finish the search "inside" attached files :
$nbfiles=count($articles_arr);
     for(
$j=0;$j<$nbfiles;$j++)
     {
       
$link="article.php?page=1&articleid=".$articles_arr[$j]."";
       if(!
in_array($link,$ret))
       {
           
$sql="select articleid, title, published, uid, categoryid from ".$xoopsDB->prefix("wfs_article")." WHERE articleid=".$articles_arr[$j];
           
$result $xoopsDB->query($sql,$limit,0);
           
$myrow $xoopsDB->fetchArray($result);
           if(
$myrow['published']>&& $myrow['published']<=time())
           {
               
$ret[$i]['image'] = "images/wf.gif";
                   
$ret[$i]['title'] = " ".$myrow['title'];
                   
$ret[$i]['link'] = "article.php?page=1&articleid=".$myrow['articleid']."";
                  
$ret[$i]['time'] = $myrow['published'];
               
$ret[$i]['uid'] = $myrow['uid'];
               
$i++;
           }
       }
     }


Bye,
Hervé


32
nuker
Re: wfsection bug?
  • 2004/2/3 18:57

  • nuker

  • Not too shy to talk

  • Posts: 129

  • Since: 2002/12/14


yeah, i changed that in php.ini. still doesn't work.

also, why can't i attache excel files to wfsection articles using the attach file feature?

Quote:
You server will have a file upload limit (normally around 2 meg) you will have to increase this to allow for such a large file.

Login

Who's Online

161 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits