コード例 #1
0
ファイル: lccs.php プロジェクト: jeremy-wischusen/ics
 if ($args[0] == "--register-hook") {
     if (count($args) > 2) {
         echo $am->registerHook($args[1], $args[2]);
     } else {
         echo $am->registerHook($args[1]);
     }
 } else {
     if ($args[0] == "--unregister-hook") {
         echo $am->unregisterHook();
     } else {
         if ($args[0] == "--hook-info") {
             echo $am->getHookInfo();
         } else {
             if ($args[0] == "--register-repository") {
                 if (count($args) > 2) {
                     echo $am->registerRepository($args[1], $args[2]);
                 } else {
                     echo $am->registerRepository($args[1]);
                 }
             } else {
                 if ($args[0] == "--unregister-repository") {
                     echo $am->unregisterRepository();
                 } else {
                     if ($args[0] == "--repository-info") {
                         echo $am->getRepositoryInfo();
                     } else {
                         if ($args[0] == "--start-recording") {
                             if (count($args) > 3) {
                                 echo $am->startRecording($args[1], $args[2], $args[3]);
                             } else {
                                 if (count($args) > 2) {