Skip to content

Commit

Permalink
remove explicit local memory limit restriction - templates can easily…
Browse files Browse the repository at this point in the history
… go above 64mb - esp with graphics or video... which would stop the export working - rely on server setting for memory limit

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/branches/1.7@248 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Jan 25, 2012
1 parent 5b83ed6 commit b70f193
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions website_code/php/scorm/export.php
Expand Up @@ -24,21 +24,21 @@
$delete_folder_array = array();

ini_set('max_execution_time', 300);
ini_set('memory_limit','64M');

if(is_numeric($_GET['template_id'])){
$_GET['template_id'] = (int) $_GET['template_id'];

$proceed = false;

if(is_template_exportable(mysql_real_escape_string($_GET['template_id']))){
if(is_template_exportable($_GET['template_id'])){

$proceed = true;

}else{

require("../../../session.php");
require_once("../../../session.php");

if(is_user_creator(mysql_real_escape_string($_GET['template_id']))||is_user_admin()){
if(is_user_creator($_GET['template_id'])||is_user_admin()){

$proceed = true;

Expand Down Expand Up @@ -236,5 +236,3 @@
}

}

?>

0 comments on commit b70f193

Please sign in to comment.