donations.php

cleanup
This commit is contained in:
schrom01 2023-02-16 20:51:20 +01:00
parent e506a864bf
commit 32df2cde0a
1 changed files with 4 additions and 4 deletions

View File

@ -4,14 +4,14 @@ require $_SERVER['DOCUMENT_ROOT'] . '/databaseConnection/databaseConnection.php'
$conn = getDatabaseConnection(); $conn = getDatabaseConnection();
$sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'apiKey'"; $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'apiKey'";
$result = $conn->query($sql); $result = $conn->query($sql);
//$dolibarrAPIKey = mysql_fetch_array($result)["value"]; $dolibarrAPIKey = $result->fetch_assoc()["value"];
$dolibarrAPIKey = "eM6A2bQP36Q7dhELq02qnD7sY4do5KRa"; //$dolibarrAPIKey = "eM6A2bQP36Q7dhELq02qnD7sY4do5KRa";
$conn = getDatabaseConnection(); $conn = getDatabaseConnection();
$sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'url'"; $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'url'";
$result = $conn->query($sql); $result = $conn->query($sql);
//$dolibarrURL = mysql_fetch_array($result)["value"]; $dolibarrURL = $result->fetch_assoc()["value"];
$dolibarrURL = "https://dolibarr.romanschenk.ch/"; //$dolibarrURL = "https://dolibarr.romanschenk.ch/";
function createDonation($amount, $dolibarrURL, $dolibarrAPIKey) { function createDonation($amount, $dolibarrURL, $dolibarrAPIKey) {