Pagina di connessione:
Codice PHP:
<?php
// ZWS Newsletter ver 1.1
//
// Copyright (C) 2001 ZaireWeb Solutions http://zaireweb.com
// This program is free software and you may modify it under the terms of the GNU General Public License. You may not include it in any distribution or package. The CP4 footer must be left intact.
// This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// You can obtain a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
//
// Edit these variables for your site
//
//
// Number of subscriber e-mails displayed per page
//
$limit = "20";
//
// Newsletter name ie: My_Site's Newsletter
//
$newsletter_name = "Newsletter Miki92";
//
// Path to CSS
//
$css = "<link rel=\"stylesheet\" type=\"text/css\" href=\"news.css\">";
//
// Return E-mail
//
$return_email = "miki92@altervista.org";
//
// Replyto: E-mail
//
$reply_email = "miki92@altervista.org";
//
// Edit database info for your site
//
$dbhost = "localhost";
$dbuser = "miki92";
$dbpass = "";
$db = "my_miki92";
//
// DO NOT modify database table config!
//
function dbopen($dbname = ""){
global $dbuser,$dbpass,$dbhost,$db;
if($dbname == "") {
$dbname = $db;
}
//Made the connection
$startconnection = @mysql_connect($dbhost, $dbuser, $dbpass) or error("Unable to connect to the Database.");
@mysql_select_db($dbname, $startconnection) or error("Unable to select database");
return $startconnection;
}
function error($text) {
global $css;
echo "<html><head><title>$text</title>$css</head><body><table border=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100%\" align=\"center\"><tr><td align=\"center\" class=\"header2\">$text<br><br><a href=\"javascript:history.go(-1)\" title=\"Previous Page\"><< Previous page</a></td></tr></table></body></html>";
exit;
}
function msg($text) {
echo "<p> </p><p> </p><center><font class=\"header2\">$text</font></center>";
}
function footer() {
echo "<br><br><center><font class=\"id3\">Managed by: <font class=\"id2\">ZWS Newsletter Manager ver 1.1 </font><br>
Copyright © 2001 ZaireWeb Solutions</font><br>
</center>";
}
?>
URL Script : http://miki92.altervista.org/test/install.php