ExtSearch/bin/d3_extsearch_cron

16 lines
338 B
PHP

#!/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);