Build canonical links after checking parameters
This commit is contained in:
@ -37,13 +37,6 @@ function send_html(): void
|
|||||||
_('Last added')=>"address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing)',
|
_('Last added')=>"address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing)',
|
||||||
_('Offline > 1 week')=>"address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing) AND timediff>604800'
|
_('Offline > 1 week')=>"address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing) AND timediff>604800'
|
||||||
];
|
];
|
||||||
$canonical_query = [];
|
|
||||||
if(isset($_REQUEST['cat'])) {
|
|
||||||
$canonical_query['cat'] = $_REQUEST['cat'];
|
|
||||||
}
|
|
||||||
if(isset($_REQUEST['pg'])) {
|
|
||||||
$canonical_query['pg'] = $_REQUEST['pg'];
|
|
||||||
}
|
|
||||||
if(!isset($_REQUEST['pg'])){
|
if(!isset($_REQUEST['pg'])){
|
||||||
$_REQUEST['pg']=1;
|
$_REQUEST['pg']=1;
|
||||||
}else{
|
}else{
|
||||||
@ -59,6 +52,13 @@ function send_html(): void
|
|||||||
settype($_REQUEST['cat'], 'int');
|
settype($_REQUEST['cat'], 'int');
|
||||||
$category=$_REQUEST['cat'];
|
$category=$_REQUEST['cat'];
|
||||||
}
|
}
|
||||||
|
$canonical_query = [];
|
||||||
|
if(isset($_REQUEST['cat'])) {
|
||||||
|
$canonical_query['cat'] = intval($_REQUEST['cat']);
|
||||||
|
}
|
||||||
|
if(isset($_REQUEST['pg'])) {
|
||||||
|
$canonical_query['pg'] = $_REQUEST['pg'];
|
||||||
|
}
|
||||||
$pages=1;
|
$pages=1;
|
||||||
$admin_approval = '';
|
$admin_approval = '';
|
||||||
if(REQUIRE_APPROVAL){
|
if(REQUIRE_APPROVAL){
|
||||||
|
Reference in New Issue
Block a user