|
40 | 40 | * |
41 | 41 | * @copyright Jorge Castro C. MIT License https://github.com/EFTEC/AutoLoadOne |
42 | 42 | * |
43 | | - * @version 1.30 2025-02-21 |
| 43 | + * @version 1.30.1 2025-02-21 |
44 | 44 | * @noautoload |
45 | 45 | */ |
46 | 46 | class AutoLoadOne |
47 | 47 | { |
48 | | - public const VERSION = '1.30'; |
| 48 | + public const VERSION = '1.30.1'; |
49 | 49 | public ?string $rooturl = ''; |
50 | 50 | public ?string $fileGen = ''; |
51 | 51 | public ?int $savefile = 1; |
@@ -252,10 +252,10 @@ private function getAllParametersCli(): void |
252 | 252 | $this->rooturl = $this->fixSeparator($this->getParameterCli('folder')); |
253 | 253 | $this->fileGen = $this->fixSeparator($this->getParameterCli('filegen')); |
254 | 254 | $this->fileGen = ($this->fileGen === '.') ? $this->rooturl : $this->fileGen; |
255 | | - $this->savefile = $this->getParameterCli('save'); |
| 255 | + $this->savefile = $this->getParameterCli('save')==="yes" ? 1:0; |
256 | 256 | $this->savefileName = $this->getParameterCli('savefilename', 'autoload.php'); |
257 | | - $this->stop = $this->getParameterCli('stop'); |
258 | | - $this->compression = $this->getParameterCli('compression'); |
| 257 | + $this->stop = $this->getParameterCli('stop') === "yes" ? 1 : 0; |
| 258 | + $this->compression = $this->getParameterCli('compression') === "yes" ? 1 : 0; |
259 | 259 | $this->current = $this->getParameterCli('current', true); |
260 | 260 | $this->excludeNS = $this->getParameterCli('excludens'); |
261 | 261 | $this->excludePath = $this->getParameterCli('excludepath'); |
@@ -338,6 +338,7 @@ private function initWeb(): void |
338 | 338 | $this->stop = @$_POST['stop']; |
339 | 339 | $this->compression = @$_POST['compression']; |
340 | 340 | } |
| 341 | + /** @noinspection PhpConditionAlreadyCheckedInspection */ |
341 | 342 | if ($this->button === 'logout') { |
342 | 343 | @session_destroy(); |
343 | 344 | $this->logged = 0; |
|
0 commit comments