/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
- <?php
- /*****************************************************
- ** Title........: Configuration File
- ** Filename.....: config.php
- ** Author.......: Ralf Stadtaus
- ** Homepage.....: http://www.stadtaus.com/
- ** Contact......: http://www.stadtaus.com/forum/
- ** Notes........: This file contains the configuration
- *****************************************************/
- /*****************************************************
- **
- ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
- ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
- ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- ** FITNESS FOR A PARTICULAR PURPOSE AND
- ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
- ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
- ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- ** OTHER DEALINGS IN THE SOFTWARE.
- **
- *****************************************************/
- ini_set('memory_limit', '8M');
- /*****************************************************
- ** Script configuration - for the documentation of
- ** following variables please take a look at the
- ** documentation file in folder 'docu'.
- *****************************************************/
- $vote_title = 'Favourite Smiley';
- $vote_text = 'What is your favourite smiley?';
- $vote_option[] = './templates/smilies/1.gif';
- $vote_option[] = './templates/smilies/2.gif';
- $vote_option[] = './templates/smilies/3.gif';
- $vote_option[] = './templates/smilies/4.gif';
- $vote_option[] = './templates/smilies/5.gif';
- $vote_option[] = './templates/smilies/6.gif';
- $vote_option[] = './templates/smilies/7.gif';
- $intern_vote_name = 'smilies';
- $form_field_type = 'radio_image'; // (radio, select, radio_image)
- $bar_image_name = 'red.gif';
- $max_bar_width = '200'; // (pixel)
- $check_ip_address = 'no'; // (yes/no)
- $check_cookie = 'no';
- $check_referrers = 'no';
- $check_email = 'yes';
- $check_captcha = 'no';
- $language = 'en'; // (de, en, hu, nl, no, pl, sv, tr)
- $script_root = './';
- $path['templates'] = $script_root . 'templates/';
- $path['logfiles'] = $script_root . 'logfiles/';
- $tmpl['layout'] = 'voting_image_options.tpl.html';
- $log['logfile'] = 'log.txt';
- $show_error_messages = 'yes';
- /*****************************************************
- ** Add here further words, text, variables and stuff
- ** that you want to appear in the template.
- *****************************************************/
- $add_text = array(
- 'txt_additional' => 'Additional', // {txt_additional}
- 'txt_more' => 'More', // {txt_more}
- 'txt_script_name' => 'Voting Script'
- );
- /*****************************************************
- ** Send safety signal to included files
- *****************************************************/
- define('IN_SCRIPT', 'true');
- /*****************************************************
- ** Include script code
- *****************************************************/
- include($script_root . 'inc/core.inc.php');
- echo $v4g_output;
- ?>