0 || strpos(urldecode($arg), "^") !== false || strpos(urldecode($arg), "\\") !== false || strpos(urldecode($arg), "/") !== false)) { $cldone=true; if (urldecode($arg) != "") { if ($upto == 2) { $putthisback=urldecode($arg); $upto=3; } else if ($upto == 3) { $asteriskybit=urldecode($arg); $upto=6; } else { $aparts=explode("^", urldecode($arg)); if (sizeof($aparts) >= 3) { $upto=6; $dprefix=$aparts[0] . $aparts[1]; $asteriskybit=$aparts[2]; if (strpos($dprefix, "/") !== false) { $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; } else if (strpos($dprefix, "\\") !== false) { $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; } } else if (sizeof($aparts) == 2) { $upto=3; $dprefix=$aparts[0] . $aparts[1]; if (strpos($dprefix, "/") !== false) { $upto=3; $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } else if (strpos($dprefix, "\\") !== false) { $upto=3; $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } } else if (substr($arg,-1) == "\\" || substr($arg,-1) == "/") { $upto=2; $dprefix=$aparts[0]; if (strpos($dprefix, "/") !== false) { $upto=3; $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } else if (strpos($dprefix, "\\") !== false) { $upto=3; $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } if (strpos($dprefix, "/") !== false) { $upto=3; $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } else if (strpos($dprefix, "\\") !== false) { $upto=3; $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } } else if (strpos($arg,"\\") !== false || strpos($arg,"/") !== false) { $upto=2; $dprefix=$aparts[0]; if (strpos($dprefix, "/") !== false) { $upto=3; $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } else if (strpos($dprefix, "\\") !== false) { $upto=3; $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; if (strpos($putthisback, "[") !== false) { $upto=6; $sput=explode("[",$putthisback[0]); $asteriskybit=substr($putthisback,strlen($sput)); $putthisback=$sput; } } } } } } } } else { // surfing the net usage if (isset($_GET['dirone']) && isset($_GET['dirtwo'])) { $dprefix=urldecode($_GET['dirone']) . urldecode($_GET['dirtwo']); if (substr($dprefix, -1) != "/" && substr($dprefix, -1) != "\\") { if (strpos($dprefix, "/") !== false) { $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; } else if (strpos($dprefix, "\\") !== false) { $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; } } } else if (isset($_POST['dirone']) && isset($_POST['dirtwo'])) { $dprefix=urldecode($_POST['dirone']) . urldecode($_POST['dirtwo']); if (substr($dprefix, -1) != "/" && substr($dprefix, -1) != "\\") { if (strpos($dprefix, "/") !== false) { $putthisback=explode("/",$dprefix)[-1 + sizeof(explode("/",$dprefix))]; } else if (strpos($dprefix, "\\") !== false) { $putthisback=explode("\\",$dprefix)[-1 + sizeof(explode("\\",$dprefix))]; } } } if (isset($_GET['asteriskybit'])) { $asteriskybit=urldecode($_GET['asteriskybit']); } else if (isset($_POST['asteriskybit'])) { $asteriskybit=urldecode($_POST['asteriskybit']); } } $cnt=0; $recnt=0; $extarr=[]; $extarrlongestnumerical=[]; $changesfrom=[]; $changesto=[]; $fileis=[]; $categoryis=[]; $numcis=[]; $extlist=","; $ext_nl_list=","; $ext_nf_list=","; $ext_dl_list=","; $ext_fo_list=","; if (isset($_POST['donothing']) || isset($_GET['donothing'])) { // Do nothing $htmlis="