Viewing file: install.php (6.1 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Installation</title>
<style type="text/css">
<!--
<style>
.small, .small a {
font-size: 9px;
color: #003366;
font-weight: normal;
font-family: Helvetica, Arial;
text-decoration: none;
}
.text, .text a {
font-size: 11px;
color: #003366;
font-weight: normal;
font-family: Helvetica, Arial;
text-decoration: none;
}
.navi, .navi a {
font-size: 13px;
color: white;
font-weight: bold;
font-family: Helvetica, Arial;
text-decoration: none;
}
textarea {
font-size: 9px;
border-style:solid;
border-width:1px;
border-color:#00CCFF;
color: #003366;
font-weight: normal;
font-family: Courier;
text-decoration: none;
width:100%;
}
</style>
</head>
<body>
<div align="center">
<table width="600" border="0" align="center" cellpadding="3" cellspacing="0" class="text" style="border-width:1px;border-style:solid;border-color:#00CCFF;">
<tr>
<th style="background-color:#00CCFF;" class=navi valign="middle"><b>Installation</b></th>
</tr>
<tr>
<td>
<?php
include("config.php");
$please = "Please correct your configuration (config.php) and restart installation.";
echo "Installation in progress...<br><br>";
$linkto = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname,$linkto);
#
# Table structure for table 'phpcountersmart_besucher'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_besucher",$linkto) or die ("Can't drop table phpcountersmart_besucher! ".$please);
mysql_query("CREATE TABLE phpcountersmart_besucher (id bigint(20) unsigned NOT NULL auto_increment,tag int(10) unsigned default NULL,
datum varchar(12) default NULL, PRIMARY KEY (id), UNIQUE KEY id (id),KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_besucher! ".$please);
#
# Table structure for table 'phpcountersmart_browser'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_browser",$linkto) or die ("Can't drop table phpcountersmart_browser! ".$please);
mysql_query("CREATE TABLE phpcountersmart_browser ( id bigint(20) unsigned NOT NULL auto_increment, typ varchar(250) default NULL, UNIQUE KEY id (id),
KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_browser! ".$please);
#
# Table structure for table 'phpcountersmart_color'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_color",$linkto) or die ("Can't drop table phpcountersmart_color! ".$please);
mysql_query("CREATE TABLE phpcountersmart_color (id bigint(20) unsigned NOT NULL auto_increment, tiefe varchar(250) default NULL,
UNIQUE KEY id (id), KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_color! ".$please);
#
# Table structure for table 'phpcountersmart_ip'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_ip",$linkto) or die ("Can't drop table phpcountersmart_ip! ".$please);
mysql_query("CREATE TABLE phpcountersmart_ip ( id bigint(20) unsigned NOT NULL auto_increment, adresse varchar(250) default NULL,
zeit int(10) unsigned default NULL, PRIMARY KEY (id), UNIQUE KEY id (id), KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_ip! ".$please);
#
# Table structure for table 'phpcountersmart_os'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_os",$linkto) or die ("Can't drop table phpcountersmart_os! ".$please);
mysql_query("CREATE TABLE phpcountersmart_os (id bigint(20) unsigned NOT NULL auto_increment, typ varchar(250) default NULL, UNIQUE KEY id (id),
KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_os! ".$please);
#
# Table structure for table 'phpcountersmart_provider'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_provider",$linkto) or die ("Can't drop table phpcountersmart_provider! ".$please);
mysql_query("CREATE TABLE phpcountersmart_provider (id int(10) unsigned NOT NULL auto_increment, provider varchar(250) default NULL, PRIMARY KEY (id),
UNIQUE KEY id (id), KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_provider! ".$please);
#
# Table structure for table 'phpcountersmart_referer'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_referer",$linkto) or die ("Can't drop table phpcountersmart_referer! ".$please);
mysql_query("CREATE TABLE phpcountersmart_referer ( id bigint(20) unsigned NOT NULL auto_increment, woher varchar(250) default NULL, UNIQUE KEY id (id),
KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_referer! ".$please);
#
# Table structure for table 'phpcountersmart_screen'
#
mysql_query("DROP TABLE IF EXISTS phpcountersmart_screen",$linkto) or die ("Can't drop table phpcountersmart_screen! ".$please);
mysql_query("CREATE TABLE phpcountersmart_screen ( id bigint(20) unsigned NOT NULL auto_increment, aufloesung varchar(250) default NULL, UNIQUE KEY id (id),
KEY id_2 (id)) TYPE=MyISAM",$linkto) or die ("Can't create table phpcountersmart_screen! ".$please);
echo"Instalation completed!<br><br>DELETE the install.php now!<br><br>";
echo"Now You can insert the code below on your index page, or the page which should count your visitors:<br><br>";
echo"
<textarea style='width=100%;' rows=8>
<!-- START phpCounterSmart code --> <script type=\"text/javascript\"> <!-- var ref=\"\"+escape(top.document.referrer); var colord = window.screen.colorDepth; var res = window.screen.width + \"x\" + window.screen.height; document.write(\"<img src='phpcountersmart/countme.php?referer=\" + ref + \"&screen=\" + res + \"&color=\"+colord+\"' alt='' width=1 height=1 />\"); --> </script> <noscript><div><img src=\"phpcountersmart/countme.php\" alt=\"\" width=1 height=1/></div></noscript> <!-- END phpCounterSmart code -->
</textarea>";
?>
</td>
</tr>
</table>
</div>
</body>
</html>
|