Beispiel #1
0
     include_once "lib/callback/comments.php";
     comments_send($SCION, $response);
     $SCION->status = COMMENTS_PICK;
     echo $response;
     break 2;
     //break out
 //break out
 case COMMENTS_PICK:
     //nothing to do
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case SESSIONS_DISP:
     //Info input starting with sessions
     input_send($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case BUTTON_DISP:
     include_once "lib/callback/buttons.php";
     button_send($SCION, $response);
     echo $response;
     $SCION->status = STATE::CHANGE;
     break 2;
     //break out
 //break out
 case STATE::CHANGE:
     changes($SCION, $response);
     //DO IT!
         //no line selected
         break 2;
     }
     switch ($_GET["cell"]) {
         case "EV":
             //event
             event_send($_DB, $_STATE);
             $_STATE->EC_status = "a";
             //add line selected
             break 1;
         case "SN":
             //Info input starting with sessions
             if ($_GET["selectedOption"] != 0) {
                 event_select($_DB, $_STATE);
             }
             input_send($_DB, $_STATE);
             STATE_new_status($_STATE, STATE::CHANGE);
             break 1;
         default:
             throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): invalid cell=" . $_GET["cell"]);
     }
     break 2;
 case STATE::CHANGE:
     $_STATE->EC_status = "";
     //no line selected
     if (isset($_GET["reset"])) {
         $_STATE = STATE_get(NULL, $_STATE->thread);
         //go back to log_list
         break 1;
     }
     new_info($_DB, $_STATE);
Beispiel #3
0
         //0 is add row
         $SCION->status = SESSIONS_DISP;
         break 1;
         //go back around to skip comments
     }
     $SCION->status = COMMENTS_DISP;
     //		break 1; //no need to break, just fall through
 //		break 1; //no need to break, just fall through
 case COMMENTS_DISP:
     comments_send($SCION, $HTML);
     $SCION->status = SESSIONS_DISP;
     //		break 1; //no need to break, just fall through
 //		break 1; //no need to break, just fall through
 case SESSIONS_DISP:
     //Info input starting with sessions
     input_send($SCION, $HTML);
     $SCION->status = BUTTON_DISP;
     //		break 1;
 //		break 1;
 case BUTTON_DISP:
     button_send($SCION, $HTML);
     echo $HTML;
     $SCION->status = STATE::CHANGE;
     break 2;
 case STATE::CHANGE:
     if (isset($_GET["getdesc"])) {
         //asking for the description of a cell
         cell_desc($SCION);
         break 2;
     }
     if (isset($_GET["reset"])) {