Mercurial > defr > drupal > core
comparison install.php @ 11:589fb7c02327 6.5
Drupal 6.5
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:32:19 +0100 |
| parents | acef7ccb09b5 |
| children | 8b6c45761e01 |
comparison
equal
deleted
inserted
replaced
| 10:6f15c9d74937 | 11:589fb7c02327 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: install.php,v 1.113.2.5 2008/07/18 07:17:44 dries Exp $ | 2 // $Id: install.php,v 1.113.2.6 2008/09/17 08:47:04 goba Exp $ |
| 3 | 3 |
| 4 require_once './includes/install.inc'; | 4 require_once './includes/install.inc'; |
| 5 | 5 |
| 6 define('MAINTENANCE_MODE', 'install'); | 6 define('MAINTENANCE_MODE', 'install'); |
| 7 | 7 |
| 88 // Load the profile. | 88 // Load the profile. |
| 89 require_once "./profiles/$profile/$profile.profile"; | 89 require_once "./profiles/$profile/$profile.profile"; |
| 90 | 90 |
| 91 // Locale selection | 91 // Locale selection |
| 92 if (!empty($_GET['locale'])) { | 92 if (!empty($_GET['locale'])) { |
| 93 $install_locale = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['locale']); | 93 $install_locale = preg_replace('/[^a-zA-Z_0-9\-]/', '', $_GET['locale']); |
| 94 } | 94 } |
| 95 elseif (($install_locale = install_select_locale($profile)) !== FALSE) { | 95 elseif (($install_locale = install_select_locale($profile)) !== FALSE) { |
| 96 install_goto("install.php?profile=$profile&locale=$install_locale"); | 96 install_goto("install.php?profile=$profile&locale=$install_locale"); |
| 97 } | 97 } |
| 98 | 98 |
