Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dylan Goubin-Dahan
authored and
Dylan Goubin-Dahan
committed
Nov 4, 2013
1 parent
ee9a85c
commit 8785d66
Showing
8,808 changed files
with
2,040,245 additions
and
2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,146 @@ | ||
openDAM | ||
======= | ||
# OPENDAM (v1.0.0) # | ||
|
||
## Pré-requis ## | ||
|
||
#### Système #### | ||
|
||
L'application OpenDam nécessite : | ||
|
||
- un serveur web sous Linux (Debian, Ubuntu, etc.), | ||
- PHP 5.3 minimum, | ||
- une connexion à une base de données MySql, | ||
- l'application [NODE.JS](http://nodejs.org/), | ||
- l'application [FFMPEG](http://www.ffmpeg.org/), | ||
- l'application [IMAGEMAGICK](http://www.imagemagick.org/). | ||
|
||
## Installation ## | ||
|
||
Lorsque vous avez terminé de télécharger l'application, décompressez-la dans le répertoire "web" de votre serveur (```/var/www/```ou ```/home/www/``` dans la plupart des cas). Vous devriez alors avoir un chemin du type ```/var/www/opendam/```. | ||
|
||
## Configuration ## | ||
|
||
#### Droits sur les répertoires #### | ||
|
||
Vous devez avant toute chose, modifier les droits d'accès aux répertoires ```cache/```et ```log/``` pour que l'application puisse écrire dedans : | ||
|
||
``` | ||
chmod 777 cache/ log/ | ||
``` | ||
|
||
Il faut aussi autoriser l'écriture dans le dossier d'upload des médias : | ||
|
||
``` | ||
chmod 767 -R web/data/ | ||
``` | ||
|
||
#### Serveur web #### | ||
Remplacez ```/path/to/application/``` par le chemin absolu vers le dossier de l'application. | ||
|
||
``` | ||
Listen 80 | ||
NameVirtualHost 127.0.0.1:80 | ||
<VirtualHost 127.0.0.1:80> | ||
DocumentRoot "/path/to/application/web" | ||
DirectoryIndex index.php | ||
<Directory "/path/to/application/web"> | ||
Options -Indexes FollowSymLinks MultiViews | ||
AllowOverride All | ||
Allow from All | ||
</Directory> | ||
Alias /sf /path/to/application/lib/vendor/symfony/data/web/sf | ||
<Directory "/path/to/application/lib/vendor/symfony/data/web/sf"> | ||
AllowOverride All | ||
Allow from all | ||
</Directory> | ||
</VirtualHost> | ||
``` | ||
Redémarrez Apache, pour que les modifications soient chargées. | ||
|
||
Depuis le serveur, lancez un navigateur et tapez dans la barre d'adresse <http://localhost/>. Vous arrivez sur l'écran de connexion de l'application. | ||
|
||
#### PHP ##### | ||
|
||
Certaines directives de PHP doivent être activées / désactivées. Il faut modifier les fichiers ```/etc/php5/cli/php.ini```et ```/etc/php5/apache2/php.ini```. Si ces directives sont préfixées par le caractère de mise en commentaire ```;```, il faut le supprimer. | ||
|
||
``` | ||
mbstring.language = UTF-8 | ||
mbstring.internal_encoding = UTF-8 | ||
mbstring.http_input = auto | ||
mbstring.http_output = UTF-8 | ||
mbstring.encoding_translation = On (Si la version de PHP < 5.4) | ||
mbstring.detect_order = auto | ||
mbstring.substitute_character = none | ||
expose_php = Off | ||
display_errors = Off | ||
log_errors = On | ||
short_open_tag = Off | ||
magic_quotes_gpc = Off | ||
register_globals = Off | ||
session.auto_start = 0 | ||
``` | ||
Redémarrez Apache, pour que les modifications soient chargées. | ||
|
||
#### Node.js #### | ||
|
||
Il faut installer ensuite le module ```less```pour node.js : | ||
|
||
``` | ||
npm install -g less | ||
``` | ||
|
||
#### FFMPEG #### | ||
|
||
Pour assurer le bon fonctionnement des conversions vidéos de l'outil, les librairies suivantes doivent être installées et configurées pour FFMPEG : | ||
|
||
- [LAME](http://lame.sourceforge.net/), | ||
- x264, | ||
- libvpx. | ||
|
||
Pour vérifier que votre version de ffmpeg a bien été configurée, saisissez : | ||
|
||
``` | ||
ffmpeg | ||
``` | ||
|
||
Parmi les lignes de résultats de la commande, vous devriez voir : | ||
|
||
``` | ||
configuration: --enable-libmp3lame --enable-libx264 --enable-libvpx | ||
``` | ||
|
||
Cela signifie que FFMPEG prend bien en charge les modules indispensables à OpenDam. | ||
|
||
#### MySql #### | ||
|
||
Pour créer la base de données, exécutez le fichier qui se trouve dans ```config/data/database.sql```. | ||
|
||
Éditez ensuite le fichier ```config/databses.yml``` et modifiez le serveur SQL ainsi que le login et mot de passe (```myHost```, ```myDatabase```, ```myUsername``` et ```myPassword``). | ||
|
||
``` | ||
all: | ||
propel: | ||
class: sfPropelDatabase | ||
param: | ||
classname: PropelPDO | ||
dsn: 'mysql:host=myHost;dbname=myDatabase' | ||
username: myUsername | ||
password: myPassword | ||
encoding: utf8 | ||
persistent: true | ||
pooling: true | ||
``` | ||
|
||
Une fois les modifications effectuées, il vous faut vider le cache de l'application par la commande : | ||
|
||
``` | ||
php symfony cc | ||
``` | ||
|
||
## Utilisation ## | ||
L'application contient, par défaut, un jeu de test pour vous montrer un avant-goût de la solution OpenDam. | ||
Pour vous connecter, il vous suffit de saisir un email (```john.doe@opendam.org```) et un mot de passe (```opendam```). |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# You can find more information about this file on the symfony website: | ||
# http://www.symfony-project.org/reference/1_4/en/11-App | ||
|
||
# default values | ||
prod: | ||
sf_less_plugin: | ||
compile: false | ||
assetic: | ||
active: false | ||
|
||
dev: | ||
all_module_on_admin: false | ||
sf_less_plugin: | ||
check_dates: true | ||
check_dependencies: true | ||
|
||
all: | ||
ch_cms_expose_routing: | ||
register_scripts: true | ||
register_routes: true | ||
auto_discover: true | ||
params_blacklist: | ||
- module | ||
- action | ||
|
||
max_per_page: 20 | ||
|
||
languages: | ||
available: [fr, en] | ||
|
||
path: | ||
upload_dir: "%sf_web_dir%/data" | ||
upload_dir_name: data | ||
temp_dir: "%sf_web_dir%/tmp" | ||
temp_dir_name: tmp | ||
images_dir: "%sf_web_dir%/images" | ||
images_dir_name: images | ||
css_dir: "%sf_web_dir%/css" | ||
css_dir_name: css | ||
js_dir: "%sf_web_dir%/js" | ||
js_dir_name: js | ||
flash_dir: "%sf_web_dir%/flah" | ||
flash_dir_name: flash | ||
temp_dir_js: "%sf_web_dir%/data/tmp_files" | ||
temp_dir_js_name: tmp_files | ||
qrcode_dir: "%sf_web_dir%/data/qrcode" | ||
qrcode_dir_name: data/qrcode | ||
download_dir: "%sf_web_dir%/download" | ||
download_dir_name: download | ||
|
||
facebox_iframe: | ||
sizes: [650, 750, 900] | ||
|
||
facebox_650: | ||
pages: [folder/comment, file/sendFileForm, file/move, file/copy, file/delete, folder/move, folder/delete, group/merge, file/moveSelected, file/copySelected, file/deleteSelected, folder/addFolderUpload, group/step1, group/merge, map/nomap, group/remove, file/regenerateThumbnails] | ||
|
||
facebox_750: | ||
pages: [folder/accessRights, folder/inviteUsers, folder/importUsers] | ||
|
||
facebox_900: | ||
pages: [group/manageUsers, group/accessRight, group/inviteUsers, group/importUsers, group/constraint, group/tags, folder/edit, folder/thumbnail, folder/default, file/replace, upload/uploadify2, group/fields, group/step1, group/thumbnail, group/require] | ||
|
||
imagemagick: | ||
profile_rgb: "%sf_root_dir%/inc/sRGB.icc" | ||
|
||
search: | ||
empty_media: keyword:none | ||
not_filename: -filename | ||
|
||
assetic: | ||
active: false | ||
yui_path: "%sf_lib_dir%/yuicompressor-2.4.7.jar" | ||
js: | ||
path: main-prod.js | ||
files: | ||
- jquery/jquery-2.0.3.min.js | ||
- jquery/jquery-migrate-1.2.1.min.js | ||
- jquery/jquery-ui.min.js | ||
- facebox.min.js | ||
- tools.js | ||
- plugins.min.js | ||
- basket.min.js | ||
- jquery.editable.min.js | ||
- jquery.datepicker.fr.min.js | ||
- jquery.datepicker.en.min.js | ||
- jquery.simplePagination.js | ||
- modules/global/scroll.js | ||
css: | ||
path: main-prod.css | ||
files: | ||
- app.css | ||
- style.css | ||
- font-awesome.min.css | ||
- jquery-ui-1.7.1.custom.css | ||
- module/user/login.css | ||
- module/user/password.css |
13 changes: 13 additions & 0 deletions
13
opendam/apps/backend/config/backendConfiguration.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
class backendConfiguration extends sfApplicationConfiguration | ||
{ | ||
public function configure() | ||
{ | ||
assert_options(ASSERT_ACTIVE, true); | ||
assert_options(ASSERT_BAIL, true); | ||
assert_options(ASSERT_WARNING, true); | ||
|
||
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../../lib')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# You can find more information about this file on the symfony website: | ||
# http://www.symfony-project.org/reference/1_4/en/09-Cache | ||
|
||
default: | ||
enabled: false | ||
with_layout: false | ||
lifetime: 86400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<link rel="shortcut icon" href="/images/favicon.ico" /> | ||
<link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" /> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="header"> | ||
<div id="logo"> | ||
<a href='/'> </a></div> | ||
</div> | ||
<div id="content"> | ||
<table cellpadding="0" cellspacing="0" style="margin:0px; padding:0px; width:100%; border:0px;"> | ||
<tr> | ||
<td style="border:0px" valign="top"> | ||
<div class="body-column"> | ||
<br /> | ||
<div id="error_background_500"> | ||
<div> | ||
<div> | ||
<?php echo __("Oops, an error occurred and our team has been notified."); ?><br /> | ||
<?php echo __("You can return to home by %1%.", array("%1%" => "<a href='/'>".__("clicking here")."</a>")); ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<div class="clear"></div> | ||
</div> | ||
<br /> | ||
<div id="footer"> | ||
<div id="footer-wrap"> | ||
<br/> | ||
<span class="footerLinkRight"> | ||
<?php echo __("Provided by")?> <a href='<?php echo __("http://www.wikipixel.com/"); ?>' target='_blank'>wikipixel</a> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# You can find more information about this file on the symfony website: | ||
# http://www.symfony-project.org/reference/1_4/en/05-Factories | ||
|
||
# production | ||
prod: | ||
logger: | ||
class: sfNoLogger | ||
param: | ||
level: err | ||
loggers: ~ | ||
|
||
# storage: | ||
# param: | ||
# session_cookie_domain: .wikipixel.com | ||
|
||
# testing | ||
test: | ||
storage: | ||
class: sfSessionTestStorage | ||
param: | ||
session_path: "%SF_TEST_CACHE_DIR%/sessions" | ||
|
||
response: | ||
class: sfWebResponse | ||
param: | ||
send_http_headers: false | ||
|
||
mailer: | ||
param: | ||
delivery_strategy: none | ||
|
||
# development | ||
dev: | ||
mailer: | ||
param: | ||
delivery_strategy: realtime | ||
|
||
# all | ||
all: | ||
storage: | ||
class: sfSessionStorage | ||
param: | ||
session_name: wikipixel_op | ||
|
||
routing: | ||
class: sfPatternRouting | ||
param: | ||
generate_shortest_url: true | ||
extra_parameters_as_query_string: true | ||
|
||
view_cache_manager: | ||
class: sfViewCacheManager | ||
param: | ||
cache_key_use_vary_headers: true | ||
cache_key_use_host_name: true | ||
|
||
user: | ||
class: myUser | ||
param: | ||
timeout: 1800 | ||
logging: "%SF_LOGGING_ENABLED%" | ||
use_flash: true | ||
default_culture: "%SF_DEFAULT_CULTURE%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# You can find more information about this file on the symfony website: | ||
# http://www.symfony-project.org/reference/1_4/en/12-Filters | ||
|
||
rendering: ~ | ||
|
||
security: | ||
mpSecurity: | ||
class: mpSecurityFilter | ||
|
||
cache: ~ | ||
execution: ~ |
Oops, something went wrong.