mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-01-21 07:25:56 +01:00
Removed newlines from output
This commit is contained in:
parent
065feeec04
commit
08875ed63c
@ -1214,5 +1214,3 @@ class bookedAPIclient {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -67,6 +67,4 @@
|
||||
const SELECT_LIST = 3;
|
||||
const MULTI_LINE_TEXT = 2;
|
||||
const CHECK_BOX = 4;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user