In order to enhance the functionality on my website, I developed a text-based search based on the actual conditions of my website, which is now used on my website.In order to
learn from and communicate with the majority of netizens, I now publish the source code. The source code is as follows:
$dispstr=array();
$dispstr[1]="disp_os. php?article_id=";
$dispstr[2]="disp_webma.php?article_id=";
$dispstr[3]="disp_webcrea.php?article_id=";
$dispstr[4] ="disp_program.php?article_id=";
$dispstr[5]="disp_create.php?article_id=";
$file=file("news.txt");
$file1=file ("part.txt");
$file2=file("number.txt");
if(!isset($pagenum)){
$pagenum=1;
}
$lesssign=0;
$num=count($file);
$dispnumbeg=6*($pagenum-1);;
$artnumeof=6*$pagenum;
$isdispnum =$num-$artnumeof;
if($isdispnum<0){
$dispnumeof=$num;
$lesssign=1;
}
else{
$dispnumeof= $artnumeof;
}
$sign=0;
$pagec=0;
for($icount=0;($icount<$num)&&($sign==0);$ icount+=6){
for($i=0;$i<=6;$i++){
if(($icount*6+$i)==$num){
$sign =1;
9eae9 ;
$iscolor=0;
//$linkstr="disp_os.php?article_id=";
$lessnum=0;
for($i=$dispnumbeg;$i<$dispnumeof ;$i++){
$partnum=intval($file1[$i]);
if($partnum==0){
$dispvar=$fuhao.$file[$i];
echo "
true