⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 1.增加了近40项后台核心设置
💻 PHP
字号:
<?php
require_once "./global.php";
include_once R_P.'header.php';
include_once R_P.'mydb.php';

$firstimg = GetImg($rootindex[first],14);    //调用第一个栏目图片   图片路径{$firstimg['img']},连接{$firstimg['url']},名称{$firstimg['n']}
$firstimg['img'] or $firstimg = array('n' => '暂无新闻图片','img' => "images/$imgpath/noimg.gif",'url' => "$rootindex[siteurl]");

$firstlanmu['s'] = OutPut(GetSql($rootindex[first],10),"1","1"); //第一个栏目内容,读取10条
$firstlanmu['n'] = $lanmuindex[$rootindex[first]]['name'];           //第一个栏目名称

$lamounta = $len = 0;

//计算首页显示的栏目
if($lanmuindexa){
   $lamount = count($lanmuindexa);
   $lamount%2 && $lamounts = 1;
   foreach($lanmuindexa as $lanmuk){
        $lamounta++;
        if($lamounta == $lamount && $lamounts)$len = 1;
        $lamountb = (int)(($lamounta+1)/2);
        if($lamounta%2){
           $lanmulist[$lamountb][0] = array('lid' => "$lanmuk",'n' => "{$lanmuindex[$lanmuk][name]}",'s' => OutPut(GetSql($lanmuk,$rootindex[listb]),1,1,'',$len));
        } else $lanmulist[$lamountb][1] = array('lid' => "$lanmuk",'n' => "{$lanmuindex[$lanmuk][name]}",'s' => OutPut(GetSql($lanmuk,$rootindex[listb]),1,1,'',$len));
  }
}


// $newest = OutPut(GetSql('',$rootindex[listn],0,1),0,0);  //最近更新
$good = OutPut(GetSql('',$rootindex[listg],2,1),0,0);   //最新推荐
$hot = OutPut(GetSql('',$rootindex[listh],3,1),0,0);   //热门文章

//调用图片方案,公告,投票等
@include_once R_P."data/cache/dpic_index.php";
@include_once R_P."data/cache/votes.php";
@include_once R_P."data/cache/announce.php";
@include_once R_P."data/cache/link.php";
$announced = date('Y年m月d日',@filemtime(R_P."data/cache/announce.php"));
if($announce){
   include_once R_P."code.php";
   $announce = readxydw(stripslashes($announce),0,1);
}
include_once R_P."include/left.php";
include_once temp('index');
include_once R_P.'footer.php';
?>

⌨️ 快捷键说明

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