*/
include("./includes/function_global_variables.php");
include("./includes/map_it.php");
include("./includes/parser.php");
include("./includes/comm_gen.php");
include("./includes/mysql_logic.php");
include("./includes/config_PortalsDB.php");
$mapform = new mapit;
$newparser = new parser;
$newcomm_gen = new comm_gen;
$newmysql = new mysql_IO;
$mapform->map_form_input() ;
$newparser->parseit() ;
if ($command_error) {
print "Command Error = " . $request_string . "
" ;
} else {
// debugbreak();
$comm_out_string = $newcomm_gen->android_out($android_command);
$bar_command = $newparser->toBars($comm_out_string);
//print $android_command . " " . $game_id . " ". $game_variable . "
" ;
if ($newmysql->recordExists($game_ID)) {
// debug();
// print $game_ID . " exists.
" ;
$newmysql->chgrecd($game_ID, $bar_command);
}
else {
// print $game_ID . " does not exist.
" ;
$newmysql->insrecd($game_ID, $bar_command);
}
// print "bar out " .$bar_command . "
";
// print "Comm Out " . $comm_out_string . "