From bce776296ba249a9d49474aa2c259dd7df699a79 Mon Sep 17 00:00:00 2001 From: Asim Zeeshan Date: Fri, 29 Jan 2021 19:30:36 +0500 Subject: [PATCH 1/6] Updating calls.php to fix GET statement --- calls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calls.php b/calls.php index e3f0dbf..2a8d47b 100644 --- a/calls.php +++ b/calls.php @@ -36,7 +36,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } elseif ($_GET['value'] == 'domain') { $idle->viewMoreDomainModal($_GET['id']);//View more details modal } - } elseif ($_GET['type'] == 'dns_search') { + } elseif ($_GET['type'] == 'A' || $_GET['type'] == 'AAAA') { $idle->getIpForDomain($_GET['hostname'], $_GET['type']); } elseif ($_GET['type'] == 'check_up') { echo $idle->checkIsUp($_GET['host']); From a89f624b082a81a7dc4d8deef7c33964a849b40c Mon Sep 17 00:00:00 2001 From: Asim Zeeshan Date: Fri, 29 Jan 2021 19:52:01 +0500 Subject: [PATCH 2/6] Using native dns_get_record() instead of whatsmydns.net --- class.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/class.php b/class.php index 302fb62..c3f191e 100644 --- a/class.php +++ b/class.php @@ -3057,11 +3057,19 @@ class idlers extends helperFunctions public function getIpForDomain(string $domain, string $type = 'A'): string {//Gets IP from A record for a domain - $data = json_decode(file_get_contents("https://whatsmydns.net/api/details?server=428&type=$type&query=$domain"), true); - if (isset($data['data'][0]['response'][0])) { - if (strlen($data['data'][0]['response'][0]) > 6) { - return $data['data'][0]['response'][0]; - } + switch ($type) { + case "A": + $data = dns_get_record($domain, DNS_A); + if (isset($data['0']['ip'])) { + return $data['0']['ip']; + } + break; + case "AAAA": + $data = dns_get_record($domain, DNS_AAAA); + if (isset($data['0']['ipv6'])) { + return $data['0']['ipv6']; + } + break; } return "";//Doesnt exist/null/empty/invalid } From cae5e5e8fcccbb658fcddd25fef25fa30f5aa8fa Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 7 Feb 2021 01:28:39 +1100 Subject: [PATCH 3/6] Readme for 1.4 Readme for 1.4 --- README.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f6d30c8..8ff2483 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,17 @@ By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you [![Generic badge](https://img.shields.io/badge/version-1.3-blue.svg)](https://shields.io/) -## 1.3 changes: -**If you have version 1.2 already installed please run ```update1.2to1.3.sql```** -* Added constant to set main view type (cards or table). -* Fixed DNS GET requests. -* Added label field/input for servers. -* Fixed domain & shared hosting deletion. -* Updated to dns_get_record() instead of DNS API calling. -* Added KB/s to MB/s conversion. -* Fixed active status for view type div. -* Added attach domain to server or shared hosting. -* Updated search to include tags and labels. -* Updated server view more modal formatting. -* Updated server edit modal formatting. +## 1.4 changes: +**If you have version 1.3 already installed please run ```update1.3to1.4.sql```** +* Added compare servers section +* Added ASN fetcher +* Added check for min version PHP 7.4 +* Added errors checks for YABs output inserting +* Added improved screenshots to readme +* Updated delete YABs txt file when deleting server data +* Added save YABs to txt file constant +* Updated domain attached to errors when null +* Updated getIpForDomain() call to echo (working now) * Updated `my_idlers.sql` for changes ## Requires @@ -36,6 +34,7 @@ By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you * [Auto get IP's from hostname](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-ips-from-hostname.gif) * [Check up/down status](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-ping-up-feature.gif) * Get YABs data from output +* Compare 2 servers * Save & view YABs output * Update YABs disk & network results * Next due date system @@ -56,7 +55,7 @@ By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you * Download [the zip](https://github.com/cp6/my-idlers/archive/main.zip) and unpack the files from ```my-idlers-main/``` into your directory of choice. * Run `my_idlers.sql` in MySQL. -* **Only run ```update1.2to1.3.sql``` if you have version 1.2 installed.** +* **Only run ```update1.3to1.4.sql``` if you have version 1.3 installed.** * Edit ```class.php``` lines ```13-16``` for your MySQL details. * Edit ```class.php``` lines ```8-10``` for card order type. From fa987790cd3e750e52e37fdb7a9b95c9fdf3328d Mon Sep 17 00:00:00 2001 From: corbpie Date: Sun, 7 Feb 2021 10:30:07 +1100 Subject: [PATCH 4/6] Updated readme version badge Updated readme version badge to 1.4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ff2483..02eb16d 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A web app for displaying, organizing and storing information about servers (VPS) Despite what the name infers this self hosted web app isn't just for storing idling server information. By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you can get disk & network speed values along with GeekBench 5 scores to do easier comparing and sorting. -[![Generic badge](https://img.shields.io/badge/version-1.3-blue.svg)](https://shields.io/) +[![Generic badge](https://img.shields.io/badge/version-1.4-blue.svg)](https://shields.io/) ## 1.4 changes: **If you have version 1.3 already installed please run ```update1.3to1.4.sql```** From e7ab76ca9a2e08ac19c56dbf52950cc7383876fc Mon Sep 17 00:00:00 2001 From: corbpie Date: Thu, 19 Aug 2021 17:24:28 +1000 Subject: [PATCH 5/6] Added demo URL Added demo URL --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 02eb16d..7272752 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A web app for displaying, organizing and storing information about servers (VPS), shared hosting and domains. +[Live demo](https://myidlers.srv3r.com/) + Despite what the name infers this self hosted web app isn't just for storing idling server information. By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you can get disk & network speed values along with GeekBench 5 scores to do easier comparing and sorting. From 91928b6d545c14775621228ef9937085d0256504 Mon Sep 17 00:00:00 2001 From: corbpie Date: Fri, 4 Feb 2022 23:50:18 +1100 Subject: [PATCH 6/6] Added notice about V2 Added notice about V2 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7272752..acb2923 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A web app for displaying, organizing and storing information about servers (VPS), shared hosting and domains. +## V2 notes + +V2 build is going to be a complete overhaul of My idlers with the project being moved onto the Laravel framework. This will simplyfy development and most of the features from the original build will be present in V2. + [Live demo](https://myidlers.srv3r.com/) Despite what the name infers this self hosted web app isn't just for storing idling server information.