This repository was archived by the owner on Sep 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 define ('DATABASE_NAME ' , Getenv ('DATABASE_NAME ' ));
1212 define ('DATABASE_USER ' , Getenv ('DATABASE_USER ' ));
1313 define ('DATABASE_PASSWORD ' , Getenv ('DATABASE_PASSWORD ' ));
14- define ('DATABASE_PREFIX ' , Getenv ('DATABASE_PREFIX ' )); // This must have a trailing underscore. Example: qr_
14+ define ('DATABASE_PREFIX ' , Getenv ('DATABASE_PREFIX ' ));
1515 define ('DATABASE_CHARSET ' , Getenv ('DATABASE_CHARSET ' ));
1616 define ('TYPE ' , Getenv ('TYPE ' ));
1717 define ('BASE_URL ' , Getenv ('BASE_URL ' ));
2121 define ('DATABASE_NAME ' , "qrcode " );
2222 define ('DATABASE_USER ' , "root " );
2323 define ('DATABASE_PASSWORD ' , "root " );
24- define ('DATABASE_PREFIX ' , "" ); // This must have a trailing underscore. Example: qr_
24+ define ('DATABASE_PREFIX ' , "qr_ " );
2525 define ('DATABASE_CHARSET ' , "utf8 " );
2626}
2727/*
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ class Qrcode {
1010 */
1111 public function __construct ($ type ) {
1212 if ($ type === "static " ) {
13- $ this ->table = DATABASE_PREFIX . "static_qrcodes " ;
13+ $ this ->table = "static_qrcodes " ;
1414 $ this ->redirect_url = "static_qrcodes.php " ;
1515 } else if ($ type === "dynamic " ) {
16- $ this ->table = DATABASE_PREFIX . "dynamic_qrcodes " ;
16+ $ this ->table = "dynamic_qrcodes " ;
1717 $ this ->redirect_url = "dynamic_qrcodes.php " ;
1818 } else {
1919 $ this ->redirect_url = "index.php " ;
You can’t perform that action at this time.
0 commit comments