| Recommend this page to a friend! |
| Packages of Ákos Nikházy | Random Thing Counter App | README.md | Download |
|
|||||||||||||||||||||
random-thing-counter-appThis is a very small side project, because I needed a custom counter app. You can add, delete and rename counters in it. And of course you can press the + button to count up. There is no count down. Sorry. WarningThis was made for my personal use, on a home server to use at home without any outside world access. If you put this online please keep it in mind that this app has zero security built in. The most you can do is htaccess things as described below, but I do not recommend to use this online. I made it in 2 hours and I will not update it ever. It could be a good starting point for you to make it bigger, better, safer or submit it as a homework and get a D. This thing doesn't even handle any errors. InstallJust copy the whole thing on your web server. There is an empty "count.db" file included too. That is yor SQLite database for this. Your webserver should have PDO SQLite installed and turned on (most have it by default) SetupThe user name and password are admin and admin. You can generate a new one by using the following code anywhere in MainController.php's handle() method. Or in index.php or wherever you find it good to print this out.
Then you should edit the auth.yzhk file with the data you just printed to look like this: <Files "auth.yzhk"> Order allow,deny Deny from all </Files> <Files "count.db"> </Files> |