示例#1
0
function help_resources($error_list = array())
{
    return array('<a target="_blank" href="' . LOADERS_FAQ_URL . '">ionCube Loaders FAQ</a>', '<a target="_blank" href="' . LOADER_FORUM_URL . '">ionCube Loader Forum</a>', '<a target="_blank" href="' . SUPPORT_SITE . 'index.php?department=3&subject=ionCube+Loader+installation+problem&message=' . support_ticket_information($error_list) . '">Raise a support ticket through our helpdesk</a>');
}
示例#2
0
function help_resources($error_list = array())
{
    $base = get_base_address();
    $server_type_code = server_type_code();
    $server_type = find_server_type();
    $sysinfo = get_sysinfo();
    $resources = array('<a target="_blank" href="' . LOADERS_FAQ_URL . '">ionCube Loaders FAQ</a>', '<a target="_blank" href="' . LOADER_FORUM_URL . '">ionCube Loader论坛</a>');
    if (SERVER_SHARED != $server_type || own_php_ini_possible(true)) {
        $resources[2] = '<a target="_blank" href="' . SUPPORT_SITE . htmlentities('index.php?department=3&subject=ionCube+Loader+installation+problem&message=' . support_ticket_information($error_list)) . '">通过提高我们的服务台支持票</a>';
    }
    if (SERVER_LOCAL == $server_type) {
        $resources[2] .= "<br><span id=\"download-archive\">支持工单创建以后,请";
        $resources[2] .= " <a href=\"{$base}&amp;page=system_info_archive&amp;stype={$server_type_code}\">单击这里获得系统信息包</a>。<br>";
        $resources[2] .= "请将系统信息包和创建的支持工单绑定在一起。</span>";
    }
    if (SERVER_SHARED == $server_type && own_php_ini_possible(true) && !user_ini_space_path($sysinfo['PHP_INI'])) {
        $resources[3] = '<strong>请检查您是否可以创建一个php.ini,来覆盖系统默认的php.ini。</strong>';
    }
    return $resources;
}
function help_resources($error_list = array())
{
    $base = get_base_address();
    $server_type_code = server_type_code();
    $server_type = find_server_type();
    $sysinfo = get_sysinfo();
    $resources = array('<a target="_blank" href="' . LOADERS_FAQ_URL . '">ionCube Loaders FAQ</a>', '<a target="_blank" href="' . LOADER_FORUM_URL . '">ionCube Loader Forum</a>');
    if (SERVER_SHARED != $server_type || own_php_ini_possible(true)) {
        $resources[2] = '<a target="_blank" href="' . SUPPORT_SITE . htmlentities('index.php?department=3&subject=ionCube+Loader+installation+problem&message=' . support_ticket_information($error_list)) . '">Raise a support ticket through our helpdesk</a>';
    }
    if (SERVER_LOCAL == $server_type) {
        $resources[2] .= "<br><span id=\"download-archive\">Once the support ticket has been created, please";
        $resources[2] .= " <a href=\"{$base}&amp;page=system_info_archive&amp;stype={$server_type_code}\">click here to get an archive of system information</a>.<br>";
        $resources[2] .= "Please attach that archive of system information to the ticket that you have created.</span>";
    }
    if (SERVER_SHARED == $server_type && own_php_ini_possible(true) && !user_ini_space_path($sysinfo['PHP_INI'])) {
        $resources[3] = '<strong>Please check with your host that you can create php.ini files that will override the system one.</strong>';
    }
    return $resources;
}
function help_resources($error_list = array())
{
    $self = get_self();
    $base = get_base_address();
    $server_type_code = server_type_code();
    $server_type = find_server_type();
    $sysinfo = get_sysinfo();
    $resources = array('<a target="_blank" href="' . LOADERS_FAQ_URL . '">ionCube Loaders FAQ</a>', '<a target="_blank" href="' . LOADER_FORUM_URL . '">ionCube Loader Forum</a>');
    if (SERVER_SHARED != $server_type || own_php_ini_possible(true)) {
        $support_info = array('department' => WIZARD_SUPPORT_TICKET_DEPARTMENT, 'subject' => "ionCube Loader installation problem", 'message' => support_ticket_information());
        if (SERVER_LOCAL == $server_type && !info_should_be_disabled()) {
            $temp_files = system_info_temporary_files();
        } else {
            $temp_files = NULL;
        }
        if (!empty($temp_files)) {
            $support_info['ini'] = base64_encode(file_get_contents($temp_files['ini']));
            $support_info['phpinfo'] = base64_encode(file_get_contents($temp_files['phpinfo']));
            $support_info['additional'] = base64_encode(file_get_contents($temp_files['additional']));
            $loader_path = find_loader(true);
            if (is_string($loader_path)) {
                $support_info['loader'] = base64_encode(file_get_contents($loader_path));
                $support_info['loader_name'] = basename($loader_path);
            } else {
                $support_info['loader'] = '';
                $support_info['loader_name'] = '';
            }
        } else {
            $support_info['ini'] = '';
            $support_info['phpinfo'] = '';
            $support_info['additional'] = '';
            $support_info['loader'] = '';
            $support_info['loader_name'] = '';
        }
        $resources[2] = '<form action="' . SUPPORT_SITE . 'lw_index.php' . '" method="POST" id="support-ticket"><a href="" onclick="document.getElementById(\'support-ticket\').submit(); return false;">Raise a support ticket through our helpdesk</a>';
        $resources[2] .= '<input type="hidden" name="department" value="' . $support_info['department'] . '"/>';
        $resources[2] .= '<input type="hidden" name="subject" value="' . $support_info['subject'] . '"/>';
        $resources[2] .= '<input type="hidden" name="message" value="' . $support_info['message'] . '"/>';
        if (!empty($temp_files)) {
            $resources[2] .= '<input type="hidden" name="phpinfo" value="' . $support_info['phpinfo'] . '"/>';
            $resources[2] .= '<input type="hidden" name="ini" value="' . $support_info['ini'] . '"/>';
            $resources[2] .= '<input type="hidden" name="additional" value="' . $support_info['additional'] . '"/>';
            $resources[2] .= '<input type="hidden" name="loader" value="' . $support_info['loader'] . '"/>';
            $resources[2] .= '<input type="hidden" name="loader_name" value="' . $support_info['loader_name'] . '"/>';
        }
        $resources[2] .= '</form>';
    }
    if (SERVER_SHARED == $server_type && own_php_ini_possible(true) && !user_ini_space_path($sysinfo['PHP_INI'])) {
        $resources[3] = '<strong>Please check with your host that you can create php.ini files that will override the system one.</strong>';
    }
    return $resources;
}