Changeset 107206 in spip-zone
- Timestamp:
- Oct 29, 2017, 5:07:04 PM (3 years ago)
- Location:
- _plugins_/vimeo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/vimeo/branches/v0/action/vimeo.php
r107177 r107206 172 172 } 173 173 174 function vimeo_creer_albums($albums, $album_lier_vimeo) {174 function vimeo_creer_albums($albums, $album_lier_vimeo) { 175 175 176 176 $compte = lire_config('vimeo'); … … 206 206 } 207 207 208 function action_vimeo_dist($arg=null) { 209 210 /* 211 212 TO DO SECURISER CETTE ACTION 213 214 if (is_null($arg)){ 208 function action_vimeo_dist($arg = null) { 209 210 if (is_null($arg)) { 215 211 $securiser_action = charger_fonction("securiser_action","inc"); 216 212 $arg = $securiser_action(); 217 213 } 218 */219 214 220 215 $videos = array(); … … 235 230 $id_auteur = ""; 236 231 237 if ($compte['profil'] !== 'rien') {232 if ($compte['profil'] !== 'rien') { 238 233 $id_auteur = vimeo_creer_auteur($user); 239 234 } … … 288 283 vimeo_creer_video($videos); 289 284 285 return 1; 286 290 287 } 291 288 -
_plugins_/vimeo/branches/v0/vimeo_pipelines.php
r107177 r107206 40 40 if ($flux['args']['exec']==="vimeos") { 41 41 42 $texte .= $url.bouton_action(_T('vimeo:recuperer_videos'), generer_url_action("vimeo","arg=true"),"ajax","","coucou"); 42 $url = generer_action_auteur("vimeo",true); 43 $label = _T('vimeo:recuperer_videos'); 44 $texte .= filtre_bouton_action_horizontal_dist($url, $label, "vimeo-24","", "ajax", "", "coucou"); 45 43 46 } 44 47 -
_plugins_/vimeo/trunk/action/vimeo.php
r107177 r107206 172 172 } 173 173 174 function vimeo_creer_albums($albums, $album_lier_vimeo) {174 function vimeo_creer_albums($albums, $album_lier_vimeo) { 175 175 176 176 $compte = lire_config('vimeo'); … … 206 206 } 207 207 208 function action_vimeo_dist($arg=null) { 209 210 /* 211 212 TO DO SECURISER CETTE ACTION 213 214 if (is_null($arg)){ 208 function action_vimeo_dist($arg = null) { 209 210 if (is_null($arg)) { 215 211 $securiser_action = charger_fonction("securiser_action","inc"); 216 212 $arg = $securiser_action(); 217 213 } 218 */219 214 220 215 $videos = array(); … … 235 230 $id_auteur = ""; 236 231 237 if ($compte['profil'] !== 'rien') {232 if ($compte['profil'] !== 'rien') { 238 233 $id_auteur = vimeo_creer_auteur($user); 239 234 } … … 288 283 vimeo_creer_video($videos); 289 284 285 return 1; 286 290 287 } 291 288 -
_plugins_/vimeo/trunk/vimeo_pipelines.php
r107177 r107206 40 40 if ($flux['args']['exec']==="vimeos") { 41 41 42 $texte .= $url.bouton_action(_T('vimeo:recuperer_videos'), generer_url_action("vimeo","arg=true"),"ajax","","coucou"); 42 $url = generer_action_auteur("vimeo",true); 43 $label = _T('vimeo:recuperer_videos'); 44 $texte .= filtre_bouton_action_horizontal_dist($url, $label, "vimeo-24","", "ajax", "", "coucou"); 45 43 46 } 44 47
Note: See TracChangeset
for help on using the changeset viewer.