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

📄 index.php

📁 一、超强系统模型扩展功能 EmpireCMS卓越之处在于:不仅提供了网站管理功能
💻 PHP
字号:
<?php
include("../../class/connect.php");
$id=(int)$_GET['id'];
$classid=(int)$_GET['classid'];
$enews=$_GET['enews'];
if($id&&$classid)
{
	include("../../class/db_sql.php");
	include("../../class/class.php");
	include("../../class/config.php");
	include("../../class/q_functions.php");
	$link=db_connect();
	$empire=new mysqlquery();
	$editor=1;
	if(empty($class_r[$classid][tbname]))
	{
		printerror("ErrorUrl","",1);
    }
	//下一条记录
	if($enews=="next")
	{
		$where="id>$id and classid='$classid' and checked=1 order by id";
    }
	//上一条记录pre
	else
	{
		$where="id<$id and classid='$classid' and checked=1 order by id desc";
    }
	$r=$empire->fetch1("select titleurl,groupid,classid,newspath,filename,id from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where ".$where." limit 1");
	if(empty($r[id]))
	{
		printerror("NotNextInfo","",1);
    }
	$titleurl=sys_ReturnBqTitleLink($r);
	db_close();
	$empire=null;
	Header("Location:$titleurl");
}
?>

⌨️ 快捷键说明

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