bug fix and documentation
This commit is contained in:
committed by
giandonato.inverso@edempg.it
parent
90a7b2890b
commit
15c84c0863
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[LIVE DEMO](https://giandonatoinverso.it/qrcode)
|
[LIVE DEMO](https://giandonatoinverso.it/qrcode)
|
||||||
|
|
||||||
[DOCUMENTATION](https://giandonatoinverso.it/documentation)
|
[DOCUMENTATION](https://giandonatoinverso.it/qrcode/documentation)
|
||||||
|
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UEYVHYZYCGYYN)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UEYVHYZYCGYYN)
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
<p><u>Follow these steps to install the script locally:</u></p>
|
<p><u>Follow these steps to install the script locally:</u></p>
|
||||||
<ol><strong>
|
<ol><strong>
|
||||||
<li>Clone the project from github</li>
|
<li>Clone the project from github</li>
|
||||||
|
<li>Use src/ folder as Document Root of your webserver</li>
|
||||||
<li>Edit config/environment.php with your database credential</li>
|
<li>Edit config/environment.php with your database credential</li>
|
||||||
<li>Launch install/setup.php file in your browser </li>
|
<li>Launch install/setup.php file in your browser </li>
|
||||||
<p>The script checks the requirements, write permissions on the generated folders and creates a database with sample data</p>
|
<p>The script checks the requirements, write permissions on the generated folders and creates a database with sample data</p>
|
||||||
|
|||||||
@@ -6,16 +6,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
$db = getDbInstance();
|
$db = getDbInstance();
|
||||||
$json = json_decode(file_get_contents('php://input'), true);
|
$json = json_decode(file_get_contents('php://input'), true);
|
||||||
|
|
||||||
if (isset($json['action'])) {
|
|
||||||
$action = filter_var($json['action'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
|
||||||
} else {
|
|
||||||
echo json_encode([
|
|
||||||
'data' => 'Missing action field in the request.',
|
|
||||||
'status' => 400
|
|
||||||
]);
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
$params = $json['params'];
|
$params = $json['params'];
|
||||||
$files = [];
|
$files = [];
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
if(isset($dynamic_qrcode['id_owner'])) {
|
if(isset($dynamic_qrcode['id_owner'])) {
|
||||||
$owner = $users_instance->getUser($dynamic_qrcode['id_owner']);
|
$owner = $users_instance->getUser($dynamic_qrcode['id_owner']);
|
||||||
echo "<option selected value=\"" . $owner["id"] . "\">" . $owner["username"] . "</option>";
|
echo "<option selected value=\"" . $owner["id"] . "\">" . $owner["username"] . "</option>";
|
||||||
|
echo "<option value=\"\">All</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$users = $users_instance->getAllUsers();
|
$users = $users_instance->getAllUsers();
|
||||||
|
|||||||
Reference in New Issue
Block a user