打印本文 打印本文  关闭窗口 关闭窗口
基于文本的留言簿
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:35:32
;      $color1=fread($f,filesize("color.txt"));
              if($color1==0){
                $color=ff0000;}
              else if($color1==1){
                $color="0000ff";}
              else if($color1==2){
                $color="00ff00";
              }
              else if($color1==3){
                $color="000000";
              }
              if($color1>=3){
                 $color1=0;}
              else{
                 $color1+=1;
              }
              fseek($f,0);
              fputs($f,$color1);
              fclose($f);
              for($I=1;$I<=15;$I++){
                 if($I==$icon){
                   $pic=$I;
                   }
                 }
              $str=strval($pic);
              $strhtml="<img src='n".$str.".gif'>";
              $add="<a href=".$webadd."></a>";
              $main = "$strhtml<br><font color=$color><a href="mailto:$email">$name</a>&nbsp&nbsp&nbsp&nbsp个人主页:&nbsp$add$webname</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp($t)<br>
              说:$note <br>";
              $f = fopen("note.txt","a");
              fwrite($f,$main);
              fclose($f);
               $f = fopen("note.txt","r");
              $msg = fread($f,filesize("note.txt"));
              fclose($f);
               echo"$msg";
              }
}
?>

上一页  [1] [2] 



打印本文 打印本文  关闭窗口 关闭窗口