mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/IZYIM-Prototype.git
synced 2026-08-23 22:53:55 +00:00
preparing to push to heroku
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$records = array();
|
||||
$records['nodes'] = array();
|
||||
|
||||
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : '0';
|
||||
$level = 1;
|
||||
if ($id != '0') {
|
||||
$id = explode(':', $id);
|
||||
$level = $id[1] + 1;
|
||||
}
|
||||
|
||||
for($i = 1; $i < 6; $i++) {
|
||||
$id_ = time() + rand(1000, 20000) . ':' . ($level);
|
||||
$records['nodes'][] = array('id' => $id_, 'parent' => $id, 'name' => 'Node - ' . $level . ' - ' . $i, 'level' => $level, 'type' => 'folder');
|
||||
}
|
||||
|
||||
echo json_encode($records);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user