1 | <?php |
---|
2 | |
---|
3 | // fmp3_options.php |
---|
4 | |
---|
5 | // $LastChangedRevision: 25758 $ |
---|
6 | // $LastChangedBy: ventrea@gmail.com $ |
---|
7 | // $LastChangedDate: 2009-01-05 09:52:59 +0000 (Mon, 05 Jan 2009) $ |
---|
8 | |
---|
9 | /***************************************************** |
---|
10 | Copyright (C) 2008 Christian PAULUS |
---|
11 | cpaulus@quesaco.org - http://www.quesaco.org/ |
---|
12 | /***************************************************** |
---|
13 | |
---|
14 | This file is part of Fmp3. |
---|
15 | |
---|
16 | Fmp3 is free software; you can redistribute it and/or modify |
---|
17 | it under the terms of the GNU General Public License as published by |
---|
18 | the Free Software Foundation; either version 2 of the License, or |
---|
19 | (at your option) any later version. |
---|
20 | |
---|
21 | Fmp3 is distributed in the hope that it will be useful, |
---|
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
24 | GNU General Public License for more details. |
---|
25 | |
---|
26 | You should have received a copy of the GNU General Public License |
---|
27 | along with Fmp3; if not, write to the Free Software |
---|
28 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
29 | |
---|
30 | /***************************************************** |
---|
31 | |
---|
32 | Ce fichier est un des composants de Fmp3. |
---|
33 | |
---|
34 | Fmp3 est un programme libre, vous pouvez le redistribuer et/ou le modifier |
---|
35 | selon les termes de la Licence Publique Generale GNU publiée par |
---|
36 | la Free Software Foundation (version 2 ou bien toute autre version ulterieure |
---|
37 | choisie par vous). |
---|
38 | |
---|
39 | Fmp3 est distribué car potentiellement utile, mais SANS AUCUNE GARANTIE, |
---|
40 | ni explicite ni implicite, y compris les garanties de commercialisation ou |
---|
41 | d'adaptation dans un but spécifique. Reportez-vous à la Licence Publique Générale GNU |
---|
42 | pour plus de details. |
---|
43 | |
---|
44 | Vous devez avoir reçu une copie de la Licence Publique Generale GNU |
---|
45 | en même temps que ce programme ; si ce n'est pas le cas, ecrivez à la |
---|
46 | Free Software Foundation, Inc., |
---|
47 | 59 Temple Place, Suite 330, Boston, MA 02111-1307, Etats-Unis. |
---|
48 | |
---|
49 | *****************************************************/ |
---|
50 | |
---|
51 | include_spip('inc/fmp3_api_globales'); |
---|
52 | |
---|
53 | define("_FMP3_PREFIX", "fmp3"); |
---|
54 | |
---|
55 | if(!defined('_DIR_PLUGIN_FMP3')) { |
---|
56 | $p = explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
---|
57 | define('_DIR_PLUGIN_FMP3',(_DIR_PLUGINS.end($p)).'/'); |
---|
58 | } |
---|
59 | |
---|
60 | define("_DIR_FMP3_IMAGES", _DIR_PLUGIN_FMP3."images/"); |
---|
61 | define("_FMP3_TYPEDOC", "audio/mpeg"); |
---|
62 | define("_FMP3_JQUERY_JS", "javascript/jquery.fmp3.min.js"); |
---|
63 | |
---|
64 | define("_FMP3_PREFERENCES_DEFAULT", |
---|
65 | serialize( |
---|
66 | array( |
---|
67 | 'file' => "" // chemin URL du fichier mp3 |
---|
68 | , 'autoStart' => "false" // toggle for autostarting the mp3 > true or false |
---|
69 | , 'repeatPlay' => "false" // toggle for repeating the mp3 > true or false |
---|
70 | , 'songVolume' => "90" // toggle for the volume of the song > 0 to 100 |
---|
71 | , 'backColor' => "eeeeee" // toggle for the backgroundcolor of the player > hex code |
---|
72 | , 'frontColor' => "333333" // toggle for the backgroundcolor of the player > hex code |
---|
73 | , 'inherit' => "false" // hérite le son du parent si absent |
---|
74 | ) |
---|
75 | ) |
---|
76 | ); |
---|
77 | |
---|
78 | define("_FMP3_META_PREFERENCES", 'fmp3_preferences'); |
---|
79 | |
---|
80 | ?> |
---|