function find_loader_filesystem() { $ld_inst_dir = loader_install_dir(find_server_type()); $loader_name = get_loader_name(); $suggested_loader_path = $ld_inst_dir . DIRECTORY_SEPARATOR . $loader_name; if (@file_exists($suggested_loader_path)) { $location = $suggested_loader_path; } elseif (@file_exists($loader_name)) { $location = @realpath($loader_name); } else { $ld_loc = get_loader_location(); if (@file_exists($ld_loc)) { $location = $ld_loc; } else { $location = ''; } } return $location; }
function phpini_page() { if (empty($loader_dir)) { $loader_dir = get_default_loader_dir(); } $loader_name = get_loader_name(); $loader_loc = $loader_dir . "/" . $loader_name; $loader_loc = get_loader_location(get_request_parameter('ldpath')); header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename=' . ini_file_name()); echo php_ini_contents($loader_loc); }
function phpini_page() { $loader_loc = get_loader_location(get_request_parameter('ldpath')); $ini_file_name = get_request_parameter('ininame'); if (empty($ini_file_name)) { $ini_file_name = ini_file_name(); } header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename=' . $ini_file_name); echo php_ini_contents($loader_loc); }