Gave clublog files a random id
这个提交包含在:
父节点
fd9b4ed438
当前提交
62ed493b6c
共有 1 个文件被更改,包括 4 次插入 和 2 次删除
|
|
@ -32,11 +32,13 @@ class Clublog extends CI_Controller {
|
||||||
// Create ADIF File of contacts not uploaded to Clublog
|
// Create ADIF File of contacts not uploaded to Clublog
|
||||||
$string = $this->load->view('adif/data/clublog', $data, TRUE);
|
$string = $this->load->view('adif/data/clublog', $data, TRUE);
|
||||||
|
|
||||||
if ( ! write_file('uploads/clublog.adi', $string)) {
|
$ranid = uniqid();
|
||||||
|
if ( ! write_file('uploads/clublog'.$ranid.'.adi', $string)) {
|
||||||
echo 'Unable to write the file - Make the folder Upload folder has write permissions.';
|
echo 'Unable to write the file - Make the folder Upload folder has write permissions.';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$file_info = get_file_info('uploads/clublog.adi');
|
|
||||||
|
$file_info = get_file_info('uploads/clublog'.$ranid.'.adi');
|
||||||
|
|
||||||
// initialise the curl request
|
// initialise the curl request
|
||||||
$request = curl_init('https://clublog.org/putlogs.php');
|
$request = curl_init('https://clublog.org/putlogs.php');
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用