[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: polls vote.php,1.9,1.9.2.1
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: polls vote.php,1.9,1.9.2.1 |
Date: |
Sun, 21 Apr 2002 15:19:18 -0400 |
Update of /cvsroot/phpgroupware/polls
In directory subversions:/tmp/cvs-serv29377/polls
Modified Files:
Tag: Version-0_9_14-branch
vote.php
Log Message:
Part of GNU Bug #100671.
Index: vote.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/vote.php,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -C2 -r1.9 -r1.9.2.1
*** vote.php 21 Dec 2001 14:59:46 -0000 1.9
--- vote.php 21 Apr 2002 19:19:16 -0000 1.9.2.1
***************
*** 14,18 ****
/* $Id$ */
! if ($HTTP_POST_VARS['submit'])
{
$GLOBALS['phpgw_info']['flags'] = array(
--- 14,18 ----
/* $Id$ */
! if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
$GLOBALS['phpgw_info']['flags'] = array(
***************
*** 26,46 ****
include('../header.inc.php');
! if ($HTTP_POST_VARS['submit'])
{
! if (verify_uservote($HTTP_POST_VARS['poll_id']))
{
//$GLOBALS['phpgw']->db->lock(array("phpgw_polls_data","phpgw_polls_user"));
$GLOBALS['phpgw']->db->query("UPDATE phpgw_polls_data
SET option_count=option_count+1 WHERE "
! . "poll_id='" . $HTTP_POST_VARS['poll_id'] . "'
AND vote_id='" . $HTTP_POST_VARS['poll_voteNr'] . "'",__LINE__,__FILE__);
! $GLOBALS['phpgw']->db->query("insert into
phpgw_polls_user values ('" . $HTTP_POST_VARS['poll_id'] . "','','"
. $GLOBALS['phpgw_info']['user']['account_id']
. "','" . time() . "')",__LINE__,__FILE__);
//$GLOBALS['phpgw']->db->unlock();
}
! Header('Location: ' .
$GLOBALS['phpgw']->link('/polls/vote.php','show_results=' .
$HTTP_POST_VARS['poll_id']));
$GLOBALS['phpgw']->common->phpgw_exit();
}
! if ($HTTP_GET_VARS['show_results'])
{
! poll_viewResults($HTTP_GET_VARS['show_results']);
}
$GLOBALS['phpgw']->common->phpgw_footer();
--- 26,46 ----
include('../header.inc.php');
! if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
! if (verify_uservote($GLOBALS['HTTP_POST_VARS']['poll_id']))
{
//$GLOBALS['phpgw']->db->lock(array("phpgw_polls_data","phpgw_polls_user"));
$GLOBALS['phpgw']->db->query("UPDATE phpgw_polls_data
SET option_count=option_count+1 WHERE "
! . "poll_id='" .
$GLOBALS['HTTP_POST_VARS']['poll_id'] . "' AND vote_id='" .
$GLOBALS['HTTP_POST_VARS']['poll_voteNr'] . "'",__LINE__,__FILE__);
! $GLOBALS['phpgw']->db->query("insert into
phpgw_polls_user values ('" . $GLOBALS['HTTP_POST_VARS']['poll_id'] . "','','"
. $GLOBALS['phpgw_info']['user']['account_id']
. "','" . time() . "')",__LINE__,__FILE__);
//$GLOBALS['phpgw']->db->unlock();
}
! Header('Location: ' .
$GLOBALS['phpgw']->link('/polls/vote.php','show_results=' .
$GLOBALS['HTTP_POST_VARS']['poll_id']));
$GLOBALS['phpgw']->common->phpgw_exit();
}
! if ($GLOBALS['HTTP_GET_VARS']['show_results'])
{
! poll_viewResults($GLOBALS['HTTP_GET_VARS']['show_results']);
}
$GLOBALS['phpgw']->common->phpgw_footer();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: polls vote.php,1.9,1.9.2.1,
Mark A Peters <address@hidden> <=