--- a/admin/importUNSPSC.php +++ b/admin/importUNSPSC.php @@ -1,5 +1,8 @@ <?php - include_once("../lib/common.inc.php"); +if (php_sapi_name() != "cli") { + +include_once ("../lib/common.inc.php"); +auth(); // display existing @@ -49,5 +52,6 @@ echo "<br> $success records successfully created"; flush(); fclose($handle); +} ?>