<?
/*****************************************************/
/* jPORTAL - internetowy system portalowy */
/*****************************************************/
/* autor: Pawel 'jaco' Jaczewski */
/* email: info@websys.pl */
/*****************************************************/
include('config.php');
include('module/search.inc.php');
#=====================================================#
function site_main() {
global $page, $search_limit, $where, $word;
main_title_open();
echo 'szukaj';
main_title_close();
main_text_open();
$ww[$where] = ' selected';
echo '<br><div align="center">';
echo '<form method="post" action="search.php">
<input type="text" size="20" name="word" value="'.htmlspecialchars(stripslashes($_REQUEST['word'])).'">
<select name="where">
<option value="any"'.$ww['any'].'>Wszędzie</option>
</select>
<input type="submit" style="font-weight: bold" value="szukaj!">
</form></div>';
show_result($search_limit, $page);
echo mysql_error();
main_text_close();
}
#=====================================================#
$site_title = 'szukaj';
$meta_info = '';
include("theme/$theme/index.php");
?>
<?php include ('logo.php') ?>
It's a PHP script, so installation is pretty easy.
Copy 'count.php' and 'count_data.txt' in your good directory.
Change permissions to 'count_data.txt' for be writing by nobody (chmod a+rw)
Edit 'count.php', you will have to do some configuration:
$COUNT_FILE = "count_data.txt";
// En: Absolute path and name to count data file.
$IMG_DIR_URL = "./digits/";
// En: URL Directory of digits (0.gif ... 9.gif).
$NB_DIGITS = 8;
// En: Minimum number of digits to display (0, to not use 0 left).
Change the end of script to change look, warning, you souldn't change PHP
code (under '<?php ?>').5.
body { background: url(grafiki/header.jpg) no-repeat top center; }
Powróć do Grafika & Webmastering
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 6 gości