Пример #1
0
         }
         fwrite($fp, $config_contents);
         fclose($fp);
         @chmod('../includes/configure.php', 0444);
     }
     if (!$error) {
         // set the session variables so they can log in
         $_SESSION['admin_id'] = $user_id;
         $_SESSION['admin_prefs'] = '';
         $_SESSION['language'] = $lang;
         $_SESSION['account_id'] = '';
         $_SESSION['admin_security'] = gen_parse_permissions($security);
         $include_template = 'template_finish.php';
         define('PAGE_TITLE', TITLE_FINISH);
         if (DEBUG) {
             $messageStack->write_debug();
         }
     } else {
         $include_template = 'template_install.php';
         define('PAGE_TITLE', TITLE_INSTALL);
     }
     break;
 case 'finish':
     $include_template = 'template_finish.php';
     define('PAGE_TITLE', INSTALL_TITLE_FINISH);
     break;
 case 'open_company':
     require '../includes/configure.php';
     $path = (ENABLE_SSL_ADMIN == 'true' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN;
     define('DIR_WS_FULL_PATH', $path);
     // full http path (or https if secure)