Example #1
0
	Code License	:		OpenSource - GNU GPL v3
*/
session_start();
if (!isset($_GET['type'])) {
    header("location:../../public/error/404.html");
}
if (!file_exists("../../app/omodules/" . $_GET['type'])) {
    header("location:../../public/error/404.html");
}
include "omod.php";
$omod = new Omod();
$assign = new Assign();
$connection = new Connection("auto");
$build = new Build();
$table = new Table("__NULL_OG_MAPPER_SET");
$map = $table->getMapping($connection->grab_conn());
$listTables = explode("::", $map);
$tableCount = count($listTables);
for ($i = 0; $i < $tableCount; $i++) {
    ${$listTables}[$i] = new Table($listTables[$i]);
}
$dataFile = $_GET['type'];
function select($details)
{
    $conn = new Connection("auto");
    $query = new Build();
    $result = $query->select($conn->grab_conn(), $details, "close");
    return $result;
}
function insert($details)
{