Merge branch 'Testing' of https://git.bib.de/Subway-Surfers/VPR_Schnittstelle into Testing
This commit is contained in:
commit
d4a67f0a30
@ -115,6 +115,27 @@ class BenutzerModel extends Database
|
||||
}
|
||||
|
||||
|
||||
public function nextId()
|
||||
{
|
||||
|
||||
$pdo = $this->linkDB();
|
||||
|
||||
$sql = "SELECT `auto_increment` FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'Benutzerkonto'; ";
|
||||
|
||||
try {
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->execute();
|
||||
} catch (\PDOException $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = $stmt->fetchALL(\PDO::FETCH_ASSOC);
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -15,11 +15,15 @@
|
||||
file_get_contents('php://input') die übergebenen json-Strings (für PUT/POST-Requests)
|
||||
*/
|
||||
spl_autoload_register(function ($className) {
|
||||
if (substr($className, 0, 4) !== 'ppb\\') { return; }
|
||||
if (substr($className, 0, 4) !== 'ppb\\') {
|
||||
return;
|
||||
}
|
||||
|
||||
$fileName = __DIR__ . '/' . str_replace('\\', DIRECTORY_SEPARATOR, substr($className, 4)) . '.php';
|
||||
|
||||
if (file_exists($fileName)) { include $fileName; }
|
||||
if (file_exists($fileName)) {
|
||||
include $fileName;
|
||||
}
|
||||
});
|
||||
|
||||
$endpoint = explode('/', trim($_SERVER['PATH_INFO'], '/'));
|
||||
|
Loading…
Reference in New Issue
Block a user