OneThird CMS

Lightweight CMS for Small website, Web application framework.

Download Document

japanese

When you forget the administrator password

/admin/account.php

Of

570 line per

// 通常ログイン
$ar = $database->sql_select_all("select img,mailadr,id,status,metadata,name,nickname,password,login_mode from ".DBX."users where mailadr=? or name=? ", $login_id, $login_id);
if ($ar) {
	$ps = hash('sha256', $ar[0]['id'].$password);
	if ($ps !== $ar[0]['password']) {
		$ar = null;
	}
}   

The

// 通常ログイン
$ar = $database->sql_select_all("select img,mailadr,id,status,metadata,name,nickname,password,login_mode from ".DBX."users where mailadr=? or name=? ", $login_id, $login_id);
if ($ar) {
	$ps = hash('sha256', $ar[0]['id'].$password);
	if ($ps !== $ar[0]['password']) {
		// $ar = null; → ここをコメントアウト
	}
}
   

Please be one line comment as of

However, if you change here, so you can log in without a password on all of ID

Please be sure to return soon to the original after login





Google Website Translator - Google Translate