smileys.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of GBook - PHP Guestbook.
  4. *
  5. * (c) Copyright 2016 by Klemen Stirn. All rights reserved.
  6. * http://www.phpjunkyard.com
  7. * http://www.phpjunkyard.com/php-guestbook-script.php
  8. *
  9. * For the full copyright and license agreement information, please view
  10. * the docs/index.html file that was distributed with this source code.
  11. */
  12. define('IN_SCRIPT',true);
  13. require('settings.php');
  14. require($settings['language']);
  15. /* Template path to use */
  16. $settings['tpl_path'] = './templates/'.$settings['template'].'/';
  17. /* Get file with emoticons settings */
  18. require($settings['tpl_path'].'emoticons.php');
  19. $list_emoticons = '';
  20. foreach ($settings['emoticons'] as $code => $image)
  21. {
  22. $list_emoticons .= '<a href="javascript:void(0)" onclick="Javascript:insertSmiley(\''.$code.'\');return false;"><img src="'.$settings['tpl_path'].'images/emoticons/'.$image.'" alt="'.$code.'" title="'.$code.'" class="gbook_emoticon" /></a> ';
  23. }
  24. require($settings['tpl_path'].'emoticons_popup.php');
  25. exit();