📄 backlink.php
字号:
$limit = $url_array[$pos +4]; $limitstart = $url_array[$pos +5]; $year = $url_array[$pos +6]; $month = $url_array[$pos +7]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $_GET['limit'] = $limit; $_REQUEST['limit'] = $limit; $_GET['limitstart'] = $limitstart; $_REQUEST['limitstart'] = $limitstart; $_GET['year'] = $year; $_REQUEST['year'] = $year; $_GET['month'] = $month; $_REQUEST['month'] = $month; $QUERY_STRING = "option=com_content&task=$task&id=$id&Itemid=$Itemid&limit=$limit&limitstart=$limitstart&year=$year&month=$month"; } else if (isset ($url_array[$pos +7]) && $url_array[$pos +7] != '' && in_array('category', $url_array) && (strpos($url_array[$pos +5], 'order,') !== false)) { // $option/$task/$sectionid/$id/$Itemid/$order/$limit/$limitstart $task = $url_array[$pos +1]; $sectionid = $url_array[$pos +2]; $id = $url_array[$pos +3]; $Itemid = $url_array[$pos +4]; $order = str_replace('order,', '', $url_array[$pos +5]); $limit = $url_array[$pos +6]; $limitstart = $url_array[$pos +7]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['sectionid'] = $sectionid; $_REQUEST['sectionid'] = $sectionid; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $_GET['order'] = $order; $_REQUEST['order'] = $order; $_GET['limit'] = $limit; $_REQUEST['limit'] = $limit; $_GET['limitstart'] = $limitstart; $_REQUEST['limitstart'] = $limitstart; $QUERY_STRING = "option=com_content&task=$task§ionid=$sectionid&id=$id&Itemid=$Itemid&order=$order&limit=$limit&limitstart=$limitstart"; } else if (isset ($url_array[$pos +6]) && $url_array[$pos +6] != '') { // $option/$task/$sectionid/$id/$Itemid/$limit/$limitstart $task = $url_array[$pos +1]; $sectionid = $url_array[$pos +2]; $id = $url_array[$pos +3]; $Itemid = $url_array[$pos +4]; $limit = $url_array[$pos +5]; $limitstart = $url_array[$pos +6]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['sectionid'] = $sectionid; $_REQUEST['sectionid'] = $sectionid; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $_GET['limit'] = $limit; $_REQUEST['limit'] = $limit; $_GET['limitstart'] = $limitstart; $_REQUEST['limitstart'] = $limitstart; $QUERY_STRING = "option=com_content&task=$task§ionid=$sectionid&id=$id&Itemid=$Itemid&limit=$limit&limitstart=$limitstart"; } else if (isset ($url_array[$pos +5]) && $url_array[$pos +5] != '') { // $option/$task/$id/$Itemid/$limit/$limitstart $task = $url_array[$pos +1]; $id = $url_array[$pos +2]; $Itemid = $url_array[$pos +3]; $limit = $url_array[$pos +4]; $limitstart = $url_array[$pos +5]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $_GET['limit'] = $limit; $_REQUEST['limit'] = $limit; $_GET['limitstart'] = $limitstart; $_REQUEST['limitstart'] = $limitstart; $QUERY_STRING = "option=com_content&task=$task&id=$id&Itemid=$Itemid&limit=$limit&limitstart=$limitstart"; } else if (isset ($url_array[$pos +4]) && $url_array[$pos +4] != '' && (in_array('archivecategory', $url_array) || in_array('archivesection', $url_array))) { // $option/$task/$year/$month/$module $task = $url_array[$pos +1]; $year = $url_array[$pos +2]; $month = $url_array[$pos +3]; $module = $url_array[$pos +4]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['year'] = $year; $_REQUEST['year'] = $year; $_GET['month'] = $month; $_REQUEST['month'] = $month; $_GET['module'] = $module; $_REQUEST['module'] = $module; $QUERY_STRING = "option=com_content&task=$task&year=$year&month=$month&module=$module"; } else if (!(isset ($url_array[$pos +5]) && $url_array[$pos +5] != '') && isset ($url_array[$pos +4]) && $url_array[$pos +4] != '') { // $option/$task/$sectionid/$id/$Itemid $task = $url_array[$pos +1]; $sectionid = $url_array[$pos +2]; $id = $url_array[$pos +3]; $Itemid = $url_array[$pos +4]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['sectionid'] = $sectionid; $_REQUEST['sectionid'] = $sectionid; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $QUERY_STRING = "option=com_content&task=$task§ionid=$sectionid&id=$id&Itemid=$Itemid"; } else if (!(isset ($url_array[$pos +4]) && $url_array[$pos +4] != '') && (isset ($url_array[$pos +3]) && $url_array[$pos +3] != '')) { // $option/$task/$id/$Itemid $task = $url_array[$pos +1]; $id = $url_array[$pos +2]; $Itemid = $url_array[$pos +3]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['id'] = $id; $_REQUEST['id'] = $id; $_GET['Itemid'] = $Itemid; $_REQUEST['Itemid'] = $Itemid; $QUERY_STRING = "option=com_content&task=$task&id=$id&Itemid=$Itemid"; } else if (!(isset ($url_array[$pos +3]) && $url_array[$pos +3] != '') && (isset ($url_array[$pos +2]) && $url_array[$pos +2] != '')) { // $option/$task/$id $task = $url_array[$pos +1]; $id = $url_array[$pos +2]; // pass data onto global variables $_GET['task'] = $task; $_REQUEST['task'] = $task; $_GET['id'] = $id; $_REQUEST['id'] = $id; $QUERY_STRING = "option=com_content&task=$task&id=$id"; } else if (!(isset ($url_array[$pos +2]) && $url_array[$pos +2] != '') && (isset ($url_array[$pos +1]) && $url_array[$pos +1] != '')) { // $option/$task $task = $url_array[$pos +1]; $_GET['task'] = $task; $_REQUEST['task'] = $task; $QUERY_STRING = 'option=com_content&task=' . $task; } if ($lang != '') { $QUERY_STRING .= '&lang=' . $lang; } $_SERVER['QUERY_STRING'] = $QUERY_STRING; $REQUEST_URI = $uri[0] . 'index.php?' . $QUERY_STRING; $_SERVER['REQUEST_URI'] = $REQUEST_URI; } else if (in_array('component', $url_array)) { $name = 'component'; /* Components http://www.domain.com/component/$name,$value */ $uri = explode('component/', $_SERVER['REQUEST_URI']); $uri_array = explode('/', $uri[1]); $QUERY_STRING = ''; // needed for check if component exists $path = $mosConfig_absolute_path . '/components'; $dirlist = array (); if (is_dir($path)) { $base = opendir($path); while (false !== ($dir = readdir($base))) { if ($dir !== '.' && $dir !== '..' && is_dir($path . '/' . $dir) && strtolower($dir) !== 'cvs' && strtolower($dir) !== '.svn') { $dirlist[] = $dir; } } closedir($base); } foreach ($uri_array as $value) { $temp = explode(',', $value); if (isset ($temp[0]) && $temp[0] != '' && isset ($temp[1]) && $temp[1] != '') { $_GET[$temp[0]] = $temp[1]; $_REQUEST[$temp[0]] = $temp[1]; // check to ensure component actually exists if ($temp[0] == 'option') { $check = ''; if (count($dirlist)) { foreach ($dirlist as $dir) { if ($temp[1] == $dir) { $check = 1; break; } } } // redirect to 404 page if no component found to match url if (!$check) { header('HTTP/1.0 404 Not Found'); require_once ($mosConfig_absolute_path . '/templates/404.php'); exit (404); } } if ($QUERY_STRING == '') { $QUERY_STRING .= "$temp[0]=$temp[1]"; } else { $QUERY_STRING .= "&$temp[0]=$temp[1]"; } } } $_SERVER['QUERY_STRING'] = $QUERY_STRING; $REQUEST_URI = $uri[0] . 'index.php?' . $QUERY_STRING; $_SERVER['REQUEST_URI'] = $REQUEST_URI; } // let this go through and the rest of the system should handle it properly }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -