Comments (4)
There are 2 ways of dealing with this:
1)
- create a subfolder where to store codes temporarily
- each code is generated and saved with unique name indicating it's contents.
perhaps based on a MD5 of the contents?
- these entries should be cleaned-up periodically, as it is a potential DoS
source.
Or the script, on each run, should do the clean-up, by deleting any generated
files, olders first, so that only a number of $cnt_qr_code files exist at any
one time.
2) the actual qr code generation be live, and the IMG tag in the page call this
script, which returns the contents of the QR code image.
This can increase CPU load on the server and be another type of DoS if not
implemented properly. Perhaps locking?
Original comment by andrixnet
on 1 Apr 2014 at 2:54
from opencaching-pl.
Issue 66 has been merged into this issue.
Original comment by wloczynutka
on 11 Apr 2014 at 9:25
from opencaching-pl.
The QR code page features a possibly hardcoded example URL
http://opencaching.pl/viewcache.php?wp=OP3C90
The example URL should be generated from $absolute_server_URI.
The image is a sample label with hardcoded opencaching.pl text as pixels.
The image template used for generating this label should follow a similar
structure as statpics, that is have several label images available and user
select which one to use. Among others, I'd like to have a pure QR code image,
no fancy anything around it.
Also, a link could be added to cache listing page to generate a qr code with
one click, rather then copy paste the URL.
Original comment by wloczynutka
on 11 Apr 2014 at 9:25
from opencaching-pl.
Hardcoded links are solved. Every node can make his own link or image via
settings.inc.php.
Example is in settingsDefault.inc.php.
Original comment by [email protected]
on 3 Dec 2014 at 6:29
from opencaching-pl.
Related Issues (20)
- Autoloader HOT 2
- modyfikator współrzędnych - błędy. HOT 2
- Wprowadzenie możliwości dodania kilku (2, 3...n ) współrzędnych bazowych HOT 4
- GeoPath indication (link) in My Neighbourhood HOT 3
- myn_newcaches.php - Wrong date format of never-found caches HOT 2
- problem z dodaniem założyciela geoŚcieżki HOT 1
- Cache description sticks to the main UI language HOT 2
- moja okolica - bug po dodaniu kolumny z geoŚcieżkami HOT 4
- Add a form to let COG change user's nick
- Invalid <groundspeak:attribute> entries in GPX files HOT 3
- No main menu on some pages HOT 14
- Improper date format used in log_cache_multi.php HOT 1
- GeoPath indication (icon-link) in other pages HOT 2
- Nie pozwalać na umieszczanie skrzynek w okolicach biegunów HOT 1
- zapis opisu geoŚcieżki do bazy HOT 1
- Changing settings.inc.php HOT 1
- mapka w widoku skrzynki - dodać wyświetlanie waypointów HOT 1
- Ujednolicenie tytułu wysyłanego maila / Unification of an e-mail subject's prefix
- refactoring search.php HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencaching-pl.