Files
Phraseanet/lib/conf.d/_GV_template.inc
2013-01-29 16:10:24 +01:00

641 lines
29 KiB
PHP

<?php
use Alchemy\Phrasea\Application;
return call_user_func_array(function(Application $app) {
$avLanguages = Application::getAvailableLanguages();
$youtube_console_url = '<a href="https://code.google.com/apis/console/" target="_blank">https://code.google.com/apis/console/</a>';
$dashboard_youtube = '<a href="https://code.google.com/apis/youtube/dashboard/" target="_blank">https://code.google.com/apis/youtube/dashboard/</a>';
$create_api_flickr = '<a href="https://secure.flickr.com/services/apps/create/" target="_blank">https://secure.flickr.com/services/apps/create/</a>';
$flickr_callback = '/prod/bridge/callback/flickr/';
$dailymotion_callback = '/prod/bridge/callback/dailymotion/';
$create_api_dailymotion = '<a href="http://www.dailymotion.com/profile/developer" target="_blank">http://www.dailymotion.com/profile/developer</a>';
return array(
array(
'section' => _('GV::section:: Serveur HTTP'),
'vars' => array(
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_default_lng',
'comment' => _('reglages:: Langue par defaut'),
'default' => 'fr_FR',
'available' => $avLanguages,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_STATIC_URL',
'end_slash' => false,
'comment' => _('reglages:: URL statique (optionnel)'),
'default' => '',
'required' => false
)
)
), array(
'section' => _('GV::section:: Etat de maintenance'),
'rolled' => true,
'vars' => array(
array(
'type' => \registry::TYPE_TEXT,
'name' => 'GV_message',
'comment' => _('reglages:: Message a diffuser aux utilisateurs'),
'default' => "May the force be with you"
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_message_on',
'comment' => _('reglages:: activation du message a diffuser aux utilistaeurs'),
'default' => false
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_log_errors',
'comment' => _('reglages:: logguer les erreurs'),
'default' => false
)
)
), array(
'section' => _('GV::section:: Connectivite aux webservices'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_google_api',
'comment' => _('reglages:: Utiliser els google apis'),
'default' => true,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_i18n_service',
'comment' => _('reglages:: Service phrasea de localisation'),
'default' => 'http://localization.webservice.alchemyasp.com/',
'end_slash' => true,
'required' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_captchas',
'comment' => _('reglages:: Utilisation de l\'api recpatcha'),
'default' => false,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_captcha_public_key',
'comment' => _('reglages:: clef publique recaptcha'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_captcha_private_key',
'comment' => _('reglages:: clef privee recaptcha'),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Connectivite a Youtube'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_youtube_api',
'comment' => sprintf(_('reglages:: Utiliser l\'api youtube, voir %s, <br/> mettre la callback a WEBSITE_URL/prod/bridge/callback/youtube'), $youtube_console_url),
'default' => false,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_youtube_client_id',
'comment' => _('reglages:: Youtube client id'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_youtube_client_secret',
'comment' => _('reglages:: Youtube clientsecret'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_youtube_dev_key',
'comment' => sprintf(_('reglages:: Youtube cle developpeur, voir %s'), $dashboard_youtube),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Connectivite a FlickR'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_flickr_api',
'comment' => sprintf(_('reglages:: Utiliser l api flickr, voir %s, puis set la callback a %s'), $create_api_flickr, $flickr_callback),
'default' => false,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_flickr_client_id',
'comment' => _('reglages:: FlickR client id'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_flickr_client_secret',
'comment' => _('reglages:: FlickR client secret'),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Connectivite a Dailymotion'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_dailymotion_api',
'comment' => sprintf(_('reglages:: Utiliser l api dailymotion, voir %s, puis set la callback a %s'), $create_api_dailymotion, $dailymotion_callback),
'default' => false,
'required' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_dailymotion_client_id',
'comment' => _('reglages:: dailymotion client id'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_dailymotion_client_secret',
'comment' => _('reglages:: dailymotion client secret'),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Client Phraseanet API'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_client_navigator',
'comment' => _('reglages:: Authoriser l\'application smartphone *Phraseanet Navigator* a se connecter sur cette instance'),
'default' => false,
'required' => true
)
)
), array(
'section' => _('GV::section:: Stockage des documents'),
'vars' => array(
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_base_datapath_noweb',
'end_slash' => true,
'comment' => _('Default path for datas'),
'default' => '',
'required' => true
)
)
), array(
'section' => _('GV::section:: Executables externes'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_modxsendfile',
'comment' => _('reglages:: mod_xsendfileapache active'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_X_Accel_Redirect',
'comment' => _('reglages:: Path en acces pour X-Accel-Redirect (NginX Uniquement)'),
'default' => '',
'end_slash' => true
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_X_Accel_Redirect_mount_point',
'comment' => _('reglages:: Point de montage pour X-Accel-Redirect (NginX Uniquement)'),
'default' => 'noweb',
'end_slash' => false
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_h264_streaming',
'comment' => _('reglages:: activation du stream h264 via mod_token - attention, necessite les modules apache mod_h264_streaming et mod_auth_token'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_mod_auth_token_directory',
'end_slash' => true,
'comment' => _('reglages:: point de montage du dossier protege via auth_token'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_mod_auth_token_directory_path',
'end_slash' => false,
'comment' => _('reglages:: path complet du dossier protege via auth_token'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_mod_auth_token_passphrase',
'comment' => _('reglages:: passphrase du mod_auth_token (definie dans le fichier de configuration apache)'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_PHP_INI',
'comment' => _('reglages:: path du php.ini specifique (vide si non utilise)'),
'default' => ''
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_imagine_driver',
'default' => '',
'comment' => _('Imagine driver'),
'available' => array(
'' => 'Auto',
\MediaAlchemyst\Driver\Imagine::DRIVER_GMAGICK => 'GraphicsMagick',
\MediaAlchemyst\Driver\Imagine::DRIVER_IMAGICK => 'ImageMagick',
\MediaAlchemyst\Driver\Imagine::DRIVER_GD => 'GD',
)
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_ffmpeg_threads',
'comment' => _('Number of threads allowed for FFmpeg'),
'default' => 2
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_pdfmaxpages',
'comment' => _('reglages:: nombre maximum de page a extraire (PDF)'),
'default' => 5
)
)
), array(
'section' => _('GV::section:: Repertoires utilitaires'),
'vars' => array(
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_filesOwner',
'comment' => _('reglages:: proprietaire des fichiers'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_filesGroup',
'comment' => _('reglages:: groupes des fichiers'),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Configuration principale'),
'vars' => array(
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_adminMail',
'comment' => _('reglages:: email de l\'administrateur'),
'default' => 'support@alchemy.fr'
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_view_bas_and_coll',
'comment' => _('reglages:: Afficher le nom des bases et des collections'),
'default' => true,
'required' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_choose_export_title',
'comment' => _('reglages:: activer le choix du nom de fichier a l\'export'),
'default' => false,
'required' => true
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_default_export_title',
'comment' => _('reglages:: choix par defaut des noms de fichier a l\'export'),
'default' => 'support@alchemy.fr',
'available' => array('title' => 'Titre du document', 'original' => 'Nom original')
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_social_tools',
'comment' => _('reglages:: Active les partages Facebook et Twitter'),
'available' => array('none' => 'Disabled', 'publishers' => 'Publishers', 'all' => 'Activated'),
'default' => 'none',
'required' => false
)
)
), array(
'section' => _('GV::section:: Page d\'accueil'),
'rolled' => true,
'vars' => array(
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_home_publi',
'comment' => _('reglages:: presentation sur la home'),
'default' => 'COOLIRIS',
'available' => array('DISPLAYx1' => 'slideshow', 'SCROLL' => 'Bandeau defilant', 'COOLIRIS' => 'Cooliris'),
'required' => true
)
)
), array(
'section' => _('GV::section:: Moteur de recherche'),
'rolled' => true,
'vars' => array(
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_min_letters_truncation',
'comment' => _('reglages:: Nombre minimal de lettre avec la troncature (Recherche)'),
'default' => 1
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_defaultQuery',
'comment' => _('reglages:: Question par defaut'),
'default' => 'all'
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_defaultQuery_type',
'comment' => _('reglages:: type de document cherches par defaut e l\'ouverture du site'),
'available' => array('0' => 'Documents', '1' => 'Regroupements'),
'default' => '0'
)
)
), array(
'section' => _('GV::section:: Report'),
'rolled' => true,
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_anonymousReport',
'comment' => _('reglages:: report anonyme (masque les infos concernant les utilisateurs)'),
'default' => false,
'required' => true
)
)
), array(
'section' => _('GV::section:: Modules supplementaires'),
'rolled' => true,
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_thesaurus',
'comment' => _('reglages:: Activation de l\'outil thesaurus'),
'default' => true
), array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_multiAndReport',
'comment' => _('reglages:: Activation du Mode MultiDOC'),
'default' => true
), array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_seeOngChgDoc',
'comment' => _('reglages:: Substitution de HD d\'un record '),
'default' => false
), array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_seeNewThumb',
'comment' => _('reglages:: Substitution de thumbnail d\'un record'),
'default' => false
)
)
)
, array(
'section' => _('GV::section:: Envois de mails'),
'vars' => array(
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_defaulmailsenderaddr',
'comment' => _('reglages:: Expediteur mail par defaut'),
'default' => 'phraseanet@example.com'
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_email_prefix',
'comment' => _('Prefix for notification emails'),
'default' => ''
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_smtp',
'comment' => _('reglages:: Utilisation d\'un serveur SMTP'),
'default' => false
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_smtp_auth',
'comment' => _('reglages:: Activation de l\'authentification smtp'),
'default' => false
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_smtp_host',
'comment' => _('reglages:: Hote SMTP'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_smtp_port',
'comment' => _('reglages:: Port SMTP'),
'default' => ''
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_smtp_secure',
'comment' => _('SMTP encryption'),
'default' => 'tls',
'available' => array('none' => _('None'), 'ssl' => 'SSL', 'tls' => 'TLS'),
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_smtp_user',
'comment' => _('reglages:: User SMTP'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_smtp_password',
'comment' => _('reglages:: Mot de passe SMTP'),
'default' => ''
)
)
), array(
'section' => _('GV::section:: Exports FTP'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_activeFTP',
'comment' => _('reglages:: active la possibilite d\'exports FTP ou non (onglet dans multiexports)'),
'default' => false
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_ftp_for_user',
'comment' => _('reglages:: Donne ou non export FTP aux utilisateurs ou e l\'admin uniquement'),
'default' => false
)
)
), array(
'section' => _('GV::section:: Configuration du client'),
'vars' => array(
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_download_max',
'comment' => _('Maximum megabytes allowed in download (if request is bigger, then mail is still available)'),
'default' => 120
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_ong_search',
'comment' => _('reglages:: position de l\'onglet de recherche'),
'default' => 1
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_ong_advsearch',
'comment' => _('reglages:: position de l\'onglet de recherche avancee'),
'default' => 2
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_ong_topics',
'comment' => _('reglages:: position de l\'onglet des topics'),
'default' => 0
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_ong_actif',
'comment' => _('reglages:: numero de l\'onglet actif'),
'default' => 1
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_client_render_topics',
'comment' => _('reglages:: rendu des topics'),
'available' => array('tree' => 'Arbres', 'popups' => 'Menus deroulants'),
'default' => 'tree'
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_rollover_reg_preview',
'comment' => _('reglages:: Voir le rollover sur les regroupements (fenetre de preview)'),
'default' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_rollover_chu',
'comment' => _('reglages:: Voir le rollover sur les elements du chutier'),
'default' => true
),
array(
'type' => \registry::TYPE_ENUM,
'name' => 'GV_client_coll_ckbox',
'comment' => _('reglages:: Presentation des collections'),
'default' => 'checkbox',
'available' => array('popup' => 'Menu deroulant', 'checkbox' => 'case a cocher')
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_viewSizeBaket',
'comment' => _('reglages:: Voir taille HD total des doc d\'un chutiers'),
'default' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_clientAutoShowProposals',
'comment' => _('reglages:: Afficher automatiquement l\'onglet des propositions s\'il y\'en a'),
'default' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_needAuth2DL',
'comment' => _('reglages:: Il est necessaire d\'etre connecte pour pouvoir telecharger en compte invite'),
'default' => true
),
array(
'type' => 'boolean',
'name' => 'GV_requireTOUValidationForExport',
'comment' => _('Users must accept Terms of Use for each export'),
'default' => false
)
)
), array(
'section' => _('GV::section:: Parametrage de l\'inscription'),
'vars' => array(
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_autoselectDB',
'comment' => _('reglages:: A true, cette option descative le choix de selection des bases sur lesquelles on s\'inscrit, et l\'inscription se fait sur toutes les bases ou jai le droit de m\'inscrire'),
'default' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_autoregister',
'comment' => _('reglages:: Activation de l\'autoinscription'),
'default' => false
)
)
), array(
'section' => _('GV::section:: Configuration du push'),
'vars' => array(
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_validation_reminder',
'comment' => _('reglages:: Nombre de jour avant la fin de la validation pour envoie de mail de rappel'),
'default' => 2
),
array(
'type' => \registry::TYPE_INTEGER,
'name' => 'GV_val_expiration',
'comment' => _('reglages:: dure de validite des liens genere pour les validations, si 0 => validite permanente'),
'default' => 10
)
)
), array(
'section' => _('GV::section:: Indexation par les robots'),
'vars' => array(
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_homeTitle',
'comment' => _('reglages :: Titre de l\'installation'),
'default' => 'Phraseanet'
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_metaKeywords',
'comment' => _('reglages:: Mots clefs pour l\'indexation des robots de moteurs de recherche'),
'default' => ''
),
array(
'type' => \registry::TYPE_TEXT,
'name' => 'GV_metaDescription',
'comment' => _('reglages :: Description de l\'installation'),
'default' => ''
),
array(
'type' => \registry::TYPE_STRING,
'name' => 'GV_googleAnalytics',
'comment' => _('reglages:: identifiant google analytics'),
'default' => ''
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_allow_search_engine',
'comment' => _('Allow the website to be indexed by search engines like Google'),
'default' => true
),
array(
'type' => \registry::TYPE_BOOLEAN,
'name' => 'GV_display_gcf',
'comment' => _('reglages:: Afficher le bandeau Google Chrome Frame'),
'default' => true
)
)
)
);
}, array($app));