Revize 1364
Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)
freenetis/branches/testing/application/controllers/setup_config.php | ||
---|---|---|
);
|
||
|
||
$db = @mysql_select_db($form_data['db_name'], $con);
|
||
|
||
if (!$db)
|
||
{
|
||
$result = @mysql_query("
|
||
CREATE DATABASE " . mysql_escape_string($form_data['db_name']) . "
|
||
CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||
", $con);
|
||
|
||
if ($result)
|
||
{
|
||
$db = @mysql_select_db($form_data['db_name'], $con);
|
||
}
|
||
}
|
||
|
||
$view = new View('setup_config/main');
|
||
$view->content = new View('setup_config/setup');
|
freenetis/branches/testing/application/libraries/Forge.php | ||
---|---|---|
/**
|
||
* Returns the form as an array of input names and values.
|
||
*
|
||
* @param boolean clean If set to TRUE (default) returned values are escaped
|
||
* Otherwise they are not.
|
||
* @return array
|
||
*/
|
||
public function as_array($clean = TRUE)
|
Také k dispozici: Unified diff
Implementace #1234 (Instalace - vytvoreni DB).
Pridan komentar k Forge#as_array()