{\r
echo ' class="gry"';\r
}\r
- echo '> > ', _STEP3, "</li>¥n";\r
+ echo '> > ', _STEP3, "</li>\n";\r
}\r
if ( in_array($param->state, array('mysql', 'weblog', 'detail')) )\r
{\r
$languages = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);\r
foreach ($languages as $language)\r
{\r
- $language = preg_replace('#([¥w]+).*#', '$1', $language);\r
+ $language = preg_replace('#([\w]+).*#', '$1', $language);\r
break;\r
}\r
\r
<?php\r
foreach ( $locales as $locale )\r
{\r
- echo "<option value=¥"$locale[0]¥"";\r
+ echo "<option value=\"$locale[0]\"";\r
if ( i18n::strpos($locale[0], $language) === 0 )\r
{\r
echo ' selected';\r
}\r
- echo ">$locale[1]</option>¥n";\r
+ echo ">$locale[1]</option>\n";\r
}\r
?>\r
</select>\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
<?php\r
if ( $isPostback && !$param->check_all_parameters() )\r
{\r
- echo '<span class="err">', _ERROR26, "</span>¥n";\r
+ echo '<span class="err">', _ERROR26, "</span>\n";\r
}\r
?>\r
</p>\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
$errors = $param->check_path_parameters();\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
{\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
}\r
echo _ERROR27;\r
foreach ( $errors as $error )\r
{\r
- echo '<span class="err">', $error, "</span>¥n";\r
+ echo '<span class="err">', $error, "</span>\n";\r
}\r
}\r
else\r
$queries = fread($fd, filesize($filename) );\r
fclose($fd);\r
\r
- $queries = preg_split('#(;¥n|;¥r)#', $queries);\r
+ $queries = preg_split('#(;\n|;\r)#', $queries);\r
\r
foreach ( $queries as $query )\r
{\r
- if ( preg_match('/¥w+/', $query) )\r
+ if ( preg_match('/\w+/', $query) )\r
{\r
if ( $MYSQL_PREFIX )\r
{\r
/*\r
* 8. Write config file ourselves (if possible)\r
*/\r
- $config_data = '<' . '?php' . "¥n";\r
- $config_data .= "// mySQL connection information¥n";\r
- $config_data .= "¥$MYSQL_HOST = '" . $MYSQL_HOST . "';¥n";\r
- $config_data .= "¥$MYSQL_USER = '" . $MYSQL_USER . "';¥n";\r
- $config_data .= "¥$MYSQL_PASSWORD = '" . $MYSQL_PASSWORD . "';¥n";\r
- $config_data .= "¥$MYSQL_DATABASE = '" . $MYSQL_DATABASE . "';¥n";\r
- $config_data .= "¥$MYSQL_PREFIX = '" . $MYSQL_PREFIX . "';¥n";\r
- $config_data .= "// new in 3.50. first element is db handler, the second is the db driver used by the handler¥n";\r
- $config_data .= "// default is ¥$MYSQL_HANDLER = array('mysql','mysql');¥n";\r
- $config_data .= "//¥$MYSQL_HANDLER = array('mysql','mysql');¥n";\r
- $config_data .= "//¥$MYSQL_HANDLER = array('pdo','mysql');¥n";\r
- $config_data .= "¥$MYSQL_HANDLER = array('".$MYSQL_HANDLER[0]."','".$MYSQL_HANDLER[1]."');¥n";\r
- $config_data .= "¥n";\r
- $config_data .= "// main nucleus directory¥n";\r
- $config_data .= "¥$DIR_NUCLEUS = '" . $DIR_NUCLEUS . "';¥n";\r
- $config_data .= "¥n";\r
- $config_data .= "// path to media dir¥n";\r
- $config_data .= "¥$DIR_MEDIA = '" . $DIR_MEDIA . "';¥n";\r
- $config_data .= "¥n";\r
- $config_data .= "// extra skin files for imported skins¥n";\r
- $config_data .= "¥$DIR_SKINS = '" . $DIR_SKINS . "';¥n";\r
- $config_data .= "¥n";\r
- $config_data .= "// these dirs are normally sub dirs of the nucleus dir, but ¥n";\r
- $config_data .= "// you can redefine them if you wish¥n";\r
- $config_data .= "¥$DIR_PLUGINS = ¥$DIR_NUCLEUS . 'plugins/';¥n";\r
- $config_data .= "¥$DIR_LOCALES = ¥$DIR_NUCLEUS . 'locales/';¥n";\r
- $config_data .= "¥$DIR_LIBS = ¥$DIR_NUCLEUS . 'libs/';¥n";\r
- $config_data .= "¥n";\r
- $config_data .= "// include libs¥n";\r
- $config_data .= "include(¥$DIR_LIBS.'globalfunctions.php');¥n";\r
+ $config_data = '<' . '?php' . "\n";\r
+ $config_data .= "// mySQL connection information\n";\r
+ $config_data .= "\$MYSQL_HOST = '" . $MYSQL_HOST . "';\n";\r
+ $config_data .= "\$MYSQL_USER = '" . $MYSQL_USER . "';\n";\r
+ $config_data .= "\$MYSQL_PASSWORD = '" . $MYSQL_PASSWORD . "';\n";\r
+ $config_data .= "\$MYSQL_DATABASE = '" . $MYSQL_DATABASE . "';\n";\r
+ $config_data .= "\$MYSQL_PREFIX = '" . $MYSQL_PREFIX . "';\n";\r
+ $config_data .= "// new in 3.50. first element is db handler, the second is the db driver used by the handler\n";\r
+ $config_data .= "// default is \$MYSQL_HANDLER = array('mysql','mysql');\n";\r
+ $config_data .= "//\$MYSQL_HANDLER = array('mysql','mysql');\n";\r
+ $config_data .= "//\$MYSQL_HANDLER = array('pdo','mysql');\n";\r
+ $config_data .= "\$MYSQL_HANDLER = array('".$MYSQL_HANDLER[0]."','".$MYSQL_HANDLER[1]."');\n";\r
+ $config_data .= "\n";\r
+ $config_data .= "// main nucleus directory\n";\r
+ $config_data .= "\$DIR_NUCLEUS = '" . $DIR_NUCLEUS . "';\n";\r
+ $config_data .= "\n";\r
+ $config_data .= "// path to media dir\n";\r
+ $config_data .= "\$DIR_MEDIA = '" . $DIR_MEDIA . "';\n";\r
+ $config_data .= "\n";\r
+ $config_data .= "// extra skin files for imported skins\n";\r
+ $config_data .= "\$DIR_SKINS = '" . $DIR_SKINS . "';\n";\r
+ $config_data .= "\n";\r
+ $config_data .= "// these dirs are normally sub dirs of the nucleus dir, but \n";\r
+ $config_data .= "// you can redefine them if you wish\n";\r
+ $config_data .= "\$DIR_PLUGINS = \$DIR_NUCLEUS . 'plugins/';\n";\r
+ $config_data .= "\$DIR_LOCALES = \$DIR_NUCLEUS . 'locales/';\n";\r
+ $config_data .= "\$DIR_LIBS = \$DIR_NUCLEUS . 'libs/';\n";\r
+ $config_data .= "\n";\r
+ $config_data .= "// include libs\n";\r
+ $config_data .= "include(\$DIR_LIBS.'globalfunctions.php');\n";\r
$config_data .= "?" . ">";\r
\r
$result = false;\r
}\r
else\r
{\r
- $result = @sql_query('SHOW VARIABLES LIKE ¥'version¥'', $conn);\r
+ $result = @sql_query('SHOW VARIABLES LIKE \'version\'', $conn);\r
\r
if ( $result != FALSE && @sql_num_rows($result) > 0 )\r
{\r
{\r
//$output = shell_exec('mysql -V');\r
$output = ( function_exists('shell_exec') ) ? @shell_exec('mysql -V') : '0.0.0';\r
- preg_match('@[0-9]+¥.[0-9]+¥.[0-9]+@', $output, $version);\r
+ preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version);\r
$match = i18n::explode('.', $version[0]);\r
\r
if ( $match[0] == '' )\r
\r
if ( count($missingfiles) > 0 )\r
{\r
- exit(implode( "¥n", $missingfiles));\r
+ exit(implode( "\n", $missingfiles));\r
}\r
}\r
\r
}\r
\r
if ( $this->mysql_user != ''\r
- && !preg_match('/^[a-z0-9_¥-]+$/i', $this->mysql_user) )\r
+ && !preg_match('/^[a-z0-9_\-]+$/i', $this->mysql_user) )\r
{\r
$errors[] = sprintf(_ERROR2, _DB_FIELD2);\r
}\r
}\r
\r
if ( $this->mysql_database != ''\r
- && !preg_match('/^[a-z0-9_¥-]+$/i', $this->mysql_database) )\r
+ && !preg_match('/^[a-z0-9_\-]+$/i', $this->mysql_database) )\r
{\r
$errors[] = sprintf(_ERROR2, _DB_FIELD4);\r
}\r
$this->user_password = '';\r
}\r
\r
- if ( !preg_match("/^[a-z0-9¥._+¥-]+@[a-z0-9¥._¥-]+¥.[a-z]{2,6}$/i", $this->user_email) )\r
+ if ( !preg_match("/^[a-z0-9\._+\-]+@[a-z0-9\._\-]+\.[a-z]{2,6}$/i", $this->user_email) )\r
{\r
$errors[] = _ERROR7;\r
}\r