/display_vvcodes.php

https://github.com/tisoft/xtcmodified · PHP · 31 lines · 12 code · 3 blank · 16 comment · 2 complexity · 4c8d142f7dc127f03781f657b82d9a4e MD5 · raw file

  1. <?php
  2. /* -----------------------------------------------------------------------------------------
  3. $Id$
  4. xtcModified - community made shopping
  5. http://www.xtc-modified.org
  6. Copyright (c) 2010 xtcModified
  7. -----------------------------------------------------------------------------------------
  8. based on:
  9. (c) 2006 XT-Commerce
  10. Released under the GNU General Public License
  11. ---------------------------------------------------------------------------------------*/
  12. //BOF - GTB - 2011-04-04 - only include configure to minimize Problems with Captcha
  13. //require ('includes/application_top.php');
  14. if (file_exists('includes/local/configure.php')) {
  15. include ('includes/local/configure.php');
  16. } else {
  17. include ('includes/configure.php');
  18. }
  19. //EOF - GTB - 2011-04-04 - only include configure to minimize Problems with Captcha
  20. require_once (DIR_FS_INC.'xtc_render_vvcode.inc.php');
  21. require_once (DIR_FS_INC.'xtc_random_charcode.inc.php');
  22. $visual_verify_code = xtc_random_charcode(6);
  23. $_SESSION['vvcode'] = $visual_verify_code;
  24. $vvimg = vvcode_render_code($visual_verify_code);
  25. ?>