Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

http referer in /application/controllers/survey/index.php

  • fuez96
  • fuez96's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 5 months ago #142087 by fuez96
Hallo!
Ich würde gerne in meine "token already used message" einen http referer einbauen, um den token aus der URL zu bekommen.
Code:
      //  get all characters after "/" in url
      $url = $_SERVER['HTTP_REFERER'];
      $url_id = substr($url, strrpos($url, '/') + 1);
    echo $url_id;
Die Meldung ist ja in der /application/controllers/survey/index.php enthalten.

Allerdings wirft er mir keinen token aus, wenn ich das in eine function stelle.

Hat jemand eine Idee, woran das liegt, bzw. wie ich sonst an die Information ran kommen könnte?
The topic has been locked.
Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose