//require "config.php"; require "functions.php"; require "includes.php"; require "menu.php"; //print_r($_POST); /* ----- setup variables ----- */ $action = GetVariable("action"); $data = GetVariable("data"); /* determine action */ switch ($action) { case 'import': Import($data); break; default: DisplayImportForm(); } /* ------------------------------------ functions ------------------------------------ */ /* -------------------------------------------- */ /* ------- Import ----------------------------- */ /* -------------------------------------------- */ function Import($data) { $lines = explode("\n", $data); $lastfilegroupid = 0; $groupid = 0; foreach($lines as $line) { ?>
<?php //require "config.php"; require "functions.php"; require "includes.php"; require "menu.php"; //print_r($_POST); /* ----- setup variables ----- */ $action = GetVariable("action"); $data = GetVariable("data"); /* determine action */ switch ($action) { case 'import': Import($data); break; default: DisplayImportForm(); } /* ------------------------------------ functions ------------------------------------ */ /* -------------------------------------------- */ /* ------- Import ----------------------------- */ /* -------------------------------------------- */ function Import($data) { $lines = explode("\n", $data); $lastfilegroupid = 0; $groupid = 0; foreach ($lines as $line) { ?> <div style="color:darkred"><?php echo $line; ?>