Last change
on this file since 162 was
76,
checked in by sebas, 16 years ago
|
plugin de abonomailman para enviar boletin electronico
basado sobre los cambios de sebas para arreglar los envios.
|
-
Property svn:executable set to
*
|
File size:
1.6 KB
|
Rev | Line | |
---|
[76] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * Abomailmans |
---|
| 4 | * MaZiaR - NetAktiv |
---|
| 5 | * tech@netaktiv.com |
---|
| 6 | * Printemps 2007 |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | function abomailmans_ajouter_boutons($boutons_admin) { |
---|
| 10 | // si on est admin |
---|
| 11 | if ($GLOBALS['connect_statut'] == "0minirezo" && $GLOBALS["connect_toutes_rubriques"] |
---|
| 12 | AND $GLOBALS["options"]=="avancees" |
---|
| 13 | AND (!isset($GLOBALS['meta']['activer_abomailmans']) OR $GLOBALS['meta']['activer_abomailmans']!="non") ) { |
---|
| 14 | |
---|
| 15 | // on voit le bouton dans la barre "naviguer" |
---|
| 16 | $boutons_admin['naviguer']->sousmenu["abomailmans_tous"]= new Bouton( |
---|
| 17 | "../"._DIR_PLUGIN_ABOMAILMANS."/img_pack/mailman.gif", // icone |
---|
| 18 | _T("abomailmans:abomailmans") //titre |
---|
| 19 | ); |
---|
| 20 | } |
---|
| 21 | return $boutons_admin; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | function abomailmans_header_prive($flux) { |
---|
| 26 | $exec = _request('exec'); |
---|
| 27 | $flux .="\n\n<!-- PLUGIN ABOMAILMANS -->\n"; |
---|
| 28 | $flux .= "<script type=\"text/javascript\" src=\"" ._DIR_PLUGIN_ABOMAILMANS . "js/jQuery_myScripts.js\"></script>\n"; |
---|
| 29 | if ($exec=="abomailmans_envoyer") { |
---|
| 30 | $flux .= "<script type=\"text/javascript\" src=\"" ._DIR_PLUGIN_ABOMAILMANS . "js/datePicker.js\"></script>\n"; |
---|
| 31 | $flux .= "<script type=\"text/javascript\" src=\"" ._DIR_PLUGIN_ABOMAILMANS . "js/datePicker_myScripts.js\"></script>\n"; |
---|
| 32 | $flux .= "<link rel=\"stylesheet\" href=\"" ._DIR_PLUGIN_ABOMAILMANS . "css/datePicker.css\" type=\"text/css\" />\n";} |
---|
| 33 | $flux .="<!-- / PLUGIN ABOMAILMANS -->\n\n"; |
---|
| 34 | return $flux; |
---|
| 35 | } |
---|
| 36 | function abomailmans_insert_head($flux) { |
---|
| 37 | $exec = _request('exec'); |
---|
| 38 | $flux .="\n\n<!-- PLUGIN ABOMAILMANS -->\n"; |
---|
| 39 | |
---|
| 40 | $flux .= "<link rel=\"stylesheet\" href=\"" ._DIR_PLUGIN_ABOMAILMANS . "css/abomailmans_style.css\" type=\"text/css\" />\n"; |
---|
| 41 | $flux .="<!-- / PLUGIN ABOMAILMANS -->\n\n"; |
---|
| 42 | return $flux; |
---|
| 43 | } |
---|
| 44 | ?> |
---|
| 45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.