Fixed incorrect handling of microtime

This commit is contained in:
Andreas Oesterreicher
2017-07-03 18:31:48 +02:00
parent a06f54ca8a
commit 4dd46fc55f
14 changed files with 398 additions and 410 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ require_once('../include/'.EXT_FKT_PATH.'/serviceterminal.inc.php');
ini_set("soap.wsdl_cache_enabled", "0");
$SOAPServer = new SoapServer(APP_ROOT.'soap/kartenverlaengerung.wsdl.php?'.microtime());
$SOAPServer = new SoapServer(APP_ROOT.'soap/kartenverlaengerung.wsdl.php?'.microtime(true));
$SOAPServer->addFunction('getNumber');
$SOAPServer->handle();
+1 -1
View File
@@ -31,7 +31,7 @@ require_once('../include/studiengang.class.php');
ini_set("soap.wsdl_cache_enabled", "0");
$SOAPServer = new SoapServer(APP_ROOT."/soap/lehrveranstaltung.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/lehrveranstaltung.wsdl.php?".microtime(true));
$SOAPServer->addFunction("getLehrveranstaltungFromId");
$SOAPServer->addFunction("getLehrveranstaltungFromStudiengang");
$SOAPServer->handle();
+1 -3
View File
@@ -32,7 +32,7 @@ require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/dms.class.php');
$SOAPServer = new SoapServer(APP_ROOT."/soap/notiz.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/notiz.wsdl.php?".microtime(true));
$SOAPServer->addFunction("saveNotiz");
$SOAPServer->addFunction("deleteNotiz");
$SOAPServer->addFunction("deleteDokument");
@@ -190,5 +190,3 @@ function setErledigt($notiz_id, $erledigt)
return new SoapFault("Server", "Fehler beim Laden");
}
?>
+1 -3
View File
@@ -32,7 +32,7 @@ require_once('../include/dms.class.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php?".microtime(true));
$SOAPServer->addFunction("saveProjekt");
$SOAPServer->addFunction("saveProjektdokumentZuordnung");
$SOAPServer->handle();
@@ -111,5 +111,3 @@ function saveProjektdokumentZuordnung($username, $passwort, $projekt_kurzbz, $pr
return new SoapFault("Server", $dms->errormsg);
}
?>
+1 -1
View File
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
$SOAPServer = new SoapServer(APP_ROOT."/soap/projektphase.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/projektphase.wsdl.php?".microtime(true));
$SOAPServer->addFunction("saveProjektphase");
$SOAPServer->addFunction("deleteProjektphase");
$SOAPServer->handle();
+1 -3
View File
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/functions.inc.php');
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource.wsdl.php?".microtime(true));
$SOAPServer->addFunction("saveRessource");
$SOAPServer->handle();
@@ -82,5 +82,3 @@ function saveRessource($username, $passwort, $ressource)
return new SoapFault("Server", $ressourceNew->errormsg);
}
?>
+1 -3
View File
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource_projekt.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource_projekt.wsdl.php?".microtime(true));
$SOAPServer->addFunction("saveProjektRessource");
$SOAPServer->addFunction("deleteProjektRessource");
$SOAPServer->handle();
@@ -123,5 +123,3 @@ function deleteProjektRessource($username, $passwort, $projektRessource)
}
?>
+1 -3
View File
@@ -27,7 +27,7 @@ require_once('../include/webservicelog.class.php');
ini_set("soap.wsdl_cache_enabled", "0");
$SOAPServer = new SoapServer(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime(true));
$SOAPServer->addFunction("verifyData");
$SOAPServer->handle();
@@ -225,5 +225,3 @@ function validateRequest($parameter)
}
?>
+1 -1
View File
@@ -65,7 +65,7 @@ $db = new basis_db();
if(isset($_REQUEST['submit']))
{
$client = new SoapClient(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime());
$client = new SoapClient(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime(true));
try
{
+1 -1
View File
@@ -34,7 +34,7 @@ require_once('stip.class.php');
ini_set("soap.wsdl_cache_enabled", "0");
$SOAPServer = new SoapServer(APP_ROOT."/soap/stip.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
$SOAPServer->addFunction("GetStipendienbezieherStip");
$SOAPServer->addFunction("SendStipendienbezieherStipError");
$SOAPServer->handle();
+1 -1
View File
@@ -97,7 +97,7 @@ $db = new basis_db();
if(isset($_REQUEST['submit']))
{
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime());
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
$username = $_REQUEST['username'];
$passwort = $_REQUEST['password'];
+1 -1
View File
@@ -95,7 +95,7 @@ $db = new basis_db();
if(isset($_REQUEST['submit']))
{
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime());
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
$username = $_REQUEST['username'];
$passwort = $_REQUEST['password'];
+1 -1
View File
@@ -26,7 +26,7 @@ require_once('../include/webservicerecht.class.php');
require_once('../include/studiensemester.class.php');
ini_set("soap.wsdl_cache_enabled", "0");
$SOAPServer = new SoapServer(APP_ROOT."/soap/student.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."/soap/student.wsdl.php?".microtime(true));
$SOAPServer->addFunction("getStudentFromUid");
$SOAPServer->addFunction("getStudentFromMatrikelnummer");
$SOAPServer->addFunction("getStudentFromStudiengang");
+1 -3
View File
@@ -27,7 +27,7 @@ header("Pragma: no-cache");
require_once('../config/vilesci.config.inc.php');
$SOAPServer = new SoapServer(APP_ROOT."soap/test.wsdl.php?".microtime());
$SOAPServer = new SoapServer(APP_ROOT."soap/test.wsdl.php?".microtime(true));
$SOAPServer->addFunction("myTest");
$SOAPServer->handle();
@@ -44,5 +44,3 @@ function myTest($foo)
}
?>