Updated command extension

This commit is contained in:
markseu 2022-04-15 12:47:23 +02:00
parent 6e290d1788
commit e0ef2e9e98
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
class YellowCommand {
const VERSION = "0.8.35";
const VERSION = "0.8.36";
public $yellow; // access to API
public $files; // number of files
public $links; // number of links
@ -399,7 +399,7 @@ class YellowCommand {
uksort($data, "strnatcasecmp");
$data = array_slice($data, 0, 99);
foreach ($data as $key=>$value) {
echo "- $key\n";
echo "$key\n";
}
echo "\n";
}
@ -631,6 +631,7 @@ class YellowCommand {
curl_setopt($curlHandle, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; YellowCommand/".YellowCommand::VERSION."; LinkChecker)");
curl_setopt($curlHandle, CURLOPT_NOBODY, 1);
curl_setopt($curlHandle, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
curl_exec($curlHandle);
$statusCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);
curl_close($curlHandle);

View file

@ -11,11 +11,11 @@ Tag: feature
system/extensions/bundle.php: bundle.php, create, update
Extension: Command
Version: 0.8.35
Version: 0.8.36
Description: Command line of the website.
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/command.zip
Published: 2022-04-14 16:40:15
Published: 2022-04-15 12:40:46
Developer: Datenstrom
Tag: feature
system/extensions/command.php: command.php, create, update