MOD_NAME,
'op'=>'movetool_run',
'oremoteid'=>intval($_GET['oremoteid']),
'remoteid' =>intval($_GET['remoteid']),
'exts'=>trim($_GET['exts']),
'sizelt'=>$_GET['sizelt'],
'sizegt'=>$_GET['sizegt'],
);
$gets['aid']=intval($_GET['aid']);
$runurl = BASESCRIPT."?".url_implode($gets);
$gets['aid1']=intval($_GET['aid1']);
$gets['dateline']=intval($_GET['dateline']);
//获取需要迁移的数据量
if($attach=C::t('attachment')->getAttachByFilter($gets)){
//print_r($attach);exit($runurl);
$runurl.='&dateline='.$attach['dateline'].'&aid1='.$attach['aid'];
try{
updatesession();
if($re=io_remote::Migrate($attach,$gets['remoteid'])){
//print_r($re);exit();
include template('common/header_common');
echo "";
include template('common/footer');
exit();
}
}catch(Exception $e){
$attach['error']=$e->getMessage();
include template('common/header_common');
echo "";
include template('common/footer');
exit();
}
}else{
//完成;
include template('common/header_common');
echo "";
include template('common/footer');
exit();
}
?>