function field_error($name = '', $el = "p") { if (!empty($name)) { if ($mn = $this->strip_mn($name)) { $errors = array(); switch ($mn[1]) { case 'Slide': $errors = GallerySlide::validate($_POST); break; } if (!empty($errors[$mn[2]])) { $error = '<' . $el . ' class="' . $this->pre . 'error">' . $errors[$mn[2]] . '</' . $el . '>'; return $error; } } } return false; }
<?php // // Processes all the unproccessed entries from the slideshow_todo table // require_once 'commandLine.inc'; GallerySlide::batchGenerateThumbs();