first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,320 @@
<?php
return [
'roles' => [
[
'default' => true,
'name' => 'users',
'internal' => true,
'permissions' => [
'users.view',
'localizations.view',
'custom_pages.view',
'files.create',
'plans.view',
'tags.view',
],
],
[
'guests' => true,
'name' => 'guests',
'internal' => true,
'permissions' => [
'users.view',
'custom_pages.view',
'plans.view',
'tags.view',
'localizations.view',
],
],
],
'all' => [
'admin' => [
[
'name' => 'admin.access',
'description' =>
'Required in order to access any admin area page.',
],
[
'name' => 'appearance.update',
'description' => 'Allows access to appearance editor.',
],
],
'api' => [
[
'name' => 'api.access',
'description' =>
'Allow users to use the API and access API section in their account settings page.',
],
],
'roles' => [
[
'name' => 'roles.view',
'advanced' => true,
],
[
'name' => 'roles.create',
'advanced' => true,
],
[
'name' => 'roles.update',
'advanced' => true,
],
[
'name' => 'roles.delete',
'advanced' => true,
],
],
'custom_pages' => [
[
'name' => 'custom_pages.view',
'description' =>
'Allow viewing of all pages on the site, regardless of who created them. User can view their own pages without this permission.',
'advanced' => true,
],
[
'name' => 'custom_pages.create',
'advanced' => true,
'restrictions' => [
[
'name' => 'count',
'type' => 'number',
'description' => __('policies.count_description', [
'resources' => 'pages',
]),
],
],
],
[
'name' => 'custom_pages.update',
'description' =>
'Allow editing of all pages on the site, regardless of who created them. User can edit their own pages without this permission.',
'advanced' => true,
],
[
'name' => 'custom_pages.delete',
'description' =>
'Allow deleting of all pages on the site, regardless of who created them. User can delete their own pages without this permission.',
'advanced' => true,
],
],
'custom_domains' => [
[
'name' => 'custom_domains.view',
'advanced' => true,
'description' =>
'Allow viewing all domains on the site, regardless of who created them. User can view their own domains without this permission.',
],
[
'name' => 'custom_domains.create',
'description' =>
'Allow user to connect their own custom domains.',
'restrictions' => [
[
'name' => 'count',
'type' => 'number',
'description' => __('policies.count_description', [
'resources' => 'domains',
]),
],
],
],
[
'name' => 'custom_domains.update',
'advanced' => true,
'description' =>
'Allow editing all domains on the site, regardless of who created them. User can edit their own domains without this permission.',
],
[
'name' => 'custom_domains.delete',
'advanced' => true,
'description' =>
'Allow deleting all domains on the site, regardless of who created them. User can delete their own domains without this permission.',
],
],
'files' => [
[
'name' => 'files.view',
'advanced' => true,
'description' =>
'Allow viewing all uploaded files on the site. Users can view their own uploads without this permission.',
],
[
'name' => 'files.create',
'advanced' => true,
'description' =>
'Allow uploading files on the site. This permission is used by any page where it is possible for user to upload files.',
],
[
'name' => 'files.update',
'advanced' => true,
'description' =>
'Allow editing all uploaded files on the site. Users can edit their own uploads without this permission.',
],
[
'name' => 'files.delete',
'advanced' => true,
'description' =>
'Allow deleting all uploaded files on the site. Users can delete their own uploads (where applicable) without this permission.',
],
[
'name' => 'files.download',
'advanced' => true,
'description' =>
'Allow downloading all uploaded files on the site. Users can download their own uploads (where applicable) without this permission.',
],
],
'users' => [
[
'name' => 'users.view',
'advanced' => false,
'description' =>
'Allow viewing user profile pages on the site. User can view their own profile without this permission.',
],
[
'name' => 'users.create',
'advanced' => true,
'description' =>
'Allow creating users from admin area. Users can register for new accounts without this permission. Registration can be disabled from settings page.',
],
[
'name' => 'users.update',
'advanced' => true,
'description' =>
'Allow editing details of any user on the site. User can edit their own details without this permission.',
],
[
'name' => 'users.delete',
'advanced' => true,
'description' =>
'Allow deleting any user on the site. User can request deletion of their own account without this permission.',
],
],
'localizations' => [
[
'name' => 'localizations.view',
'advanced' => true,
],
[
'name' => 'localizations.create',
'advanced' => true,
],
[
'name' => 'localizations.update',
'advanced' => true,
],
[
'name' => 'localizations.delete',
'advanced' => true,
],
],
'settings' => [
[
'name' => 'settings.view',
'advanced' => true,
],
[
'name' => 'settings.update',
'advanced' => true,
],
],
'plans' => [
[
'name' => 'plans.view',
'advanced' => true,
],
[
'name' => 'plans.create',
'advanced' => true,
],
[
'name' => 'plans.update',
'advanced' => true,
],
[
'name' => 'plans.delete',
'advanced' => true,
],
],
'invoices' => [
[
'name' => 'invoices.view',
'advanced' => true,
],
],
'tags' => [
[
'name' => 'tags.view',
'advanced' => true,
],
[
'name' => 'tags.create',
'advanced' => true,
],
[
'name' => 'tags.update',
'advanced' => true,
],
[
'name' => 'tags.delete',
'advanced' => true,
],
],
'workspaces' => [
'workspaces.view',
[
'name' => 'workspaces.create',
'restrictions' => [
[
'name' => 'count',
'type' => 'number',
'description' => __('policies.count_description', [
'resources' => 'workspaces',
]),
],
[
'name' => 'member_count',
'type' => 'number',
'description' =>
'Maximum number of members workspace is allowed to have.',
],
],
],
'workspaces.update',
'workspaces.delete',
],
'workspace_members' => [
[
'name' => 'workspace_members.invite',
'display_name' => 'Invite Members',
'type' => 'workspace',
'description' =>
'Allow user to invite new members into a workspace.',
],
[
'name' => 'workspace_members.update',
'display_name' => 'Update Members',
'type' => 'workspace',
'description' => 'Allow user to change role of other members.',
],
[
'name' => 'workspace_members.delete',
'display_name' => 'Delete Members',
'type' => 'workspace',
'description' => 'Allow user to remove members from workspace.',
],
],
],
];

