/voting/voting_image_options.php

https://github.com/rhempen/cms · PHP · 115 lines · 36 code · 42 blank · 37 comment · 0 complexity · 7e45e019abe8def89b093d13c1dcb8a5 MD5 · raw file

  1. <?php
  2. /*****************************************************
  3. ** Title........: Configuration File
  4. ** Filename.....: config.php
  5. ** Author.......: Ralf Stadtaus
  6. ** Homepage.....: http://www.stadtaus.com/
  7. ** Contact......: http://www.stadtaus.com/forum/
  8. ** Notes........: This file contains the configuration
  9. *****************************************************/
  10. /*****************************************************
  11. **
  12. ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
  13. ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
  14. ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. ** FITNESS FOR A PARTICULAR PURPOSE AND
  16. ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  17. ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
  18. ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  19. ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  20. ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  21. ** OTHER DEALINGS IN THE SOFTWARE.
  22. **
  23. *****************************************************/
  24. ini_set('memory_limit', '8M');
  25. /*****************************************************
  26. ** Script configuration - for the documentation of
  27. ** following variables please take a look at the
  28. ** documentation file in folder 'docu'.
  29. *****************************************************/
  30. $vote_title = 'Favourite Smiley';
  31. $vote_text = 'What is your favourite smiley?';
  32. $vote_option[] = './templates/smilies/1.gif';
  33. $vote_option[] = './templates/smilies/2.gif';
  34. $vote_option[] = './templates/smilies/3.gif';
  35. $vote_option[] = './templates/smilies/4.gif';
  36. $vote_option[] = './templates/smilies/5.gif';
  37. $vote_option[] = './templates/smilies/6.gif';
  38. $vote_option[] = './templates/smilies/7.gif';
  39. $intern_vote_name = 'smilies';
  40. $form_field_type = 'radio_image'; // (radio, select, radio_image)
  41. $bar_image_name = 'red.gif';
  42. $max_bar_width = '200'; // (pixel)
  43. $check_ip_address = 'no'; // (yes/no)
  44. $check_cookie = 'no';
  45. $check_referrers = 'no';
  46. $check_email = 'yes';
  47. $check_captcha = 'no';
  48. $language = 'en'; // (de, en, hu, nl, no, pl, sv, tr)
  49. $script_root = './';
  50. $path['templates'] = $script_root . 'templates/';
  51. $path['logfiles'] = $script_root . 'logfiles/';
  52. $tmpl['layout'] = 'voting_image_options.tpl.html';
  53. $log['logfile'] = 'log.txt';
  54. $show_error_messages = 'yes';
  55. /*****************************************************
  56. ** Add here further words, text, variables and stuff
  57. ** that you want to appear in the template.
  58. *****************************************************/
  59. $add_text = array(
  60. 'txt_additional' => 'Additional', // {txt_additional}
  61. 'txt_more' => 'More', // {txt_more}
  62. 'txt_script_name' => 'Voting Script'
  63. );
  64. /*****************************************************
  65. ** Send safety signal to included files
  66. *****************************************************/
  67. define('IN_SCRIPT', 'true');
  68. /*****************************************************
  69. ** Include script code
  70. *****************************************************/
  71. include($script_root . 'inc/core.inc.php');
  72. echo $v4g_output;
  73. ?>