Fixing scorm_api in 1.10 + updating htaccess removing web/user now is managed by a controller.

1.10.x
Julio Montoya 11 years ago
parent 698cdc4161
commit 78cb376e57
  1. 7
      .htaccess
  2. 6
      main/newscorm/scorm_api.php

@ -16,7 +16,7 @@
RewriteRule ^courses/(.*)/$ web/courses/$1? [R,L]
# PHP Main files are redirected to the "web/main" zone
RewriteCond %{REQUEST_URI} !main/newscorm/scorm_api.php
RewriteRule ^main/(.*)\.php web/main/$1.php [R,L]
# Courses documents
@ -32,11 +32,6 @@
RewriteCond %{QUERY_STRING} ^id=([0-9]*)
RewriteRule ^certificates/(.*)$ web/certificates/%1? [R,L]
# User profile
# Redirection: user.php?jmontoya -> web/user/jmontoya
RewriteCond %{QUERY_STRING} ^([a-z0-9A-z]*)
RewriteRule ^user.php?$ web/user/%1? [R,L]
# Portal news
# news_list.php?id=5 --> web/news/5
RewriteCond %{QUERY_STRING} ^id=([0-9]*)

@ -29,11 +29,15 @@
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
require_once '../inc/global.inc.php';
require_once 'learnpath.class.php';
require_once 'learnpathItem.class.php';
require_once 'scorm.class.php';
$app['template.show_footer'] = false;
$app['template.show_header'] = false;
$app['default_layout'] = 'default/layout/blank.tpl';
$file = (empty($_SESSION['file'])?'':$_SESSION['file']);
$oLP = unserialize($_SESSION['lpobject']);
$oItem = $oLP->items[$oLP->current];

Loading…
Cancel
Save