# *******************************************************
# * *
# * LinksCaffe 4.5 - a PHP/MySQL link indexing script *
# * *
# * [June, 2003 ] *
# * *
# *******************************************************
#
# Copyright 2002 gonafish.COM
#
#All rights reserved, gonafish.COM as freeware distributes LinksCaffe 4.5
#It may be used and modified for your own use as long as this copyright note remains and link to Home Page.
#You may not sell or distribute the code of LinksCaffe 4.5 in whole or part.
#THIS SOFTWARE AND THE ACCOMPANYING FILES ARE SOLD "AS IS" AND WITHOUT WARRANTIES AS
#TO PERFORMANCE OR MERCHANTABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESSED OR
#IMPLIED
#
# ********************************************************
include("paramlinks.inc.php");
if (($action) OR ($cat) OR ($search))
{
$cat = $cat;
$action = $action;
$search = $search;
}
else
{
showindex();
exit;
}
function dbConnect()
{
global $mysql_host, $mysql_user, $mysql_pass, $mysql_db;
@mysql_connect( $mysql_host, $mysql_user, $mysql_pass ) or error( mysql_error() );
mysql_select_db( $mysql_db );
}
function cleantext($arrays) {
reset($arrays);
while (list ($key, $val) = each($arrays)) {
$arrays[$key] = strip_tags($arrays[$key]);
$arrays[$key] = htmlentities($arrays[$key]);
$arrays[$key] = addslashes($arrays[$key]);
}
}
function showcounter() {
require( './paramlinks.inc.php');
if(file_exists("count.dat"))
{
$exist_file = fopen("count.dat", "r");
$new_count = fgets($exist_file, 255);
$new_count++;
fclose($exist_file);
$exist_count = fopen("count.dat", "w");
fputs($exist_count, $new_count);
fclose($exist_count);
}
else
{
$new_file = fopen("count.dat", "w");
fputs($new_file, "1");
fclose($new_file);
}
?>
echo $align; ?>
| FC counter require("count.dat"); ?>
|
}
function showlinksheader() {
require( './paramlinks.inc.php');
global $cat
?>
|
}
function showlinksfooter() {
require( './paramlinks.inc.php');
?>
|
echo $align ?>