Vyhľadavanie
(18.7.2011 19:31)
@xxx: chce to trochu úcty
jinak ke tvému problému, zkus upravit soubor require/mod/search.php
originál(pouze část)
<?php
/*--- kontrola jadra ---*/
if(!defined('_core')) {
exit;
}
/*--- pripava ---*/
function _tmp_checkboxLoadGet($input)
{
if(isset($_GET[$input])) {
return 1;
} else {
return 0;
}
}
if(isset($_GET['q'])) {
$q = trim(_stripSlashes($_GET['q']));
$root = _tmp_checkboxLoadGet("root");
$art = _tmp_checkboxLoadGet("art");
$post = _tmp_checkboxLoadGet("post");
$image = _tmp_checkboxLoadGet("img");
} else {
$q = "";
$root = 1;
$art = 1;
$post = 0;
$image = 0;
}
/*--- modul ---*/
if(_template_autoheadings == 1) {
$module = "<h1>".$_lang['mod.search']."</h1>";
} else {
$module = "";
}
$module .= "
<p class='bborder'>".$_lang['mod.search.p']."</p>
<form action='index.php' method='get'>
<input type='hidden' name='m' value='search' />
<input type='text' name='q' class='inputmedium' value='"._htmlStr($q)."' /> <input type='submit' value='".$_lang['mod.search.submit']."' /><br />
".$_lang['mod.search.where'].":
<label><input type='checkbox' name='root' value='1'"._checkboxActivate($root)." /> ".$_lang['mod.search.where.root']."</label>
<label><input type='checkbox' name='art' value='1'"._checkboxActivate($art)." /> ".$_lang['mod.search.where.articles']."</label>
<label><input type='checkbox' name='post' value='1'"._checkboxActivate($post)." /> ".$_lang['mod.search.where.posts']."</label>
<label><input type='checkbox' name='img' value='1'"._checkboxActivate($image)." /> ".$_lang['mod.search.where.images']."</label>
</form>
";
/*- vyhledavani -*/
upraveno(pouze část)
<?php
/*--- kontrola jadra ---*/
if(!defined('_core')) {
exit;
}
/*--- pripava ---*/
function _tmp_checkboxLoadGet($input)
{
if(isset($_GET[$input])) {
return 1;
} else {
return 0;
}
}
if(isset($_GET['q'])) {
$q = trim(_stripSlashes($_GET['q']));
$root = _tmp_checkboxLoadGet("root");
$art = _tmp_checkboxLoadGet("art");
$post = _tmp_checkboxLoadGet("post");
$image = _tmp_checkboxLoadGet("img");
} else {
$q = "";
$root = 1;
$art = 1;
$post = 1;
$image = 1;
}
/*--- modul ---*/
if(_template_autoheadings == 1) {
$module = "<h1>".$_lang['mod.search']."</h1>";
} else {
$module = "";
}
$module .= "
<p class='bborder'>".$_lang['mod.search.p']."</p>
<form action='index.php' method='get'>
<input type='hidden' name='m' value='search' />
<input type='text' name='q' class='inputmedium' value='"._htmlStr($q)."' /> <input type='submit' value='".$_lang['mod.search.submit']."' /><br />
<input type='hidden' name='root' value='1'"._checkboxActivate($root)." />
<input type='hidden' name='art' value='1'"._checkboxActivate($art)." />
<input type='hidden' name='post' value='1'"._checkboxActivate($post)." />
<input type='hidden' name='img' value='1'"._checkboxActivate($image)." />
</form>
";
/*- vyhledavani -*/
jinak ke tvému problému, zkus upravit soubor require/mod/search.php
originál(pouze část)
<?php
/*--- kontrola jadra ---*/
if(!defined('_core')) {
exit;
}
/*--- pripava ---*/
function _tmp_checkboxLoadGet($input)
{
if(isset($_GET[$input])) {
return 1;
} else {
return 0;
}
}
if(isset($_GET['q'])) {
$q = trim(_stripSlashes($_GET['q']));
$root = _tmp_checkboxLoadGet("root");
$art = _tmp_checkboxLoadGet("art");
$post = _tmp_checkboxLoadGet("post");
$image = _tmp_checkboxLoadGet("img");
} else {
$q = "";
$root = 1;
$art = 1;
$post = 0;
$image = 0;
}
/*--- modul ---*/
if(_template_autoheadings == 1) {
$module = "<h1>".$_lang['mod.search']."</h1>";
} else {
$module = "";
}
$module .= "
<p class='bborder'>".$_lang['mod.search.p']."</p>
<form action='index.php' method='get'>
<input type='hidden' name='m' value='search' />
<input type='text' name='q' class='inputmedium' value='"._htmlStr($q)."' /> <input type='submit' value='".$_lang['mod.search.submit']."' /><br />
".$_lang['mod.search.where'].":
<label><input type='checkbox' name='root' value='1'"._checkboxActivate($root)." /> ".$_lang['mod.search.where.root']."</label>
<label><input type='checkbox' name='art' value='1'"._checkboxActivate($art)." /> ".$_lang['mod.search.where.articles']."</label>
<label><input type='checkbox' name='post' value='1'"._checkboxActivate($post)." /> ".$_lang['mod.search.where.posts']."</label>
<label><input type='checkbox' name='img' value='1'"._checkboxActivate($image)." /> ".$_lang['mod.search.where.images']."</label>
</form>
";
/*- vyhledavani -*/
upraveno(pouze část)
<?php
/*--- kontrola jadra ---*/
if(!defined('_core')) {
exit;
}
/*--- pripava ---*/
function _tmp_checkboxLoadGet($input)
{
if(isset($_GET[$input])) {
return 1;
} else {
return 0;
}
}
if(isset($_GET['q'])) {
$q = trim(_stripSlashes($_GET['q']));
$root = _tmp_checkboxLoadGet("root");
$art = _tmp_checkboxLoadGet("art");
$post = _tmp_checkboxLoadGet("post");
$image = _tmp_checkboxLoadGet("img");
} else {
$q = "";
$root = 1;
$art = 1;
$post = 1;
$image = 1;
}
/*--- modul ---*/
if(_template_autoheadings == 1) {
$module = "<h1>".$_lang['mod.search']."</h1>";
} else {
$module = "";
}
$module .= "
<p class='bborder'>".$_lang['mod.search.p']."</p>
<form action='index.php' method='get'>
<input type='hidden' name='m' value='search' />
<input type='text' name='q' class='inputmedium' value='"._htmlStr($q)."' /> <input type='submit' value='".$_lang['mod.search.submit']."' /><br />
<input type='hidden' name='root' value='1'"._checkboxActivate($root)." />
<input type='hidden' name='art' value='1'"._checkboxActivate($art)." />
<input type='hidden' name='post' value='1'"._checkboxActivate($post)." />
<input type='hidden' name='img' value='1'"._checkboxActivate($image)." />
</form>
";
/*- vyhledavani -*/
