index.php

来自「Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统」· PHP 代码 · 共 29 行

PHP
29
字号
<?php
require_once './include/common.inc.php';
require_once 'form.class.php';
require_once MOD_ROOT.'include/link.class.php';
$link = new link();
if(isset($typeid))
{
	$datas = subtype('link');
    $link_name = $TYPE[$typeid][name];
	$tid = intval($typeid) ? intval($typeid) : 0;
	if($tid)
	{
		$link_logo = $link->listinfo("where typeid=$tid and linktype=1 and passed =1");
		$link_word = $link->listinfo("where typeid=$tid and linktype=0 and passed =1");
	}
	include template('link', 'list');
}
else
{
    $datas = subtype('link');
    foreach($datas AS $data)
    {
        $link_logos[$data[typeid]] = $link->listinfo("where passed =1 AND linktype=1 AND typeid ='$data[typeid]'");
        $link_words[$data[typeid]] = $link->listinfo("where passed =1 AND linktype=0 AND typeid ='$data[typeid]'");
    }
	include template('link', 'index');
}

?>

⌨️ 快捷键说明

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