Navigacija

Vartotojų tinkle

Prisijungusių svečių: 628
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,955
Naujausias narys: Johny

Naujausi straipsniai

Paskutiniai nariai

Johny 2 savaitės
Reikalas 3 savaitės
Jaunelis 9 savaitės
lanis10 savaitės
And2s10 savaitės
Memento Mori15 savaitės
ozzWANTED16 savaitės
Quwqkibor18 savaitės
asirija21 savaitės
tomeem24 savaitės
weberiz27 savaitės
mRokass29 savaitės
kartoonas30 savaitės
iaescortsmap30 savaitės
grunskiz33 savaitės
Bruksnys34 savaitės
illusion34 savaitės
ordo35 savaitės
Jurgaila35 savaitės
originalcs1635 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.16.76.138
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,528
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Search.php
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: MC Peržiūrų: 733      Spausdinti temą
2011 Bal. 17 11:04:58          1 žinutė iš 4
Spausdinti pranešimą
Sveiki,

Taigi reikia iš search.php pašalinti:

Articles
Custom Pages
Downloads
FAQs
Forum Posts testTestavimas
Members
News
Photos
Web Links

Bet pačiam faile nelabai randu, gal kas galit padėt?


<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: search.php
| Author: Robert Gaudyn (Wooya)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."search.php";

add_to_title($locale['global_202']);

if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }

if (isset($_GET['stext'])) {
   if (is_array($_GET['stext'])) {
      redirect(FUSION_SELF);
   } else {
      $_GET['stext'] = urlencode(stripinput($_GET['stext']));
   }
} else {
   $_GET['stext'] = "";
}

if (isset($_GET['method'])) { $_GET['method'] = ($_GET['method']=="OR" || $_GET['method']=="AND") ? $_GET['method'] : "OR"; }
else { $_GET['method'] = "OR"; }

if (isset($_GET['datelimit'])) { $_GET['datelimit'] = isnum($_GET['datelimit']) ? $_GET['datelimit'] : 0; }
else { $_GET['datelimit'] = 0; }

if (isset($_GET['fields'])) { $_GET['fields'] = isnum($_GET['fields']) ? $_GET['fields'] : 2; }
else { $_GET['fields'] = 2; }

if (isset($_GET['sort'])) { $_GET['sort'] = in_array($_GET['sort'], array("datestamp", "subject", "author")) ? $_GET['sort'] : "datestamp"; }
else { $_GET['sort'] = "datestamp"; }

if (isset($_GET['order'])) { $_GET['order'] = isnum($_GET['order']) ? $_GET['order'] : 0; }
else { $_GET['order'] = 0; }

if (isset($_GET['chars'])) { $_GET['chars'] = isnum($_GET['chars']) ? ($_GET['chars'] > 200 ? 200 : $_GET['chars']) : 50; }
else { $_GET['chars'] = 50; }

if (isset($_GET['forum_id'])) { $_GET['forum_id'] = isnum($_GET['forum_id']) ? $_GET['forum_id'] : 0; }
else { $_GET['forum_id'] = 0; }

$radio_button = array();
$form_elements = array();
$available = array();
$dh = opendir(INCLUDES."search");
while (false !== ($entry = readdir($dh))) {
   if ($entry != "." && $entry != ".." && preg_match("/include_button.php/i", $entry)) {
      $available[] = str_replace("search_", "", str_replace("_include_button.php", "", $entry));
   }
}
closedir($dh);
$available[] = "all";

if (isset($_GET['stype'])) { $_GET['stype'] = in_array($_GET['stype'], $available) ? $_GET['stype'] : "all"; }
if (!isset($_GET['stype'])) { $_GET['stype'] = $settings['default_search']; }

for ($i = 0; $i < count($available) - 1; $i++) {
   include (INCLUDES."search/search_".$available[$i]."_include_button.php");
}
sort($radio_button);

opentable($locale['400']);

