-
Notifications
You must be signed in to change notification settings - Fork 0
/
show_tracks.php
54 lines (36 loc) · 942 Bytes
/
show_tracks.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<?php
//foreach (glob("e:\\projects\\shopify\\classical music\\*") as $filename) {
// echo "$filename размер " . filesize($filename) . "<br>";
//}
//die();
require 'models\Track.php';
require 'Utf8.php';
Config::getConfig();
$tracks = Track::find('all'/*, array('conditions' => 'id = 1')*/);
$missing_tracks = array();
foreach ($tracks as $track) {
$full_path = Track::$search_tracks_in . $track->server_path;
echo $full_path . "<br>";
$var = \Patchwork\Utf8::toAscii($full_path);
echo $var. "<br>";
// echo "#$track->id " . $full_path;
//
if(file_exists($full_path)){
echo " [OK]<br>";
} else {
echo " [MISSING]<br>";
$missing_tracks[] = $track;
}
echo "=============================================" . "<br>";
flush();
}
?>
</body>
</html>