merge.php 432 Bytes
Newer Older
Orbmancer's avatar
Orbmancer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once 'model/Data.class.php';
require_once 'model/Tabs.class.php';

$td = $_GET['td'];

$levels = Data::loadXML($td);


$final = new Tabs();
$final->fillBlank();


foreach($levels as $level){
    $myContent = new Tabs();
    $myContent->importXML($level['content']);
    $final->setTab($myContent->getTab(), $level['x'], $level['y']);
}

echo $final->toString();