echo "<script type='text/javascript'>\n<!--\n";
echo "function display(val) {\nswitch (val) {\n";
foreach ($form_elements as $type => $array1) {
   echo "case '".$type."':\n";
   foreach ($array1 as $what => $array2) {
      foreach ($array2 as $elements => $value) {
         if ($what=="enabled") {
            echo "document.getElementById('".$value."').disabled = false;\n";
         } else if ($what=="disabled") {
            echo "document.getElementById('".$value."').disabled = true;\n";
         } else if ($what=="display") {
            echo "document.getElementById('".$value."').style.display = 'block';\n";
         } else if ($what=="nodisplay") {
            echo "document.getElementById('".$value."').style.display = 'none';\n";
         }
      }
   }
   echo "break;\n";
}
   
echo "case 'all':\n";
echo "break;\n}\n}\n-->\n</script>\n";

echo "<form id='searchform' name='searchform' method='get' action='".FUSION_SELF."'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>\n";
echo "<td class='tbl2' colspan='2'><strong>".$locale['401']."</strong></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1' style='width:50%;'>\n";
echo "<input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='width:200px' />\n";
echo "<input type='submit' name='search' value='".$locale['402']."' class='button' />\n</td>\n";
echo "</tr>\n<tr>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
foreach ($radio_button as $key => $value) {
   echo "<tr>\n<td>".$value."</td>\n</tr>\n";
}
echo "<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n</form>\n";
closetable();

function search_striphtmlbbcodes($text) {
   $text = preg_replace("[\[(.*?)\]]", "", $text);
   $text = preg_replace("<\<(.*?)\>>", "", $text);
   return $text;
}

function search_textfrag($text) {
   if ($_GET['chars'] != 0) {
      $text = nl2br(stripslashes(substr($text, 0, $_GET['chars'])."..."));
   } else {
      $text = nl2br(stripslashes($text));
   }
   return $text;
}

function search_stringscount($text) {
   global $swords;
   $count = 0;
   for ($i = 0; $i < sizeof($swords); $i++) {
      $count += substr_count(strtolower($text), strtolower($swords[$i]));
   } 
   return $count;
}

function search_querylike($field) {
   global $swords;
   $querylike = "";
   for ($i = 0; $i < sizeof($swords); $i++) {
      $querylike .= $field." LIKE '%".$swords[$i]."%'".($i < sizeof($swords) - 1 ? " ".$_GET['method']." " : "");
   }
   return $querylike;
}

function search_fieldsvar() {
   $fieldsvar = "(";
   $numargs = func_num_args();
   for ($i = 0; $i < $numargs; $i++) {
      $fieldsvar .= func_get_arg($i).($i < $numargs - 1 ? " || " : "");
   }
   $fieldsvar .= ")";
   return $fieldsvar;
}

function search_globalarray($search_result) {
   global $search_result_array, $global_string_count, $memory_limit;
   $global_string_count += strlen($search_result);
   if ($memory_limit > $global_string_count) {
      $search_result_array[] = $search_result;
      $memory_exhaused = false;
   } else {
      $memory_exhaused = true;
   }
   return $memory_exhaused;
}

function search_navigation($rows) {
   global $site_search_count, $composevars;
   $site_search_count += $rows;
   $navigation_result = "<div align='center' style='margin-top:5px;'>\n".makePageNav($_GET['rowstart'], 10, ($site_search_count > 100 || search_globalarray("") ? 100 : $site_search_count), 3, FUSION_SELF."?stype=".$_GET['stype']."&amp;stext=".urlencode($_GET['stext'])."&amp;".$composevars)."\n</div>\n";
   return $navigation_result;
}

$composevars = "method=".$_GET['method']."&amp;datelimit=".$_GET['datelimit']."&amp;fields=".$_GET['fields']."&amp;sort=".$_GET['sort']."&amp;order=".$_GET['order']."&amp;chars=".$_GET['chars']."&amp;forum_id=".$_GET['forum_id']."&amp;";

