Merge branch '1.10.x' of https://github.com/chamilo/chamilo-lms into 7558
Conflicts: main/inc/lib/database.constants.inc.php1.10.x
@ -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] |
||||
@ -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'; |
||||
} |
||||
} |
||||
|
||||
|
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: 789 B After Width: | Height: | Size: 789 B |
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 294 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 772 B After Width: | Height: | Size: 772 B |
|
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 226 B |
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 617 B |
|
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 738 B |
|
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 729 B |
|
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 613 B |
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 612 B After Width: | Height: | Size: 612 B |
|
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 807 B |
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
|
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 635 B |
|
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
|
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: 17 KiB After Width: | Height: | Size: 17 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: 520 B After Width: | Height: | Size: 520 B |
|
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: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
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: 425 B After Width: | Height: | Size: 425 B |
|
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 203 B |
|
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 421 B |
@ -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 |
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 710 B |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |