<?php
//////////////////////////////////////////////////
// MyRedirector Version 1.0
// Redirector
// http://www.php-homepage.de
// redirect.php3
// Written by Mark Kronsbein
// License: GPL
// I only ask that you to NOT delete the credit!
// Please mail me at mk@php-homepage.de
// if you use this Script! Thanx!
// See it in Action at http://www.php-homepage.de
//
// Installation:
// Insert your Values for $hostname, $username,
// $password, $userstable and $dbName and $host.
// Call it like
// redirect.php3?url=http://www.hostname.de
//////////////////////////////////////////////////
<?php
//////////////////////////////////////////////////
// MyRedirector Version 1.0
// Stats-Viewer
// http://www.php-homepage.de
// viewstats.php3
// Written by Mark Kronsbein
// License: GPL
// I only ask that you to NOT delete the credit!
// Please mail me at mk@php-homepage.de
// if you use this Script! Thanx!
// See it in Action at http://www.gabber.de
//
// Installation:
// Insert your Values for $hostname, $username,
// $password, $userstable and $dbName.
//////////////////////////////////////////////////
$color10 = "#FFFF00"; /* Color for Hits between 1 and 9 */
$color20 = "#FF0000"; /* Color for Hits between 10 and 19 */
$color50 = "#008000"; /* Color for Hits between 20 and 49 */
$color1k = "#0000FF"; /* Color for Hits between 50 and 99 */
$color2k = "#0000A0"; /* Color for Hits between 100 and 199 */
$color5k = "#000040"; /* Color for Hits over 200*/
MYSQL_CONNECT($hostname, $username, $password) OR DIE("Unable to connect to database");
@mysql_select_db( "$dbName") or die( "Unable to select database");
$query = "select * from $userstable order by hits desc";
$result = MYSQL_QUERY($query);
$number = MYSQL_NUMROWS($result) or die (mysql_error());