diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-09-21 18:25:01 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-09-21 18:25:01 +0000 |
commit | 592872878bc2da70367b2f79c8a1b86a7505c594 (patch) | |
tree | a2e43c80a771bff9a335e00e30950adb057c40ce /admin | |
parent | fd412dab5b512baf8f75f4b19f98478db08f2d60 (diff) |
Use prefixeTable instead of prefix_table to be compliant with previous
releases
git-svn-id: http://piwigo.org/svn/trunk@156 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/install.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/admin/install.php b/admin/install.php index 68c76d068..303cccffb 100644 --- a/admin/install.php +++ b/admin/install.php @@ -81,7 +81,7 @@ if ( $_GET['step'] == 1 ) $file_content.= "\n\$cfgUser = '". $_POST['cfgUser']."';"; $file_content.= "\n\$cfgPassword = '". $_POST['cfgPassword']."';"; $file_content.= "\n\$cfgHote = '". $_POST['cfgHote']."';"; - $file_content.= "\n\$prefixeTable = '".$_POST['prefix_table']."';"; + $file_content.= "\n\$prefixeTable = '".$_POST['prefixeTable']."';"; $file_content.= "\n?>"; // writting the configuration file if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) ) @@ -153,11 +153,11 @@ if ( $_GET['step'] == 1 ) $vtp->setVar( $handle, 'step1.f_user', $_POST['cfgUser'] ); // base $vtp->setVar( $handle, 'step1.f_base', $_POST['cfgBase'] ); - // prefix_table - if ( !isset( $_POST['prefix_table'] ) ) - $vtp->setVar( $handle, 'step1.f_prefix_table', 'phpwebgallery_' ); + // prefixeTable + if ( !isset( $_POST['prefixeTable'] ) ) + $vtp->setVar( $handle, 'step1.f_prefixeTable', 'phpwebgallery_' ); else - $vtp->setVar( $handle, 'step1.f_prefix_table', $_POST['prefix_table'] ); + $vtp->setVar( $handle, 'step1.f_prefixeTable', $_POST['prefixeTable'] ); $vtp->closeSession( $handle, 'step1' ); } @@ -188,7 +188,7 @@ else if ( $_GET['step'] == 2 ) if ( preg_match( '/;$/', $sql_line ) ) { $query = trim( $query ); - $query = str_replace( 'phpwebgallery_', $prefix_table, $query ); + $query = str_replace( 'phpwebgallery_', $prefixeTable, $query ); // we don't execute "DROP TABLE" queries if ( !preg_match( '/^DROP TABLE/i', $query ) ) mysql_query( $query ); @@ -221,22 +221,22 @@ else if ( $_GET['step'] == 2 ) // if no error found till here : insertion of data in tables if ( count( $errors ) == 0 ) { - $query = 'DELETE FROM '.$prefix_table.'config'; + $query = 'DELETE FROM '.$prefixeTable.'config'; mysql_query( $query ); - $query = 'INSERT INTO '.$prefix_table.'config'; + $query = 'INSERT INTO '.$prefixeTable.'config'; $query.= ' (webmaster,mail_webmaster) VALUES '; $query.= " ('".$webmaster."','".$_POST['mail_webmaster']."')"; $query.= ';'; mysql_query( $query ); - $query = 'INSERT INTO '.$prefix_table.'sites'; + $query = 'INSERT INTO '.$prefixeTable.'sites'; $query.= " (id,galleries_url) VALUES (1, './galleries/')"; $query.= ';'; mysql_query( $query ); // webmaster admin user - $query = 'INSERT INTO '.$prefix_table.'users'; + $query = 'INSERT INTO '.$prefixeTable.'users'; $query.= ' (id,username,password,status,language) VALUES '; $query.= "(1,'".$webmaster."','".md5( $_POST['pwdWebmaster'] )."'"; $query.= ",'admin','".$_GET['language']."')"; @@ -244,7 +244,7 @@ else if ( $_GET['step'] == 2 ) mysql_query($query); // guest user - $query = 'INSERT INTO '.$prefix_table.'users'; + $query = 'INSERT INTO '.$prefixeTable.'users'; $query.= '(id,username,password,status,language) VALUES '; $query.= "(2,'guest','','guest','francais')"; $query.= ';'; |