Conflicts:
	main/inc/lib/database.constants.inc.php
1.10.x
Angel Fernando Quiroz Campos 11 years ago
commit 8207cb83d1
  1. 41
      .gitignore
  2. 34
      .htaccess
  3. 4
      .scrutinizer.yml
  4. 2
      .travis.yml
  5. 2
      README.md
  6. 66
      app/AppKernel.php
  7. 0
      app/Resources/public/css/base.css
  8. 0
      app/Resources/public/css/base_chamilo.css
  9. 0
      app/Resources/public/css/chat.css
  10. 0
      app/Resources/public/css/csshover3.htc
  11. 0
      app/Resources/public/css/default_scorm.css
  12. 0
      app/Resources/public/css/markdown.css
  13. 0
      app/Resources/public/css/print.css
  14. 0
      app/Resources/public/css/responsive.css
  15. 0
      app/Resources/public/css/themes/chamilo/dataTable.css
  16. 4
      app/Resources/public/css/themes/chamilo/default.css
  17. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Bold.woff
  18. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Bold.woff2
  19. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Light.woff
  20. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Light.woff2
  21. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Semibold.woff
  22. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans-Semibold.woff2
  23. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans.woff
  24. 0
      app/Resources/public/css/themes/chamilo/fonts/OpenSans.woff2
  25. 0
      app/Resources/public/css/themes/chamilo/frames.css
  26. 0
      app/Resources/public/css/themes/chamilo/images/2leftarrow.gif
  27. 0
      app/Resources/public/css/themes/chamilo/images/2rightarrow.gif
  28. 0
      app/Resources/public/css/themes/chamilo/images/bg-button.png
  29. 0
      app/Resources/public/css/themes/chamilo/images/bg-main.png
  30. 0
      app/Resources/public/css/themes/chamilo/images/blue_arrow.png
  31. 0
      app/Resources/public/css/themes/chamilo/images/border-line.png
  32. 0
      app/Resources/public/css/themes/chamilo/images/bullet.gif
  33. 0
      app/Resources/public/css/themes/chamilo/images/button_accept.png
  34. 0
      app/Resources/public/css/themes/chamilo/images/button_delete.gif
  35. 0
      app/Resources/public/css/themes/chamilo/images/button_login.gif
  36. 0
      app/Resources/public/css/themes/chamilo/images/button_minus.gif
  37. 0
      app/Resources/public/css/themes/chamilo/images/button_minus.png
  38. 0
      app/Resources/public/css/themes/chamilo/images/button_plus_blue.png
  39. 0
      app/Resources/public/css/themes/chamilo/images/button_plus_green.png
  40. 0
      app/Resources/public/css/themes/chamilo/images/button_refresh.gif
  41. 0
      app/Resources/public/css/themes/chamilo/images/button_search.gif
  42. 0
      app/Resources/public/css/themes/chamilo/images/button_upload.gif
  43. 0
      app/Resources/public/css/themes/chamilo/images/chamilo-welcome.png
  44. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/Sorting icons.psd
  45. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/back_disabled.jpg
  46. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/back_enabled.jpg
  47. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/favicon.ico
  48. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/forward_disabled.jpg
  49. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/forward_enabled.jpg
  50. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/sort_asc.png
  51. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/sort_asc_disabled.png
  52. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/sort_both.png
  53. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/sort_desc.png
  54. 0
      app/Resources/public/css/themes/chamilo/images/dataTable/sort_desc_disabled.png
  55. 0
      app/Resources/public/css/themes/chamilo/images/header-logo.png
  56. 0
      app/Resources/public/css/themes/chamilo/images/help2.png
  57. 0
      app/Resources/public/css/themes/chamilo/images/icon-chamilo.png
  58. 0
      app/Resources/public/css/themes/chamilo/images/install.png
  59. 0
      app/Resources/public/css/themes/chamilo/images/loading.gif
  60. 0
      app/Resources/public/css/themes/chamilo/images/nav-border.png
  61. 0
      app/Resources/public/css/themes/chamilo/images/next.png
  62. 0
      app/Resources/public/css/themes/chamilo/images/portal.png
  63. 0
      app/Resources/public/css/themes/chamilo/images/previus.png
  64. 0
      app/Resources/public/css/themes/chamilo/images/refresh.png
  65. 0
      app/Resources/public/css/themes/chamilo/images/sprite-icon-social.png
  66. 0
      app/Resources/public/css/themes/chamilo/images/sprite-icon.png
  67. 0
      app/Resources/public/css/themes/chamilo/images/start-level.png
  68. 0
      app/Resources/public/css/themes/chamilo/images/user_icon.png
  69. 0
      app/Resources/public/css/themes/chamilo/images/user_password.png
  70. 0
      app/Resources/public/css/themes/chamilo/images/vineta.png
  71. 0
      app/Resources/public/css/themes/chamilo/images/white_arrow.png
  72. 0
      app/Resources/public/css/themes/chamilo/learnpath.css
  73. 0
      app/Resources/public/css/themes/chamilo/print.css
  74. 0
      app/Resources/public/css/themes/chamilo/scorm.css
  75. 0
      app/Resources/public/css/themes/chamilo/scormfs.css
  76. 0
      app/cache/.gitkeep
  77. 0
      app/cache/.htaccess
  78. 0
      app/config/add_course.conf.dist.php
  79. 0
      app/config/auth.conf.dist.php
  80. 4
      app/config/course_info.conf.dist.php
  81. 0
      app/config/events.conf.dist.php
  82. 19
      app/config/mail.conf.dist.php
  83. 0
      app/config/portfolio.conf.dist.php
  84. 0
      app/config/profile.conf.dist.php
  85. 0
      app/courses/.gitkeep
  86. 0
      app/home/default_platform_document/index.html
  87. 0
      app/home/default_platform_document/template_thumb/audiocomment.gif
  88. 0
      app/home/default_platform_document/template_thumb/checklist.gif
  89. 0
      app/home/default_platform_document/template_thumb/compare.gif
  90. 0
      app/home/default_platform_document/template_thumb/courseobjectives.gif
  91. 0
      app/home/default_platform_document/template_thumb/coursetitle.gif
  92. 0
      app/home/default_platform_document/template_thumb/cyclechart.gif
  93. 0
      app/home/default_platform_document/template_thumb/description.gif
  94. 0
      app/home/default_platform_document/template_thumb/diagram.gif
  95. 0
      app/home/default_platform_document/template_thumb/empty.gif
  96. 0
      app/home/default_platform_document/template_thumb/flash.gif
  97. 0
      app/home/default_platform_document/template_thumb/index.html
  98. 0
      app/home/default_platform_document/template_thumb/learnerwonder.gif
  99. 0
      app/home/default_platform_document/template_thumb/leftlist.gif
  100. 0
      app/home/default_platform_document/template_thumb/leftrightlist.gif
  101. Some files were not shown because too many files have changed in this diff Show More

