Revision 271,
967 bytes
checked in by sacha, 16 years ago
(diff) |
Plugins first import.
SOME PLUGINS MAY BE BROKEN
|
Line | |
---|
1 | <?php |
---|
2 | include_once dirname(__FILE__).'/lib/class.notevilads.php'; |
---|
3 | |
---|
4 | function nea_install(&$settings,$override=false,$whattofix=null) |
---|
5 | { |
---|
6 | $override = (bool) $override; |
---|
7 | // Configuration par défaut |
---|
8 | $nea_settings = array( |
---|
9 | 'default'=>true, |
---|
10 | 'nothome'=>false, |
---|
11 | 'notajax'=>false, |
---|
12 | 'identifiers'=>'', |
---|
13 | 'cookiename'=>'nea_show', |
---|
14 | 'cookiedays'=>30, |
---|
15 | 'cookiepath'=>'/', |
---|
16 | 'cookiedome'=>$_SERVER['HTTP_HOST'], |
---|
17 | 'easycookie'=>true); |
---|
18 | $nea_ads = array(); |
---|
19 | |
---|
20 | // Enregistrement de la configuration |
---|
21 | $settings->setNamespace('notevilads'); |
---|
22 | if ($whattofix != 'ads') |
---|
23 | $settings->put('nea_settings',notEvilAds::storeSettings($nea_settings),'string','Not Evil Ads settings',$override); |
---|
24 | if ($whattofix != 'settings') |
---|
25 | $settings->put('nea_ads',notEvilAds::storeAds($nea_ads),'string','Not evil ads (code)',$override); |
---|
26 | |
---|
27 | // On annule l'installation forcée |
---|
28 | if ($settings->get('nea_forceinstall')) |
---|
29 | $settings->drop('nea_forceinstall'); |
---|
30 | |
---|
31 | // C'est bon ;-) |
---|
32 | return true; |
---|
33 | } |
---|
34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.