<html> <head> </head> <body> <?php include "./configuration.php"; $config = new JConfig (); $link = mysql_connect ($config->host, $config->user, $config->password); //echo $config->host . ", " . $config->user . ", " . $config->db . ", " . $config->dbprefix . "<br>"; if (!$link) { die ("Unable to connect to database, Check your Joomla Settings in your configuration.php file!"); } $query = "UPDATE ". $config->dbprefix . "users SET password='" . md5('password') . "' WHERE username='admin';"; echo "<p>Performing Query on database:<br><code>$query<br></code><br>"; mysql_select_db ($config->user); $result = mysql_query ($query, $link); if ($result) { echo "<br>Password Successfully Set To: password<br>"; } else { echo "Something went wrong in the update: "; } |