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.
 
 
 
 

30 lines
761 B

<?php
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
require __DIR__ . '/core/coreBase.php';
define('CURSCRIPT', 'dzz');
$dzz = C::app();
$dzz->init_session = false;
$dzz->init_setting = false;
$dzz->init_user = false;
$dzz->init_misc = false;
$dzz->init();
$sid = $_GET['sid'] ?? '';
if (!$sid) {
exit('Access Denied');
}
$short = C::t('shorturl')->fetch($sid);
if (!$short) {
@header('HTTP/1.1 404 Not Found');
@header('Status: 404 Not Found');
exit('Access Denied');
}
C::t('shorturl')->addview($sid);
@header("Location: " . outputurl($short['url']));
exit();
?>