friendsite.php

来自「一个简单的网站管理系统,他能实现你所需要的功能,是个值得一看的系统」· PHP 代码 · 共 29 行

PHP
29
字号
<?php
if(!defined('IN_PHPCMS')) {
        exit('Access Denied');
}

$head[title]="友情链接|".$sitekeywords;
$head[refresh]='';
$head[keywords]=$sitekeywords;
$head[description]=$sitedescription;

$query="select * from $table_friendsite where linktype=1 and passed>0 order by elite desc,orderid";
$result=$db->query($query);
while($logosite=$db->fetch_array($result)){
      $logosites[]=$logosite;
}

$result=$db->query("select * from $table_friendsite where linktype=0 and passed>0 order by elite desc,orderid");
while($textsite=$db->fetch_array($result)){
      $textsites[]=$textsite;
}

ob_start();
include template('friendsite');
copyright($version);
$data=$inc.ob_get_contents();
$filename=$phpcms_root.'/data/friendsite/index'.$fileext;
file_write($filename,$data);
ob_clean();
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?