Permalink
Browse files

изменено имя базы данных в sams2.conf на sams2db. Пофиксена проблема,…

… возникающая после смены пароля администратора
  • Loading branch information...
DmitryChemerik DmitryChemerik
DmitryChemerik authored and DmitryChemerik committed Oct 10, 2010
1 parent af606d1 commit 1bd89435809cca015ea1b3b0326d67096a60f019
Showing with 15 additions and 5 deletions.
  1. +1 −1 etc/sams2.conf
  2. +0 −1 php/setup.php
  3. +14 −3 php/src/adminbuttom_4_chpasswd.php
View
@@ -14,7 +14,7 @@ DB_ENGINE=MySQL
DB_SERVER=localhost
; Database name
SAMS_DB=database_name
SAMS_DB=sams2db
;
ODBC=0
View
@@ -189,7 +189,6 @@ function step_2($lang)
echo "<TR>";
echo "<TD><TD COLSPAN=2>$setup_40";
echo "<TD><font color=GREEN>on</b></font>";
$disable_functions = @ini_get("disable_functions") ? 1 : 0;
$disable_functions_names=@ini_get("disable_functions");
echo "<TR>";
@@ -34,9 +34,20 @@ function ChangeAdminPasswd()
}
else
{
$QUERY="UPDATE passwd SET s_pass='$passwd' WHERE s_user='$username' AND s_pass='$oldpasswd2' ";
$num_rows=$DB->samsdb_query($QUERY);
PageTop("user_48.jpg","$adminbuttom_4_chpasswd_ChangeAdminPasswd_1 $username $adminbuttom_4_chpasswd_ChangeAdminPasswd_2");
$QUERY="UPDATE passwd SET s_pass='$passwd' WHERE s_user='$username' AND s_pass='$oldpasswd2' ";
$num_rows=$DB->samsdb_query($QUERY);
PageTop("user_48.jpg","$adminbuttom_4_chpasswd_ChangeAdminPasswd_1 $username $adminbuttom_4_chpasswd_ChangeAdminPasswd_2");
setcookie("user","");
setcookie("passwd","");
setcookie("domainuser","");
setcookie("gauditor","");
setcookie("userid","");
setcookie("webaccess","");
setcookie("samsadmin","0");
print("<SCRIPT>\n");
print(" parent.basefrm.location.href=\"main.php?show=exe&function=setcookie&username=$username&userid=$newpasswd\";\n");
print(" parent.lframe.location.href=\"lframe.php\";\n");
print("</SCRIPT> \n");
}
}

0 comments on commit 1bd8943

Please sign in to comment.