CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/functions/display.php
functions
generate_secimg

string generate_secimg(int $chars)

Returns a proper <img> tag with the security image as used at login.
The value of the image is stored in the session $CPG_SESS['gfx'][$id] where $id is the identifier to get the value in later stage (login submit)

Arguments

  • $chars [optional, default value = 6]

    the ammount of characters the code should have