Page 2 of 2

Re: Link to blog isn't working

Posted: Wed May 25, 2011 9:57 am
by Timbalu
Does this mean you cannot find http: yourBlog /path /serendipity_admin.php?
Or can't you login any more? And the system does not accept your password? Any errors?

Look into http://board.s9y.org/viewtopic.php?f=3& ... #p10424763
or
Add a temporary file "fixlogin.php" with:

Code: Select all

<?php
    $username = "usernameold";
    $password = "newpwset";
    include 'serendipity_config.inc.php';
    echo serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET password = '" . serendipity_hash($password) . "', hashtype=1 WHERE username = '" . serendipity_db_escape_string($username) . "'");
    echo "Password changed.";
?>
and call it via http://yourblog/fixlogin.php. Do not forget to change $username and $password to your own setting.