} else { if ($action == 'step3') { // matching - assign record ids $res = assignRecordIds($_REQUEST); //error_log(print_r($res,true)); } else { if ($action == 'step4') { // validate import - check field values $res = validateImport($_REQUEST); } else { if ($action == 'step5') { // perform import //$res = doImport($_REQUEST); } else { if (@$_REQUEST['content']) { $res = parse_content(); } else { if ($action == 'set_primary_rectype') { $res = setPrimaryRectype(@$_REQUEST['imp_ID'], @$_REQUEST['rty_ID'], @$_REQUEST['sequence']); } else { if ($action == 'records') { if (!@$_REQUEST['table']) { $system->addError(HEURIST_INVALID_REQUEST, '"table" parameter is not defined'); } if (@$_REQUEST['imp_ID']) { $res = getRecordsFromImportTable1($_REQUEST['table'], $_REQUEST['imp_ID']); } else { $res = getRecordsFromImportTable2($_REQUEST['table'], @$_REQUEST['id_field'], @$_REQUEST['mode'], @$_REQUEST['mapping'], @$_REQUEST['offset'], @$_REQUEST['limit'], @$_REQUEST['output']); } if ($res && @$_REQUEST['output'] == 'csv') { // Open a memory "file" for read/write...
} } else { $page = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM cms WHERE name = 'home'")); } } else { if ($_SESSION["status"] == "admin" && $_SESSION["editmode"] == 1) { $page = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM cms WHERE name = 'default'")); unset($page["id"]); unset($page["name"]); } else { $page = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM cms WHERE name = 'home'")); } } parse_content($page["includes"]); parse_content($page["head"]); parse_content($page["main"]); } } $filestoinclude = explode(",", $page["includes"]); for ($i = 0; $i < count($filestoinclude); $i++) { if (!empty($filestoinclude[$i])) { include_once $root . '/phpinclude/' . $filestoinclude[$i]; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <title><?php echo $page["title"];
<section id="home" data-frame="0" class="frame"> <div class="content clearfix"> <q>Technical skill is mastery of complexity, while creativity is mastery of simplicity.</q><br><small>Chrisopher Zeeman</small> </div> <footer> <a class="next" data-target="+" href="#presentation">v</a> </footer> </section> <section id="presentation" class="frame" data-frame="1"> <div class="container"> <header class="clearfix"> <h1 class="main-title">Hello, world !</h1> </header> <?php echo parse_content($self, $sub_items[1]['content']); ?> </div> <footer> <a class="next" data-target="+" href="#portfolio">v</a> </footer> </section> <section id="portfolio" class="frame" data-frame="2"> <!-- <div class="flexslider"> <ul class="slides"> <?php media_category($self, 1, 'portfolio_home_slide'); ?> </ul> </div> -->