| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* Install instructions |
| 4 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @package Mambo |
| 5 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @author Mambo Foundation Inc see README.php |
| 6 |
* |
* @copyright Mambo Foundation Inc. |
| 7 |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
* See COPYRIGHT.php for copyright notices and details. |
| 8 |
* that Mambo remained free Open Source software owned and managed by the community. |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see |
| 9 |
* Mambo is Free Software |
* LICENSE.php |
| 10 |
|
* Mambo is free software; you can redistribute it and/or |
| 11 |
|
* modify it under the terms of the GNU General Public License |
| 12 |
|
* as published by the Free Software Foundation; version 2 of the |
| 13 |
|
* License. |
| 14 |
*/ |
*/ |
| 15 |
if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); |
if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); |
| 16 |
|
|
| 47 |
if(is_writable($filename)) { |
if(is_writable($filename)) { |
| 48 |
$handle = fopen($filename,'w+'); |
$handle = fopen($filename,'w+'); |
| 49 |
$content = "<?php\n"; |
$content = "<?php\n"; |
| 50 |
|
$content.="defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );\n"; |
| 51 |
$content .= "\$lang = \"$lang\";\n"; |
$content .= "\$lang = \"$lang\";\n"; |
| 52 |
$content .= "\$charset = \"$charset\";\n"; |
$content .= "\$charset = \"$charset\";\n"; |
| 53 |
$content .= "\$text_direction = \"$text_direction\";\n"; |
$content .= "\$text_direction = \"$text_direction\";\n"; |
| 73 |
if (preg_match('/<?xml.*encoding=[\'"](.*?)[\'"].*?>/m', $source, $m)) { |
if (preg_match('/<?xml.*encoding=[\'"](.*?)[\'"].*?>/m', $source, $m)) { |
| 74 |
$encoding = strtoupper($m[1]); |
$encoding = strtoupper($m[1]); |
| 75 |
} |
} |
| 76 |
$parser = xml_parser_create("UTF-8"); |
$parser = xml_parser_create(); |
| 77 |
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"); |
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"); |
| 78 |
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); |
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); |
| 79 |
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); |
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); |
| 125 |
<title><?php echo T_('Mambo - Web Installer') ?></title> |
<title><?php echo T_('Mambo - Web Installer') ?></title> |
| 126 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> |
| 127 |
<link rel="shortcut icon" href="../images/favicon.ico" /> |
<link rel="shortcut icon" href="../images/favicon.ico" /> |
| 128 |
<link rel="stylesheet" href="install<? if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> |
<link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> |
| 129 |
<script type="text/javascript"> |
<script type="text/javascript"> |
| 130 |
<!-- |
<!-- |
| 131 |
var checkobj |
var checkobj |
| 274 |
</td> |
</td> |
| 275 |
</tr> |
</tr> |
| 276 |
<tr> |
<tr> |
| 277 |
|
<td> |
| 278 |
|
- <span class="red"><?php echo T_('Note:') ?></span> |
| 279 |
|
</td> |
| 280 |
|
<td align="left"> |
| 281 |
|
<?php echo T_('MySQL Strict Mode is not support') ?> |
| 282 |
|
</td> |
| 283 |
|
</tr> |
| 284 |
|
<tr> |
| 285 |
<td valign="top" class="item"> |
<td valign="top" class="item"> |
| 286 |
configuration.php |
configuration.php |
| 287 |
</td> |
</td> |