Skip to content

Commit

Permalink
remove local memory limit restriction - see also changeset:249 and ch…
Browse files Browse the repository at this point in the history
…angeset:248 - this allows us to export templates up to the size of phps memory limit setting

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@250 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Jan 25, 2012
1 parent 77854a7 commit 86b08c0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions website_code/php/scorm/export.php
Expand Up @@ -24,21 +24,20 @@
$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 +235,3 @@
}

}

?>

0 comments on commit 86b08c0

Please sign in to comment.