mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
More code cleanup
This commit is contained in:
parent
4f4021a517
commit
0b78d551ee
@ -216,7 +216,8 @@ class e_menuManager {
|
||||
}
|
||||
|
||||
$file = urldecode($_GET['path']).".php";
|
||||
$newurl = e_PLUGIN_ABS.$file."?id=".$_GET['id'].'&iframe=1';
|
||||
$file = e107::getParser()->filter($file);
|
||||
$newurl = e_PLUGIN_ABS.$file."?id=".intval($_GET['id']).'&iframe=1';
|
||||
|
||||
/*
|
||||
|
||||
|
10
search.php
10
search.php
@ -892,14 +892,14 @@ class search extends e_shortcode
|
||||
$_GET = $this->magic_search($_GET);
|
||||
}
|
||||
|
||||
$full_query = $_GET['q'];
|
||||
$full_query = $tp->filter($_GET['q'],'w');
|
||||
|
||||
if ($_GET['in'])
|
||||
{
|
||||
$en_in = explode(' ', $_GET['in']);
|
||||
foreach ($en_in as $en_in_key)
|
||||
{
|
||||
$full_query .= " +".$en_in_key;
|
||||
$full_query .= " +".$tp->filter($en_in_key);
|
||||
}
|
||||
$this->enhanced = true;
|
||||
}
|
||||
@ -908,13 +908,13 @@ class search extends e_shortcode
|
||||
$en_ex = explode(' ', $_GET['ex']);
|
||||
foreach ($en_ex as $en_ex_key)
|
||||
{
|
||||
$full_query .= " -".$en_ex_key;
|
||||
$full_query .= " -".$tp->filter($en_ex_key);
|
||||
}
|
||||
$this->enhanced = true;
|
||||
}
|
||||
if ($_GET['ep'])
|
||||
{
|
||||
$full_query .= " \"".$_GET['ep']."\"";
|
||||
$full_query .= " \"".$tp->filter($_GET['ep'])."\"";
|
||||
$this->enhanced = true;
|
||||
}
|
||||
if ($_GET['be'])
|
||||
@ -922,7 +922,7 @@ class search extends e_shortcode
|
||||
$en_be = explode(' ', $_GET['be']);
|
||||
foreach ($en_be as $en_be_key)
|
||||
{
|
||||
$full_query .= " ".$en_be_key."*";
|
||||
$full_query .= " ".$tp->filter($en_be_key)."*";
|
||||
}
|
||||
$this->enhanced = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user