Changeset 17307
- Timestamp:
- Aug 2, 2012, 2:13:19 PM (12 years ago)
- Location:
- extensions/gvideo
- Files:
-
- 36 added
- 40 deleted
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/admin/config.php
r3697 r17307 1 1 <?php 2 if (!defined('GVIDEO_PATH')) die('Hacking attempt!'); 2 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 5 // Chargement des parametres 6 $params = unserialize($conf['PY_GVideo']); 7 8 // Mise a jour de la base de donnee 9 if (isset($_POST['submit'])) 4 if (isset($_POST['save_config'])) 10 5 { 11 $params = array( 12 'gvideo' => array( 13 $_POST['pywaie_gvideo_h'], 14 $_POST['pywaie_gvideo_w'], 15 $_POST['pywaie_gvideo_autoplay'], 16 $_POST['pywaie_gvideo_hl']), 17 'ytube' => array( 18 $_POST['pywaie_ytube_h'], 19 $_POST['pywaie_ytube_w'], 20 $_POST['pywaie_ytube_autoplay']), 21 'dm' => array( 22 $_POST['pywaie_dm_h'], 23 $_POST['pywaie_dm_w'], 24 $_POST['pywaie_dm_autoplay']), 25 'wideo' => array( 26 $_POST['pywaie_wideo_h'], 27 $_POST['pywaie_wideo_w'], 28 $_POST['pywaie_wideo_autoplay']), 6 $conf['gvideo'] = array( 7 'autoplay' => $_POST['autoplay'], 8 'width' => $_POST['width'], 9 'height' => $_POST['height'], 29 10 'vimeo' => array( 30 $_POST['pywaie_vimeo_h'], 31 $_POST['pywaie_vimeo_w'], 32 $_POST['pywaie_vimeo_autoplay']), 33 'wat' => array( 34 $_POST['pywaie_wat_h'], 35 $_POST['pywaie_wat_w'], 36 $_POST['pywaie_wat_autoplay']) 11 'title' => (int)isset($_POST['vimeo']['title']), 12 'portrait' => (int)isset($_POST['vimeo']['portrait']), 13 'byline' => (int)isset($_POST['vimeo']['byline']), 14 'color' => $_POST['vimeo']['color'], 15 ), 16 'dailymotion' => array( 17 'logo' => (int)isset($_POST['dailymotion']['logo']), 18 'title' => (int)isset($_POST['dailymotion']['title']), 19 'color' => $_POST['dailymotion']['color'], 20 ), 21 'youtube' => array(), 22 'wat' => array(), 23 'wideo' => array(), 24 'videobb' => array(), 37 25 ); 38 39 $query = ' 40 UPDATE ' . CONFIG_TABLE . ' 41 SET value="' . addslashes(serialize($params)) . '" 42 WHERE param="PY_GVideo" 43 LIMIT 1'; 44 pwg_query($query); 45 46 array_push($page['infos'], l10n('py_info4')); 26 27 conf_update_param('gvideo', serialize($conf['gvideo'])); 28 array_push($page['infos'], l10n('Information data registered in database')); 47 29 } 48 30 31 49 32 $template->assign(array( 50 'PYWAIE_GVIDEO_H' => $params['gvideo'][0], 51 'PYWAIE_GVIDEO_W' => $params['gvideo'][1], 52 'PYWAIE_GVIDEO_HL' => $params['gvideo'][3], 53 'PYWAIE_YTUBE_H' => $params['ytube'][0], 54 'PYWAIE_YTUBE_W' => $params['ytube'][1], 55 'PYWAIE_DM_H' => $params['dm'][0], 56 'PYWAIE_DM_W' => $params['dm'][1], 57 'PYWAIE_WIDEO_H' => $params['wideo'][0], 58 'PYWAIE_WIDEO_W' => $params['wideo'][1], 59 'PYWAIE_VIMEO_H' => $params['vimeo'][0], 60 'PYWAIE_VIMEO_W' => $params['vimeo'][1], 61 'PYWAIE_WAT_H' => $params['wat'][0], 62 'PYWAIE_WAT_W' => $params['wat'][1])); 33 'gvideo' => $conf['gvideo'], 34 'vimeo_colors' => array('00adef', 'ff9933', 'c9ff23', 'ff0179', 'ffffff'), 35 'dailymotion_colors' => array('F7FFFD', 'E02C72', '92ADE0', 'E8D9AC', 'C2E165', '052880', 'FF0000', '834596'), 36 )); 63 37 64 if ($params['gvideo'][2] == 'true')65 {66 $template->assign(array('PYWAIE_GVIDEO_AUTOPLAY_TRUE' => 'checked="checked"'));67 }68 else69 {70 $template->assign(array('PYWAIE_GVIDEO_AUTOPLAY_FALSE' => 'checked="checked"'));71 }72 if ($params['ytube'][2] == '1')73 {74 $template->assign(array('PYWAIE_YTUBE_AUTOPLAY_TRUE' => 'checked="checked"'));75 }76 else77 {78 $template->assign(array('PYWAIE_YTUBE_AUTOPLAY_FALSE' => 'checked="checked"'));79 }80 if ($params['dm'][2] == '1')81 {82 $template->assign(array('PYWAIE_DM_AUTOPLAY_TRUE' => 'checked="checked"'));83 }84 else85 {86 $template->assign(array('PYWAIE_DM_AUTOPLAY_FALSE' => 'checked="checked"'));87 }88 if ($params['wideo'][2] == 'true')89 {90 $template->assign(array('PYWAIE_WIDEO_AUTOPLAY_TRUE' => 'checked="checked"'));91 }92 else93 {94 $template->assign(array('PYWAIE_WIDEO_AUTOPLAY_FALSE' => 'checked="checked"'));95 }96 if ($params['vimeo'][2] == '1')97 {98 $template->assign(array('PYWAIE_VIMEO_AUTOPLAY_TRUE' => 'checked="checked"'));99 }100 else101 {102 $template->assign(array('PYWAIE_VIMEO_AUTOPLAY_FALSE' => 'checked="checked"'));103 }104 if ($params['wat'][2] == 'true')105 {106 $template->assign(array('PYWAIE_WAT_AUTOPLAY_TRUE' => 'checked="checked"'));107 }108 else109 {110 $template->assign(array('PYWAIE_WAT_AUTOPLAY_FALSE' => 'checked="checked"'));111 }112 38 113 $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/config.tpl')); 114 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 39 $template->set_filename('gvideo_content', dirname(__FILE__) . '/template/config.tpl'); 115 40 116 41 ?> -
extensions/gvideo/admin/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/ar_SA/description.txt
r8685 r17307 1 اضافة مقاطع فيديو من : Google Video, Dailymotion, Youtube, Wideo, Vimeoor Wat1 اضافة مقاطع فيديو من : Dailymotion, Youtube, Wideo, Vimeo, videobb or Wat -
extensions/gvideo/language/ar_SA/index.php
r8685 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/ca_ES/description.txt
r15212 r17307 1 Permet afegir vídeos de GoogleVideo, Dailymotion, Youtube, Wideo, Vimeoo Wat.1 Permet afegir vídeos de Dailymotion, Youtube, Wideo, Vimeo, videobb o Wat. -
extensions/gvideo/language/cs_CZ/description.txt
r7428 r17307 1 Umožňuje vložení video souborů z Youtube, Google Video, Dailymotion, Wideo, Vimeonebo Wat.1 Umožňuje vložení video souborů z Youtube, Dailymotion, Wideo, Vimeo, videobb nebo Wat. -
extensions/gvideo/language/cs_CZ/index.php
r7428 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/de_DE/description.txt
r6383 r17307 1 Gibt die Möglichkeit Videos von Google Video, Dailymotion, Youtube, Wideo, Vimeooder Wat hinzuzufügen.1 Gibt die Möglichkeit Videos von Dailymotion, Youtube, Wideo, Vimeo, videobb oder Wat hinzuzufügen. -
extensions/gvideo/language/de_DE/index.php
r6383 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/el_GR/description.txt
r14809 r17307 1 Προσθέτει μερικά βίντεο από το Google Video, Dailymotion, YouTube, Wideo, Vimeoή Wat.1 Προσθέτει μερικά βίντεο από το Dailymotion, YouTube, Wideo, Vimeo, videobb ή Wat. -
extensions/gvideo/language/en_UK/description.txt
r3697 r17307 1 Add s some videos from Google Video, Dailymotion, Youtube, Wideo, Vimeo orWat.1 Add videos from Dailymotion, Youtube, Vimeo, Wideo, videobb and Wat. -
extensions/gvideo/language/en_UK/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/en_UK/plugin.lang.php
r8866 r17307 1 1 <?php 2 2 3 $lang['py_title'] = 'PYWaie GVideo'; 4 $lang['py_conf'] = 'Configuration'; 5 $lang['py_addvideo'] = 'Add a video'; 6 $lang['py_filename'] = 'Filename'; 7 $lang['py_url'] = 'URL of the video'; 8 $lang['py_parent'] = 'Main Category'; 9 $lang['py_thumb'] = 'Thumbnail'; 10 $lang['py_no_thumb'] = 'No thumbnail'; 11 $lang['py_thumb_from_server'] = 'Upload thumbnail from server'; 12 $lang['py_thumb_from_user'] = 'Upload your own thumbnail:'; 13 $lang['py_add_band'] = 'Add bands on the sides of the thumbnail'; 14 $lang['py_thumb_resize'] = 'Resize the thumbnail'; 15 $lang['py_width'] = 'Width'; 16 $lang['py_height'] = 'Height'; 17 $lang['py_start'] = 'Start of the video'; 18 $lang['py_*'] = 'Obligatory field'; 19 $lang['py_autostart'] = 'Autostart'; 20 $lang['py_quality'] = 'Quality'; 21 $lang['py_playermode'] = 'Player Mode'; 22 23 24 // Infobulles 25 $lang['pybulle_reference'] = "Paste here a linkpage of the video.<br>You can use GoogleVideo, YouTube, DailyMotion, Wideo, Vimeo or Wat. Examples:<br><br>- http://video.google.fr/videoplay?docid=4600755234172037942<br>- http://www.youtube.com/watch?v=eUvApC0bwUk<br>- http://www.dailymotion.com/video/x29fys_doorway<br>- http://www.wideo.fr/video/iLyROoaftYvl.html<br>- http://www.vimeo.com/1747316<br>- http://www.wat.tv/video/abcd.html"; 26 $lang['pybulle_start'] = "Choose the starting point (in seconds) of the video.<br>This option can be use only with GoogleVideo."; 27 $lang['pybulle_categorie'] = "Category where the file will be created: only real categories are listed. If you wanft to link this file to a virtual category, you have to link after."; 28 $lang['pybulle_miniature'] = "You can get thumbnail back on the server. By default, thumbnails size are 320x240 on Google Video, 320x240 on Dailymotion, 130x97 on Youtube, 154x114 on Wideo and 200x150 on Vimeo.<br><br> Or you can upload your own thumbnail.<br><br> In both case, you can change dimension of thumbnail."; 29 30 //Info messages or error 31 $lang['py_error1'] = 'No local site! Impossible to create a video file.'; 32 $lang['py_error2'] = 'Impossible to save. You do not fill correctly formulary.'; 33 $lang['py_error3'] = 'You must fill obligatory field *'; 34 $lang['py_error5'] = 'wrong URL!'; 35 $lang['py_error6'] = 'file "%s" is already exist.'; 36 $lang['py_error7'] = 'Impossible to write file "%s"'; 37 $lang['py_error8'] = 'please check if the directory %s have rights(chmod).'; 38 $lang['py_error9'] = 'Error when the thumbnail is uploaded or resized.'; 39 $lang['py_error11'] = 'A thumbnail with the same name already exists (%s)'; 40 $lang['py_error12'] = 'field thumbnail no filled : thumbnail not uploaded.'; 41 $lang['py_info2'] = 'thumbnail successfully uploaded'; 42 $lang['py_info3'] = 'Video successfully added'; 43 $lang['py_info4'] = 'Configuration saved.'; 44 $lang['py_show_file'] = '<a href="%s" class="externalLink">Show video</a>.'; 3 $lang['Add a video'] = 'Add a video'; 4 $lang['Video URL'] = 'Video URL'; 5 $lang['From the video'] = 'From the video'; 6 $lang['Change'] = 'Change'; 7 $lang['Video size'] = 'Video size'; 8 $lang['Use common setting'] = 'Use common setting'; 9 $lang['Autoplay'] = 'Autoplay'; 10 $lang['Supported services'] = 'Supported services'; 11 $lang['Common configuration'] = 'Common configuration'; 12 $lang['Color'] = 'Color'; 13 $lang['Author portrait'] = 'Author portrait'; 14 $lang['Author name'] = 'Author name'; 15 $lang['Logo'] = 'Logo'; 16 $lang['Please fill the video URL'] = 'Please fill the video URL'; 17 $lang['Please fill the video name'] = 'Please fill the video name'; 18 $lang['Please add a thumbnail'] = 'Please add a thumbnail'; 19 $lang['Unable to contact host server'] = 'Unable to contact host server'; 20 $lang['Video successfully added. <a href="%s">View</a>'] = 'Video successfully added. <a href="%s">View</a>'; 21 $lang['This element is a video added with "Embedded Video"'] = 'This element is a video added with "Embedded Video"'; 45 22 46 23 ?> -
extensions/gvideo/language/es_ES/description.txt
r7305 r17307 1 Añadir videos de Google Video, Dailymotion, Youtube, Wideo, Vimeoo Wat.1 Añadir videos de Dailymotion, Youtube, Wideo, Vimeo, videobb o Wat. -
extensions/gvideo/language/es_ES/index.php
r7305 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/fr_FR/description.txt
r4896 r17307 1 Ajoute z des vidéos de Google Video, Dailymotion, Youtube, Wideo, Vimeo ou Wat.1 Ajoute des vidéos depuis Dailymotion, Youtube, Vimeo, Wideo, videobb et Wat -
extensions/gvideo/language/fr_FR/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/fr_FR/plugin.lang.php
r7295 r17307 1 1 <?php 2 2 3 $lang['py_title'] = 'PYWaie GVideo'; 4 $lang['py_conf'] = 'Configuration'; 5 $lang['py_addvideo'] = 'Ajouter une vidéo'; 6 $lang['py_filename'] = 'Nom du fichier'; 7 $lang['py_url'] = 'URL de la vidéo'; 8 $lang['py_parent'] = 'Catégorie parente '; 9 $lang['py_thumb'] = 'Miniature'; 10 $lang['py_no_thumb'] = 'Pas de miniature'; 11 $lang['py_thumb_from_server'] = 'Uploader la miniature correspondante sur le serveur'; 12 $lang['py_thumb_from_user'] = 'Uploader votre propre miniature'; 13 $lang['py_add_band'] = 'Ajouter des bandes sur les cotés de la miniature'; 14 $lang['py_thumb_resize'] = 'Redimensionner la miniature'; 15 $lang['py_width'] = 'Largeur'; 16 $lang['py_height'] = 'Hauteur'; 17 $lang['py_start'] = 'Départ de la vidéo'; 18 $lang['py_*'] = 'Champs obligatoires'; 19 $lang['py_autostart'] = 'Autostart'; 20 $lang['py_quality'] = 'Qualité'; 21 $lang['py_playermode'] = 'Player Mode'; 22 23 24 // Infobulles 25 $lang['pybulle_reference'] = "Collez ici le lien de la page où se trouve la vidéo.<br>Vous pouvez utiliser des vidéos de Google, YouTube, DailyMotion, Wideo, Vimeo et Wat. Exemples:<br><br>- http://video.google.fr/videoplay?docid=4600755234172037942<br>- http://www.youtube.com/watch?v=eUvApC0bwUk<br>- http://www.dailymotion.com/video/x29fys_doorway<br>- http://www.wideo.fr/video/iLyROoaftYvl.html<br>- http://www.vimeo.com/1747316<br>- http://www.wat.tv/video/abcd.html"; 26 $lang['pybulle_start'] = "Définie le point de départ (en secondes) de la vidéo.<br>Cette option n'est active qu'avec Google Vidéo."; 27 $lang['pybulle_categorie'] = "Catégorie où sera écrit le fichier: seules les catégories réelles sont listées ici. Si vous souhaitez avoir le fichier dans une catégorie virtuelle, il faudra l'associer après."; 28 $lang['pybulle_miniature'] = "Vous pouvez choisir de récupérer la miniature correspondante a la vidéo sur le serveur. Par défaut, la taille des miniatures est de 320x240 sur Google Vidéo, 320x240 sur Dailymotion, 130x97 sur Youtube, 154x114 sur Wideo et 200x150 pour Vimeo.<br><br>Vous pouvez également choisir d'uploader votre propre miniature.<br><br>Dans tous les cas, vous pouvez éventuellement la redimensionner."; 29 30 // Messages d'infos ou d'erreurs 31 $lang['py_error1'] = 'Pas de site locaux! Impossible de créer un fichier vidéo.'; 32 $lang['py_error2'] = 'Impossible de procéder à l\'enregistrement. Vous n\'avez pas correctement rempli le formulaire.'; 33 $lang['py_error3'] = 'Vous devez renseigner les champ obligatoires marqués *'; 34 $lang['py_error5'] = 'URL invalide!'; 35 $lang['py_error6'] = 'Le fichier "%s" existe déjà.'; 36 $lang['py_error7'] = 'Impossible d\'écrire le fichier "%s"'; 37 $lang['py_error8'] = 'Veuillez vérifier que le dossier %s possède les permissions nécessaires (chmod).'; 38 $lang['py_error9'] = 'Impossible d\'uploader ou de redimmensionner la miniature.'; 39 $lang['py_error11'] = 'Une miniature existe déjà sous ce nom (%s)'; 40 $lang['py_error12'] = 'Champ miniature non renseigné : miniature non uploadée.'; 41 $lang['py_info2'] = 'Miniature uploadée avec succès.'; 42 $lang['py_info3'] = 'Vidéo ajoutée'; 43 $lang['py_info4'] = 'Configuration sauvegardée.'; 44 $lang['py_show_file'] = '<a href="%s" class="externalLink">Voir la vidéo</a>.'; 45 3 $lang['Add a video'] = 'Ajouter une vidéo'; 4 $lang['Video URL'] = 'URL de la vidéo'; 5 $lang['From the video'] = 'Conserver'; 6 $lang['Change'] = 'Changer'; 7 $lang['Video size'] = 'Taille de la vidéo'; 8 $lang['Use common setting'] = 'Utiliser les paramètres généraux'; 9 $lang['Autoplay'] = 'Démarrage auto.'; 10 $lang['Supported services'] = 'Services supportés'; 11 $lang['Common configuration'] = 'Configuration générale'; 12 $lang['Color'] = 'Couleur'; 13 $lang['Author portrait'] = 'Avatar de l\'auteur'; 14 $lang['Author name'] = 'Nom de l\'auteur'; 15 $lang['Logo'] = 'Logo'; 16 $lang['Please fill the video URL'] = 'Veuillez renseigner l\'URL de la vidéo'; 17 $lang['Please fill the video name'] = 'Veuillez renseigner le nom de la vidéo'; 18 $lang['Please add a thumbnail'] = 'Veuillez choisir une miniature'; 19 $lang['Unable to contact host server'] = 'Impossible de contacter le serveur'; 20 $lang['Video successfully added. <a href="%s">View</a>'] = 'Vidéo ajoutée. <a href="%s">Voir</a>'; 21 $lang['This element is a video added with "Embedded Video"'] = 'Cet élément est une vidéo ajoutée avec "Embedded Video"'; 46 22 47 23 ?> -
extensions/gvideo/language/hu_HU/description.txt
r6190 r17307 1 Videok hozzáadása: Google Video, Dailymotion, Youtube, Wideo, Vimeovagy Wat.1 Videok hozzáadása: Dailymotion, Youtube, Wideo, Vimeo, videobb vagy Wat. -
extensions/gvideo/language/hu_HU/index.php
r6190 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/it_IT/description.txt
r5052 r17307 1 Aggingete delle video di Google Video, Dailymotion, Youtube, Wideo, Vimeoo Wat sulla vostra galleria1 Aggingete delle video di Dailymotion, Youtube, Wideo, Vimeo, videobb o Wat sulla vostra galleria -
extensions/gvideo/language/it_IT/index.php
r11529 r17307 3 3 // | Piwigo - a PHP based photo gallery | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-201 1Piwigo Team http://piwigo.org |5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -
extensions/gvideo/language/lv_LV/description.txt
r7464 r17307 1 Pievieno video no Google Video, Dailymotion, Youtube, Wideo, Vimeoor Wat.1 Pievieno video no Dailymotion, Youtube, Wideo, Vimeo, videobb or Wat. -
extensions/gvideo/language/lv_LV/index.php
r7464 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/nb_NO/description.txt
r8866 r17307 1 Legger til videoer fra google Video, Dailymotion, Youtube, Wideo, Vimeoeller Wat.1 Legger til videoer fra Dailymotion, Youtube, Wideo, Vimeo, videobb eller Wat. -
extensions/gvideo/language/nb_NO/index.php
r8866 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/nl_NL/description.txt
r10004 r17307 1 Voegt enkele videos van Google Video, Dailymotion, Youtube, Wideo, Vimeoof Wat toe.1 Voegt enkele videos van Dailymotion, Youtube, Wideo, Vimeo, videobb of Wat toe. -
extensions/gvideo/language/nl_NL/index.php
r10004 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/pl_PL/description.txt
r7391 r17307 1 Dodaje wsparcie dla Google Video, Dailymotion, Youtube, Wideo, Vimeolub Wat.1 Dodaje wsparcie dla Dailymotion, Youtube, Wideo, Vimeo, videobb lub Wat. -
extensions/gvideo/language/pl_PL/index.php
r7391 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/pt_PT/description.txt
r9050 r17307 1 Adiciona vídeos de Google Video, Dailymotion, Youtube, Wideo, Vimeoor Wat.1 Adiciona vídeos de Dailymotion, Youtube, Wideo, Vimeo, videobb or Wat. -
extensions/gvideo/language/pt_PT/index.php
r9050 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/ru_RU/description.txt
r7343 r17307 1 Вставка видео-роликов Google Video, Dailymotion, Youtube, Wideo, Vimeoили Wat.1 Вставка видео-роликов Dailymotion, Youtube, Wideo, Vimeo, videobb или Wat. -
extensions/gvideo/language/ru_RU/index.php
r7343 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/sh_RS/description.txt
r13879 r17307 1 Dodaje video sa sajtova: Google Video, Dailymotion, Youtube, Wideo, Vimeoili Wat.1 Dodaje video sa sajtova: Dailymotion, Youtube, Wideo, Vimeo, videobb ili Wat. -
extensions/gvideo/language/sk_SK/description.txt
r9464 r17307 1 Umožňuje vloženie video súborov z Youtube, Google Video, Dailymotion, Wideo, Vimeoalebo Wat.1 Umožňuje vloženie video súborov z Youtube, Dailymotion, Wideo, Vimeo, videobb alebo Wat. -
extensions/gvideo/language/sk_SK/index.php
r9464 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 7428 2010-10-27 11:03:22Z ddtddt $ 8 // | last update : $Date: 2010-10-27 13:03:22 +0200 (st, 27 X 2010) $ 9 // | last modifier : $Author: ddtddt $ 10 // | revision : $Revision: 7428 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/sv_SE/description.txt
r11424 r17307 1 Lägg till videor från Google Video, Dailymotion, Youtube, Wideo, Vimeoor Wat.1 Lägg till videor från Dailymotion, Youtube, Wideo, Vimeo, videobb or Wat. -
extensions/gvideo/language/sv_SE/index.php
r11424 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/tr_TR/description.txt
r7976 r17307 1 Google Video, Dailymotion, Youtube, Wideo, Vimeoor Wat videoları eklemek.1 Dailymotion, Youtube, Wideo, Vimeo, videobb or Wat videoları eklemek. -
extensions/gvideo/language/tr_TR/index.php
r7976 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/uk_UA/description.txt
r13568 r17307 1 Додає деякі відео з Google Video, Dailymotion, Youtube, Wideo, Vimeoабо Wat.1 Додає деякі відео з Dailymotion, Youtube, Wideo, Vimeo, videobb або Wat. -
extensions/gvideo/language/vi_VN/description.txt
r11662 r17307 1 Thêm phim từ Google, Dailymotion, Youtube, Wideo, Vimeohoặc Wat.1 Thêm phim từ Dailymotion, Youtube, Wideo, Vimeo, videobb hoặc Wat. -
extensions/gvideo/language/vi_VN/index.php
r11662 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/language/zh_CN/description.txt
r10345 r17307 1 从 Google Video, Dailymotion, Youtube, Wideo, Vimeo或Wat添加视频1 从Dailymotion, Youtube, Wideo, Vimeo, videobb或Wat添加视频 -
extensions/gvideo/language/zh_CN/index.php
r10345 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/main.inc.php
r13114 r17307 1 <?php 1 <?php 2 2 /* 3 Plugin Name: PY GVideo3 Plugin Name: Embedded Videos 4 4 Version: auto 5 Description: Add s some videos from Google Video, Dailymotion, Youtube, Wideo, Vimeo orWat.5 Description: Add videos from Dailymotion, Youtube, Vimeo, Wideo, videobb and Wat. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=136 7 Author: PYwaie & P@t 7 Author: Mistic & P@t 8 Author URI: http://www.strangeplanet.fr 8 9 */ 9 10 10 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 11 define('GVIDEO_DIR' , basename(dirname(__FILE__)));12 define('GVIDEO_PATH' , PHPWG_PLUGINS_PATH . GVIDEO_DIR . '/');13 12 14 global $conf, $py_addext; 15 $py_addext = array("gvideo", "dm", "ytube", "wideo", "vimeo", "wat"); 16 $conf['file_ext'] = array_merge($conf['file_ext'], $py_addext); 13 global $prefixeTable; 17 14 18 function gvideoadd($content) 15 define('GVIDEO_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 16 define('GVIDEO_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); 17 define('GVIDEO_TABLE', $prefixeTable.'image_video'); 18 19 include(GVIDEO_PATH . 'include/gvideo.inc.php'); 20 21 add_event_handler('render_element_content', 'gvideo_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL-10, 2); 22 23 if (defined('IN_ADMIN')) 19 24 { 20 global $page, $picture, $template, $py_addext, $conf; 25 add_event_handler('delete_elements', 'gvideo_delete_elements'); 26 add_event_handler('loc_begin_admin_page', 'gvideo_photo_edit'); 27 add_event_handler('get_admin_plugin_menu_links', 'gvideo_admin_menu'); 21 28 22 if (!isset($picture['current']['file'])) 23 { 24 return $content; 25 } 26 $extension = strtolower(get_extension($picture['current']['file'])); 27 if (!in_array($extension, $py_addext) or $page['slideshow']) 28 { 29 return $content; 30 } 31 include_once( GVIDEO_PATH . '/gvideo.php'); 32 return $content; 29 function gvideo_admin_menu($menu) 30 { 31 array_push($menu, array( 32 'NAME' => 'Embedded Videos', 33 'URL' => GVIDEO_ADMIN, 34 )); 35 return $menu; 36 } 33 37 } 34 38 35 36 add_event_handler('get_thumbnail_location', 'py_mimetype', 60, 2);37 function py_mimetype($location, $element_info)38 {39 if ( empty( $element_info['tn_ext'] ) )40 {41 global $py_addext;42 $extension = strtolower(get_extension($element_info['path']));43 if (in_array($extension, $py_addext))44 {45 $location= 'plugins/' . GVIDEO_DIR . '/mimetypes/' . $extension . '.png';46 }47 }48 return $location;49 }50 51 add_event_handler('get_mimetype_location', 'py_mimetype_location', 60, 2);52 function py_mimetype_location($location, $ext)53 {54 global $py_addext;55 if (in_array($ext, $py_addext))56 {57 $location= 'plugins/' . GVIDEO_DIR . '/mimetypes/' . $ext . '.png';58 }59 return $location;60 }61 62 if (script_basename() == 'admin')63 {64 add_event_handler('get_admin_plugin_menu_links', 'gvideo_admin_menu');65 66 function gvideo_admin_menu($menu)67 {68 array_push($menu, array(69 'NAME' => 'PY GVideo',70 'URL' => get_admin_plugin_menu_link( GVIDEO_PATH . '/admin/pywaie_admin.php')));71 return $menu;72 }73 }74 75 add_event_handler('render_element_content', 'gvideoadd');76 add_event_handler('get_thumbnail_location', 'py_mimetype', 60, 2);77 78 39 ?> -
extensions/gvideo/maintain.inc.php
r3697 r17307 1 1 <?php 2 3 function plugin_install() 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 4 global $prefixeTable; 5 6 define('gvideo_path', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__))); 7 define('gvideo_table', $prefixeTable.'image_video'); 8 9 define( 10 'gvideo_default_config', 11 serialize(array( 12 'autoplay' => 0, 13 'width' => 640, 14 'height' => 360, 15 'vimeo' => array( 16 'title' => 1, 17 'portrait' => 1, 18 'byline' => 1, 19 'color' => '00adef', 20 ), 21 'dailymotion' => array( 22 'logo' => 1, 23 'title' => 1, 24 'color' => 'F7FFFD', 25 ), 26 'youtube' => array(), 27 'wat' => array(), 28 'wideo' => array(), 29 'videobb' => array(), 30 )) 31 ); 32 33 34 function plugin_install() 4 35 { 5 $params = array( 6 'gvideo' => array('480','640','true','en'), 7 'ytube' => array('480','640','1'), 8 'dm' => array('480','640','1'), 9 'wideo' => array('480', '640', 'true'), 10 'vimeo' => array('480', '640', '1'), 11 'wat' => array('480', '640', 'true'), 12 ); 13 14 $q = 'REPLACE INTO ' . CONFIG_TABLE . ' (param,value,comment) 15 VALUES ("PY_GVideo","' . addslashes(serialize($params)) . '" , "PY Gvideo plugin parameters");'; 16 pwg_query($q); 17 } 18 19 // La table de config se met à jour automatiquemlent lors de l'activation 36 global $conf; 37 38 conf_update_param('gvideo', gvideo_default_config); 39 40 $query = ' 41 CREATE TABLE IF NOT EXISTS `'.gvideo_table.'` ( 42 `picture_id` mediumint(8) NOT NULL, 43 `type` varchar(64) NOT NULL, 44 `video_id` varchar(64) NOT NULL, 45 `width` smallint(9) DEFAULT NULL, 46 `height` smallint(9) DEFAULT NULL, 47 `autoplay` tinyint(1) DEFAULT NULL 48 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 49 ;'; 50 pwg_query($query); 51 52 if (isset($conf['PY_GVideo'])) 53 { 54 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "PY_GVideo" LIMIT 1;'); 55 unset($conf['PY_GVideo']); 56 57 gvideo_update_24(); 58 } 59 } 60 20 61 function plugin_activate() 21 62 { 22 63 global $conf; 23 24 // Suppression des anciens paramètres (version < 1.7.o) 25 if (isset($conf['pywaie_gvideo'])) 26 { 27 pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param LIKE "pywaie_%";'); 28 } 29 30 // Vérification des nouveaux paramètres 31 if (!isset($conf['PY_GVideo']) 32 or ($params = unserialize($conf['PY_GVideo']) and !isset($params['wat']))) 64 65 if (isset($conf['PY_GVideo'])) 33 66 { 34 67 plugin_install(); 35 68 } 36 } 37 38 function plugin_uninstall() 69 else if (!isset($conf['gvideo'])) 70 { 71 conf_update_param('gvideo', gvideo_default_config); 72 } 73 } 74 75 function plugin_uninstall() 76 { 77 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "gvideo" LIMIT 1;'); 78 pwg_query('DROP TABLE `'.gvideo_table.'`;'); 79 } 80 81 82 /** 83 * update from 2.3 to 2.4 84 */ 85 function gvideo_update_24() 39 86 { 40 87 global $conf; 41 88 42 // Suppression des anciens paramètres (version < 1.7.o) 43 if (isset($conf['pywaie_gvideo'])) 44 { 45 pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param LIKE "pywaie_%";'); 46 } 47 48 pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param = "PY_GVideo";'); 89 // search existing videos 90 $query = ' 91 SELECT * 92 FROM '.IMAGES_TABLE.' 93 WHERE 94 file LIKE "%.gvideo" 95 OR file LIKE "%.dm" 96 OR file LIKE "%.ytube" 97 OR file LIKE "%.wideo" 98 OR file LIKE "%.vimeo" 99 OR file LIKE "%.wat" 100 ;'; 101 $result = pwg_query($query); 102 103 if (!pwg_db_num_rows($result)) 104 { 105 return; 106 } 107 108 set_time_limit(600); 109 include_once(gvideo_path . '/include/functions.inc.php'); 110 include_once(PHPWG_ROOT_PATH . 'admin/include/functions_upload.inc.php'); 111 112 $videos_inserts = array(); 113 $images_updates = array(); 114 $images_delete = array(); 115 116 while ($img = pwg_db_fetch_assoc($result)) 117 { 118 $file_content = file_get_contents($img['path']); 119 list($file['id'], $file['height'], $file['width'], ) = explode('/', $file_content); 120 $file['type'] = get_extension($img['path']); 121 122 switch ($file['type']) 123 { 124 case 'vimeo': 125 $url = 'http://vimeo.com/'.$file['id']; 126 break; 127 case 'dm': 128 $url = 'http://dailymotion.com/video/'.$file['id']; 129 break; 130 case 'ytube': 131 $url = 'http://youtu.be/'.$file['id']; 132 break; 133 case 'wideo': 134 $url = 'http://wideo.fr/video/'.$file['id'].'.html'; 135 break; 136 137 case 'wat': // can't get original page from id ! 138 $thumb = str_replace($img['file'], null, $img['path']).'thumbnail/TN-'.get_filename_wo_extension($img['file']).'.*'; 139 $thumb = glob($thumb); 140 if (!empty($thumb)) 141 { 142 $thumb_name = 'wat-'.$file['id'].'-'.uniqid().'.'.get_extension($thumb[0]); 143 $thumb_source = $conf['data_location'].$thumb_name; 144 copy($thumb[0], $thumb_source); 145 } 146 147 $video = array( 148 'type' => 'wat', 149 'id' => $file['id'], 150 'title' => null, 151 'description' => null, 152 'thumbnail' => null, 153 ); 154 break; 155 156 case 'gvideo': // closed 157 default: 158 array_push($images_delete, $img['id']); 159 continue; 160 } 161 162 // get video infos 163 if (!isset($video)) 164 { 165 if ( ($video = parse_video_url($url)) === false ) 166 { 167 array_push($images_delete, $img['id']); 168 continue; 169 } 170 } 171 172 // download thumbnail 173 if (!isset($thumb_source)) 174 { 175 $thumb_name = $video['type'].'-'.$video['id'].'-'.uniqid().'.'.get_extension($video['thumbnail']); 176 $thumb_source = $conf['data_location'].$thumb_name; 177 if (download_remote_file($video['thumbnail'], $thumb_source) !== true) 178 { 179 $thumb_source = $conf['data_location'].get_filename_wo_extension($thumb_name).'.jpg'; 180 copy(gvideo_path.'mimetypes/'.$video['type'].'.jpg', $thumb_source); 181 } 182 } 183 184 // update element 185 $image_id = add_uploaded_file($thumb_source, $thumb_name, null, null, $img['id']); 186 187 // update path and rename the file 188 $img['new_path'] = str_replace($img['file'], null, $img['path']).$thumb_name; 189 rename($img['path'], $img['new_path']); 190 array_push($images_updates, array( 191 'id' => $img['id'], 192 'path' => str_replace('././', './', $img['new_path']), 193 )); 194 195 if (empty($file['width'])) $file['width'] = ''; 196 if (empty($file['height'])) $file['height'] = ''; 197 198 // register video 199 array_push($videos_inserts, array( 200 'picture_id' => $image_id, 201 'type' => $video['type'], 202 'video_id' => $video['id'], 203 'width' => $file['width'], 204 'height' => $file['height'], 205 'autoplay' => '', 206 )); 207 208 unset($thumb_source, $thumb_name, $file, $video, $url); 209 } 210 211 // delete obsolete elements 212 delete_elements($images_delete); 213 214 // registers videos 215 mass_inserts( 216 gvideo_table, 217 array('picture_id', 'type', 'video_id', 'width', 'height', 'autoplay'), 218 $videos_inserts 219 ); 220 221 // update images 222 mass_updates( 223 IMAGES_TABLE, 224 array('primary'=>array('id'), 'update'=>array('path')), 225 $images_updates 226 ); 49 227 } 50 228 -
extensions/gvideo/mimetypes/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/gvideo/template/index.php
r3296 r17307 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based photo gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.