Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -2,20 +2,19 @@
//:Please visit http://phpManufaktur.de for informations about kitForm!
/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: kit_form.php 11 2011-04-13 15:58:46Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
if (file_exists(WB_PATH.'/modules/kit_poll/class.frontend.php')) {
require_once(WB_PATH.'/modules/kit_poll/class.frontend.php');
$poll = new pollFrontend();
$params = $poll->getParams();
$params[pollFrontend::param_preset] = (isset($preset)) ? (int) $preset : 1;
$params[pollFrontend::param_css] = (isset($css) && (strtolower($css) == 'false')) ? false : true;
$params[pollFrontend::param_name] = (isset($name)) ? strtolower($name) : '';
$params[pollFrontend::param_name] = (isset($name)) ? strtolower($name) : '';
$params[pollFrontend::param_chart] = (isset($chart)) ? strtolower($chart) : pollFrontend::chart_pie;
$params[pollFrontend::param_chart_width] = (isset($chart_width)) ? (int) $chart_width : 300;
$params[pollFrontend::param_chart_height] = (isset($chart_height)) ? (int) $chart_height : 300;
@@ -1,12 +1,12 @@
/*
/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: backend.question.edit.htt 3 2011-06-14 19:03:38Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

.poll_error
{
border: 1px solid #ff0000;
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: backend.question.edit.htt 3 2011-06-14 19:03:38Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}

<div class="poll_error">
@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: backend.question.edit.htt 3 2011-06-14 19:03:38Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}

<div class="poll_message">
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: backend.config.htt 3 2011-05-05 15:06:12Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<div id="poll_container">
{if $question.poll_allowed == 1}
@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<div class="about">
{if isset($img_url)}
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<script type="text/javascript">
var WB_URL = '{$WB_URL}';
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id: backend.config.htt 3 2011-05-05 15:06:12Z phpmanufaktur $
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<div id="poll_config">
<form name="{$form_name}" action="{$form_action}" method="post">
@@ -1,11 +1,10 @@
{*
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<form name="poll_edit" action="{$form_action}" method="post">
<input type="hidden" name="{$action_name}" value="{$action_value}" />
@@ -1,30 +1,10 @@
{*
kitPoll

@author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
@link http://phpmanufaktur.de
@copyright 2011
@license GNU GPL (http://www.gnu.org/licenses/gpl.html)
@version $Id$

Es stehen folgende Parameter zur VerfĂĽgung:

$poll.id
$poll.name
$poll.header
$poll.question
$poll.access
$poll.date_start
$poll.date_end
$poll.status
$poll.show_results
$poll.release
$poll.timestamp
$poll.clicks
$poll.link_edit

Analog dazu stehen die Kopfzeilen $header fĂĽr die TabellenĂĽberschriften zur VerfĂĽgung.

* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*}
<h2>{$title}</h2>
<div class="{if $is_intro==1}intro{else}message{/if}">{$intro}</div>
@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -1,23 +1,32 @@
<?php

/**
Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
Copyright (c) 2010, Ralf Hertsch
Contact me: hertsch(at)berlin.de, http://phpManufaktur.de
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

This module is free software. You can redistribute it and/or modify it
under the terms of the GNU General Public License - version 2 or later,
as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
This module is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
$Id$
**/

header('Location: ../../../index.php');

?>
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -2,14 +2,31 @@

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

header('Location: ../../index.php');

?>
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -2,32 +2,50 @@

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

// for extended error reporting set to true!
if (!defined('KIT_DEBUG')) define('KIT_DEBUG', true);
require_once(WB_PATH.'/modules/kit_tools/debug.php');

// include GENERAL language file
if(!file_exists(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
}
else {
require_once(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php');
}

// include language file for kitPoll
if(!file_exists(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE'); // die Konstante gibt an in welcher Sprache kitPoll aktuell arbeitet
}
else {
@@ -38,7 +56,7 @@

if (!class_exists('dbconnectle')) require_once(WB_PATH.'/modules/dbconnect_le/include.php');
if (!class_exists('Dwoo')) require_once(WB_PATH.'/modules/dwoo/include.php');
if (!class_exists('kitContactInterface')) require_once(WB_PATH.'/modules/kit/class.interface.php');
if (!class_exists('kitContactInterface')) require_once(WB_PATH.'/modules/kit/class.interface.php');
if (!class_exists('kitToolsLibrary')) require_once(WB_PATH.'/modules/kit_tools/class.tools.php');
if (!class_exists('kitMail')) require_once(WB_PATH.'/modules/kit/class.mail.php');

@@ -1,29 +1,48 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

// include GENERAL language file
if(!file_exists(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
}
else {
require_once(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php');
}

// include language file for kitPoll
if(!file_exists(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
}
else {
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/' .LANGUAGE .'.php');
@@ -1,16 +1,40 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

if ('á' != "\xc3\xa1") {
// important: language files must be saved as UTF-8 (without BOM)
trigger_error('The language file <b>'.basename(__FILE__).'</b> is damaged, it must be saved <b>UTF-8</b> encoded!', E_USER_ERROR);
}

define('poll_access_kit', 'KIT Gruppe');
define('poll_access_public', 'Ă–ffentlich');
@@ -20,7 +44,7 @@

define('poll_desc_cfg_exec', 'kiPoll ausfĂĽhren = 1, nicht ausfĂĽhren = 0');
define('poll_desc_cfg_form_dlg_account', 'Der kitForm Dialog, der von kitPoll fĂĽr die Verwaltung der Kundendaten (Account) verwendet wird.');
define('poll_desc_cfg_form_dlg_login', 'Der kitForm Dialog, der von kitPoll fĂĽr die Anmeldung von Benutzern angezeigt wird.');
define('poll_desc_cfg_form_dlg_login', 'Der kitForm Dialog, der von kitPoll fĂĽr die Anmeldung von Benutzern angezeigt wird.');

define('poll_error_data_integrity_invalid', 'Die Daten sind unvollständig oder manipuliert. Programmausführung gestoppt.');
define('poll_error_invalid_poll_name', 'Zu der Umfrage <b>%s</b> wurden keine Daten gefunden!');
@@ -0,0 +1,32 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php
@@ -2,13 +2,13 @@

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// Mindestparameter gesetzt?
if (!isset($_POST['rowID']) || !isset($_POST['sorter_table'])) exit();
// Sorter ausgeschaltet?
@@ -23,7 +23,7 @@
switch ($sorter_table):
case 'mod_kit_poll':
// Frageboegen sortieren
$rowIDs = implode(',', $_POST['rowID']);
$rowIDs = implode(',', $_POST['rowID']);
$sorter_value = $_POST['sorter_value'];
$SQL = sprintf( "UPDATE %smod_kit_poll_table_sort SET sort_order='%s' WHERE sort_table='%s' AND sort_value='%s'",
TABLE_PREFIX, $rowIDs, $sorter_table, $sorter_value);
@@ -37,5 +37,5 @@
break;
default:
echo "no handling defined for: ".$_POST['sorter_table'];
endswitch;
endswitch;
?>
@@ -1,16 +1,35 @@
<?php

/**
* kitForm
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* kitPoll
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

require_once(WB_PATH.'/modules/'.basename(dirname(__FILE__)).'/class.backend.php');

@@ -1,31 +1,50 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

// include language file
if(!file_exists(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
}
else {
require_once(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php');
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', LANGUAGE);
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', LANGUAGE);
}

// include language file for kitPoll
if(!file_exists(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
}
else {
require_once(WB_PATH .'/modules/'.basename(dirname(__FILE__)).'/languages/' .LANGUAGE .'.php');
@@ -1,30 +1,50 @@
<?php

/**
* kitPoll
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
*
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
* @copyright 2011 - 2012
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/

// prevent this file from being accessed directly
if (!defined('WB_PATH')) die('invalid call of '.$_SERVER['SCRIPT_NAME']);

// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION'))
include(WB_PATH.'/framework/class.secure.php');
}
else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .= $oneback;
$level += 1;
}
if (file_exists($root.'/framework/class.secure.php')) {
include($root.'/framework/class.secure.php');
}
else {
trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
}
// end include class.secure.php

// include language file
if(!file_exists(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php')) {
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
require_once(WB_PATH .'/modules/kit_tools/languages/DE.php'); // Vorgabe: DE verwenden
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', 'DE');
}
else {
require_once(WB_PATH .'/modules/kit_tools/languages/' .LANGUAGE .'.php');
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', LANGUAGE);
if (!defined('KIT_POLL_LANGUAGE')) define('KIT_POLL_LANGUAGE', LANGUAGE);
}


global $admin;

$error = '';

// Prompt Errors
if (!empty($error)) {