$memory_limit = str_replace("m", "", strtolower(ini_get("memory_limit"))) * 1024 * 1024;
$memory_limit = !isnum($memory_limit) ? 8 * 1024 * 1024 : $memory_limit < 8 * 1024 * 1024 ? 8 * 1024 * 1024 : $memory_limit;
$memory_limit = $memory_limit - ceil($memory_limit / 4);
$global_string_count = 0;
$site_search_count = 0;
$search_result_array = array();
$navigation_result = "";
$items_count = "";

$_GET['stext'] = urldecode($_GET['stext']);

if ($_GET['stext'] != "" && strlen($_GET['stext']) >= 3) {
   add_to_title($locale['global_201'].$locale['408']);
   opentable($locale['408']);
   $fswords = explode(" ", $_GET['stext']);
   $swords = array();
   $iwords = array();
   for ($i = 0; $i < sizeof($fswords); $i++) {
      if (strlen($fswords[$i]) >= 3) {
         $swords[] = $fswords[$i];
      } else {
         $iwords[] = $fswords[$i];
      }
   }
   unset($fswords);
   
   if (sizeof($swords) == 0) { redirect(FUSION_SELF); }

   if ($_GET['stype'] == "all") {
      $dh = opendir(INCLUDES."search");
      while (false !== ($entry=readdir($dh))) {
         if ($entry != "." && $entry != ".." && preg_match("/include.php/i", $entry)) {
            include (INCLUDES."search/".$entry);
         }
      }
      closedir($dh);
   } else {
      include INCLUDES."search/search_".$_GET['stype']."_include.php";
   }
   
   if (count($iwords)) {
      $txt = "";
      for ($i = 0; $i < count($iwords); $i++) {
         $txt .= $iwords[$i].($i < count($iwords) - 1 ? ", " : "");
      }
   }
   
   if ($_GET['stype'] == "all") {
      $navigation_result = search_navigation(0);
         } else {
      echo $items_count."<hr  />";
      echo (($site_search_count>100 || search_globalarray("")) ? "<strong>".sprintf($locale['530'], $site_search_count)."</strong><hr  />" : "");
   }
      
   if ($_GET['stype'] == "all") {
      $from = $_GET['rowstart'];
      $to = (count($search_result_array) - ($_GET['rowstart'] + 10)) <= 0 ? count($search_result_array) : $_GET['rowstart'] + 10;
   } else {
      $from = 0;
      $to = count($search_result_array) < 10 ? count($search_result_array) : 10;
   }
   
   for ($i = $from; $i < $to; $i++) {
      echo $search_result_array[$i];
   }
   echo $navigation_result;
   closetable();

} elseif (isset($_GET['stext'])) {
   add_to_title($locale['global_201'].$locale['408']);
   opentable($locale['408']);
   echo $locale['501'];
   closetable();
}

require_once THEMES."templates/footer.php";
?>




2011 Bal. 17 11:04:56          2 žinutė iš 4
Spausdinti pranešimą
Viskas vyksta per include folderi, iš jo ištrini ko tau neriekia

2011 Bal. 17 12:04:07          3 žinutė iš 4
Spausdinti pranešimą
Dėkui. Man irgi kaip tik to ir reikėjomerkia akį

Kam įdomu, tai su drogmo projektu aš niekaip nesusijęs šiuo metu, ir nepristokit prie manęs s
2011 Bal. 17 12:04:38          4 žinutė iš 4
Spausdinti pranešimą
O neįmanoma niekaip tos vietos tiesiog pašalinti? Nes nelabai gražiai atrodo, kai yra 1 kategorija.

Bei gal kas žino ką, kur keisti, kad search.php rodytų daugiau nei 10 surastų raktažodžių?

Na, tas, items per page.

Peršokti į forumą: