コード例 #1
0
ファイル: module.php プロジェクト: yunsite/devana-heroic
     break;
 case 'set':
     if (isset($_POST['input'])) {
         $node->modules[$_GET['slotId']]['input'] = $_POST['input'];
         $status = $node->setModule($_GET['slotId']);
         if ($status == 'done') {
             header('Location: module.php?action=get&nodeId=' . $node->data['id'] . '&slotId=' . $_GET['slotId']);
         } else {
             $message = $ui[$status];
         }
     }
     break;
 case 'add':
     if ($flags['build']) {
         if (isset($_GET['moduleId'])) {
             $status = $node->addModule($_GET['slotId'], $_GET['moduleId']);
             if ($status == 'done') {
                 header('Location: node.php?action=get&nodeId=' . $node->data['id']);
             } else {
                 $message = $ui[$status];
             }
         }
     } else {
         $message = $ui['featureDisabled'];
     }
     break;
 case 'remove':
     if ($flags['build']) {
         $status = $node->removeModule($_GET['slotId']);
         if ($status == 'done') {
             header('Location: node.php?action=get&nodeId=' . $node->data['id']);