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.ticket/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/login.ticket/media.php
<?
include("../inc/config.inc.php");


head();
$_REQPERM="ticket-medialist";
mn_lib();
$tbname="media_ftitems";
//printr($selectlist);
$now=time();
echo "<center>";


$c[2][text]="ชื่อสมาชิก";
$c[2][field]="memid";
$c[2][fieldtype]="text";
$c[2][descr]="";
$c[2][defval]="";
/*
$c[11][text]="Librarian";
$c[11][field]="libid";
$c[11][fieldtype]="readonlytext";
$c[11][descr]="";
$c[11][defval]=$useradminid;
*/
/*
$c[3][text]="Tag";
$c[3][field]="word1";
$c[3][fieldtype]="text";
$c[3][descr]="";
$c[3][defval]="";
*/
$c[9][text]="ข้อความ";
$c[9][field]="body";
$c[9][fieldtype]="longtext";
$c[9][descr]="";
$c[9][defval]="";

$c[10][text]="Date";
$c[10][field]="dt";
$c[10][fieldtype]="date";
$c[10][descr]="";
$c[10][defval]=time();;

$c[14][text]="Date";
$c[14][field]="bibid";
$c[14][fieldtype]="addcontrol";
$c[14][descr]="";
$c[14][defval]=$mid;

//dsp

$dsp[2][text]="รายละเอียดไฟล์";
$dsp[2][field]="memid";
$dsp[2][width]="30%";
$dsp[2][filter]="module:local_detail";

$dsp[3][text]="อยู่ในรายการ";
$dsp[3][field]="id";
$dsp[3][width]="70%";
$dsp[3][filter]="module:local_mdname";

function local_mdname($wh) {
	return " ".marc_gettitle($wh[mid])." <BR><A HREF='../index.php?mode=viewrecord&mid=$wh[mid]' class=a_btn target=_blank>ดูรายละเอียด</A> : <A HREF='../login.upload/index.php?mid=$wh[mid]' class=a_btn target=_blank>รายละเอียดไฟล์แนบ</A>";
}

function local_detail($wh) {
	if (strlen($wh[filename])>20) {
		$add='..';
	}
	//printr($wh);
	$ico=index_fticon($wh,40,40,"return");
	if ($wh[uploadtype]=="url") {
		 $link= "<a href=\"$wh[filename]\" target=_blank class=smaller2>".substr($wh[filename],0,20)."$add</a>";
	} else {
		 $link= "<a href=\"$dcrURL/_fulltext/$wh[mid]/$wh[filename]\" target=_blank class=smaller2>".substr($wh[filename],0,20)."$add</a>";
	}
	return "<TABLE width=100%>
	<TR valign=top>
		<TD width=50>$ico</TD>
		<TD>$link</TD>
	</TR>
	</TABLE>";

}

		$limit=" 1 and needticket='yes' ";
fixform_tablelister($tbname," $limit ",$dsp,"no","no","no","mid=$mid",$c,"id desc");


foot();
?>

Anon7 - 2022
AnonSec Team