41
.gitignore vendored

@ -1,39 +1,27 @@
# Chamilo configuration
main/inc/conf
# Cache directories
app/cache/*
!app/cache/.htaccess
# Temp directories
archive/*
!archive/.htaccess
# Chamilo configuration
app/config/
# Courses
courses/*
!courses/index.html
app/courses/*
# Home
home/*
app/home/*
# User images
main/upload/users/*
!main/upload/users/index.html
app/logs/*
app/Resources/translations/*
app/Resources/views/*
# Session images
main/upload/sessions/*
!main/upload/sessions/index.html
# Course images
main/upload/courses/*
!main/upload/courses/index.html
# Upload content
app/upload/*
# Logs and databases #
*.log
# Xapian indexes directory
searchdb/*
!searchdb/index.html
# IDE settings
.idea
.idea/*
.idea/dictionaries/*
@ -53,8 +41,3 @@ composer.lock
vendor
web/assets/*
# Data directory (new directory for archive/)
data/*
!data/index.html
data/badges/*
!data/badges/index.html

@ -0,0 +1,34 @@
# Check that your Apache virtualhost have this settings:
#<Directory "/var/www/chamilo-classic">
# AllowOverride All
# Order allow,deny
# Allow from all
#</Directory>
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=(.*)$
# http://my.chamilo.net/certificates/?id=123 to http://my.chamilo.net/certificates/index.php?id=123
RewriteRule ^certificates/$ certificates/index.php?id=%1 [L]
# http://my.chamilo.net/jdoe to http://my.chamilo.net/user.php?jdoe
RewriteRule ^([^/.]+)/?$ user.php?$1 [L]
# Course redirection
RewriteCond %{QUERY_STRING} ^id_session=(.*)$
RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cidReq=$1&id_session=%1 [L]
RewriteRule ^courses/([^/]+)/$ main/course_home/course_home.php?cidReq=$1&id_session=%1 [L]
RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cidReq=$1 [L]
# Rewrite everything in the scorm folder of a course to the download script
RewriteRule ^courses/([^/]+)/scorm/(.*)$ main/document/download_scorm.php?doc_url=/$2&cDir=$1 [QSA,L]
# Rewrite everything in the document folder of a course to the download script
RewriteRule ^courses/([^/]+)/document/(.*)$ main/document/download.php?doc_url=/$2&cDir=$1 [QSA,L]
# Rewrite everything in the work folder
RewriteRule ^courses/([^/]+)/work/(.*)$ main/work/download.php?file=work/$2&cDir=$1 [QSA,L]
# Course upload files
RewriteRule ^courses/([^/]+)/upload/(.*)$ app/courses/$1/upload/$2 [QSA,L]

@ -18,8 +18,8 @@ filter:
- tests/*
- main/img/*
- main/lang/*
- archive/*
- data/*
- app/cache/*
- app/logs/*
- web/*
checks:
php:

@ -40,7 +40,7 @@ before_script:
- cp chamilo-cli-install/chamilo-cli-installer.php main/install/
- mysql -u root -e 'create database chamilo'
# install Chamilo with Chash - see reference https://github.com/sonnym/travis-ci-drupal-module-example/blob/master/.travis.yml
- sudo chmod -R 0777 archive courses home main/upload/ main/default_course_document/images main/inc/conf searchdb main/lang main/css
- sudo chmod -R 0777 app/config app main/default_course_document/images main/lang
- cd main/install/
- sudo php5 chamilo-cli-installer.php -l admin -p admin -U travis -u 'http://localhost/' -X travis -L english -z 'admin@example.com' -f 'John' -g 'Doe' -b '555-5555' -c 'Test campus' -y 'Chamilo' -x 'https://chamilo.org'
- cd ../..

@ -59,7 +59,7 @@ composer update
On a Debian-based system, launch:
```
sudo chown -R www-data:www-data archive course data home searchdb main/upload/users main/upload/sessions main/upload/courses main/default_course_document/images main/lang main/css main/inc/conf
sudo chown -R www-data:www-data app main/default_course_document/images main/lang
```
### Start the installer

@ -0,0 +1,66 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Class AppKernel
*/
class AppKernel
{
protected $rootDir;
/**
* @return string
*/
public function getRootDir()
{
if (null === $this->rootDir) {
$r = new \ReflectionObject($this);
$this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
}
return $this->rootDir;
}
/**
* Returns the real root path
* @return string
*/
public function getRealRootDir()
{
return realpath($this->getRootDir().'/../').'/';
}
/**
* Returns the data path
* @return string
*/
public function getDataDir()
{
return $this->getRealRootDir().'data/';
}
/**
* @return string
*/
public function getAppDir()
{
return $this->getRealRootDir().'app/';
}
/**
* @return string
*/
public function getConfigDir()
{
return $this->getRealRootDir().'app/config/';
}
/**
* @return string
*/
public function getConfigurationFile()
{
return $this->getRealRootDir().'app/config/configuration.php';
}
}

