PluginProbe
Wp-Insert / 1.7.6
Wp-Insert v1.7.6
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / includes / privacypolicy.php

privacypolicy.php in Wp-Insert 1.7.6, at includes/privacypolicy.php

104 lines 10.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $Domain = str_replace('', "www.", $_SERVER['HTTP_HOST']);
3 $PrivacyPolicyText = '<p>At <a href="'.get_bloginfo('url').'">'.$Domain.'</a>, the privacy of our visitors is of extreme importance to us (See <a target="_blank" href="http://www.wp-insert.smartlogix.co.in/what-is-a-privacy-policy/">this article</a> to learn more about Privacy Policies.). This privacy policy document outlines the types of personal information is received and collected by <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and how it is used.</p>
4 <p><b>Log Files</b><br/>Like many other Web sites, <a href="'.get_bloginfo('url').'">'.$Domain.'</a> makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.</p>
5 <p><b>Cookies and Web Beacons</b><br/><a href="'.get_bloginfo('url').'">'.$Domain.'</a> does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.</p>
6 <p><b>DoubleClick DART Cookie</b></p><ul><li>Google, as a third party vendor, uses cookies to serve ads on <a href="'.get_bloginfo('url').'">'.$Domain.'</a>.</li><li>Google\'s use of the DART cookie enables it to serve ads to users based on their visit to <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and other sites on the Internet.</li><li>Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a>.</li></ul>
7 <p>These third-party ad servers or ad networks use technology to the advertisements and links that appear on <a href="'.get_bloginfo('url').'">'.$Domain.'</a> send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.</p>
8 <p><a href="'.get_bloginfo('url').'">'.$Domain.'</a> has no access to or control over these cookies that are used by third-party advertisers.</p>
9 <p>You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. <a href="'.get_bloginfo('url').'">'.$Domain.'\'s</a> privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.</p>
10 <p>If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers\' respective websites.</p>';
11 if(get_option('wp_insert_privacy_policy_content') == "") { add_option("wp_insert_privacy_policy_content", $PrivacyPolicyText, '', 'yes'); }
12
13 add_shortcode('Privacy', 'wp_insert_privacy_policy_shortcode');
14
15 function wp_insert_privacy_policy_shortcode() {
16 return get_option('wp_insert_privacy_policy_content');
17 }
18
19 function wp_insert_privacy_policy_page() {
20 if(isset($_GET["assign"])) {
21 $my_post = array();
22 $my_post['ID'] = $_GET["assign"];
23 $my_post['post_content'] = '[Privacy]';
24 wp_update_post($my_post);
25 header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy");
26 }
27 else if(isset($_GET["create"])) {
28 $my_post = array();
29 $my_post['post_title'] = 'Privacy Policy';
30 $my_post['post_content'] = '[Privacy]';
31 $my_post['post_status'] = 'publish';
32 $my_post['post_author'] = 1;
33 $my_post['post_type'] = 'page';
34 wp_insert_post($my_post);
35 header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy");
36 }
37 else if(isset($_GET["reset"])) {
38 $Domain = str_replace('', "www.", $_SERVER['HTTP_HOST']);
39 $PrivacyPolicyText = '<p>At <a href="'.get_bloginfo('url').'">'.$Domain.'</a>, the privacy of our visitors is of extreme importance to us (See <a target="_blank" href="http://www.wp-insert.smartlogix.co.in/what-is-a-privacy-policy/">this article</a> to learn more about Privacy Policies.). This privacy policy document outlines the types of personal information is received and collected by <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and how it is used.</p>
40 <p><b>Log Files</b><br/>Like many other Web sites, <a href="'.get_bloginfo('url').'">'.$Domain.'</a> makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.</p>
41 <p><b>Cookies and Web Beacons</b><br/><a href="'.get_bloginfo('url').'">'.$Domain.'</a> does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.</p>
42 <p><b>DoubleClick DART Cookie</b></p><ul><li>Google, as a third party vendor, uses cookies to serve ads on <a href="'.get_bloginfo('url').'">'.$Domain.'</a>.</li><li>Google\'s use of the DART cookie enables it to serve ads to users based on their visit to <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and other sites on the Internet.</li><li>Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a>.</li></ul>
43 <p>These third-party ad servers or ad networks use technology to the advertisements and links that appear on <a href="'.get_bloginfo('url').'">'.$Domain.'</a> send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.</p>
44 <p><a href="'.get_bloginfo('url').'">'.$Domain.'</a> has no access to or control over these cookies that are used by third-party advertisers.</p>
45 <p>You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. <a href="'.get_bloginfo('url').'">'.$Domain.'\'s</a> privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.</p>
46 <p>If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers\' respective websites.</p>';
47
48 update_option("wp_insert_privacy_policy_content", $PrivacyPolicyText);
49 header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy");
50 }
51 global $screen_layout_columns;
52
53 add_meta_box('wp_insert_edit_privacy_policy', 'Finetune your Privacy Policy', 'wp_insert_edit_privacy_policy_HTML', 'col_1');
54 add_meta_box('wp_insert_edit_assign_privacy_policy_page', 'Assign Page for Privacy Policy', 'wp_insert_edit_assign_privacy_policy_page_HTML', 'col_1');
55
56 $parameters = 'wp_insert_privacy_policy_content';
57 wp_insert_settings_page_layout($parameters, 'WP-INSERT : manage-privacy-policy', 'privacy');
58 }
59
60 function wp_insert_edit_assign_privacy_policy_page_HTML() { ?>
61 <div>
62 <p>Assign
63 <select id="wp_insert_select_assign_pages" onchange="UpdateAssignlink()">
64 <option value="#" selected="selected">-- Select a Page --</option>
65 <?php
66 $count = 0;
67 $pages = get_pages('sort_column=menu_order');
68 foreach($pages as $page) {
69 if($count < 100) {
70 echo "<option value='".get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy&assign=".$page->ID."'>".$page->post_title."</option>";
71 }
72 $count++;
73 }
74 ?>
75 </select>
76 <script type="text/javascript">
77 document.getElementById('wp_insert_select_assign_pages').selectedIndex = 0;
78 function UpdateAssignlink() {
79 document.getElementById('wp_insert_assign_now_link').href = document.getElementById('wp_insert_select_assign_pages')[document.getElementById('wp_insert_select_assign_pages').selectedIndex].value;
80 }
81 </script>
82 as Privacy Policy page : <a id="wp_insert_assign_now_link" href="#" class="button-secondary">Assign Now</a></p>
83 <p><b>OR</b></p>
84 <p>Create Privacy Policy Page Automatically : <a href="<?php echo get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy&create=1"; ?>" class="button-secondary">Create Now</a></p>
85 </div>
86 <?php }
87
88 function wp_insert_edit_privacy_policy_HTML() { ?>
89 <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/fckeditor/fckeditor.js"></script>
90 <textarea id="wp_insert_privacy_policy_content" name="wp_insert_privacy_policy_content" style="width:100%; height: 400px;">
91 <?php echo get_option('wp_insert_privacy_policy_content'); ?>
92 </textarea>
93 <p><a href="<?php echo get_bloginfo('url')."/wp-admin/admin.php?page=manage-privacy-policy&reset=1"; ?>" class="button-secondary alignright">Reset</a></p><p><small>This is an automatically generated "Privacy Policy".</small></p>
94 <script type="text/javascript">
95 if(document.getElementById('wp_insert_privacy_policy_content')) {
96 var wp_insert_fckeditor = new FCKeditor('wp_insert_privacy_policy_content') ;
97 wp_insert_fckeditor.Height = "400"
98 wp_insert_fckeditor.BasePath = '<?php echo WP_PLUGIN_URL; ?>/wp-insert/fckeditor/';
99 wp_insert_fckeditor.ReplaceTextarea() ;
100 }
101 </script>
102 <?php }
103 ?>
104