| Server IP : 180.180.241.3 / Your IP : 216.73.216.25 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/login/ |
Upload File : |
<?php
;
include ("../inc/config.inc.php");
head();
$_REQPERM="mainmenu";
mn_lib();
if ($savenewpassword=="yes" && getval("_SETTING","islibcanchangeownpassword")=="yes") {
$pwdchk=tmq("select * from library where UserAdminID='$useradminid' ");
$pwdchk=tmq_fetch_array($pwdchk);
echo "<BR>";
if ($pwdchk[Password]!=md5($currentpwd)) {
html_dialog("ERROR",getlang("รหัสผ่านปัจจุบันที่ป้อนเข้ามาไม่ตรงกับรหัสผ่านปัจจุบันในฐานข้อมูล::l::Your current password enterd not match the data in system"));
} else {
tmq("update library set Password='".md5($newpwd1)."' where UserAdminID='$useradminid' limit 1 ");
html_dialog("Success",getlang("การเปลี่ยนรหัสผ่านเรียบร้อย::l::Password Changed"));
}
}
if ($changepassword=="yes" && getval("_SETTING","islibcanchangeownpassword")=="yes") {
?><BR><TABLE cellpadding=0 cellspacing=0 width=500 align=center class=table_border>
<FORM METHOD=POST ACTION="mainadmin.php" onsubmit="return chkpwd(this);">
<INPUT TYPE="hidden" NAME="savenewpassword" value="yes">
<SCRIPT LANGUAGE="JavaScript">
<!--
function chkpwd(wh) {
if (wh.currentpwd.value=="") {
alert("<? echo getlang("กรุณาระบุรหัสผ่านปัจจุบัน::l::Please Enter your current password");?>");
wh.currentpwd.focus();
return false;
}
if (wh.newpwd1.value=="") {
alert("<? echo getlang("กรุณาระบุรหัสผ่านใหม่::l::Please Enter your new password");?>");
wh.newpwd1.focus();
return false;
}
if (wh.newpwd1.value!=wh.newpwd2.value) {
alert("<? echo getlang("รหัสผ่านใหม่ทั้งสองช่องไม่เหมือนกัน::l::Please verify your new password");?>");
wh.newpwd1.focus();
return false;
}
return true;
}
//-->
</SCRIPT>
<TR>
<TD class=table_head colspan=2><? echo getlang("เปลี่ยนรหัสผ่าน::l::Change password");?></TD>
</TR>
<TR>
<TD class=table_head2 colspan=2><? echo getlang("กรุณากรอกรหัสผ่านปัจจุบัน และรหัสผ่านใหม่ที่ต้องการ::l::Please enter your current password and desired password");?></TD>
</TR>
<TR>
<TD class=table_head2 width=220><? echo getlang("รหัสผ่านปัจจุบัน::l::Current password");?></TD>
<TD class=table_td><INPUT TYPE="password" NAME="currentpwd" autocomplete=off></TD>
</TR>
<TR>
<TD class=table_head2 width=220><? echo getlang("รหัสผ่านใหม่::l::New password");?></TD>
<TD class=table_td><INPUT TYPE="password" NAME="newpwd1" autocomplete=off></TD>
</TR>
<TR>
<TD class=table_head2 width=220><? echo getlang("ยืนยันรหัสผ่านใหม่::l::Confirm New password");?></TD>
<TD class=table_td><INPUT TYPE="password" NAME="newpwd2" autocomplete=off></TD>
</TR>
<TR>
<TD class=table_head2 colspan=2><INPUT TYPE="submit" value="<? echo getlang("เปลี่ยนรหัสผ่าน::l::Change Password"); ?>"> <INPUT TYPE="reset" value="<? echo getlang("ยกเลิก::l::Cancel");?>" onclick="self.location='mainadmin.php'"></TD>
</TR>
</FORM>
</TABLE><?
}
$backupremind=floor(getval("_SETTING","day_to_alert_librarian_to_backup"));
if ($backupremind!=0) {
$lastbackup=floor(barcodeval_get("lastbackup-full-date"));
$dt_to_remind=time()-($backupremind*(60*60*24));
//echo "($dt_to_remind>$lastbackup) ";
if ($dt_to_remind>$lastbackup) {
$lastbackup_light=floor(barcodeval_get("lastbackup-light-date"));
$lightbackupremind=floor(getval("_SETTING","day_to_alert_librarian_to_lightbackup"));
$dt_to_remind_light=time()-($lightbackupremind*(60*60*24));
if ($dt_to_remind_light>$lastbackup_light) {
$color="red";
$imgsrc="Warning-48.gif";
} else {
$color="#757575";
$imgsrc="Warning-48-dis.gif";
}
?>
<TABLE width = 780 border=0 align=center>
<TR>
<TD width=150 align=right><IMG SRC="../neoimg/<? echo $imgsrc;?>" WIDTH="48" HEIGHT="48" BORDER="0" ALT="" ></TD>
<TD align = left>
<FONT SIZE = "4" COLOR = "<? echo $color;?>"> <?
echo getlang("ขณะนี้ ระบบไม่ได้ทำการสำรองข้อมูลมาเป็นระยะเวลาพอสมควร ตั้งแต่ ::l::This system not been full-backup for longtime, Since.");
echo thaidatestr($lastbackup);
echo "<BR>";
echo getlang("กรุณาไปที่ส่วนของ การทำงานของเจ้าหน้าที่สูงสุด และทำการสำรองข้อมูลแบบสมบูรณ์ <BR>เพื่อความปลอดภัยของระบบ::l::Please go to Administration system then full-backup, for system statibility.");
?></b></FONT>
</TD>
</TR>
<?
if ($dt_to_remind_light>$lastbackup_light) {
?><TR>
<TD></TD>
<TD align = left>
<FONT SIZE = "4" COLOR = "<? echo $color;?>"> <?
echo getlang("หากคุณไม่ใช่ผู้ดูแลระบบ คุณสามารถ คลิกปุ่ม <B>สำรองข้อมูล</B> เพื่อสำรองข้อมูลแบบรวดเร็ว::l::If you're not Administrator, please click <B>Backup</B> button to perform light-backup");
echo "<BR>";
echo getlang("สำรองข้อมูลแบบเร็วครั้งล่าสุดเมื่อ::l::Last light-backup since ")." ".thaidatestr($lastbackup_light);
?></FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align=center><?
html_xpbtn(" ".getlang("สำรองข้อมูล::l::Backup")." ,../library.backup/,green");
?></TD>
</TR><?
} else {
?>
<TR>
<TD colspan=2 align=center><FONT SIZE="" COLOR="<? echo $color;?>"><?
echo getlang("สำรองข้อมูลแบบเร็วครั้งล่าสุดเมื่อ::l::Last light-backup since ")." ".thaidatestr($lastbackup_light);
?></FONT></TD>
</TR><? }
?>
</TABLE></div>
<? }
}
?>
<table border = 0 cellpadding = 0 width = 660
align = center cellspacing=30>
<tr>
<td valign = "top" width=50%>
<?
html_librarymenu("metadata");
html_librarymenu("metadataacc");
echo "<BR>";
html_librarymenu("configer");
echo "<BR>";
//echo getval("_SETTING","islibchangeautologin");
if (getval("_SETTING","islibchangeautologin")=="yes") {
if ($clearautologin=="yes") {
tmq("update library set ipautologin='' where UserAdminID='$useradminid' ");
}
if ($setthisipautologin=="yes") {
tmq("update library set ipautologin='$IPADDR' where UserAdminID='$useradminid' ");
}
?><div style=';font-size:11;'><?
$chkip=tmq("select * from library where UserAdminID='$useradminid' ",false);
$chkip=tmq_fetch_array($chkip);
if (trim($chkip[ipautologin])!="") {
?><img border=0 src="../neoimg/ipicon.png" align=left width=32 height=32> <?
if ( "$chkip[ipautologin]"!="$IPADDR") {
echo "<B style='color:red;font-size:11;' >คำเตือน!</B><BR>".getlang("ขณะนี้ คุณได้ใช้เครื่องที่มีหมายเลข IP ไม่ตรงกับหมายเลข IP สำหรับล็อกอินอัตโนมัติ!::l::Current IP does no match with your Autologin IP!")."<BR> <A HREF='mainadmin.php?clearautologin=yes' style=';font-size:11;'>".getlang("คลิกที่นี่เพื่อยกเลิกการล็อกอินอัตโนมัติด้วยไอพี::l::Click here to cancel Autologin IP")."</A><BR>";
} else {
echo "<span style='color:darkgreen;font-size:11;'>".getlang("ขณะนี้ คุณได้ตั้งหมายเลข IP สำหรับล็อกอิน<BR> เป็น $IPADDR (เครื่องปัจจุบันที่กำลังใช้งาน)::l::Your Autologin IP is $IPADDR<BR> (Current IP)")."</span><BR>
<img border=0 src='../neoimg/misc/errsm.gif' align=absmiddle width=10 height=10> <A HREF='mainadmin.php?clearautologin=yes' style=';font-size:11;'>".getlang("คลิกที่นี่เพื่อยกเลิกการล็อกอินอัตโนมัติด้วยไอพี::l::Click here to cancel Autologin IP")."</A>";
}
} else {
?> <img border=0 src="../neoimg/misc/errsm.gif" align=absmiddle width=10 height=10> <A HREF='mainadmin.php?setthisipautologin=yes' style=';font-size:11;'><? echo getlang("คลิกที่นี่เพื่อกำหนด ล็อกอินอัตโนมัติด้วยไอพี:::l::Click here to set this Autologin IP to:");?> <? echo $IPADDR?></A><BR>
<?
}
?></div><BR><?
}
if (getval("_SETTING","islibcanchangeownpassword")=="yes") {
?><div style=';font-size:11; padding-left: 17px;'><?
?><img border=0 src="../neoimg/password.png" align=absmiddle width=16 height=16> <?
echo "<A HREF='mainadmin.php?changepassword=yes' style=';font-size:11; color: #804040'>".getlang("คลิกที่นี่ เพื่อเปลี่ยนรหัสผ่านของคุณ::l::Click here to change password.")."</A>";
?></div><?
}
?>
</td>
<td valign = "top" width=50%>
<?
html_librarymenu("weboption");
echo "<BR>";
html_librarymenu("bibrating");
echo "<BR>";
html_librarymenu("comments");
echo "<BR>";
html_librarymenu("ticket");
echo "<BR>";
html_librarymenu("other");
?>
<BR>
<?
?>
<TABLE width=100%>
<TR>
<TD class=mnhead colspan=2><? echo getlang("ลิงค์ด่วน::l::Quick links"); ?></TD>
</TR>
<TR>
<TD class=table_td colspan=2><A HREF="../root/"><? echo getlang("ระบบเจ้าหน้าที่สูงสุด::l::Administrator system"); ?></A>
<A HREF="../root/" target=_blank><IMG SRC="../neoimg/newwin.gif" WIDTH="13" HEIGHT="13" BORDER="0" ALT=""></A>
</TD>
</TR>
<TR>
<TD class=table_td colspan=2><A HREF="../" ><? echo getlang("หน้าหลักโปรแกรม ::l::Homepage "); ?></A>
<A HREF="../" target=_blank><IMG SRC="../neoimg/newwin.gif" WIDTH="13" HEIGHT="13" BORDER="0" ALT=""></A>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<?
foot();
?>