'Cookie Consent', 'description' => 'A lightweight addon module that displays a cookie consent message. The addon module displays a message on the user\'s first visit to your website.', 'author' => 'HSCode', 'language' => 'english', 'version' => '1.0.1', 'fields' => [ 'Enable' => ['FriendlyName' => 'Enable', 'Type' => 'yesno', 'Description' => 'Tick this box to enable the cookie dialog'], 'Title' => ['FriendlyName' => 'Title', 'Type' => 'text', 'Size' => '40', 'Default' => 'Cookies'], 'Message' => ['FriendlyName' => 'Message', 'Type' => 'textarea', 'Rows' => '4', 'Default' => $message, 'Description' => 'HTML can be included within this message'], 'Expires' => ['FriendlyName' => 'Expires', 'Type' => 'text', 'Size' => '10', 'Default' => '30', 'Description' => 'Enter the days for the cookie to expire'], 'PolicyURL' => ['FriendlyName' => 'Cookie Policy URL', 'Type' => 'text', 'Size' => '60'], 'RedirectURL' => ['FriendlyName' => 'Decline Redirect URL', 'Type' => 'text', 'Size' => '60'], ] ]; } function Cookie_output($vars) { header('Location: configaddonmods.php#Cookie'); exit; }