Fatal error: require(): Failed opening required 'includes/functions_compress.' (include_path='.;\xampp\php\PEAR') in D:\xampp\htdocs\phpBB_Rc2_new\includes\functions_display.php on line 1424
เรียกใช้ include($phpbb_root_path . 'includes/functions_display.' . $phpEx); เข้ามาใช้
โค้ด: เลือกทั้งหมด
function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $phpEx)
{
if (!class_exists('compress'))
{
require $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
}
$methods = compress::methods();
// Sort by preferred type.
$methods = array_intersect(array('.zip', '.tar.bz2', '.tar.gz', '.tar'), $methods);
$links = array();
foreach ($methods as $method)
{
$exploded = explode('.', $method);
$type = array_pop($exploded);
$params = array('archive' => $method);
$params[$param_key] = $param_val;
$links[] = array(
'LINK' => append_sid("{$phpbb_root_path}download/file.$phpEx", $params),
'TYPE' => $type,
);
}
return $links;
}