- get('box_steps_step_1'); ?>
- get('box_steps_step_2'); ?>
- get('box_steps_step_3'); ?>
- get('box_steps_step_4'); ?>
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(); ?>
get('text_successful_installation'); ?>
get('text_go_to_shop_after_cfg_file_is_saved'); ?>
![]() |
![]() |