<?php
    
/**
     *    Counter Module for Mambo portal
     *
     *    24-12-2001
      *
     *    Copyright (C) 2000 - 2001 Emir Sakic
     *    Distributed under the terms of the GNU General Public License
     *    This software may be used without warranty provided and these statements are left intact.
     *    This source is available at http://www.superbosna.com/mambo_hacks
     *
     *    Mambo is Copyright (C) 2000-2001 Miro Construct Pty Ltd
     *    Source is available at http://sourceforge.net/projects/mambo
     *    Site Name: Mambo Open Source Edition Version 3.0.7
     *    File Name: instcntmod.php
     *    Developer: Emir Sakic - saka@hotmail.com
     *    Date: 24/12/2001
     *     Version #: 1.0.0
     *    Comments: This script installs counter module for Mambo adding an entry into the
     *            components database table. Just execute it from the same directory with your
     *            configuration.php file for Mambo. After installation upload countermodule.php
     *            and replace / hack leftComponent.php and rightComponent.php.
     *            Then you can place the module whereever you want on the page throught your
     *            control panel just like you do with other Mambo modules.
     *            Demo can be viewed at http://www.superbosna.com
    **/
?>

<html>
<title>Counter Module Install</title>
<body bgcolor="#0e4f77" text="#FFFFFF" link="#808080" vlink="#808080">

<?
    
include ("configuration.php");

    
// Connecting, selecting database
    
$link mysql_connect("$host""$user""$password") or die("Could not connect. Check if this file and configuration.php are in the same directory.");
    
mysql_select_db("$db") or die("Could not select database.");

    
$sql="INSERT INTO components VALUES ( '10', 'You are visitor:', '10', 'right', '0', '00:00:00', '1', NULL, 'counter', '0')";
    
$result=mysql_query($sql);

    
// Closing connection
    
mysql_close($link);
?>

<p>
Successfully Installed!
</p>

<p>
<font color="#999999">Script made by
<a href="http://www.sakic.org" target=_blank>Saka</a>.</font>
</p>

</body>
</html>