16 lignes
338 B
Plaintext
16 lignes
338 B
Plaintext
|
#!/usr/bin/env php
|
||
|
<?php
|
||
|
|
||
|
$count = 0;
|
||
|
$filePath = '../assets/d3_extsearch_cron.php';
|
||
|
$currentDirectory = __DIR__ . '/';
|
||
|
while ($count < 5) {
|
||
|
$count++;
|
||
|
if (file_exists($currentDirectory . $filePath)) {
|
||
|
$filePath = $currentDirectory . $filePath;
|
||
|
break;
|
||
|
}
|
||
|
$filePath = '../' . $filePath;
|
||
|
}
|
||
|
|
||
|
require($filePath);
|