array('folder'=>'en','hr'=>'------ Reply above this line ------')); if (!isset($hesk_settings['x_frame_opt'])) { $hesk_settings['x_frame_opt'] = 1; } if (!isset($hesk_settings['samesite'])) { $hesk_settings['samesite'] = 'Lax'; } if (!isset($hesk_settings['force_ssl'])) { $hesk_settings['force_ssl'] = 0; } error_reporting(E_ALL); // Database upgrades from old versions can take quite some time, remove time limit if ( function_exists('set_time_limit') ) { set_time_limit(0); } require(HESK_PATH . 'inc/common.inc.php'); require(HESK_PATH . 'inc/admin_functions.inc.php'); require(HESK_PATH . 'inc/setup_functions.inc.php'); hesk_load_database_functions(); // Start the session hesk_session_start(); // ******* FUNCTIONS ******* // function hesk_iTestDatabaseConnection($use_existing_settings = false) { global $hesk_db_link, $hesk_settings, $hesklang; $db_success = 1; // Get MySQL settings, except for successful updates if ( ! $use_existing_settings) { $hesk_settings['db_host'] = hesk_input( hesk_POST('host') ); $hesk_settings['db_name'] = hesk_input( hesk_POST('name') ); $hesk_settings['db_user'] = str_replace('&', '&', hesk_input( hesk_POST('user') ) ); $hesk_settings['db_pass'] = str_replace('&', '&', hesk_input( hesk_POST('pass') ) ); if (INSTALL_PAGE == 'install.php') { // Get table prefix, don't allow any special chars $hesk_settings['db_pfix'] = preg_replace('/[^0-9a-zA-Z_]/', '', hesk_POST('pfix', 'hesk_') ); } } // Use MySQLi extension to connect? $use_mysqli = function_exists('mysqli_connect') ? true : false; // Start output buffering ob_start(); // Connect to database if ($use_mysqli) { // Do we need a special port? Check and connect to the database if ( strpos($hesk_settings['db_host'], ':') ) { list($hesk_settings['db_host_no_port'], $hesk_settings['db_port']) = explode(':', $hesk_settings['db_host']); $hesk_db_link = mysqli_connect($hesk_settings['db_host_no_port'], $hesk_settings['db_user'], $hesk_settings['db_pass'], $hesk_settings['db_name'], intval($hesk_settings['db_port']) ) or $db_success=0; } else { $hesk_db_link = mysqli_connect($hesk_settings['db_host'], $hesk_settings['db_user'], $hesk_settings['db_pass'], $hesk_settings['db_name']) or $db_success=0; } } else { $hesk_db_link = mysql_connect($hesk_settings['db_host'],$hesk_settings['db_user'], $hesk_settings['db_pass']) or $db_success=0; // Select database works OK? if ($db_success == 1 && ! mysql_select_db($hesk_settings['db_name'], $hesk_db_link) ) { // No, try to create the database if (function_exists('mysql_create_db') && mysql_create_db($hesk_settings['db_name'], $hesk_db_link)) { if (mysql_select_db($hesk_settings['db_name'], $hesk_db_link)) { $db_success = 1; } else { $db_success = 0; } } else { $db_success = 0; } } } ob_end_clean(); // Test DB permissions if ($db_success) { $sql[0] = "DROP TABLE IF EXISTS `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test`"; $sql[1] = "CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` (`id` smallint(1) unsigned NOT NULL DEFAULT '0') ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"; $sql[2] = "INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` (`id`) VALUES ('0')"; $sql[3] = "SELECT `id` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` WHERE `id`='0' LIMIT 1"; $sql[4] = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` SET `id`='1' WHERE `id`='0'"; $sql[5] = "DELETE FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` WHERE `id`='0'"; $sql[6] = "ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test` ADD `name` CHAR(1) NULL DEFAULT NULL AFTER `id`"; $sql[7] = "CREATE INDEX `name` ON `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test`(`name`) "; $sql[8] = "DROP TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."mysql_test`"; if ($use_mysqli) { for ($i=0; $i<=8; $i++) { if (! $res = mysqli_query($hesk_db_link, $sql[$i])) { global $mysql_log; $mysql_log = mysqli_error($hesk_db_link); hesk_iDatabase(1); } } } else { for ($i=0; $i<=8; $i++) { if (! $res = mysql_query($sql[$i], $hesk_db_link)) { global $mysql_log; $mysql_log = mysql_error(); hesk_iDatabase(1); } } } } // Any errors? if ( ! $db_success) { global $mysql_log; $mysql_log = $use_mysqli ? mysqli_connect_error() : mysql_error(); hesk_iDatabase(1); } // Check MySQL version define('MYSQL_VERSION', hesk_dbResult( hesk_dbQuery('SELECT VERSION() AS version') ) ); if ( version_compare(MYSQL_VERSION,REQUIRE_MYSQL_VERSION,'<') ) { hesk_iDatabase(5); } // We need utf-8 hesk_dbSetNames(); return $hesk_db_link; } // END hesk_iTestDatabaseConnection() function hesk_iSaveSettingsFile($set) { global $hesk_settings, $hesklang; // Make sure OPcache is reset when modifying settings if ( function_exists('opcache_reset') ) { opcache_reset(); } $settings_file_content=' GENERAL // --> General settings $hesk_settings[\'site_title\']=\'' . $set['site_title'] . '\'; $hesk_settings[\'site_url\']=\'' . $set['site_url'] . '\'; $hesk_settings[\'hesk_title\']=\'' . $set['hesk_title'] . '\'; $hesk_settings[\'hesk_url\']=\'' . $set['hesk_url'] . '\'; $hesk_settings[\'webmaster_mail\']=\'' . $set['webmaster_mail'] . '\'; $hesk_settings[\'noreply_mail\']=\'' . $set['noreply_mail'] . '\'; $hesk_settings[\'noreply_name\']=\'' . $set['noreply_name'] . '\'; $hesk_settings[\'site_theme\']=\'' . $set['site_theme'] . '\'; $hesk_settings[\'admin_css\']=' . $set['admin_css'] . '; $hesk_settings[\'admin_css_url\']=\'' . $set['admin_css_url'] . '\'; // --> Language settings $hesk_settings[\'can_sel_lang\']=' . $set['can_sel_lang'] . '; $hesk_settings[\'language\']=\'' . $set['language'] . '\'; $hesk_settings[\'languages\']=array( \'English\' => array(\'folder\'=>\'en\',\'hr\'=>\'------ Reply above this line ------\'), ); // --> Database settings $hesk_settings[\'db_host\']=\'' . $set['db_host'] . '\'; $hesk_settings[\'db_name\']=\'' . $set['db_name'] . '\'; $hesk_settings[\'db_user\']=\'' . $set['db_user'] . '\'; $hesk_settings[\'db_pass\']=\'' . $set['db_pass'] . '\'; $hesk_settings[\'db_pfix\']=\'' . $set['db_pfix'] . '\'; // ==> HELP DESK // --> Help desk settings $hesk_settings[\'admin_dir\']=\'' . $set['admin_dir'] . '\'; $hesk_settings[\'attach_dir\']=\'' . $set['attach_dir'] . '\'; $hesk_settings[\'cache_dir\']=\'' . $set['cache_dir'] . '\'; $hesk_settings[\'max_listings\']=' . $set['max_listings'] . '; $hesk_settings[\'print_font_size\']=' . $set['print_font_size'] . '; $hesk_settings[\'autoclose\']=' . $set['autoclose'] . '; $hesk_settings[\'max_open\']=' . $set['max_open'] . '; $hesk_settings[\'due_soon\']=' . $set['due_soon'] . '; $hesk_settings[\'new_top\']=' . $set['new_top'] . '; $hesk_settings[\'reply_top\']=' . $set['reply_top'] . '; $hesk_settings[\'hide_replies\']=' . $set['hide_replies'] . '; $hesk_settings[\'limit_width\']=' . $set['limit_width'] . '; // --> Features $hesk_settings[\'autologin\']=' . $set['autologin'] . '; $hesk_settings[\'autoassign\']=' . $set['autoassign'] . '; $hesk_settings[\'require_email\']=' . $set['require_email'] . '; $hesk_settings[\'require_owner\']=' . $set['require_owner'] . '; $hesk_settings[\'require_subject\']=' . $set['require_subject'] . '; $hesk_settings[\'require_message\']=' . $set['require_message'] . '; $hesk_settings[\'custclose\']=' . $set['custclose'] . '; $hesk_settings[\'custopen\']=' . $set['custopen'] . '; $hesk_settings[\'rating\']=' . $set['rating'] . '; $hesk_settings[\'cust_urgency\']=' . $set['cust_urgency'] . '; $hesk_settings[\'sequential\']=' . $set['sequential'] . '; $hesk_settings[\'time_worked\']=' . $set['time_worked'] . '; $hesk_settings[\'spam_notice\']=' . $set['spam_notice'] . '; $hesk_settings[\'list_users\']=' . $set['list_users'] . '; $hesk_settings[\'debug_mode\']=' . $set['debug_mode'] . '; $hesk_settings[\'short_link\']=' . $set['short_link'] . '; $hesk_settings[\'select_cat\']=' . $set['select_cat'] . '; $hesk_settings[\'select_pri\']=' . $set['select_pri'] . '; $hesk_settings[\'cat_show_select\']=' . $set['cat_show_select'] . '; $hesk_settings[\'staff_ticket_formatting\']=' . $set['staff_ticket_formatting'] . '; // --> SPAM Prevention $hesk_settings[\'secimg_use\']=' . $set['secimg_use'] . '; $hesk_settings[\'secimg_sum\']=\'' . $set['secimg_sum'] . '\'; $hesk_settings[\'recaptcha_use\']=' . $set['recaptcha_use'] . '; $hesk_settings[\'recaptcha_public_key\']=\'' . $set['recaptcha_public_key'] . '\'; $hesk_settings[\'recaptcha_private_key\']=\'' . $set['recaptcha_private_key'] . '\'; $hesk_settings[\'question_use\']=' . $set['question_use'] . '; $hesk_settings[\'question_ask\']=\'' . $set['question_ask'] . '\'; $hesk_settings[\'question_ans\']=\'' . $set['question_ans'] . '\'; // --> Security $hesk_settings[\'attempt_limit\']=' . $set['attempt_limit'] . '; $hesk_settings[\'attempt_banmin\']=' . $set['attempt_banmin'] . '; $hesk_settings[\'flood\']=' . $set['flood'] . '; $hesk_settings[\'reset_pass\']=' . $set['reset_pass'] . '; $hesk_settings[\'email_view_ticket\']=' . $set['email_view_ticket'] . '; $hesk_settings[\'x_frame_opt\']=' . $set['x_frame_opt'] . '; $hesk_settings[\'samesite\']=\'' . $set['samesite'] . '\'; $hesk_settings[\'force_ssl\']=' . $set['force_ssl'] . '; $hesk_settings[\'url_key\']=\'' . $set['url_key'] . '\'; // --> Attachments $hesk_settings[\'attachments\']=array ( \'use\' => ' . $set['attachments']['use'] . ', \'max_number\' => ' . $set['attachments']['max_number'] . ', \'max_size\' => ' . $set['attachments']['max_size'] . ', \'allowed_types\' => array(\'' . implode('\',\'',$set['attachments']['allowed_types']) . '\') ); // ==> KNOWLEDGEBASE // --> Knowledgebase settings $hesk_settings[\'kb_enable\']=' . $set['kb_enable'] . '; $hesk_settings[\'kb_wysiwyg\']=' . $set['kb_wysiwyg'] . '; $hesk_settings[\'kb_search\']=' . $set['kb_search'] . '; $hesk_settings[\'kb_search_limit\']=' . $set['kb_search_limit'] . '; $hesk_settings[\'kb_views\']=' . $set['kb_views'] . '; $hesk_settings[\'kb_date\']=' . $set['kb_date'] . '; $hesk_settings[\'kb_recommendanswers\']=' . $set['kb_recommendanswers'] . '; $hesk_settings[\'kb_rating\']=' . $set['kb_rating'] . '; $hesk_settings[\'kb_substrart\']=' . $set['kb_substrart'] . '; $hesk_settings[\'kb_cols\']=' . $set['kb_cols'] . '; $hesk_settings[\'kb_numshow\']=' . $set['kb_numshow'] . '; $hesk_settings[\'kb_popart\']=' . $set['kb_popart'] . '; $hesk_settings[\'kb_latest\']=' . $set['kb_latest'] . '; $hesk_settings[\'kb_index_popart\']=' . $set['kb_index_popart'] . '; $hesk_settings[\'kb_index_latest\']=' . $set['kb_index_latest'] . '; $hesk_settings[\'kb_related\']=' . $set['kb_related'] . '; // ==> EMAIL // --> Email sending $hesk_settings[\'smtp\']=' . $set['smtp'] . '; $hesk_settings[\'smtp_host_name\']=\'' . $set['smtp_host_name'] . '\'; $hesk_settings[\'smtp_host_port\']=' . $set['smtp_host_port'] . '; $hesk_settings[\'smtp_timeout\']=' . $set['smtp_timeout'] . '; $hesk_settings[\'smtp_ssl\']=' . $set['smtp_ssl'] . '; $hesk_settings[\'smtp_tls\']=' . $set['smtp_tls'] . '; $hesk_settings[\'smtp_user\']=\'' . $set['smtp_user'] . '\'; $hesk_settings[\'smtp_password\']=\'' . $set['smtp_password'] . '\'; // --> Email piping $hesk_settings[\'email_piping\']=' . $set['email_piping'] . '; // --> POP3 Fetching $hesk_settings[\'pop3\']=' . $set['pop3'] . '; $hesk_settings[\'pop3_job_wait\']=' . $set['pop3_job_wait'] . '; $hesk_settings[\'pop3_host_name\']=\'' . $set['pop3_host_name'] . '\'; $hesk_settings[\'pop3_host_port\']=' . $set['pop3_host_port'] . '; $hesk_settings[\'pop3_tls\']=' . $set['pop3_tls'] . '; $hesk_settings[\'pop3_keep\']=' . $set['pop3_keep'] . '; $hesk_settings[\'pop3_user\']=\'' . $set['pop3_user'] . '\'; $hesk_settings[\'pop3_password\']=\'' . $set['pop3_password'] . '\'; // --> IMAP Fetching $hesk_settings[\'imap\']=' . $set['imap'] . '; $hesk_settings[\'imap_job_wait\']=' . $set['imap_job_wait'] . '; $hesk_settings[\'imap_host_name\']=\'' . $set['imap_host_name'] . '\'; $hesk_settings[\'imap_host_port\']=' . $set['imap_host_port'] . '; $hesk_settings[\'imap_enc\']=\'' . $set['imap_enc'] . '\'; $hesk_settings[\'imap_noval_cert\']=' . $set['imap_noval_cert'] . '; $hesk_settings[\'imap_keep\']=' . $set['imap_keep'] . '; $hesk_settings[\'imap_user\']=\'' . $set['imap_user'] . '\'; $hesk_settings[\'imap_password\']=\'' . $set['imap_password'] . '\'; // --> Email loops $hesk_settings[\'loop_hits\']=' . $set['loop_hits'] . '; $hesk_settings[\'loop_time\']=' . $set['loop_time'] . '; // --> Detect email typos $hesk_settings[\'detect_typos\']=' . $set['detect_typos'] . '; $hesk_settings[\'email_providers\']=array(' . $set['email_providers'] . '); // --> Notify customer when $hesk_settings[\'notify_new\']=' . $set['notify_new'] . '; $hesk_settings[\'notify_skip_spam\']=' . $set['notify_skip_spam'] . '; $hesk_settings[\'notify_spam_tags\']=array(' . $set['notify_spam_tags'] . '); $hesk_settings[\'notify_closed\']=' . $set['notify_closed'] . '; // --> Other $hesk_settings[\'strip_quoted\']=' . $set['strip_quoted'] . '; $hesk_settings[\'eml_req_msg\']=' . $set['eml_req_msg'] . '; $hesk_settings[\'save_embedded\']=' . $set['save_embedded'] . '; $hesk_settings[\'multi_eml\']=' . $set['multi_eml'] . '; $hesk_settings[\'confirm_email\']=' . $set['confirm_email'] . '; $hesk_settings[\'open_only\']=' . $set['open_only'] . '; // ==> TICKET LIST $hesk_settings[\'ticket_list\']=array(\'' . implode('\',\'',$set['ticket_list']) . '\'); // --> Other $hesk_settings[\'submittedformat\']=' . $set['submittedformat'] . '; $hesk_settings[\'updatedformat\']=' . $set['updatedformat'] . '; // ==> MISC // --> Date & Time $hesk_settings[\'timezone\']=\'' . $set['timezone'] . '\'; $hesk_settings[\'timeformat\']=\'' . $set['timeformat'] . '\'; $hesk_settings[\'time_display\']=\'' . $set['time_display'] . '\'; // --> Other $hesk_settings[\'ip_whois\']=\'' . $set['ip_whois'] . '\'; $hesk_settings[\'maintenance_mode\']=' . $set['maintenance_mode'] . '; $hesk_settings[\'alink\']=' . $set['alink'] . '; $hesk_settings[\'submit_notice\']=' . $set['submit_notice'] . '; $hesk_settings[\'online\']=' . $set['online'] . '; $hesk_settings[\'online_min\']=' . $set['online_min'] . '; $hesk_settings[\'check_updates\']=' . $set['check_updates'] . '; ############################# # DO NOT EDIT BELOW # ############################# $hesk_settings[\'hesk_version\']=\'' . $set['hesk_version'] . '\'; if ($hesk_settings[\'debug_mode\']) { error_reporting(E_ALL); } else { error_reporting(0); } if (!defined(\'IN_SCRIPT\')) {die(\'Invalid attempt!\');}'; // Write to the settings file if ( ! file_put_contents(HESK_PATH . 'hesk_settings.inc.php', $settings_file_content) ) { hesk_error($hesklang['err_openset']); } return true; } // END hesk_iSaveSettingsFile() function hesk_iDatabase($problem=0) { global $hesk_settings, $hesk_db_link, $mysql_log; hesk_iHeader(); ?>

