Files
Pichome/dzz/onlyoffice_view/admin.php
zyx0814 f9b93aca1f 1.1
2022-06-25 14:48:20 +08:00

29 lines
944 B
PHP

<?php
/*
* 应用卸载程序示例
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
* @license https://www.oaooa.com/licenses/
*
* @link https://www.oaooa.com
* @author zyx(zyx@oaooa.com)
*/
if (!defined('IN_OAOOA') && !defined('IN_ADMIN')) {
exit('Access Denied');
}
$op="admin";
Hook::listen('adminlogin');
$app=C::t('app_market')->fetch_by_identifier('onlyoffice_view','dzz');
$app['extra'] && $app['extra']=unserialize($app['extra']);
if (!submitcheck('confirmsubmit')) {
include template('admin');
} else {
if ( $_GET['app_key'] ) {
$extra =$app['extra'];
$extra["DocumentUrl"]=$_GET['app_key'];
C::t("app_market")->update($app['appid'],array("extra"=> serialize($extra)));
showmessage('save_success', $_GET['refer']?$_GET['refer']:dreferer(), array(), array('alert' => 'right'));
} else {
showmessage('onlyoffice_view_url_setfailed');
}
exit();
}