You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
667 B
26 lines
667 B
<?php
|
|
require("../../class/connect.php");
|
|
$id=(int)$_GET['id'];
|
|
$classid=(int)$_GET['classid'];
|
|
if($id&&$classid)
|
|
{
|
|
include("../../class/db_sql.php");
|
|
include("../../data/dbcache/class.php");
|
|
$link=db_connect();
|
|
$empire=new mysqlquery();
|
|
$editor=1;
|
|
if(empty($class_r[$classid][tbname])||InfoIsInTable($class_r[$classid][tbname]))
|
|
{
|
|
printerror("ErrorUrl","",1);
|
|
}
|
|
$r=$empire->fetch1("select isurl,titleurl,classid,id from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' limit 1");
|
|
if(empty($r[id]))
|
|
{
|
|
printerror("ErrorUrl","",1);
|
|
}
|
|
$titleurl=sys_ReturnBqTitleLink($r);
|
|
db_close();
|
|
$empire=null;
|
|
Header("Location:$titleurl");
|
|
}
|
|
?>
|