mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-03-01 20:02:44 +08:00
23 lines
544 B
PHP
23 lines
544 B
PHP
|
|
<?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)
|
||
|
|
*/
|
||
|
|
ignore_user_abort(true);
|
||
|
|
@set_time_limit(0);
|
||
|
|
if(!defined('IN_DZZ')) {
|
||
|
|
exit('Access Denied');
|
||
|
|
}
|
||
|
|
$remoteid=intval($_GET['remoteid']);
|
||
|
|
$aid=intval($_GET['aid']);
|
||
|
|
if($attach=C::t('attachment')->fetch($aid)){
|
||
|
|
|
||
|
|
$re=io_remote::Migrate($attach,$remoteid);
|
||
|
|
if($re['error']) exit($re['error']);
|
||
|
|
}
|
||
|
|
exit('success');
|
||
|
|
?>
|