Ignore:
Timestamp:
May 26, 2014 6:12:35 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/violetspace-prototype/getdata.php

    r1 r4  
    2222                );
    2323
    24 if (count($_POST) == 0) {
     24if (isset($_POST['action'])) {
     25        if ($_POST['action'] == 'create_dir') {
     26                $newID = 9;
     27                $aryNewDir = array('id' => $newID, 'name' => $_POST['name'], 'parentID' => $_POST['parentID']);
     28                echo json_encode($aryNewDir);
     29        }
     30}
     31else {
    2532        echo json_encode($aryDir);
    2633}
Note: See TracChangeset for help on using the changeset viewer.