Browse Source

fix: wrong array, auto scrypt

master
Dnomd343 3 years ago
parent
commit
26ee4ddcea
  1. 16
      build.sh
  2. 1
      release/success
  3. BIN
      release/tldInfo.db
  4. 109364
      release/tldInfo.json
  5. 1
      release/tldInfo.min.json
  6. 2512
      release/whois-server.csv
  7. 6
      src/main.php

16
build.sh

@ -1,5 +1,15 @@
rm -rf /temp
cd ./src
php main.php
cd ../
rm -rf ./html
mv ./temp ./html
cd ../temp
if [ ! -f "success" ]; then
echo -e "\033[31merror\033[0m"
cd ..
rm -rf temp/
exit 0
fi
rm success
cat tldInfo.min.json | jq . > tldInfo.json
cd ..
rm -rf release/
mv temp/ release/

1
release/success

@ -1 +0,0 @@
2021-08-16

BIN
release/tldInfo.db

Binary file not shown.

109364
release/tldInfo.json

File diff suppressed because one or more lines are too long

1
release/tldInfo.min.json

File diff suppressed because one or more lines are too long

2512
release/whois-server.csv

File diff suppressed because it is too large

6
src/main.php

@ -6,7 +6,7 @@ require_once './tld-list.php';
require_once './punycode.php';
require_once './interface.php';
$release_path = '../release/';
$release_path = '../temp/';
shell_exec('mkdir -p ' . $release_path);
// Load ICP info
@ -40,7 +40,7 @@ foreach ($tlds as $index => $tld) {
die('error -> fail to load page');
}
$info = $iana->getTldInfo('.' . $tld, $html_content);
$tldInfo[] = $info;
$tldInfo[$tld] = $info;
echo PHP_EOL;
}
@ -94,7 +94,7 @@ $data = array(
'iana' => $tldInfo,
'version' => date('Y-m-d')
);
writeFile($release_path . 'tldInfo.json', json_encode($data));
writeFile($release_path . 'tldInfo.min.json', json_encode($data));
echo "\033[32mOK\033[0m" . PHP_EOL;
// Output whois server list by csv format

Loading…
Cancel
Save