skyscape Posted June 12, 2007 Share Posted June 12, 2007 I have this bulk email script. I installed it on a second website, and I cant login to my control panel. Here is the setting script that I edited. It contains setting to the control panel login and database. <?php # Choose a language file: $languageFile = "language files/english.php"; # Choose a username for the Postlister administration area: $username = "user"; # Choose a password for the Postlister administration area: $password = "pass"; $databaseHost = "localhost"; # The name of your database: $databaseName = "database"; # The username for your database: $databaseUsername = "user"; # The password for your database: $databasePassword = "pass"; $mainTable = "postlistermain"; ?> And here is the functions.php script that calls information from setting.php No matter what user name and password I put in the settings.php file, nothing works, it tells me "You need the right user and pass to access this page. Can anyone help me figure this out? <?php $version = "1.16"; require("settings.php"); require($languageFile); if (basename($PHP_SELF) != "subscribe.php" && basename($PHP_SELF) != "confirm.php") { if (!$PHP_AUTH_USER) { header("WWW-Authenticate: Basic realm=\"Postlister\""); header("HTTP/1.0 401 Unauthorized"); echo $s62; exit; } else { if ($PHP_AUTH_USER != $username || $PHP_AUTH_PW != $password) { echo $s62; exit; } } } mysql_connect($databaseHost, $databaseUsername, $databasePassword); mysql_select_db($databaseName); $uniktId = uniqid("pl"); $ekstraHeadere = "X-Mailer: Postlister $version"; function sidehoved($titel = "", $menu = 1) { if (!$titel) $titel = "Postlister"; else $titel = "Postlister | $titel"; $aStyle = "text-decoration: none; color: white"; $adskiller = " | "; echo "<html><head><title>$titel</title>\n"; echo "<style type=text/css><!--\n"; echo "body, div { background: white; font-family: helvetica; font-size: 10pt }\n"; echo "td { font-family: helvetica; font-size: 10pt }\n"; echo "td.menu { background: black; color: white }\n"; echo "td.tilmelding { background: navy; color: white }\n"; echo "--></style>\n"; echo "</head>\n\n\n\n"; echo "<body marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>\n"; if ($menu != 0) { echo "<table width=100% border=0 cellspacing=0 cellpadding=5>\n"; echo "<tr><td class=menu>\n"; echo "<center>\n"; echo "<a href=\"index.php\" style=\"$aStyle\">$GLOBALS[s2]</a>\n"; echo "$adskiller\n"; echo "<a href=\"subscribers.php\" style=\"$aStyle\">$GLOBALS[s3]</a>\n"; echo "$adskiller\n"; echo "<a href=\"import.php\" style=\"$aStyle\">$GLOBALS[s105]</a>\n"; echo "$adskiller\n"; echo "<a href=\"edit.php\" style=\"$aStyle\">$GLOBALS[s4]</a>\n"; echo "$adskiller\n"; echo "<a href=\"lists.php\" style=\"$aStyle\">$GLOBALS[s5]</a>\n"; echo "$adskiller\n"; echo "<a href=\"README.html\" style=\"$aStyle\">$GLOBALS[s1]</a>\n"; echo "</center>\n"; echo "</td></tr>\n"; echo "</table>\n"; } echo "<div style=\"margin: 15px\">\n\n"; } function sidefod() { echo "</div>\n"; echo "</body></html>"; } function fejl($fejlbesked = "") { echo "<h3>$GLOBALS[s8]</h3>\n"; echo "$fejlbesked\n"; echo "<form><input type=button value=\"<<< $GLOBALS[s9]\" onClick=history.back()></form>\n"; echo "</div>\n"; echo "</body></html>"; exit; } function vaelgListe($fil) { if (!$GLOBALS[liste]) { echo "<h3>$GLOBALS[s12]</h3>\n"; echo "<form action=\"$fil\" method=get>\n"; $kommando = mysql_query("select liste from $GLOBALS[mainTable]"); $antalRaekker = mysql_num_rows($kommando); if ($antalRaekker == 0) { # "There are no lists": echo "$GLOBALS[s14]\n"; } else { echo "<select name=liste>\n"; while ($resultat = mysql_fetch_array($kommando)) { echo "<option value=\"$resultat[liste]\">$resultat[liste]\n"; } echo "</select>\n"; echo "<input type=submit value=\"$GLOBALS[s13]\">\n"; } echo "</div>\n"; echo "</body></html>"; exit; } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/55332-login-page-needs-to-get-resolved/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.