define('CURRENCY_SERVER_BACKUP', 'xe'); define('CURRENCY_SERVER_PRIMARY', 'oanda'); // define our general functions used application-wide require DIR_FS_FUNCTIONS . 'gen_functions.php'; require DIR_FS_FUNCTIONS . 'general.php'; require DIR_FS_FUNCTIONS . 'html_functions.php'; // set the session name and save path $http_domain = gen_get_top_level_domain(HTTP_SERVER); $https_domain = gen_get_top_level_domain(HTTPS_SERVER); $current_domain = $request_type == 'NONSSL' ? $http_domain : $https_domain; if (SESSION_USE_FQDN == 'False') { $current_domain = '.' . $current_domain; } // set the session cookie parameters session_set_cookie_params(0, '/', gen_not_null($current_domain) ? $current_domain : ''); $langs_available = load_language_dropdown(); // determine what company to connect to $db_name = $_GET['db']; if ($db_name && file_exists(DIR_FS_ADMIN . 'my_files/' . $db_name . '/config.php')) { define('DB_DATABASE', $db_name); require DIR_FS_ADMIN . 'my_files/' . $db_name . '/config.php'; } else { echo 'No database name passed. Cannot determine which company to connect to!'; exit; } // set the language if ($_GET['lang']) { foreach ($langs_available as $value) { if ($_GET['lang'] == $value['id']) { define('LANGUAGE', $_GET['lang']); }
default: } /***************** prepare to display templates *************************/ $sel_yes_no = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES)); $include_header = false; $include_footer = false; switch ($_REQUEST['action']) { case 'import': case 'import_one': case 'import_all': case 'refresh_dir': $sel_modules = array(); foreach ($loaded_modules as $mod) { $sel_modules[] = array('id' => $mod, 'text' => $mod); } $sel_language = load_language_dropdown(); define('PAGE_TITLE', PHREEFORM_DOC_IMPORT); $include_template = 'template_import.php'; break; default: case 'new_rpt': case 'new_frm': case 'new_ltr': $report = default_report(); if ($_REQUEST['action'] == 'new_rpt') { $report->reporttype = 'rpt'; } if ($_REQUEST['action'] == 'new_frm') { $report->reporttype = 'frm'; } if ($_REQUEST['action'] == 'new_ltr') {
echo TEXT_MAIN; ?> </p> <?php if ($zc_install->error) { require DIR_WS_INSTALL_TEMPLATE . 'display_errors.php'; } ?> <form method="post" action="index.php?main_page=license<?php if (isset($_GET['language'])) { echo '&language=' . $_GET['language']; } ?> "> <label for="language"> <?php echo LANGUAGE_TEXT; ?> <?php echo html_pull_down_menu('language', load_language_dropdown('language/'), isset($_GET['language']) ? $_GET['language'] : 'en_us', 'onchange="langSelect()";'); ?> </label><br /><br /> <iframe src="language/<?php echo $language; ?> /about_phreebooks.html"></iframe> <input type="submit" name="submit" class="button" value="<?php echo INSTALL; ?> " /> </form>