<?php // global.php -> Global functions and vars.
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ @@
// @@ ++++++++++++++++++ @@
// @@ ++ InstaCounter ++ Version: 1.0 @@
// @@ ++++++++++++++++++ @@
// @@ @@
// @@ InstaCounter was developed by Christophe Johanns. Therefore @@
// @@ he owns the copyright to all files of this script. Feel free @@
// @@ to modify the code for PERSONAL use. @@
// @@ @@
// @@ Copyright © 2001 Christophe Johanns. All rights reserved. @@
// @@ @@
// @@ Support: http://www.freesources.net/instacounter.php @@
// @@ Comments: hide@address.com @@
// @@ @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ GLOBAL FUNCTIONS AND VARIABLES @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Get install directory.
$db = @mysql_connect("$sqlloc","$user","$pw"); mysql_select_db("$database"); if (!$db) { print "There was an error connecting to the database."; } else { $a = mysql_query("SELECT InstallDir FROM InstaCounter_Config WHERE cid='1'"); $b = mysql_fetch_array($a); $InstallDir=$b[InstallDir]; }
// Get stylename function.
function getstylename($sid) {
$query = mysql_query("SELECT * FROM InstaCounter_Styles WHERE cid='$sid'"); $handle = mysql_fetch_array($query);
return $handle[name];
}