Database settings



Double-check all the information below. Contact your hosting company for the correct information to use!

MySQL said: '.$mysql_log.'

', 'Database connection failed'); } elseif ($problem == 2) { hesk_show_error('Database tables already exist!

HESK database tables with '.$hesk_settings['db_pfix'].' prefix already exist in this database!

To upgrade an existing HESK installation select Update existing install instead.

To install a new copy of HESK in the same database use a unique table prefix.'); } elseif ($problem == 3) { hesk_show_error('Old database tables not found!

HESK database tables have not been found in this database!

To install HESK use the New install option instead.'); } elseif ($problem == 4) { hesk_show_error('Version '.HESK_NEW_VERSION.' tables already exist!

Your database seems to be compatible with HESK version '.HESK_NEW_VERSION.'

To install a new copy of HESK use the New install option instead.'); } elseif ($problem == 5) { hesk_show_error('MySQL version '.REQUIRE_MYSQL_VERSION.'+ required, you are using: ' . MYSQL_VERSION . '

You are using and old and insecure MySQL version with known bugs, security issues and outdated functionality.

Ask your hosting company to update your MySQL version.'); } elseif ($problem == 6) { hesk_show_notice('Please select your help desk timezone'); } else { hesk_show_notice('Contact your host for help with correct database settings', 'Tip'); } ?>
Database Host:
Database Name:
Database User (login):
User Password:
Table prefix:

