<?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: countermodule.php
     *    Developer: Emir Sakic - saka@hotmail.com
     *    Date: 23/12/2001
     *     Version #: 1.0.0
     *    Comments: This script displays counter on your Mambo portal.
     *            It's designed as Mambo component. You will need to add an entry into the
     *            components database table. You can do that with installation script included.
     *            Then upload this script and you can place this module as any other Mambo
     *            component throught control panel.
     *            Demo can be viewed at http://www.superbosna.com
    **/

    
$query2 "SELECT count FROM counter where type='OS'";
    
$result2=$database->openConnectionWithReturn($query2);

    
$content=0;

    
// Use mysql_fetch_row to retrieve the results
    
for ($count 1$row mysql_fetch_row ($result2); ++$count)
    {
        
$content $content $row[0];
    }
?>