1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-01-21 23:45:56 +01:00

Removed newlines from output

This commit is contained in:
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

@ -68,5 +68,3 @@
const MULTI_LINE_TEXT = 2; const MULTI_LINE_TEXT = 2;
const CHECK_BOX = 4; const CHECK_BOX = 4;
?>

View File

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

View File

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