HESK login details

Username and password you will use to login into HESK administration.

Choose a Username:
Choose a Password:
  Generate a random password

Other info

Help desk timezone:

 

'.REQUIRE_PHP_VERSION.'+ required, you are using: ' . PHP_VERSION . '

You are using and old and insecure PHP version with known bugs, security issues and outdated functionality.

Ask your hosting company to update your PHP version. '; } // 2. json_encode / json_decode must be available if (!extension_loaded('json')) { $correct_these[] = 'The JSON PHP extension is required. Ask your hosting company about how to have the JSON extension enabled.'; } // 3. File hesk_settings.inc.php must be writable if ( ! is__writable(HESK_PATH . 'hesk_settings.inc.php') ) { // -> try to CHMOD it if ( function_exists('chmod') ) { @chmod(HESK_PATH . 'hesk_settings.inc.php', 0666); } // -> test again if ( ! is__writable(HESK_PATH . 'hesk_settings.inc.php') ) { $correct_these[] = ' File hesk_settings.inc.php is not writable by PHP.

Make sure PHP has permission to write to file hesk_settings.inc.php

» on Linux servers CHMOD this file to 666 (rw-rw-rw-)
» on Windows servers allow Internet Guest Account to modify the file
» contact your hosting company for help with setting up file permissions. '; } } // 4. Folder attachments must exist $hesk_settings['attach_dir_name'] = isset($hesk_settings['attach_dir']) ? $hesk_settings['attach_dir'] : 'attachments'; $hesk_settings['attach_dir'] = HESK_PATH . $hesk_settings['attach_dir_name']; // -> Try to create it if ( ! file_exists($hesk_settings['attach_dir']) ) { @mkdir($hesk_settings['attach_dir'], 0755); } // -> Is the folder now there? if ( is_dir($hesk_settings['attach_dir']) ) { // -> Is it writable? if ( ! is__writable($hesk_settings['attach_dir']) ) { // -> try to CHMOD it @chmod($hesk_settings['attach_dir'], 0777); // -> test again if ( ! is__writable($hesk_settings['attach_dir']) ) { $correct_these[] = ' Folder ' . $hesk_settings['attach_dir_name'] . ' is not writable by PHP.

