giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
244 stars 73 forks source link

general fixes, fixed database prefix during install #31

Closed 0xRenegade closed 1 year ago

0xRenegade commented 1 year ago

Fixes:

0xRenegade commented 1 year ago

@giandonatoinverso I noticed you closed the issue #30 after submitting this. Would you like to close it or would you welcome this feature?

Codacy errors have to do with Getenv() use and #prefix# bugging out the sql file checks. Other than that it's tested and works with+without prefixes.

EDIT: Nevermind, tested again and it seems i wasn't hitting some of the more manually entered queries from the database class's query function.

0xRenegade commented 1 year ago

Fixed this up after testing again, there were manually entered queries inside some lib (model) files, as well as index.php. The manually entered ones using $db->query() don't take into account the self::$prefix that is set inside class normally, because the queries aren't prepared.

giandonatoinverso commented 1 year ago

well done! thanks