Removed newlines from output

master
Lukas Macura 2016-12-11 16:15:22 +01:00
parent 065feeec04
commit 08875ed63c
4 changed files with 5 additions and 11 deletions

View File

@ -1214,5 +1214,3 @@ class bookedAPIclient {
}
?>

View File

@ -67,6 +67,4 @@
const SELECT_LIST = 3;
const MULTI_LINE_TEXT = 2;
const CHECK_BOX = 4;
?>

View File

@ -33,6 +33,6 @@ Parameters::
Description::
Get number of reservations in given time range
::
Cmd: getr.php "$from" "$to"
Cmd: php getr.php "$from" "$to"
/Item

View File

@ -1,6 +1,4 @@
#!/usr/bin/env php
<?php
error_reporting(0);
session_start();
$from=$argv[1];
@ -8,16 +6,17 @@
define("YOURTIMEZONE",getenv("timezone"));
define("BOOKEDWEBSERVICESURL",getenv("url"));
require_once(__DIR__ . "/bookedapi.php");
if ($from) {
$from=New DateTime($from);
$from=New DateTime(strtr($from,"_"," "));
$from=$from->getTimestamp();
} else {
$from=time();
}
if ($to) {
$to=New DateTime($to);
$to=New DateTime(strtr($to,"_"," "));
$to=$to->getTimestamp();
} else {
$to=time()+3600;
@ -43,4 +42,3 @@
echo $cnt;