Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Privacy policy page #450

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Monstra 3.0.4, 2016-04-05
Monstra 3.0.4, 2018-07-21
------------------------
- Added Privacy policy page
- Fixed User Security by adding a check that compares POST id with SESSION
id for none admin edits
- Fixed ability to read robots.txt
Expand Down
14 changes: 14 additions & 0 deletions engine/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,18 @@ public static function powered()
{
return __('Powered by', 'system').' <a href="http://monstra.org" target="_blank">Monstra</a> ' . Monstra::VERSION;
}

/**
* Get site privacy policy
*
* <code>
* echo Site::privacyPolicy();
* </code>
*
* @return string
*/
public static function privacyPolicy()
{
return Option::get('privacy_policy');
}
}
2 changes: 1 addition & 1 deletion plugins/box/system/languages/de.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'Send New Password' => 'Neues Passwort zusenden',
'This user does not exist' => 'Dieser Benutzer existiert nicht',
'Version' => 'Version',

'Privacy policy' => 'Datenschutzerklärung',
'Install script writable' => 'Installationsskript beschreibbar',
'Install script not writable' => 'Installationsskript nicht beschreibbar',
'Directory: <b> :dir </b> writable' => 'Ordner: <b> :dir </b> beschreibbar',
Expand Down
2 changes: 1 addition & 1 deletion plugins/box/system/languages/en.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'Version' => 'Version',
'Plugin does not exist' => 'Plugin does not exist',
'Help' => 'Help',

'Privacy policy' => 'Privacy policy',
'Install script writable' => 'Install script writable',
'Install script not writable' => 'Install script not writable',
'Directory: <b> :dir </b> writable' => 'Directory: <b> :dir </b> writable',
Expand Down
2 changes: 1 addition & 1 deletion plugins/box/system/languages/fr.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'This user does not exist' => 'Cet utilisateur n\'existe pas',
'Version' => 'Version',
'Plugin does not exist' => 'Ce plugin n\'existe pas',

'Privacy policy' => 'Politique de confidentialité',
'Install script writable' => 'Le script d\'installation est accessible en écriture', // pour ' = &#8217; (a voir)
'Install script not writable' => 'Le script d\'installation n\' est pas accessible en écriture',
'Directory: <b> :dir </b> writable' => 'Répertoire: <b> :dir </b> writable',
Expand Down
1 change: 1 addition & 0 deletions plugins/box/system/languages/ja.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'This user does not exist' => 'このユーザーは存在しません',
'Version' => 'バージョン',
'Plugin does not exist' => 'プラグインが存在しません',
'Privacy policy' => 'プライバシーポリシー',
'Install script writable' => 'インストールスクリプトは書き込み可能です',
'Install script not writable' => 'インストールスクリプトは書き込み不可能です',
'Directory: <b> :dir </b> writable' => 'ディレクトリ: <b> :dir </b> は書き込み可能です',
Expand Down
2 changes: 1 addition & 1 deletion plugins/box/system/languages/pl.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'Version' => 'Wersja',
'Plugin does not exist' => 'Wtyczka nie istnieje',
'Help' => 'Pomoc',

'Privacy policy' => 'Polityka prywatności',
'Install script writable' => 'Skrypt instalacyjny ma możliwość zapisu',
'Install script not writable' => 'Skrypt instalacyjny nie ma możliwości zapisu',
'Directory: <b> :dir </b> writable' => 'Katalog: <b> :dir </b> z możliwością zapisu',
Expand Down
2 changes: 1 addition & 1 deletion plugins/box/system/languages/ru.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'Plugin does not exist' => 'Такого плагина не существует',
'Help' => 'Помощь',
'Continue' => 'Продолжить',

'Privacy policy' => 'Политика приватности',
'Install script writable' => 'Установочный скрипт доступен для записи',
'Install script not writable' => 'Установочный скрипт не доступен для записи',
'Directory: <b> :dir </b> writable' => 'Директория <b> :dir </b> доступна для записи',
Expand Down
3 changes: 2 additions & 1 deletion plugins/box/system/system.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public static function main()
'timezone' => Request::post('system_timezone'),
'system_email' => Request::post('system_email'),
'language' => Request::post('system_language'),
'maintenance_message' => Request::post('site_maintenance_message')));
'maintenance_message' => Request::post('site_maintenance_message'),
'privacy_policy' => Request::post('site_privacy_policy')));

