View Single Post
  #1  
Old 3rd January 2010, 01:52
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default [FIX] FTS 1.1 make poll work
Open /include/factory.php and find:

PHP Code:
    public function pollshow() {
        unset (
$pollexists); 
and change to:
PHP Code:
    public function pollshow() {
    global 
$CURUSER;
        unset (
$pollexists); 
find in same file:
PHP Code:
  $voted true;
  else
  
$voted $arr2
and change to:
PHP Code:
  $voted $arr2;
  else
  
$voted true
still in same file find:
PHP Code:
    print("<form method=post action=index.php>\n"); 
and cahnge to:
PHP Code:
    print("<form method=post action=\"".$_SERVER['PHP_SELF']."\">\n"); 
still in same file find:
PHP Code:
    public function pollwatch() {
        if (
$_SERVER["REQUEST_METHOD"] == "POST")

and change to:
PHP Code:
    public function pollwatch() {
global 
$CURUSER;
        if (
$_SERVER["REQUEST_METHOD"] == "POST"
it think that was all


Reply With Quote
The Following 3 Users Say Thank You to benjaminbih For This Useful Post:
Edgein (3rd January 2010), Phogo (8th January 2010), yoligim (3rd January 2010)