예제 #1
0
function handleSipgateIOEvent()
{
    if (postVal("direction") == "in" || postVal("direction") === null) {
        writeToEventFile(array("event" => postVal("event"), "user" => postVal("user"), "direction" => postVal("direction"), "from" => postVal("from"), "to" => postVal("to"), "callId" => postVal("callId"), "diversion" => postVal("diversion"), "cause" => postVal("cause"), "timestamp" => microtime(true)));
        $url = 'http' . (!empty($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
        header("Content-type: application/xml");
        echo "<Response onAnswer=\"{$url}\" onHangup=\"{$url}\"></Response>";
    } else {
        header("Content-type: application/xml");
        echo "<Response></Response>";
    }
}
예제 #2
0
파일: register.php 프로젝트: lask20/ashi
              <input value="<?php 
echo postVal("fullname");
?>
" name="fullname" type="text" class="form-control" placeholder="Location Name">
              <span class="glyphicon glyphicon-map-marker form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
              <input value="<?php 
echo postVal("phone");
?>
" name="phone" type="text" class="form-control" placeholder="Phone number">
              <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
              <textarea value="<?php 
echo postVal("address");
?>
" name="address" class="form-control" rows="3" placeholder="Address"></textarea>
              <span class="glyphicon glyphicon-home form-control-feedback"></span>
            </div>
            <b>Location</b>&nbsp;&nbsp;( select area )
          </div>

          <div id="map"></div>

          <script>

// This example adds a user-editable rectangle to the map.
// When the user changes the bounds of the rectangle,
// an info window pops up displaying the new bounds.