. * --------------------------------------------------------------------- */ // Ensure current directory when run from crontab chdir(__DIR__); if (isset($_SERVER['argv'])) { for ($i=1; $i<$_SERVER['argc']; $i++) { $it = explode("=", $_SERVER['argv'][$i], 2); $it[0] = preg_replace('/^--/', '', $it[0]); $_GET[$it[0]] = (isset($it[1]) ? $it[1] : true); } } echo "Usage of this script is deprecated, please use 'bin/console ldap:sync' command.\n"; if ((isset($_SERVER['argv']) && in_array('help', $_SERVER['argv'])) || isset($_GET['help'])) { echo "Usage: php -q -f ldap_mass_sync.php [action=