Skip to content
Snippets Groups Projects
amcli.php 580 B
#!/usr/bin/env php
<?php

chdir(__DIR__);


// ---MARK---INCLUDE-CHECKS---START---
if(! file_exists("include_checks.php")){
  echo "ERROR: File 'include_checks.php' does not exisr yet..\n";
  echo "Run the ../installer.php first!\n";
  exit(1);
}

if(!include "include_checks.php"){
  echo "ERROR: Include of generated 'include_checks.php' failed.\n";
  echo "Check its generation by installer or run the installer again.\n";
  exit(2);
}
// ---MARK---INCLUDE-CHECKS---END


if($argc>1)
  parse_str(implode('&',array_slice($argv, 1)), $_GET);



echo "PARAMS: ";
print_r($_GET);