use random hash strings for Station URLs
This commit is contained in:
parent
d1faa5b4b1
commit
676c2386fd
3 changed files with 58 additions and 11 deletions
|
|
@ -35,12 +35,12 @@
|
|||
*
|
||||
* Redirect to a Character groups Quest Station.
|
||||
*
|
||||
* @param int $stationId ID of Character groups Quest Station
|
||||
* @param string $stationHash Hash of Character groups Quest Station
|
||||
*/
|
||||
public function cgqs($stationId)
|
||||
public function cgqs($stationHash)
|
||||
{
|
||||
// Get station
|
||||
$station = $this->Charactergroupsqueststations->getStationById($stationId);
|
||||
$station = $this->Charactergroupsqueststations->getStationByHash($stationHash);
|
||||
|
||||
// Get Character groups Quests
|
||||
$quest = $this->Charactergroupsquests->getQuestById($station['charactergroupsquest_id']);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
$station = $this->Charactergroupsqueststations->getStationByUrl($quest['id'], $stationUrl);
|
||||
|
||||
// Generate QR-code
|
||||
$url = $this->linker->link(array('qr', 'cgqs', $station['id']), 0, true, null, true, null, true);
|
||||
$url = $this->linker->link(array('qr', 'cgqs', $station['url']), 0, true, null, true, null, true);
|
||||
$file = $this->generateQRcode($url, $size);
|
||||
if(is_null($file)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue