Changeset 2480
- Timestamp:
- 07/16/10 13:53:37 (13 years ago)
- Location:
- plugins/dcscrobbler
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcscrobbler/CHANGELOG
r588 r2480 1 2.0.1 - 10/07/2010 par Oum 2 * Compatibilité avec Dotclear 2.2 3 1 4 2.0 - 08/12/2008 par Oum 2 5 * Prêt pour DotAddict.org -
plugins/dcscrobbler/_admin.php
r1666 r2480 15 15 'index.php?pf=dcscrobbler/icon.png', 16 16 preg_match('/plugin.php\?p=dcscrobbler(&.*)?$/',$_SERVER['REQUEST_URI']), 17 $core->auth->check('usage, 17 $core->auth->check('usage,contentadmin', $core->blog->id)); 18 18 19 require dirname(__FILE__).'/_widgets.php'; 19 require dirname(__FILE__).'/_widgets.php'; 20 20 21 21 ?> -
plugins/dcscrobbler/_define.php
r1666 r2480 18 18 /* Description*/ "Displays recently played tracks with Last.fm", 19 19 /* Author */ "Boris de Laage, Oum", 20 /* Version */ '2.0 ',20 /* Version */ '2.0.1', 21 21 /* Permissions */ 'usage,contentadmin' 22 22 ); -
plugins/dcscrobbler/_public.php
r1666 r2480 26 26 global $core; 27 27 28 $core->blog->settings-> setNameSpace('dcscrobbler');29 $uname = $core->blog->settings-> get('dcs_username');28 $core->blog->settings->addNameSpace('dcscrobbler'); 29 $uname = $core->blog->settings->dcscrobbler->get('dcs_username'); 30 30 31 31 if ($w->homeonly && $core->url->type != 'default') { -
plugins/dcscrobbler/_widgets.php
r579 r2480 21 21 global $core; 22 22 23 $core->blog->settings-> setNameSpace('dcscrobbler');23 $core->blog->settings->addNameSpace('dcscrobbler'); 24 24 $tmp = array(); 25 foreach ($core->blog->settings->d umpSettings() as $k => $v)25 foreach ($core->blog->settings->dcscrobbler->dumpSettings() as $k => $v) 26 26 $tmp[$v['ns']][$k] = $v; 27 27 … … 29 29 if ($ns === 'dcscrobbler') 30 30 foreach ($s as $k => $v) 31 $core->blog->settings->d rop($k);31 $core->blog->settings->dcscrobbler->drop($k); 32 32 $core->blog->triggerBlog(); 33 33 } -
plugins/dcscrobbler/class.dc.dcscrobbler.php
r1666 r2480 39 39 global $core; 40 40 41 $core->blog->settings-> setNameSpace('dcscrobbler');42 $username = $core->blog->settings-> get('dcs_username');41 $core->blog->settings->addNameSpace('dcscrobbler'); 42 $username = $core->blog->settings->dcscrobbler->get('dcs_username'); 43 43 44 44 $file = sprintf(self::$cache_file,DC_TPL_CACHE, $username, $data); -
plugins/dcscrobbler/index.php
r587 r2480 19 19 $res = ''; 20 20 21 $core->blog->settings-> setNameSpace('dcscrobbler');21 $core->blog->settings->addNameSpace('dcscrobbler'); 22 22 23 23 // Premiere config 24 if (!$core->blog->settings-> get('dcs_cache_validity')) {25 $core->blog->settings-> put('dcs_username', '', 'string', __('Last.fm username'));26 $core->blog->settings-> put('dcs_cache_validity', 120, 'integer', __('Cache validity'));24 if (!$core->blog->settings->dcscrobbler->get('dcs_cache_validity')) { 25 $core->blog->settings->dcscrobbler->put('dcs_username', '', 'string', __('Last.fm username')); 26 $core->blog->settings->dcscrobbler->put('dcs_cache_validity', 120, 'integer', __('Cache validity')); 27 27 28 28 $core->blog->triggerBlog(); … … 34 34 35 35 $tmp = array(); 36 foreach ($core->blog->settings->d umpSettings() as $k => $v)36 foreach ($core->blog->settings->dcscrobbler->dumpSettings() as $k => $v) 37 37 $tmp[$v['ns']][$k] = $v; 38 38 … … 40 40 if ($ns === 'dcscrobbler') 41 41 foreach ($s as $k => $v) 42 $core->blog->settings->d rop($k);42 $core->blog->settings->dcscrobbler->drop($k); 43 43 $core->blog->triggerBlog(); 44 44 } … … 50 50 if (!empty($_POST['dcss']) && is_array($_POST['dcss'])) { 51 51 52 $core->blog->settings-> put('dcs_username', html::escapeHTML($_POST['dcss']['dcs_username']));53 $core->blog->settings-> put('dcs_cache_validity', $_POST['dcss']['dcs_cache_validity']);52 $core->blog->settings->dcscrobbler->put('dcs_username', html::escapeHTML($_POST['dcss']['dcs_username'])); 53 $core->blog->settings->dcscrobbler->put('dcs_cache_validity', $_POST['dcss']['dcs_cache_validity']); 54 54 55 55 $core->blog->triggerBlog(); … … 60 60 61 61 /* Récupération de la configuration */ 62 $dcs['dcs_username'] = $core->blog->settings-> get('dcs_username');63 $dcs['dcs_cache_validity'] = $core->blog->settings-> get('dcs_cache_validity');62 $dcs['dcs_username'] = $core->blog->settings->dcscrobbler->get('dcs_username'); 63 $dcs['dcs_cache_validity'] = $core->blog->settings->dcscrobbler->get('dcs_cache_validity'); 64 64 65 65 … … 127 127 '<div id="about" title="'.__('About').'" class="multi-part">'. 128 128 '<h2 style="background: url(index.php?pf=dcscrobbler/icon.png) no-repeat 0 0.25em; padding: 5px 0 5px 22px; margin-left: 20px;">'.__('dcScrobbler').'</h2>'. 129 '<ul style="list-style: none; line-height: 30px; font-weight: bold;"><li>version 2.0 </li>'.129 '<ul style="list-style: none; line-height: 30px; font-weight: bold;"><li>version 2.0.1</li>'. 130 130 '<li>'.__('Created by').' : <a href="http://bdelaage.free.fr/">Boris de Laage</a></li>'. 131 131 '<li>'.__('Help and Support').' : <a href="http://forum.dotclear.net/viewtopic.php?id=20711">http://forum.dotclear.net/viewtopic.php?id=20711</a></li>'. 132 '<li>'.__('Sources').' : <a href="http:// code.google.com/p/dcplugins/source/browse/dcscrobbler">http://code.google.com/p/dcplugins/source/browse/dcscrobbler</a></li>'.132 '<li>'.__('Sources').' : <a href="http://lab.dotclear.org/browser/plugins/dcscrobbler">http://lab.dotclear.org/browser/plugins/dcscrobbler</a></li>'. 133 133 '<li><a style="border:none;" href="http://www.audioscrobbler.net/"><img style="margin-top:20px;" src="index.php?pf=dcscrobbler/lastfm_button.png" alt="'.__('Powered by Audioscrobbler').'" title="'.__('Powered by Audioscrobbler').'"/></a></li></ul>'. 134 134 '</div>'; -
plugins/dcscrobbler/locales/fr/help.html
r579 r2480 19 19 <p>Le widget dcScrobbler vous permet d'afficher sur votre blog les morceaux que vous écoutez avec votre lecteur habituel.</p> 20 20 <p>Pour cela il utilise les flux générés par le service <a href="http://www.lastfm.fr/">Last.fm</a>, compatible avec de nombreux lecteurs multimédia courants comme Windows Media Player, Winamp, iTunes, Foobar2000 ou encore Mozilla Songbird.</p> 21 <p>L'application Last.fm est open source et installable sur les systèmes Windows, Mac et Linux, ou encore sur iPod et iPhone.</p>21 <p>L'application Last.fm est open source et installable sur les systèmes Windows, Mac et Linux, ou encore sur iPod, iPhone et mobiles Android.</p> 22 22 <p>Pour plus de détails rendez vous sur cette page : <a href="http://www.lastfm.fr/download">http://www.lastfm.fr/download</a>.</p> 23 23 <h3>Le widget dcScrobbler</h3>
Note: See TracChangeset
for help on using the changeset viewer.