Vergleich polls.php - 1.2.0 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: polls.php 2164 2006-08-30 06:17:49Z chris $

 * $Id: polls.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 41Zeile 41
		$mybb->input['action'] = "newpoll";
}
}

		$mybb->input['action'] = "newpoll";
}
}

 


if($mybb->input['action'] == "newpoll")
{
// Form for new poll

if($mybb->input['action'] == "newpoll")
{
// Form for new poll

Zeile 59Zeile 60
	}
// Make navigation
build_forum_breadcrumb($fid);

	}
// Make navigation
build_forum_breadcrumb($fid);

	add_breadcrumb($thread['subject'], "showthread.php?tid=$thread[tid]");

	add_breadcrumb(htmlspecialchars_uni($thread['subject']), "showthread.php?tid={$thread['tid']}");

	add_breadcrumb($lang->nav_postpoll);

// No permission if: Not thread author; not moderator; no forum perms to view, post threads, post polls

	add_breadcrumb($lang->nav_postpoll);

// No permission if: Not thread author; not moderator; no forum perms to view, post threads, post polls

Zeile 95Zeile 96

$postoptions = $mybb->input['postoptions'];
if($postoptions['multiple'] == "yes")


$postoptions = $mybb->input['postoptions'];
if($postoptions['multiple'] == "yes")

	{

	{

		$postoptionschecked['multiple'] = 'checked="checked"';
}
if($postoptions['public'] == "yes")

		$postoptionschecked['multiple'] = 'checked="checked"';
}
if($postoptions['public'] == "yes")

Zeile 116Zeile 117
	if($mybb->input['timeout'] > 0)
{
$timeout = intval($mybb->input['timeout']);

	if($mybb->input['timeout'] > 0)
{
$timeout = intval($mybb->input['timeout']);

	}

	}

	else
{
$timeout = 0;
}


	else
{
$timeout = 0;
}


	$plugins->run_hooks("polls_newpoll_end");


	$plugins->run_hooks("polls_newpoll_end");


	eval("\$newpoll = \"".$templates->get("polls_newpoll")."\";");
output_page($newpoll);
}

	eval("\$newpoll = \"".$templates->get("polls_newpoll")."\";");
output_page($newpoll);
}

 


if($mybb->input['action'] == "do_newpoll" && $mybb->request_method == "post")
{

if($mybb->input['action'] == "do_newpoll" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("polls_do_newpoll_start");

$query = $db->simple_select(TABLE_PREFIX."threads", "*", "tid='".intval($mybb->input['tid'])."'");

	$plugins->run_hooks("polls_do_newpoll_start");

$query = $db->simple_select(TABLE_PREFIX."threads", "*", "tid='".intval($mybb->input['tid'])."'");

Zeile 265Zeile 270

// Make navigation
build_forum_breadcrumb($fid);


// Make navigation
build_forum_breadcrumb($fid);

	add_breadcrumb($thread['subject'], "showthread.php?tid=$tid");

	add_breadcrumb(htmlspecialchars_uni($thread['subject']), "showthread.php?tid=$tid");

	add_breadcrumb($lang->nav_editpoll);



	add_breadcrumb($lang->nav_editpoll);



Zeile 397Zeile 402
}
if($mybb->input['action'] == "do_editpoll" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_editpoll" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("polls_do_editpoll_start");

$query = $db->simple_select(TABLE_PREFIX."polls", "*", "pid='".intval($mybb->input['pid'])."'");

	$plugins->run_hooks("polls_do_editpoll_start");

$query = $db->simple_select(TABLE_PREFIX."polls", "*", "pid='".intval($mybb->input['pid'])."'");

Zeile 554Zeile 562

// Make navigation
build_forum_breadcrumb($fid);


// Make navigation
build_forum_breadcrumb($fid);

	add_breadcrumb($thread['subject'], "showthread.php?tid=$thread[tid]");

	add_breadcrumb(htmlspecialchars_uni($thread['subject']), "showthread.php?tid={$thread['tid']}");

	add_breadcrumb($lang->nav_pollresults);

$voters = array();

	add_breadcrumb($lang->nav_pollresults);

$voters = array();

Zeile 564Zeile 572
		SELECT v.*, u.username 
FROM ".TABLE_PREFIX."pollvotes v
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=v.uid)

		SELECT v.*, u.username 
FROM ".TABLE_PREFIX."pollvotes v
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=v.uid)

		WHERE v.pid='$poll[pid]' 

		WHERE v.pid='{$poll['pid']}' 

		ORDER BY u.username
");
while($voter = $db->fetch_array($query))

		ORDER BY u.username
");
while($voter = $db->fetch_array($query))

Zeile 665Zeile 673

$plugins->run_hooks("polls_showresults_end");



$plugins->run_hooks("polls_showresults_end");


 
	$poll['question'] = htmlspecialchars_uni($poll['question']);

	eval("\$showresults = \"".$templates->get("polls_showresults")."\";");
output_page($showresults);
}

	eval("\$showresults = \"".$templates->get("polls_showresults")."\";");
output_page($showresults);
}

Zeile 718Zeile 727
	elseif(!$mybb->user['uid'])
{
// Give a cookie to guests to inhibit revotes

	elseif(!$mybb->user['uid'])
{
// Give a cookie to guests to inhibit revotes

		my_setcookie("pollvotes[$poll[pid]]", '1', 'yes');

		my_setcookie("pollvotes[{$poll['pid']}]", '1');

	}
$votesql = '';
$now = time();

	}
$votesql = '';
$now = time();