admin_password.php dosyasının çalışan hali, sorun olursa yazın.
<?php
//===========================================================================\\
// Change Admin Password 1.0.1 \\
// Aardvark Topsites PHP 5 \\
// Copyright (c) 2006 Jeremy Scheff. All rights reserved. \\
//---------------------------------------------------------------------------\\
// http://www.aardvarktopsitesphp.com/ http://www.avatic.com/ \\
//---------------------------------------------------------------------------\\
// This program is free software; you can redistribute it and/or modify it \\
// under the terms of the GNU General Public License as published by the \\
// Free Software Foundation; either version 2 of the License, or (at your \\
// option) any later version. \\
// \\
// This program is distributed in the hope that it will be useful, but \\
// WITHOUT ANY WARRANTY; without even the implied warranty of \\
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General \\
// Public License for more details. \\
//===========================================================================\\
define('ATSPHP', 1);
if (!isset($_POST['password']) || !$_POST['password']) {
?>
<p>This script will reset the password for Aardvark Topsites PHP. You must upload this file to the same folder that you installed your topsites in.</p>
<form action="admin_password.php" method="post">
<label>
New Admin Password:
<input type="password" size="20" name="password" />
<input type="submit" value="Set Admin Password" />
</label>
</form>
<?php
}
else {
// Change the path to your full path if necessary
$CONF['path'] = '.';
// Connect to the database
// Set the last argument of $DB->connect to 1 to enable debug mode
require_once("{$CONF['path']}/settings_sql.php");
require_once("{$CONF['path']}/sources/sql/{$CONF['sql']}.php");
$DB = new sql;
$DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database']);
$password = md5($_POST['password']);
$DB->query("UPDATE {$CONF['sql_prefix']}_etc SET admin_password = '$password'", __FILE__, __LINE__);
?>
<p>Your password has been updated. <b>Delete this file now or anyone who finds it will be able to change your password.</b></p>
<p><a href="index.php?a=admin">Login</a></p>
<?php
}
?>