Make sure PHP has permission to write to folder ' . $hesk_settings['attach_dir_name'] . '

» on Linux servers CHMOD this folder to 777 (rwxrwxrwx)
» on Windows servers allow Internet Guest Account to modify the folder
» contact your hosting company for help with setting up folder permissions. '; } } } else { $correct_these[] = ' Folder ' . $hesk_settings['attach_dir_name'] . ' is missing.

Create a folder called ' . $hesk_settings['attach_dir_name'] . ' inside your main HESK folder.

'; } // 4.2 Folder cache must exist $hesk_settings['cache_dir_name'] = isset($hesk_settings['cache_dir']) ? $hesk_settings['cache_dir'] : 'cache'; $hesk_settings['cache_dir'] = HESK_PATH . $hesk_settings['cache_dir_name']; // -> Try to create it if ( ! file_exists($hesk_settings['cache_dir']) ) { @mkdir($hesk_settings['cache_dir'], 0755); } // -> Is the folder now there? if ( is_dir($hesk_settings['cache_dir']) ) { // -> Is it writable? if ( ! is__writable($hesk_settings['cache_dir']) ) { // -> try to CHMOD it @chmod($hesk_settings['cache_dir'], 0777); // -> test again if ( ! is__writable($hesk_settings['cache_dir']) ) { $correct_these[] = ' Folder ' . $hesk_settings['cache_dir_name'] . ' is not writable by PHP.

