3 require_once 'HTML/QuickForm.php';
4 require_once 'HTML/QuickForm/DHTMLRulesTableless.php';
5 require_once 'HTML/QuickForm/Renderer/Tableless.php';
7 function process_data ($values) {
8 echo '<h1>Thank you</h1>';
9 echo 'Your report has been submitted';
10 $email_body = 'OpenStreetMap - Claim of Copyright Infringement form:'."\n\n";
11 $email_body .= 'Automated Email - Form Posted.'."\n\n";
12 $email_body .= print_r($values, true);
13 mail('dmca@osmfoundation.org','OSM Claim of Copyright Infringement', $email_body, 'From: OSMF Copyright Form <dmca@osmfoundation.org>', '-fdmca@osmfoundation.org');
19 <title>OpenStreetMap Legal - Claim of Copyright Infringement</title>
20 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
21 <link rel="stylesheet" type="text/css" href="style.css" />
26 // Instantiate the HTML_QuickForm object
27 $form = new HTML_QuickForm_DHTMLRulesTableless('osm_legal_claim_of_copyright');
28 $renderer = new HTML_QuickForm_Renderer_Tableless();
30 $form->addElement('header', null, 'OpenStreetMap: Claim of Copyright Infringement');
32 $form->addElement('static', null, '<p>To file a copyright infringement notification with us, you will need to send a written communication that includes the following (please consult your legal counsel or see Section 512(c)(3) of the Digital Millennium Copyright Act to confirm these requirements):</p>
33 <ul><li> A physical or electronic signature of a person authorized to act on behalf of the owner of an exclusive right that is allegedly infringed.
34 <li>Identification of the copyrighted work claimed to have been infringed or, if multiple copyrighted works at a single online site are covered by a single notification, a representative list of such works at that site.
35 <li>Identification of the material that is claimed to be infringing or to be the subject of infringing activity and that is to be removed or access to which is to be disabled, and information reasonably sufficient to permit the service provider to locate the material. Providing URLs in the body of an email is the best way to help us locate content quickly.
36 <li>Information reasonably sufficient to permit the service provider to contact the complaining party, such as an address, telephone number, and, if available, an electronic mail address at which the complaining party may be contacted.
37 <li>A statement that the complaining party has a good faith belief that use of the material in the manner complained of is not authorized by the copyright owner, its agent, or the law.
38 <li>A statement that the information in the notification is accurate and, under penalty of perjury, that the complaining party is authorized to act on behalf of the owner of an exclusive right that is allegedly infringed.
39 </ul><p>To expedite our ability to process your request, such written notice should be sent to our designated agent via our online copyright complaint form below.</p>
40 <p>This form is only for cases where you believe that material on OpenStreetMap\'s websites or in its geodata database infringes your copyright or that of your clients. For example, you claim someone has copied material from a map belonging to you. If you have come here for another reason, <a href="http://www.osmfoundation.org/wiki/License/Takedown_procedure/When_To_Use_The_Form">Go here</a>.</p>');
42 $form->addElement('text', 'url', 'URL of Allegedly Infringing Material', array('size' => 50, 'maxlength' => 255));
43 $form->addRule('url', 'Please enter URL of Allegedly Infringing Material', 'required', null, 'client');
45 $form->addElement('textarea', 'work', 'Describe the work allegedly infringed. For example, which map has been copied and what specifically has been copied.', array('rows' => 20, 'cols' => 70));
46 $form->addRule('work', 'Please describe the work allegedly infringed', 'required', null, 'client');
48 $form->addElement('text', 'territory', 'Territories where infringement occurred', array('size' => 50, 'maxlength' => 255));
49 $form->addRule('territory', 'Please enter the territories where infringement occurred', 'required', null, 'client');
51 $form->addElement('text', 'name_first', 'First Name', array('size' => 50, 'maxlength' => 255));
52 $form->addRule('name_first', 'Please enter your First Name', 'required', null, 'client');
54 $form->addElement('text', 'name_last', 'Last Name', array('size' => 50, 'maxlength' => 255));
55 $form->addRule('name_last', 'Please enter your Last Name', 'required', null, 'client');
58 $form->addElement('text', 'company', 'Company Name', array('size' => 50, 'maxlength' => 255));
59 $form->addElement('text', 'company_tile', 'Title/Position');
61 $form->addElement('text', 'address', 'Street Address');
62 $form->addRule('address', 'Please enter Street Address', 'required', null, 'client');
64 $form->addElement('text', 'city', 'City', array('size' => 50, 'maxlength' => 255));
65 $form->addRule('city', 'Please enter City', 'required', null, 'client');
67 $form->addElement('text', 'state', 'State/Province', array('size' => 50, 'maxlength' => 255));
68 $form->addElement('text', 'postal_code', 'Zip/Postal Code', array('size' => 50, 'maxlength' => 255));
70 $form->addElement('text', 'country', 'Country', array('size' => 50, 'maxlength' => 255));
71 $form->addRule('country', 'Please enter Country', 'required', null, 'client');
73 $form->addElement('text', 'phone_number', 'Phone Number', array('size' => 50, 'maxlength' => 255));
74 $form->addRule('phone_number', 'Please enter Phone Number', 'required', null, 'client');
76 $form->addElement('text', 'mobile_number', 'Mobile Number', array('size' => 50, 'maxlength' => 255));
78 $form->addElement('text', 'email', 'Email Address', array('size' => 50, 'maxlength' => 255));
79 $form->addRule('email', 'Please enter Email Address', 'required', null, 'client');
80 $form->addRule('email', 'Please enter a valid Email Address', 'email', null, 'client');
82 $form->addElement('text', 'fax', 'Fax', array('size' => 50, 'maxlength' => 255));
84 $complaint_options = array();
85 $complaint_options[] = &HTML_QuickForm::createElement('checkbox', '1_of_4_owner_or_authorised', null, 'I am the owner, or an agent authorized to act on behalf of the owner, of an exclusive right that is allegedly infringed.');
86 $complaint_options[] = &HTML_QuickForm::createElement('checkbox', '2_of_4_good_faith', null, 'I have a good faith belief that the use of the material in the manner complained of is not authorized by the copyright owner, its agent, or the law; and');
87 $complaint_options[] = &HTML_QuickForm::createElement('checkbox', '3_of_4_accurate', null, 'This notification is accurate.');
88 $complaint_options[] = &HTML_QuickForm::createElement('checkbox', '4_of_4_not_misrepresent', null, 'I acknowledge that under Section 512(f) any person who knowingly materially misrepresents that material or activity is infringing may be subject to liability for damages.');
90 $form->addGroup($complaint_options, 'complaint_confirm', 'By checking the following boxes, I state UNDER PENALTY OF PERJURY that (choose all of the options)', '<br />');
92 $form->addElement('text', 'signature', 'Typing your full name in this box will act as your digital signature.', array('size' => 25, 'maxlength' => 255));
93 $form->addRule('signature', 'Field is required', 'required', null, 'client');
95 $form->addElement('submit', null, 'Send');
97 $form->removeAttribute('name');
98 $form->getValidationScript();
100 if ($form->validate()) {
103 $form->process('process_data', false);
107 $form->accept($renderer);
108 echo $renderer->toHtml();