Notification::set('success', __('Your changes have been saved.', 'system'));
Request::redirect('index.php?id=system');
Expand Down
8 changes: 8 additions & 0 deletions plugins/box/system/views/backend/index.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
);
?>
</div>
<div class="form-group">
<?php
echo (
Form::label('site_privacy_policy', __('Privacy policy', 'system')).
Form::select('site_privacy_policy', $pages_array, Option::get('privacy_policy'), array('class' => 'form-control'))
);
?>
</div>
</div>
<div class="col-md-6">
<h2 class="margin-bottom-1"><?php echo __('System Settings', 'system'); ?></h2>
Expand Down
1 change: 1 addition & 0 deletions public/themes/default/footer-links.chunk.php
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<a href="<?php echo Site::url(); ?>/sitemap"><?php echo __('Sitemap', 'sitemap'); ?></a>
<a href="<?php echo Site::url(); ?>/<?php echo Site::privacyPolicy(); ?>"><?php echo __('Privacy policy', 'system'); ?></a>
2 changes: 1 addition & 1 deletion storage/database/options.table.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<root><options><autoincrement>21</autoincrement></options><fields><name/><value/></fields><options><id>1</id><uid>527510b419</uid><name>sitename</name><value>Sitename</value></options><options><id>2</id><uid>5fe7b20ebb</uid><name>keywords</name><value>Site keywords</value></options><options><id>3</id><uid>2996da0de2</uid><name>description</name><value>Site description</value></options><options><id>4</id><uid>4056d724b8</uid><name>slogan</name><value>Site slogan</value></options><options><id>5</id><uid>620d3e963e</uid><name>defaultpage</name><value>home</value></options><options><id>6</id><uid>6c9cd389f6</uid><name>siteurl</name><value>http://example.org/</value></options><options><id>7</id><uid>2db8769b1e</uid><name>timezone</name><value>Kwajalein</value></options><options><id>8</id><uid>a0b440adce</uid><name>language</name><value>en</value></options><options><id>9</id><uid>d7bd60ad05</uid><name>maintenance_status</name><value>off</value></options><options><id>10</id><uid>c415980d92</uid><name>maintenance_message</name><value>&lt;h1&gt;Monstra :: Maintenance mode&lt;/h1&gt;</value></options><options><id>11</id><uid>4c4e8f0aa8</uid><name>theme_site_name</name><value>default</value></options><options><id>12</id><uid>4c4e8f0aa8</uid><name>theme_admin_name</name><value>default</value></options><options><id>12</id><uid>4c4e8f0aa8</uid><name>users_frontend_registration</name><value>true</value></options><options><id>18</id><uid>f469fc791c</uid><name>captcha_installed</name><value>true</value></options><options><id>19</id><uid>f119fc791c</uid><name>system_email</name><value>[email protected]</value></options><options><id>20</id><uid>f119fc121c</uid><name>styles_version</name><value>1</value></options><options><id>21</id><uid>f119fc133c</uid><name>javascript_version</name><value>1</value></options></root>
<root><options><autoincrement>18</autoincrement></options><fields><name/><value/></fields><options><id>1</id><uid>527510b419</uid><name>sitename</name><value>Sitename</value></options><options><id>2</id><uid>5fe7b20ebb</uid><name>keywords</name><value>Site keywords</value></options><options><id>3</id><uid>2996da0de2</uid><name>description</name><value>Site description</value></options><options><id>4</id><uid>4056d724b8</uid><name>slogan</name><value>Site slogan</value></options><options><id>5</id><uid>620d3e963e</uid><name>defaultpage</name><value>home</value></options><options><id>6</id><uid>6c9cd389f6</uid><name>siteurl</name><value>http://example.org/</value></options><options><id>7</id><uid>2db8769b1e</uid><name>timezone</name><value>Kwajalein</value></options><options><id>8</id><uid>a0b440adce</uid><name>language</name><value>en</value></options><options><id>9</id><uid>d7bd60ad05</uid><name>maintenance_status</name><value>off</value></options><options><id>10</id><uid>c415980d92</uid><name>maintenance_message</name><value>&lt;h1&gt;Monstra :: Maintenance mode&lt;/h1&gt;</value></options><options><id>11</id><uid>4c4e8f0aa8</uid><name>theme_site_name</name><value>default</value></options><options><id>12</id><uid>4c4e8f0aa8</uid><name>theme_admin_name</name><value>default</value></options><options><id>13</id><uid>4c4e8f0aa8</uid><name>users_frontend_registration</name><value>true</value></options><options><id>14</id><uid>f469fc791c</uid><name>captcha_installed</name><value>true</value></options><options><id>15</id><uid>f119fc791c</uid><name>system_email</name><value>[email protected]</value></options><options><id>16</id><uid>f119fc121c</uid><name>styles_version</name><value>1</value></options><options><id>17</id><uid>f119fc133c</uid><name>javascript_version</name><value>1</value></options><options><id>18</id><uid>y88afc13ef</uid><name>privacy_policy</name><value>privacy-policy</value></options></root>
2 changes: 1 addition & 1 deletion storage/database/pages.table.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<root><options><autoincrement>4</autoincrement></options><fields><slug/><robots_index/><robots_follow/><template/><title/><meta_title/><tags/><parent/><status/><description/><keywords/><content/><date/><author/><expand/><access/></fields><pages><id>1</id><uid>ffa3ab3863</uid><content/><slug>error404</slug><robots_index>index</robots_index><robots_follow>follow</robots_follow><template>index</template><parent/><status>published</status><title>error404</title><description/><keywords/><date>1328270400</date><author>Monstra</author><access>public</access></pages><pages><id>2</id><uid>9c20ad0bf1</uid><content/><slug>home</slug><robots_index>index</robots_index><robots_follow>follow</robots_follow><template>index</template><parent/><status>published</status><title>Home</title><description/><keywords/><date>1333368000</date><author>Monstra</author><access>public</access></pages><pages><id>3</id><uid>a623d720fc</uid><content/><slug>blog</slug><template>blog</template><parent/><status>published</status><access>public</access><expand>0</expand><robots_index>index</robots_index><robots_follow>follow</robots_follow><title>Blog</title><description/><keywords/><date>1388792906</date><author>Monstra</author></pages><pages><id>4</id><uid>f8f3dae331</uid><content/><slug>hello-world</slug><template>blog-post</template><parent>blog</parent><status>published</status><access>public</access><expand>0</expand><robots_index>index</robots_index><robots_follow>follow</robots_follow><title>Hello world!</title><description/><keywords>hello, world</keywords><date>1388872189</date><author>admin</author><meta_title/><tags>hello, world</tags></pages></root>
<root><options><autoincrement>5</autoincrement></options><fields><slug/><robots_index/><robots_follow/><template/><title/><meta_title/><tags/><parent/><status/><description/><keywords/><content/><date/><author/><expand/><access/></fields><pages><id>1</id><uid>ffa3ab3863</uid><content/><slug>error404</slug><robots_index>index</robots_index><robots_follow>follow</robots_follow><template>index</template><parent/><status>published</status><title>error404</title><description/><keywords/><date>1328270400</date><author>Monstra</author><access>public</access></pages><pages><id>2</id><uid>9c20ad0bf1</uid><content/><slug>home</slug><robots_index>index</robots_index><robots_follow>follow</robots_follow><template>index</template><parent/><status>published</status><title>Home</title><description/><keywords/><date>1333368000</date><author>Monstra</author><access>public</access></pages><pages><id>3</id><uid>a623d720fc</uid><content/><slug>blog</slug><template>blog</template><parent/><status>published</status><access>public</access><expand>0</expand><robots_index>index</robots_index><robots_follow>follow</robots_follow><title>Blog</title><description/><keywords/><date>1388792906</date><author>Monstra</author></pages><pages><id>4</id><uid>f8f3dae331</uid><content/><slug>hello-world</slug><template>blog-post</template><parent>blog</parent><status>published</status><access>public</access><expand>0</expand><robots_index>index</robots_index><robots_follow>follow</robots_follow><title>Hello world!</title><description/><keywords>hello, world</keywords><date>1388872189</date><author>admin</author><meta_title/><tags>hello, world</tags></pages><pages><id>5</id><uid>q00edav541</uid><content/><slug>privacy-policy</slug><template>index</template><parent/><status>published</status><access>public</access><expand>0</expand><robots_index>index</robots_index><robots_follow>follow</robots_follow><title>Privacy policy</title><description/><keywords/><date>1532206189</date><author>Monstra</author><meta_title/><tags/></pages></root>
14 changes: 14 additions & 0 deletions storage/pages/5.page.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
&lt;h2&gt;What is privacy policy?&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Privacy policy&lt;/strong&gt; its Statement that declares a firm&#039;s or website&#039;s policy on collecting and releasing information about a visitor. It usually declares what specific information is collected and whether it is kept confidential or shared with or sold to other firms, researchers or sellers.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20080605072625/http://www.bbbonline.org/privacy/sample_privacy.asp&quot;&gt;Sample Privacy Notice&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Privacy_policy&quot;&gt;Privacy policy - Wikipedia&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://privacypolicies.com/blog/privacy-law-by-country/&quot;&gt;What’s Data Privacy Law In Your Country?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How to create your Privacy policy?&lt;/h2&gt;
&lt;p&gt;You need to study the current legislation of the country in which you operate and formulate a privacy policy based on the data you collect and process, if necessary attracting lawyers. Or use the links below&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.wikihow.com/Create-a-Website-Privacy-Policy&quot;&gt;Wiki How&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.elegantthemes.com/blog/resources/how-to-create-a-privacy-policy-for-your-website&quot;&gt;How to Create a Privacy Policy for Your Website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://termsfeed.com/privacy-policy/generator/&quot;&gt;Privacy Policy Generator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;