代码拉取完成,页面将自动刷新
同步操作将从 szwldev/adam_qiniu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
!defined('DEBUG') AND exit('Access Denied.');
if ($method == 'GET'){
$config = include(APP_PATH.'plugin/adam_qiniu/config.php');
include _include(APP_PATH.'plugin/adam_qiniu/setting.htm');
}elseif ($method == 'POST'){
$post_data = $_POST;
if (empty($post_data['accessKey'])) message(-1, 'AK必填!');
if (empty($post_data['secretKey'])) message(-1, 'SK必填!');
if (empty($post_data['bucket'])) message(-1, 'bucket必填!');
if (empty($post_data['cdnurl'])) message(-1, '域名必填!');
$file = fopen(APP_PATH."plugin/adam_qiniu/config.php", "w");
$config_data = "<?php
return array(
'accessKey' => '{$post_data['accessKey']}',
'secretKey' => '{$post_data['secretKey']}',
'bucket' => '{$post_data['bucket']}',
'cdnurl' => '{$post_data['cdnurl']}',
);";
try{
$res = fwrite($file, $config_data);
fclose($file);
if ($res){
message(1, '保存成功');
}else{
message(-1, '保存失败');
}
}catch (Exception $e){
message(-1, $e->getMessage());
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。