Source for file export.action.php
Documentation is available at export.action.php
* @copyright Refer to copyright.php
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author Mambo Foundation Inc see README.php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function execute(&$controller, &$request)
include($root.
'/administrator/includes/pcl/pclzip.lib.php');
$zipfile =
"$root/media/MamboLanguage_$lang.zip";
$archive =
new PclZip($zipfile);
foreach ($language->files as $file) {
die("Error : ".
$archive->errorInfo(true));
if (ereg('Opera(/| )([0-9].[0-9]{1,2})', $UserAgent)) {
elseif (ereg('MSIE ([0-9].[0-9]{1,2})', $UserAgent)) {
$mime_type =
'application/x-zip';
$filename =
"MamboLanguage_$lang.zip";
header('Content-Type: ' .
$mime_type);
if ($UserBrowser ==
'IE') {
header('Content-Disposition: inline; filename="' .
$filename .
'"');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Disposition: attachment; filename="' .
$filename .
'"');
$fmanager->deleteFile($zipfile);
Documentation generated on Mon, 05 May 2008 16:19:26 +0400 by phpDocumentor 1.4.0