-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcron_scan.php
More file actions
37 lines (25 loc) · 821 Bytes
/
cron_scan.php
File metadata and controls
37 lines (25 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Created by PhpStorm.
* User: user
* Date: 08.06.2025
* Time: 4:15
*/
include_once(__DIR__.'/config.php');
include_once(__DIR__.'/functions.php');
header('Content-type: text/plain; charset=utf-8');
//header('Content-type: application/json; charset=utf-8');
//header('Content-type: text/html; charset=utf-8');
echo 'START: '.print_r(date('d/m/Y, H:i:s'),1)."<BR>\r\n";
foreach ($rootPaths as $base) {
foreach ($folders as $folder) {
// if($folder != 'noRussian') continue;
// echo 'Путь: ' . "$base/$folder" . "<br>\r\n";
if (is_dir("$base/$folder")) {
scanDirRecursive($base, $folder, $pdo);
// echo "OK<br>\r\n"; exit();
}
}
}
echo "Scan complete.\r\n";
echo 'END: '.print_r(date('d/m/Y, H:i:s'),1)."<BR>\r\n\r\n\r\n\r\n\r\n";