Make sure PHP has permission to write to folder ' . $hesk_settings['cache_dir_name'] . '

» on Linux servers CHMOD this folder to 777 (rwxrwxrwx)
» on Windows servers allow Internet Guest Account to modify the folder
» contact your hosting company for help with setting up folder permissions. '; } } } else { $correct_these[] = ' Folder ' . $hesk_settings['cache_dir_name'] . ' is missing.

Create a folder called ' . $hesk_settings['cache_dir_name'] . ' inside your main HESK folder.

'; } // 5. MySQL must be available if ( ! function_exists('mysql_connect') && ! function_exists('mysqli_connect') ) { $correct_these[] = ' MySQL is disabled.

HESK requires MySQL to be installed and enabled.

Ask your hosting company to enable MySQL for PHP. '; } // 6. Can we use GD library? $GD_LIB = ( extension_loaded('gd') && function_exists('gd_info') ) ? true : false; // 7. Make sure old files are deleted $hesk_settings['admin_dir'] = isset($hesk_settings['admin_dir']) ? $hesk_settings['admin_dir'] : 'admin'; $old_files = array( // pre-0.93 *.inc files 'hesk_settings.inc','hesk.sql','inc/common.inc','inc/database.inc','inc/footer.inc','inc/header.inc', 'inc/print_tickets.inc','inc/show_admin_nav.inc','inc/show_search_form.inc','install.php','update.php', // pre-2.0 files 'admin.php','admin_change_status.php','admin_main.php','admin_move_category','admin_reply_ticket.php', 'admin_settings.php','admin_settings_save.php','admin_ticket.php','archive.php', 'delete_tickets.php','find_tickets.php','manage_canned.php','manage_categories.php', 'manage_users.php','profile.php','show_tickets.php', // pre-2.1 files 'emails/','language/english.php', // pre-2.3 files 'secimg.inc.php', // pre-2.4 files 'hesk_style_v23.css','TreeMenu.js', // malicious files that were found on some websites illegally redistributing HESK 'inc/tiny_mce/utils/r00t10.php', 'language/en/help_files/r00t10.php', // pre-2.5 files 'hesk_style_v24.css', 'hesk_javascript_v24.js', // pre-2.6 files 'hesk_style_v25.css', 'hesk_javascript_v25.js', // pre-2.7 files, $hesk_settings['admin_dir'].'/options.php', // pre-3.0 files, $hesk_settings['admin_dir'].'/admin_settings.php', 'img/add_article.png', 'img/add_category.png', 'img/anonymize.png', 'img/article_text.png', 'img/autoassign_off.png', 'img/autoassign_on.png', 'img/ban.png', 'img/banned.png', 'img/blank.gif', 'img/bluebtn.png', 'img/clip.png', 'img/code.png', 'img/code_off.png', 'img/delete.png', 'img/delete_off.png', 'img/delete_ticket.png', 'img/edit.png', 'img/email.png', 'img/error.png', 'img/existingticket.png', 'img/export.png', 'img/flag_critical.png', 'img/flag_high.png', 'img/flag_low.png', 'img/flag_low2.png', 'img/flag_medium.png', 'img/folder-expanded.gif', 'img/folder.gif', 'img/greenbtn.jpg', 'img/greenbtnover.gif', 'img/header.png', 'img/headerbgsm.jpg', 'img/headerleftsm.jpg', 'img/headerrightsm.jpg', 'img/header_bottom.png', 'img/header_bottom_left.png', 'img/header_bottom_right.png', 'img/header_left.png', 'img/header_right.png', 'img/header_top.png', 'img/header_up_left.png', 'img/header_up_right.png', 'img/ico-search.png', 'img/ico_canned.gif', 'img/ico_categories.gif', 'img/ico_home.gif', 'img/ico_kb.gif', 'img/ico_logout.gif', 'img/ico_mail.gif', 'img/ico_profile.gif', 'img/ico_reports.gif', 'img/ico_settings.gif', 'img/ico_tools.png', 'img/ico_users.gif', 'img/import_kb.png', 'img/import_kb1.png', 'img/inbox.png', 'img/info.png', 'img/link.png', 'img/lock.png', 'img/login.png', 'img/mail.png', 'img/manage.png', 'img/menu.png', 'img/move_down.png', 'img/move_down1.png', 'img/move_down2.png', 'img/move_down3.png', 'img/move_down4.png', 'img/move_down5.png', 'img/move_down6.png', 'img/move_down7.png', 'img/move_down8.png', 'img/move_down9.png', 'img/move_up.png', 'img/move_up1.png', 'img/move_up2.png', 'img/move_up3.png', 'img/move_up4.png', 'img/move_up5.png', 'img/move_up6.png', 'img/move_up7.png', 'img/move_up8.png', 'img/move_up9.png', 'img/newticket.png', 'img/new_mail.png', 'img/notice.png', 'img/online_off.png', 'img/online_on.png', 'img/orangebtn.jpg', 'img/orangebtnover.gif', 'img/orangebtnsec.jpg', 'img/outbox.png', 'img/print.png', 'img/private.png', 'img/public.png', 'img/refresh.png', 'img/reload.png', 'img/roundcornersb.jpg', 'img/roundcornerslb.jpg', 'img/roundcornerslm.jpg', 'img/roundcornerslt.jpg', 'img/roundcornersrb.jpg', 'img/roundcornersrm.jpg', 'img/roundcornersrt.jpg', 'img/roundcornerst.jpg', 'img/sort_priority_asc.png', 'img/sort_priority_desc.png', 'img/star_0.png', 'img/star_10.png', 'img/star_15.png', 'img/star_20.png', 'img/star_25.png', 'img/star_30.png', 'img/star_35.png', 'img/star_40.png', 'img/star_45.png', 'img/star_50.png', 'img/sticky.png', 'img/sticky_off.png', 'img/success.png', 'img/tableheader.jpg', 'img/tag.png', 'img/tag_off.png', 'img/unlock.png', 'img/vertical.jpg', 'img/view.png', ); sort($old_files); $still_exist = array(); foreach ($old_files as $f) { if (file_exists(HESK_PATH . $f)) { //Try to remove the file @unlink(HESK_PATH . $f); // If not successful, ask the user to delete those files if (file_exists(HESK_PATH . $f)) { $still_exist[] = $f; } } } $old_folders = array( // pre-2.4 folders 'help_files/', // pre-3.0 folders 'inc/calendar/', ); foreach ($old_folders as $f) { if (is_dir(HESK_PATH . $f)) { //Try to remove the folder hesk_rrmdir(HESK_PATH . $f); // If not successful, ask the user to delete those folders if (is_dir(HESK_PATH . $f)) { $still_exist[] = $f; } } } if ( count($still_exist) ) { sort(array_unique($still_exist)); $correct_these[] = ' Outdated files and folders