@ -215,3 +215,7 @@ footer{
footer a{
color: #ffffff;
}
.navbar-default .navbar-brand {
color:white;
}

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 597 B

After

Width:  |  Height:  |  Size: 597 B

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Before

Width:  |  Height:  |  Size: 619 B

After

Width:  |  Height:  |  Size: 619 B

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

Before

Width:  |  Height:  |  Size: 912 B

After

Width:  |  Height:  |  Size: 912 B

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

@ -37,7 +37,7 @@ $showCreationDate = true;
$showLastEdit = true;
$showLastVisit = true;
$canReportExpirationDate = true; // Needs to be true
// if ScriptToReportExpirationDate
// is not automaticly called
// if ScriptToReportExpirationDate
// is not automaticly called
//$linkToChangeDiskQuota = 'changeQuota.php';
$urlScriptToReportExpirationDate = 'postpone.php'; // external script to postpone the expiration of course.

@ -0,0 +1,19 @@
<?php
/**
* This file holds the configuration settings
* for phpmailer Class.
*
* @package chamilo.configuration
*/
$platform_email['SMTP_FROM_EMAIL'] = (isset($administrator['email']) ? $administrator['email'] : 'admin@example.com');
$platform_email['SMTP_FROM_NAME'] = (isset($administrator['name']) ? $administrator['name'] : 'Admin');
$platform_email['SMTP_HOST'] = 'localhost';
$platform_email['SMTP_PORT'] = 25;
$platform_email['SMTP_MAILER'] = IS_WINDOWS_OS ? 'smtp' : 'mail'; // mail, sendmail or smtp
$platform_email['SMTP_AUTH'] = 0;
$platform_email['SMTP_USER'] = '';
$platform_email['SMTP_PASS'] = '';
$platform_email['SMTP_CHARSET'] = 'UTF-8';
$platform_email['SMTP_UNIQUE_SENDER'] = 0; // to send all mails from the same user

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save