Changeset 2467

Show
Ignore:
Timestamp:
09/15/06 04:41:56 (2 years ago)
Author:
qldrob
Message:

Limit number of PIN attempts in conferences, as suggested by #1055

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/conferences/functions.inc.php

    r2466 r2467  
    8181                                                // userpin -- must do always, otherwise if there is just an adminpin 
    8282                                                // there would be no way to get to the conference ! 
    83                                                 $ext->add($contextname, $roomnum, '', new ext_gotoif('$[foo${PIN} = foo'.$roomuserpin.']','USER')); 
     83                                                $ext->add($contextname, $roomnum, '', new ext_gotoif('$[x${PIN} = x'.$roomuserpin.']','USER')); 
    8484 
    8585                                                // admin pin -- exists 
    8686                                                if ($roomadminpin != '') { 
    87                                                         $ext->add($contextname, $roomnum, '', new ext_gotoif('$[${PIN} = '.$roomadminpin.']','ADMIN')); 
     87                                                        $ext->add($contextname, $roomnum, '', new ext_gotoif('$[x${PIN} = x'.$roomadminpin.']','ADMIN')); 
    8888                                                } 
    8989 
    9090                                                // pin invalid 
    91                                                 $ext->add($contextname, $roomnum, '', new ext_setvar('PINCOUNT','${PINCOUNT} + 1')); 
     91                                                $ext->add($contextname, $roomnum, '', new ext_setvar('PINCOUNT','$[${PINCOUNT}+1]')); 
    9292                                                $ext->add($contextname, $roomnum, '', new ext_gotoif('$[${PINCOUNT}>3]', "h")); 
    9393                                                $ext->add($contextname, $roomnum, '', new ext_playback('conf-invalidpin')); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads