selectDatabase($_POST['DB_DATABASE']); $Qupdate = $osC_Database->query('update :table_configuration set configuration_value = :configuration_value where configuration_key = :configuration_key'); $Qupdate->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qupdate->bindValue(':configuration_value', $_POST['CFG_STORE_NAME']); $Qupdate->bindValue(':configuration_key', 'STORE_NAME'); $Qupdate->execute(); $Qupdate = $osC_Database->query('update :table_configuration set configuration_value = :configuration_value where configuration_key = :configuration_key'); $Qupdate->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qupdate->bindValue(':configuration_value', $_POST['CFG_STORE_OWNER_NAME']); $Qupdate->bindValue(':configuration_key', 'STORE_OWNER'); $Qupdate->execute(); $Qupdate = $osC_Database->query('update :table_configuration set configuration_value = :configuration_value where configuration_key = :configuration_key'); $Qupdate->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qupdate->bindValue(':configuration_value', $_POST['CFG_STORE_OWNER_EMAIL_ADDRESS']); $Qupdate->bindValue(':configuration_key', 'STORE_OWNER_EMAIL_ADDRESS'); $Qupdate->execute(); if (!empty($_POST['CFG_STORE_OWNER_NAME']) && !empty($_POST['CFG_STORE_OWNER_EMAIL_ADDRESS'])) { $Qupdate = $osC_Database->query('update :table_configuration set configuration_value = :configuration_value where configuration_key = :configuration_key'); $Qupdate->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qupdate->bindValue(':configuration_value', '"' . $_POST['CFG_STORE_OWNER_NAME'] . '" <' . $_POST['CFG_STORE_OWNER_EMAIL_ADDRESS'] . '>'); $Qupdate->bindValue(':configuration_key', 'EMAIL_FROM'); $Qupdate->execute(); } $Qcheck = $osC_Database->query('select user_name from :table_administrators where user_name = :user_name'); $Qcheck->bindTable(':table_administrators', TABLE_ADMINISTRATORS); $Qcheck->bindValue(':user_name', $_POST['CFG_ADMINISTRATOR_USERNAME']); $Qcheck->execute(); if ($Qcheck->numberOfRows()) { $Qadmin = $osC_Database->query('update :table_administrators set user_password = :user_password where user_name = :user_name'); } else { $Qadmin = $osC_Database->query('insert into :table_administrators (user_name, user_password) values (:user_name, :user_password)'); } $Qadmin->bindTable(':table_administrators', TABLE_ADMINISTRATORS); $Qadmin->bindValue(':user_password', osc_encrypt_string(trim($_POST['CFG_ADMINISTRATOR_PASSWORD']))); $Qadmin->bindValue(':user_name', $_POST['CFG_ADMINISTRATOR_USERNAME']); $Qadmin->execute(); $Qadmin = $osC_Database->query('select id from :table_administrators where user_name = :user_name'); $Qadmin->bindTable(':table_administrators', TABLE_ADMINISTRATORS); $Qadmin->bindValue(':user_name', $_POST['CFG_ADMINISTRATOR_USERNAME']); $Qadmin->execute(); $Qcheck = $osC_Database->query('select module from :table_administrators_access where administrators_id = :administrators_id limit 1'); $Qcheck->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); $Qcheck->bindInt(':administrators_id', $Qadmin->valueInt('id')); $Qcheck->execute(); if ($Qcheck->numberOfRows()) { $Qdel = $osC_Database->query('delete from :table_administrators_access where administrators_id = :administrators_id'); $Qdel->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); $Qdel->bindInt(':administrators_id', $Qadmin->valueInt('id')); $Qdel->execute(); } $Qaccess = $osC_Database->query('insert into :table_administrators_access (administrators_id, module) values (:administrators_id, :module)'); $Qaccess->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); $Qaccess->bindInt(':administrators_id', $Qadmin->valueInt('id')); $Qaccess->bindValue(':module', '*'); $Qaccess->execute(); ?>
  1. get('box_steps_step_1'); ?>
  2. get('box_steps_step_2'); ?>
  3. get('box_steps_step_3'); ?>
  4. get('box_steps_step_4'); ?>

get('page_title_installation'); ?>

get('text_installation'); ?>

get('box_info_step_4_title'); ?>

get('box_info_step_4_text'); ?>

get('page_heading_step_4'); ?>

setIncludeDirectories(false); $osC_DirectoryListing->setCheckExtension('cache'); foreach ($osC_DirectoryListing->getFiles() as $files) { @unlink($osC_DirectoryListing->getDirectory() . '/' . $files['name']); } $file_contents = ''; if (file_exists($dir_fs_document_root . 'includes/configure.php') && !is_writeable($dir_fs_document_root . 'includes/configure.php')) { @chmod($dir_fs_document_root . 'includes/configure.php', 0777); } if (file_exists($dir_fs_document_root . 'includes/configure.php') && is_writeable($dir_fs_document_root . 'includes/configure.php')) { $fp = fopen($dir_fs_document_root . 'includes/configure.php', 'w'); fputs($fp, $file_contents); fclose($fp); ?>

get('text_successful_installation'); ?>

get('error_configuration_file_not_writeable'), $dir_fs_document_root . 'includes/configure.php'); ?>

getCode() . '/images/buttons/retry.gif" border="0" alt="' . $osC_Language->get('image_button_retry') . '" />'; ?>

get('error_configuration_file_alternate_method'); ?>
$value) { if ($key != 'x' && $key != 'y') { if (is_array($value)) { for ($i=0, $n=sizeof($value); $i<$n; $i++) { echo osc_draw_hidden_field($key . '[]', $value[$i]); } } else { echo osc_draw_hidden_field($key, $value); } } } ?>

get('text_go_to_shop_after_cfg_file_is_saved'); ?>


Catalog Administration Tool