[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

Passwortänderung

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Bugs

View previous topic :: View next topic  
Author Message
mowgly
Investigator
Investigator

Offline Offline
Joined: May 27, 2004
Posts: 3

PostPosted: 28.05.2004 12:55
Post subject: Passwortänderung

moinsen, Very Happy
ist das Thema hier richtig??
Es gibt ja irgenwie kein "Hilfe" Thema
Ich kann auf meine m Boar nicht das Passwort ändert .
Das Boardf gibt folgende Fehlermeldung : Sad
Meine cpg nuke Verison ist: 8.1
Array:

A database error occured.
The webmaster has been contact about the error.

Meine Mail die ich bekomme lautet dann:
Array:

On /index.php?name=Your_Account&op=saveuser While executing query "LOCK TABLES cms_users WRITE" the following error occured: Access denied for user: 'webX@localhost' to database 'usr_webX_X' Guest information: User id: 2 Username: juergen IP: 83.129.62.13 Admin: No
X= nummer

"Access denied" kann nicht wirklich sein, da ich auf einer anderen Domain noch ein Board (Wbb) laufen habe und es da funktioniert. Und man in dem cpgnuke auch Beiträge schrieben kann und auch als Admin alle Rechte habe.

Kann da jemand evtl. helfen?

Danke

Mowgly


mowgly please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 28.05.2004 14:48
Post subject: Re: Passwortänderung

DJMAZE hatte schonmal geantwortet :

hmm that's a nasty restriction by your host

open modules/Your_Account/index.php and changePHP:

PHP:
if ($new_password != "" && md5($current_password) == $userinfo['user_password']) { 
$db->sql_query("LOCK TABLES ".$user_prefix."_users WRITE");
$new_password = md5($new_password);
$db->sql_query("UPDATE ".$user_prefix."_users SET user_password='$new_password' WHERE user_id='$user_id'");
$sql = "SELECT user_id, username, user_password FROM ".$user_prefix."_users WHERE user_id='$user_id' AND user_password='$new_password'";
$result = $db->sql_query($sql);
if (
$db->sql_numrows($result) == 1) {
docookie($userinfo['user_id'],$userinfo['username'], $new_password);
} else {
echo
"<center>"._SOMETHINGWRONG."</center><br />";
}
$db->sql_query("UNLOCK TABLES");
}


intoPHP:
PHP:

if ($new_password != "" && md5($current_password) == $userinfo['user_password']) {
// $db->sql_query("LOCK TABLES ".$user_prefix."_users WRITE");
$new_password = md5($new_password);
$db->sql_query("UPDATE ".$user_prefix."_users SET user_password='$new_password' WHERE user_id='$user_id'");
$sql = "SELECT user_id, username, user_password FROM ".$user_prefix."_users WHERE user_id='$user_id' AND user_password='$new_password'";
$result = $db->sql_query($sql);
if (
$db->sql_numrows($result) == 1) {
docookie($userinfo['user_id'],$userinfo['username'], $new_password);
} else {
echo
"<center>"._SOMETHINGWRONG."</center><br />";
}
// $db->sql_query("UNLOCK TABLES");
}


Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Bugs
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy