$swritable = true;
     $swritablechecked = "checked";
 }
 if (isset($_REQUEST['sreadable'])) {
     $sreadable = true;
     $sreadablechecked = "checked";
 }
 if (isset($_REQUEST['sexecutable'])) {
     $sexecutable = true;
     $sexecutablechecked = "checked";
 }
 $sexecb = function_exists("is_executable") ? "<input type='checkbox' name='sexecutable' value='sexecutable' id='se' " . $sexecutablechecked . " /><label for='se'>Executable</span>" : "";
 $candidate = array();
 if (isset($_REQUEST['sgo'])) {
     $af = "";
     $candidate = getallfiles($p);
     if ($type == 'sfile') {
         $candidate = array_filter($candidate, "is_file");
     } elseif ($type == 'sdir') {
         $candidate = array_filter($candidate, "is_dir");
     }
     foreach ($candidate as $a) {
         if ($type == 'sdir') {
             if (!empty($sdname)) {
                 if ($sdnameregex) {
                     if ($sdnameicase) {
                         if (!preg_match("/" . $sdname . "/i", basename($a))) {
                             $candidate = array_diff($candidate, array($a));
                         }
                     } else {
                         if (!preg_match("/" . $sdname . "/", basename($a))) {
Пример #2
0
     $s_swritable = true;
     $s_swritablechecked = "checked";
 }
 if (isset($_GP['sreadable'])) {
     $s_sreadable = true;
     $s_sreadablechecked = "checked";
 }
 if (isset($_GP['sexecutable'])) {
     $s_sexecutable = true;
     $s_sexecutablechecked = "checked";
 }
 $s_sexecb = function_exists("is_executable") ? "<input class='css-checkbox' type='checkbox' name='sexecutable' value='sexecutable' id='se' " . $s_sexecutablechecked . " /><label class='css-label' for='se'>Executable</span>" : "";
 $s_candidate = array();
 if (isset($_GP['sgo'])) {
     $s_af = "";
     $s_candidate = getallfiles($s_p);
     if ($s_type == 'sfile') {
         $s_candidate = @array_filter($s_candidate, "is_file");
     } elseif ($s_type == 'sdir') {
         $s_candidate = @array_filter($s_candidate, "is_dir");
     }
     foreach ($s_candidate as $s_a) {
         if ($s_type == 'sdir') {
             if (!empty($s_sdname)) {
                 if ($s_sdnameregex) {
                     if ($s_sdnameicase) {
                         if (!preg_match("/" . $s_sdname . "/i", basename($s_a))) {
                             $s_candidate = array_diff($s_candidate, array($s_a));
                         }
                     } else {
                         if (!preg_match("/" . $s_sdname . "/", basename($s_a))) {