View File

@@ -0,0 +1,41 @@
<p>Welcome to [Website Name] ("us", "we", or "our"). At [Website URL], we value your privacy and strive to protect your personal information. This Privacy Policy outlines the types of data we collect, how we use and protect it, and your rights regarding your personal information.</p>
<h2>Information We Collect</h2>
<p>We may collect various types of information from you, including:</p>
<ol>
<li><strong>Personal Information:</strong> When you register for an account, place an order, subscribe to our newsletter, or interact with our website, we may collect personal information such as your name, email address, postal address, phone number, and payment information.</li>
<li><strong>Usage Data:</strong> We may automatically collect information about how you use our website, including your IP address, browser type, operating system, referring URLs, access times, and pages viewed.</li>
<li><strong>Cookies and Tracking Technologies:</strong> We use cookies and similar tracking technologies to enhance your browsing experience and collect data about your interactions with our website.</li>
</ol>
<h2>How We Use Your Information</h2>
<p>We use the collected information for various purposes, including:</p>
<ol>
<li>Providing and improving our services to you.</li>
<li>Processing your orders and payments.</li>
<li>Sending you newsletters and promotional materials.</li>
<li>Analyzing website usage and trends to enhance user experience.</li>
<li>Responding to your inquiries and providing customer support.</li>
<li>Protecting our legal rights and preventing fraud.</li>
</ol>
<h2>Data Sharing and Disclosure</h2>
<p>We may share your personal information with:</p>
<ol>
<li>Third-party service providers who assist us in operating our website and delivering services to you.</li>
<li>Legal authorities when required by law or to protect our rights and safety.</li>
</ol>
<p>We do not sell, rent, or trade your personal information to third parties for marketing purposes.</p>
<h2>Your Rights</h2>
<p>You have the right to:</p>
<ol>
<li>Access, correct, or delete your personal information.</li>
<li>Withdraw your consent for processing your data.</li>
<li>Object to processing of your personal data.</li>
<li>Lodge a complaint with a supervisory authority.</li>
</ol>
<h2>Security</h2>
<p>We take reasonable measures to protect your personal information from unauthorized access, alteration, or disclosure. However, no data transmission over the internet or storage system can be guaranteed to be 100% secure.</p>
<h2>Children's Privacy</h2>
<p>Our services are not intended for children under the age of 13. We do not knowingly collect or maintain personal information from children.</p>
<h2>Changes to This Privacy Policy</h2>
<p>We may update our Privacy Policy from time to time. Any changes will be posted on this page, and the "Last updated" date will be revised accordingly.</p>
<h2>Contact Us</h2>
<p>If you have any questions, concerns, or requests regarding your personal information or our Privacy Policy, please contact us at <a href="mailto:[Contact Email]">[Contact Email]</a>.</p>

View File

@@ -0,0 +1,61 @@
<p>
Welcome to [Website Name] ("us", "we", or "our"). By accessing and using our website, you agree to
comply with and be bound by the following Terms of Service. Please read these terms carefully
before using our services.
</p>
<h2>1. Acceptance of Terms</h2>
<p>
By using our website, you acknowledge that you have read, understood, and agree to abide by these
Terms of Service. If you do not agree with these terms, please do not use our services.
</p>
<h2>2. Use of Our Services</h2>
<p>
You may use our website and services only for lawful purposes and in compliance with all
applicable laws and regulations. You agree not to engage in any activity that may disrupt or
interfere with the functioning of our website.
</p>
<h2>3. User Accounts</h2>
<p>
If you create an account on our website, you are responsible for maintaining the confidentiality
of your account information and password. You agree to notify us immediately of any unauthorized
use of your account.
</p>
<h2>4. Content</h2>
<p>
Any content you submit to our website, including text, images, and other materials, must comply
with our content guidelines. You retain ownership of your content, but you grant us a
non-exclusive, royalty-free license to use, reproduce, and distribute your content on our
platform.
</p>
<h2>5. Intellectual Property</h2>
<p>
Unless otherwise stated, all content and materials on our website are the property of [Website
Name] and are protected by copyright, trademark, and other intellectual property laws.
</p>
<h2>6. Disclaimer of Warranties</h2>
<p>
Our website is provided "as is" and "as available" without any warranties of any kind, whether
express or implied. We do not guarantee the accuracy, completeness, or reliability of any content
or materials on our website.
</p>
<h2>7. Limitation of Liability</h2>
<p>
We shall not be liable for any indirect, incidental, special, consequential, or punitive damages
arising out of or relating to your use of our website.
</p>
<h2>8. Governing Law</h2>
<p>
These Terms of Service shall be governed by and construed in accordance with the laws of [Your
Country/State], without regard to its conflict of law principles.
</p>
<h2>9. Changes to Terms</h2>
<p>
We reserve the right to modify or update these Terms of Service at any time. It is your
responsibility to review these terms periodically. Your continued use of our website after any
changes signifies your acceptance of the modified terms.
</p>
<h2>10. Contact Us</h2>
<p>
If you have any questions or concerns regarding these Terms of Service, please contact us at
<a href="mailto:[Contact Email]">[Contact Email]</a>.
</p>