Browse Source

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

Julio Montoya 11 years ago
parent
commit
78cb376e57
2 changed files with 6 additions and 7 deletions
  1. 1 6
      .htaccess
  2. 5 1
      main/newscorm/scorm_api.php

+ 1 - 6
.htaccess

@@ -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]*)

+ 5 - 1
main/newscorm/scorm_api.php

@@ -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];