For security reasons please delete these legacy files and folders:
'; } // Do we have any errors? if ( count($correct_these) ) { hesk_iHeader(); ?>  

 

HESK Software End User License Agreement

Read the HESK End-User License Agreement here

 

 

'; echo file_exists('../docs/license.html') ? '' : $eula_alt; ?>

 

Do you accept the HESK Software End-User License Agreement?
 

 

 

'1. License agreement', 2 => '2. Check setup', 3 => '3. Setup Database', 4 => '4. Finishing touches' ); ?> HESK setup script: <?php echo HESK_NEW_VERSION; ?>
HESK setup script:
$description) { if ($number == $_SESSION['step']) { $steps[$number] = '' . $steps[$number] . ''; } elseif ($number < $_SESSION['step']) { $steps[$number] = '' . $steps[$number] . ''; } } echo implode(' » ', $steps); ?>

Read installation guide before using this setup script!', 'Important'); } ?>
   

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies


Error: PHP sessions not working!

Note that this is a server configuration issue, not a HESK issue.

Please contact your hosting company and ask them to verify why PHP sessions aren't working on your server!

$sub_v) { $v[$k] = hesk_compareVariable($sub_k,$sub_v); } } if (isset($hesk_settings[$k])) { return $hesk_settings[$k]; } else { return $v; } } // END hesk_compareVariable() function is__writable($path) { //will work in despite of Windows ACLs bug //NOTE: use a trailing slash for folders!!! //see http://bugs.php.net/bug.php?id=27609 //see http://bugs.php.net/bug.php?id=30931 if ($path[strlen($path)-1]=='/') // recursively return a temporary file path return is__writable($path.uniqid(mt_rand()).'.tmp'); else if (is_dir($path)) return is__writable($path.'/'.uniqid(mt_rand()).'.tmp'); // check tmp file for read/write capabilities $rm = file_exists($path); $f = @fopen($path, 'a'); if ($f===false) return false; fclose($f); if (!$rm) unlink($path); return true; } // END is__writable()