Usermanager/src/bin/d3_usermanager_cron

16 lines
376 B
Plaintext
Raw Normal View History

2020-10-02 11:59:22 +02:00
#!/usr/bin/env php
<?php
$count = 0;
$filePath = '../../../source/modules/d3/usermanager/public/d3_usermanager_cron.php';
$currentDirectory = __DIR__ . '/';
while ($count < 5) {
$count++;
if (file_exists($currentDirectory . $filePath)) {
$filePath = $currentDirectory . $filePath;
break;
}
$filePath = '../' . $filePath;
}
require($filePath);