217 Star 1.4K Fork 487

zyx0814/DzzOffice

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
short.php 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
小胡 提交于 2025-12-31 22:18 +08:00 . 规范化代码和修复一些已知问题
<?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');
define('APPTYPEID', 0);
define('DZZSCRIPT', 'index.php');
$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: " . $_G['siteurl'] . outputurl($short['url']));
exit();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zyx0814/dzzoffice.git
git@gitee.com:zyx0814/dzzoffice.git
zyx0814
dzzoffice
DzzOffice
master

搜索帮助