Configure it now!", array("url" => html::mark_clean(url::site("admin/videos")))), "videos_configuration"); } else { site_status::clear("videos_configuration"); } } static function is_valid_path($path) { if (!is_readable($path) || is_link($path)) { return false; } $authorized_paths = unserialize(module::get_var("videos", "authorized_paths")); foreach (array_keys($authorized_paths) as $valid_path) { if (strpos($path, $valid_path) === 0) { return true; } } return false; } }