Skip to content

Commit

Permalink
CI: Installer: Prevent 404 errors on IIS for COPYING file in iframe.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11266 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tim Klingenberg committed Oct 26, 2011
1 parent 942f3b0 commit 547a360
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions application/controllers/installer.php
Expand Up @@ -793,6 +793,19 @@ function optional()
}
}

/**
* display the license file as IIS for example
* does not display it via the server.
*
*/
public function license()
{
$filename = base_url(). 'COPYING';
header('Content-Type: text/plain;');
readfile($filename);
exit;
}

/**
* Loads optional configuration screen.
* @return
Expand Down
2 changes: 1 addition & 1 deletion application/views/installer/license_view.php
Expand Up @@ -21,7 +21,7 @@
<div style="-moz-border-radius:15px; border-radius:15px;" >
<p>&nbsp;<?php echo $descp; ?></p>
<hr />
<iframe src="<?php echo base_url(); ?>COPYING" style="height: 268px; width: 694px; border-width: 0px;"> </iframe>
<iframe src="<?php echo site_url("installer/license"); ?>" style="height: 268px; width: 694px; border-width: 0px;"> </iframe>
<hr />

</div>
Expand Down

0 comments on commit 547a360

Please sign in to comment.