Rev | Line | |
---|
[24215] | 1 | <?php |
---|
| 2 | defined('EASYCAPTCHA_ID') or die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | function easycaptcha_install() |
---|
| 5 | { |
---|
| 6 | global $conf; |
---|
| 7 | |
---|
| 8 | if (empty($conf['EasyCaptcha'])) |
---|
| 9 | { |
---|
| 10 | $easycaptcha_default_config = array( |
---|
| 11 | 'activate_on' => array( |
---|
| 12 | 'picture' => true, |
---|
| 13 | 'category' => true, |
---|
| 14 | 'register' => true, |
---|
| 15 | 'contactform' => true, |
---|
| 16 | 'guestbook' => true, |
---|
| 17 | ), |
---|
| 18 | 'comments_action' => 'reject', |
---|
| 19 | 'challenge' => 'random', |
---|
| 20 | 'drag' => array( |
---|
| 21 | 'theme' => 'icons', |
---|
| 22 | 'size' => 50, |
---|
| 23 | 'nb' => 5, |
---|
| 24 | 'bg1' => '#F7F7F7', |
---|
| 25 | 'bg2' => '#E5E5E5', |
---|
| 26 | 'obj' => '#FFFFFF', |
---|
| 27 | 'sel' => '#C8FF96', |
---|
| 28 | 'bd1' => '#DDDDDD', |
---|
| 29 | 'bd2' => '#555555', |
---|
| 30 | 'txt' => '#222222', |
---|
| 31 | ), |
---|
| 32 | 'tictac' => array( |
---|
| 33 | 'size' => 128, |
---|
| 34 | 'bg1' => '#F7F7F7', |
---|
| 35 | 'bg2' => '#E5E5E5', |
---|
| 36 | 'bd' => '#DDDDDD', |
---|
| 37 | 'obj' => '#00B4F7', |
---|
| 38 | 'sel' => '#F7B400', |
---|
| 39 | ), |
---|
| 40 | ); |
---|
| 41 | |
---|
| 42 | $conf['EasyCaptcha'] = serialize($easycaptcha_default_config); |
---|
| 43 | conf_update_param('EasyCaptcha', $conf['EasyCaptcha']); |
---|
| 44 | } |
---|
| 45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.