From 00de332a4bba95e69f0ead242d4d6a57ee4f9b9e Mon Sep 17 00:00:00 2001 From: PlanetCloud <35788716+PlanetGamingGG@users.noreply.github.com> Date: Tue, 9 Jun 2020 18:29:39 +0700 Subject: [PATCH 1/2] Commit Version 1,8 --- .htaccess | 18 +- LICENSE.md | 21 -- README.md | 25 +- error.php | 64 ++++ signup.php | 269 +++++++++++----- sys-auth/app/account.class.php | 72 +++++ sys-auth/app/api.credentials.php | 15 + sys-auth/app/app.php | 42 +++ sys-auth/app/arr.class.php | 54 ++++ sys-auth/app/backup/config.php.backup | 150 --------- sys-auth/app/backup/login.js.backup | 51 ---- sys-auth/app/backup/privacy.content.backup | 145 --------- sys-auth/app/backup/privacy.md.backup | 144 --------- sys-auth/app/backup/register.js.backup | 129 -------- sys-auth/app/backup/terms.md.backup | 276 ----------------- sys-auth/app/config.php | 207 +++++-------- sys-auth/app/content/terms.content | 288 ------------------ sys-auth/app/csrf.class.php | 52 ++-- sys-auth/app/lang/en.php | 3 - sys-auth/app/signature.class.php | 42 +++ sys-auth/app/target.credentials.php | 21 ++ sys-auth/assets/login.js | 6 +- sys-auth/assets/material.js | 16 +- sys-auth/assets/signup.js | 11 +- sys-auth/assets/style.css | 80 ++--- sys-auth/components/.htaccess | 1 + sys-auth/components/form.signup.tpl | 18 ++ .../components/language_selector.login.tpl | 111 +++++++ sys-auth/components/remember_me.login.tpl | 2 + .../components/signup_no_selector.signup.tpl | 9 + .../signup_with_selector.signup.tpl | 29 ++ sys-auth/login.php | 252 ++++++--------- sys-auth/privacy.php | 40 --- sys-auth/read/contents/.htaccess | 1 + .../contents/privacy.txt} | 75 +---- .../contents/tos.txt} | 174 +++-------- sys-auth/read/privacy.php | 67 ++++ sys-auth/read/tos.php | 67 ++++ sys-auth/signup.php | 219 +++++++------ sys-auth/terms.php | 40 --- 40 files changed, 1223 insertions(+), 2083 deletions(-) delete mode 100644 LICENSE.md create mode 100644 error.php create mode 100644 sys-auth/app/account.class.php create mode 100644 sys-auth/app/api.credentials.php create mode 100644 sys-auth/app/app.php create mode 100644 sys-auth/app/arr.class.php delete mode 100644 sys-auth/app/backup/config.php.backup delete mode 100644 sys-auth/app/backup/login.js.backup delete mode 100644 sys-auth/app/backup/privacy.content.backup delete mode 100644 sys-auth/app/backup/privacy.md.backup delete mode 100644 sys-auth/app/backup/register.js.backup delete mode 100644 sys-auth/app/backup/terms.md.backup delete mode 100644 sys-auth/app/content/terms.content delete mode 100644 sys-auth/app/lang/en.php create mode 100644 sys-auth/app/signature.class.php create mode 100644 sys-auth/app/target.credentials.php create mode 100644 sys-auth/components/.htaccess create mode 100644 sys-auth/components/form.signup.tpl create mode 100644 sys-auth/components/language_selector.login.tpl create mode 100644 sys-auth/components/remember_me.login.tpl create mode 100644 sys-auth/components/signup_no_selector.signup.tpl create mode 100644 sys-auth/components/signup_with_selector.signup.tpl delete mode 100644 sys-auth/privacy.php create mode 100644 sys-auth/read/contents/.htaccess rename sys-auth/{app/content/privacy.content => read/contents/privacy.txt} (96%) rename sys-auth/{app/backup/terms.content.backup => read/contents/tos.txt} (96%) create mode 100644 sys-auth/read/privacy.php create mode 100644 sys-auth/read/tos.php delete mode 100644 sys-auth/terms.php diff --git a/.htaccess b/.htaccess index fcf55b3..1be7066 100644 --- a/.htaccess +++ b/.htaccess @@ -2,5 +2,21 @@ Options -MultiViews RewriteEngine on +# Error Pages +RewriteRule ^auth/error /error.php [NC,L] + +# Errors +ErrorDocument 400 /auth/error?code=400 +ErrorDocument 401 /auth/error?code=401 +ErrorDocument 403 /auth/error?code=403 +ErrorDocument 404 /auth/error?code=404 +ErrorDocument 500 /auth/error?code=500 + +# Assets +RewriteRule ^auth/assets/(.*)?$ /sys-auth/assets/$1 [NC,L] + +# API +RewriteRule ^auth/api/(.*)?$ /sys-auth/api/$1.php [NC,L] + # Authentication -RewriteRule ^auth/(.*)?$ /sys-auth/$1 [NC,L] \ No newline at end of file +RewriteRule ^auth/(.*)?$ /sys-auth/$1.php [NC,L] \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 06bc50e..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 PlanetCloud - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 0772e46..a34bcb8 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,4 @@ -# MyOwnFreeHost Project LOGGED -A free and open source Material Design based login, sign up and terms template created by [PlanetCloud](https://www.byet.net/index.php?/profile/528767-planetcloud/). +# Private-Project-Logged-v1.8 +A Private Real-Time Repo of PROJECT LOGGED -### Important -**You have to change the branding to your own company's one!** - -Version 1.6r will be the final version available publicly. -**Version 1.7x, coming in hot for beta testers of LOGGED Project Family.** -More information can be found on our Discord: - - - -**Please read [the license](LICENSE.md) before using any of the code.** - -### Versions -- [1.6r](https://github.com/PlanetGamingGG/project-logged/tree/master) (Current Master) -- [1.6r](https://github.com/PlanetGamingGG/project-logged/releases/tag/1.6r) (Latest Release) -- [1.6b](https://github.com/PlanetGamingGG/project-logged/releases/tag/1.6b) - -Please use [the latest release](https://github.com/PlanetGamingGG/project-logged/releases/latest) as it is more stable than the `master` branch. - -### Setup Instructions -Please refer to [our Wiki](https://github.com/PlanetGamingGG/project-logged/wiki). +**NOT PRODUCTION READY!** diff --git a/error.php b/error.php new file mode 100644 index 0000000..240166c --- /dev/null +++ b/error.php @@ -0,0 +1,64 @@ + + + + +
+ + + +- -
- -{$c} cares about and respects your privacy. For this reason, we collect and use personal data only as it might be needed for us to deliver to you our products, services and websites (collectively, our "Services"). Your personal data includes information such as:
-Our Privacy Policy is intended to describe to you how and what data we collect, and how and why we use your personal data. It also describes options we provide for you to access, update or otherwise take control of your personal data that we process.
-If at any time you have questions about our practices or any of your rights described below, you may reach us by contacting us at {$email_contact} . This inbox is actively monitored and managed so that we can provide you with information you can confidently trust.
- -We collect information to provide the best possible experience when you use our Services. Much of what you consider personal data is collected directly from you when you:
-However, we also collect additional information when delivering our Services to you to ensure necessary and optimal performance. These methods of collection may not be as obvious, so we wanted to explain what these might be (as they vary from time to time) and how they work:
-Account related information is collected in association with your use of our Services, such as account number, products you have purchased, when products renew or expire, information requests, support requests, and notes or details on our interactions.
-Cookies and similar technologies on our websites allow us to track your browsing behaviour, links clicked, items purchased, and your device types. They also allow us to collect data (including analytics) about how you use and interact with our Services. This allows us to provide you with more relevant product offerings, a better experience on our sites and mobile applications, and to collect, analyse, and improve the performance of our Services. We may also collect your location via Internet Protocol (IP) address, so that we can personalise our Services.
-Data about Usage of Services is automatically collected when you use and interact with our Services, including metadata, log files, cookie/device IDs, and location information. This information includes specific data about your interactions with the features, content, and links (including third-parties, such as social media plugins) contained within the Services, IP address, browser type and settings (including configuration and plug-ins), the date and time the Services were used, language preferences and cookie data, and information about devices accessing the Services, including type of device, what operating system is used, device settings, application IDs, unique device identifiers, and error data. Some of this data collected might be capable of and be used to approximate your location.
-Supplemented Data may be received about you from other sources, including publicly available databases or third parties from whom we have purchased data, in which case we may combine this data with information we already have about you so that we can update, expand, and analyse the accuracy of our records, identify new customers, and provide products and services that may be of interest to you. If you provide us personal information about others, or if others give us your information, we will only use that information for the specific reason for which it was provided to us.
- -We strongly believe in both reducing the amount of data we collect and limiting the use and purpose of that data to only:
-We utilise this information to:
-Often, much of the data we collect is aggregated or statistical data about how individuals use our Services, and is not linked to any personal data. But as it is itself personal data, or it can be linked or linkable to personal data, we treat it accordingly.
- -We may share your personal data with affiliated companies within our corporate family, with third parties with which we have partnered to allow you to integrate their services into our own Services, and with trusted third-party service providers as necessary for them to perform services on our behalf, such as:
-We only share your personal data as necessary for any third party to provide the services as requested or as needed on our behalf. These third parties (and any subcontractors) are subject to strict data processing terms and conditions and are prohibited from utilising, sharing or retaining your personal data for any purpose other than as they have been specifically contracted for (or without your consent).
-The free website hosting services on {$c} are fulfilled by iFastNet Ltd. We transmit personal information to them to fulfill the service on our behalf.
-We transmit the following personal information to iFastNet Ltd.:
-In addition, iFastNet Ltd. may collect personal data directly through your usage of their service. For more information of what they collect and how they process it, please consult iFastNet Ltd's privacy policy: https://ifastnet.com/privacy.php
- -We may contact you directly, or through a third-party service provider, regarding products or services you have signed up or purchased from us, such as necessary to deliver transactional or service related communications. We may also contact you with offers for additional services we think you'll find valuable if you give us consent, or where allowed based upon legitimate interests. You don't need to provide consent as a condition to purchase our goods or services. These contacts may include:
-If you make use of a service that allows you to import contacts (e.g. using email marketing services to send emails on your behalf), we will only use the contacts and any other personal information needed for the requested service. If you believe that anyone has provided us with your personal information and you would like to request that it be removed from our database, please contact us at {$email_contact}
- -If you utilise our Services from a country other than the country where our servers are located, your communications with us may result in transferring your personal data across international borders. Also, when you call us or initiate a chat, we may provide you with support from one of our global locations outside your country of origin. Your personal data will be transferred and processed outside of the EEA. In these cases, your personal data is handled according to this Privacy Policy.
- -We cooperate with government and law enforcement officials and private parties to enforce and comply with the law. We will disclose any information about you to government or law enforcement officials or private parties as we, in our sole discretion, believe necessary or appropriate to respond to claims and legal process (such as subpoena requests), to protect our property and rights or the property and rights of a third party, to protect the safety of the public or any person, or to prevent or stop activity we consider to be illegal or unethical.
-To the extent we are legally permitted to do so, we will take reasonable steps to notify you in the event that we are required to provide your personal information to third parties as part of legal process.
- -We use multiple web analytics tools provided by service partners such as Google Analytics and Statcounter.com to collect information about how you interact with our website or mobile applications, including what pages you visit, what site you visited prior to visiting our website, how much time you spend on each page, what operating system and web browser you use, and network and IP information. We use the information provided by these tools to improve our Services.
-These tools place persistent cookies in your browser to identify you as a unique user the next time you visit our website. Each cookie cannot be used by anyone other than the service provider (eg: Facebook and Google for Google Analytics). The information collected from the cookie may be transmitted to and stored by these service partners on servers in a country other than the country in which you reside. Though information collected does not include personal data such as name, address, billing information, etc., the information collected is used and shared by these service providers in accordance with their individual privacy policies.
-You can control the technologies we use by utilising settings in your browser or third-party tools, such as Disconnect, Ghostery and others.
- -Targeted ads or interest-based offers may be presented to you based on your activities on our webpages and other websites, and based on the products you currently own. These offers will display as varying product banners presented to you while browsing. We also partner with third parties to manage our advertising on our webpages and other websites such as Facebook, Twitter, Google, and Microsoft. Our third-party partners may use technologies such as cookies to gather information about such activities in order to provide you with advertising based upon your browsing activities and interests, and to measure advertising effectiveness. If you wish to opt out of interest-based advertising in the European Union, please visit https://youronlinechoices.eu . Please note, you will continue to receive generic ads.
- -Our website and our mobile applications contain links to third-party websites. We are not responsible for the privacy practices or the content of third-party sites. Please read the privacy policy of any website you visit.
- -To easily access, view, update, delete, or port your personal data (where available), or to update your subscription preferences, please sign into your Account and visit "Edit Account Details." Please contact us at {$email_contact} for additional information and guidance for accessing, updating, or deleting data.
-If you make a request to delete your personal data and that data is necessary for the products or services you have purchased, the request will be honoured only to the extent it is no longer necessary for any Services purchased or required for our legitimate business purposes or legal or contractual record keeping requirements.
-If you are unable for any reason to access your Account Settings, you may also contact us by one of the methods described in the "Contact Us" section below.
- -We follow generally accepted standards to store and protect the personal data we collect, both during transmission and once received and stored, including utilisation of encryption where appropriate.
-We retain personal data only for as long as necessary to provide the Services you have requested and thereafter for a variety of legitimate legal or business purposes. These might include retention periods:
-If you have any questions about the security or retention of your personal data, you can contact us at {$email_contact}
- -Some browsers allow you to automatically notify websites you visit not to track you using a "Do Not Track" signal. There is no consensus among industry participants as to what "Do Not Track" means in this context. Like many websites and online services, we currently do not alter our practices when we receive a "Do Not Track" signal from a visitor's browser. To find out more about "Do Not Track," you may wish to visit www.allaboutdnt.com.
- -Our Services are available for purchase only for those over the age of 16. Our Services are not targeted to, intended to be consumed by or designed to entice individuals under the age of 16. If you know of or have reason to believe anyone under the age of 16 has provided us with any personal data, please contact us.
- -We reserve the right to modify this Privacy Policy at any time. If we decide to change our Privacy Policy, we will post those changes to this Privacy Policy and any other places we deem appropriate, so that you are aware of what information we collect, how we use it, and under what circumstances, if any, we disclose it. If we make material changes to this Privacy Policy, we will notify you here, by email, or by means of a notice on our home page, at least thirty (30) days prior to the implementation of the changes.
- -If you have any questions, concerns or complaints about our Privacy Policy, our practices, or our Services, you may contact us at {$email_contact}
\ No newline at end of file diff --git a/sys-auth/app/backup/privacy.md.backup b/sys-auth/app/backup/privacy.md.backup deleted file mode 100644 index ee4fb35..0000000 --- a/sys-auth/app/backup/privacy.md.backup +++ /dev/null @@ -1,144 +0,0 @@ -{$c} cares about and respects your privacy. For this reason, we collect and use personal data only as it might be needed for us to deliver to you our products, services and websites (collectively, our "Services"). Your personal data includes information such as: - -* Name -* Email address -* IP address -* Online identifiers, such as usernames (which may be provided by you or by us). -* Other data collected that could directly or indirectly identify you - -Our Privacy Policy is intended to describe to you how and what data we collect, and how and why we use your personal data. It also describes options we provide for you to access, update or otherwise take control of your personal data that we process. - -If at any time you have questions about our practices or any of your rights described below, you may reach us by contacting us at hello@infinityfree . This inbox is actively monitored and managed so that we can provide you with information you can confidently trust. - -### What information do we collect? - -We collect information to provide the best possible experience when you use our Services. Much of what you consider personal data is collected directly from you when you: - -* Create an account or purchase any of our Services (e.g. billing information, including name, address, and credit card number). -* Request assistance from our Customer Services team (e.g. telephone number). -* Complete contact forms or request newsletters or other information from us (e.g. email courses, e-books, or emails). -* Participate in contests and surveys, apply for a job, or otherwise participate in activities we promote that might require information about you. - -However, we also collect additional information when delivering our Services to you to ensure necessary and optimal performance. These methods of collection may not be as obvious, so we wanted to explain what these might be (as they vary from time to time) and how they work: - -**Account related information** is collected in association with your use of our Services, such as account number, products you have purchased, when products renew or expire, information requests, support requests, and notes or details on our interactions. - -**Cookies and similar technologies** on our websites allow us to track your browsing behaviour, links clicked, items purchased, and your device types. They also allow us to collect data (including analytics) about how you use and interact with our Services. This allows us to provide you with more relevant product offerings, a better experience on our sites and mobile applications, and to collect, analyse, and improve the performance of our Services. We may also collect your location via Internet Protocol (IP) address, so that we can personalise our Services. - -**Data about Usage of Services** is automatically collected when you use and interact with our Services, including metadata, log files, cookie/device IDs, and location information. This information includes specific data about your interactions with the features, content, and links (including third-parties, such as social media plugins) contained within the Services, IP address, browser type and settings (including configuration and plug-ins), the date and time the Services were used, language preferences and cookie data, and information about devices accessing the Services, including type of device, what operating system is used, device settings, application IDs, unique device identifiers, and error data. Some of this data collected might be capable of and be used to approximate your location. - -**Supplemented Data** may be received about you from other sources, including publicly available databases or third parties from whom we have purchased data, in which case we may combine this data with information we already have about you so that we can update, expand, and analyse the accuracy of our records, identify new customers, and provide products and services that may be of interest to you. If you provide us personal information about others, or if others give us your information, we will only use that information for the specific reason for which it was provided to us. - -### How we use information. - -We strongly believe in both reducing the amount of data we collect and limiting the use and purpose of that data to only: - -* Data for which we have been given permission -* Data necessary to deliver the Services you purchase or interact with -* Data we might be required or permitted to keep for legal compliance or other lawful purposes. - -We utilise this information to: - -* Improve and optimise the operation and performance of our Services (again, including our websites and mobile applications) -* Diagnose problems with and identify any security risks, errors, or needed enhancements to the Services -* Detect and prevent fraud and abuse of our Services and systems -* Collecting aggregate statistics about use of the Services -* Understand and analyse how you use our Services and what products and services are most relevant to you. - -Often, much of the data we collect is aggregated or statistical data about how individuals use our Services, and is not linked to any personal data. But as it is itself personal data, or it can be linked or linkable to personal data, we treat it accordingly. - -#### Sharing with trusted third parties. - -We may share your personal data with affiliated companies within our corporate family, with third parties with which we have partnered to allow you to integrate their services into our own Services, and with trusted third-party service providers as necessary for them to perform services on our behalf, such as: - -* Fulfilling of the Services provided to you -* Processing payments -* Serving advertisements -* Conducting contests or surveys -* Performing analysis of our Services and customer demographics -* Communicating with you, such as by way email or survey delivery -* Customer relationship management - -We only share your personal data as necessary for any third party to provide the services as requested or as needed on our behalf. These third parties (and any subcontractors) are subject to strict data processing terms and conditions and are prohibited from utilising, sharing or retaining your personal data for any purpose other than as they have been specifically contracted for (or without your consent). - -##### Our relation with iFastNet Ltd. - -The free website hosting services on {$c} are fulfilled by iFastNet Ltd. We transmit personal information to them to fulfill the service on our behalf. - -We transmit the following personal information to iFastNet Ltd.: - -* Email address -* IP address - -In addition, iFastNet Ltd. may collect personal data directly through your usage of their service. For more information of what they collect and how they process it, please consult iFastNet Ltd's privacy policy: https://ifastnet.com/privacy.php - -#### Communicating with you. - -We may contact you directly, or through a third-party service provider, regarding products or services you have signed up or purchased from us, such as necessary to deliver transactional or service related communications. We may also contact you with offers for additional services we think you'll find valuable if you give us consent, or where allowed based upon legitimate interests. You don't need to provide consent as a condition to purchase our goods or services. These contacts may include: - -* Email -* Text (SMS) messages - -If you make use of a service that allows you to import contacts (e.g. using email marketing services to send emails on your behalf), we will only use the contacts and any other personal information needed for the requested service. If you believe that anyone has provided us with your personal information and you would like to request that it be removed from our database, please contact us at hello@infinityfree - -#### Transfer of personal data abroad. - -If you utilise our Services from a country other than the country where our servers are located, your communications with us may result in transferring your personal data across international borders. Also, when you call us or initiate a chat, we may provide you with support from one of our global locations outside your country of origin. Your personal data will be transferred and processed outside of the EEA. In these cases, your personal data is handled according to this Privacy Policy. - -#### Compliance with legal, regulatory and law enforcement requests. - -We cooperate with government and law enforcement officials and private parties to enforce and comply with the law. We will disclose any information about you to government or law enforcement officials or private parties as we, in our sole discretion, believe necessary or appropriate to respond to claims and legal process (such as subpoena requests), to protect our property and rights or the property and rights of a third party, to protect the safety of the public or any person, or to prevent or stop activity we consider to be illegal or unethical. - -To the extent we are legally permitted to do so, we will take reasonable steps to notify you in the event that we are required to provide your personal information to third parties as part of legal process. - -#### Website analytics. - -We use multiple web analytics tools provided by service partners such as Google Analytics and Statcounter.com to collect information about how you interact with our website or mobile applications, including what pages you visit, what site you visited prior to visiting our website, how much time you spend on each page, what operating system and web browser you use, and network and IP information. We use the information provided by these tools to improve our Services. - -These tools place persistent cookies in your browser to identify you as a unique user the next time you visit our website. Each cookie cannot be used by anyone other than the service provider (eg: Facebook and Google for Google Analytics). The information collected from the cookie may be transmitted to and stored by these service partners on servers in a country other than the country in which you reside. Though information collected does not include personal data such as name, address, billing information, etc., the information collected is used and shared by these service providers in accordance with their individual privacy policies. - -You can control the technologies we use by utilising settings in your browser or third-party tools, such as Disconnect, Ghostery and others. - -#### Targeted advertisements. - -Targeted ads or interest-based offers may be presented to you based on your activities on our webpages and other websites, and based on the products you currently own. These offers will display as varying product banners presented to you while browsing. We also partner with third parties to manage our advertising on our webpages and other websites such as Facebook, Twitter, Google, and Microsoft. Our third-party partners may use technologies such as cookies to gather information about such activities in order to provide you with advertising based upon your browsing activities and interests, and to measure advertising effectiveness. If you wish to opt out of interest-based advertising in the European Union, please visit https://youronlinechoices.eu . Please note, you will continue to receive generic ads. - -#### Third-party websites. - -Our website and our mobile applications contain links to third-party websites. We are not responsible for the privacy practices or the content of third-party sites. Please read the privacy policy of any website you visit. - -### How you can access, update or delete your data. - -To easily access, view, update, delete, or port your personal data (where available), or to update your subscription preferences, please sign into your Account and visit "Edit Account Details." Please contact us at hello@infinityfree for additional information and guidance for accessing, updating, or deleting data. - -If you make a request to delete your personal data and that data is necessary for the products or services you have purchased, the request will be honoured only to the extent it is no longer necessary for any Services purchased or required for our legitimate business purposes or legal or contractual record keeping requirements. - -If you are unable for any reason to access your Account Settings, you may also contact us by one of the methods described in the "Contact Us" section below. - -### How we secure, store, and retain your data. - -We follow generally accepted standards to store and protect the personal data we collect, both during transmission and once received and stored, including utilisation of encryption where appropriate. - -We retain personal data only for as long as necessary to provide the Services you have requested and thereafter for a variety of legitimate legal or business purposes. These might include retention periods: - -* mandated by law, contract, or similar obligations applicable to our business operations; -* for preserving, resolving, defending, or enforcing our legal/contractual rights; or -* needed to maintain adequate and accurate business and financial records. - -If you have any questions about the security or retention of your personal data, you can contact us at hello@infinityfree - -### 'Do Not Track' notifications. - -Some browsers allow you to automatically notify websites you visit not to track you using a "Do Not Track" signal. There is no consensus among industry participants as to what "Do Not Track" means in this context. Like many websites and online services, we currently do not alter our practices when we receive a "Do Not Track" signal from a visitor's browser. To find out more about "Do Not Track," you may wish to visit www.allaboutdnt.com. - -### Age restrictions. - -Our Services are available for purchase only for those over the age of 16\. Our Services are not targeted to, intended to be consumed by or designed to entice individuals under the age of 16\. If you know of or have reason to believe anyone under the age of 16 has provided us with any personal data, please contact us. - -### Changes in our Privacy Policy. - -We reserve the right to modify this Privacy Policy at any time. If we decide to change our Privacy Policy, we will post those changes to this Privacy Policy and any other places we deem appropriate, so that you are aware of what information we collect, how we use it, and under what circumstances, if any, we disclose it. If we make material changes to this Privacy Policy, we will notify you here, by email, or by means of a notice on our home page, at least thirty (30) days prior to the implementation of the changes. - -### Contact us. - -If you have any questions, concerns or complaints about our Privacy Policy, our practices, or our Services, you may contact us at hello@infinityfree \ No newline at end of file diff --git a/sys-auth/app/backup/register.js.backup b/sys-auth/app/backup/register.js.backup deleted file mode 100644 index 754caec..0000000 --- a/sys-auth/app/backup/register.js.backup +++ /dev/null @@ -1,129 +0,0 @@ -function z(o) { - return document.getElementById(o) -} -function ok(y, u) { - y.style.display = 'none'; - u.remove('error'); - u.add('success'); - u.add('focused') -} -function warn(y, u) { - y.style.display = 'block'; - u.remove('success'); - u.add('error'); - u.add('focused') -} -function domainInfo(sub, check = !1) { - let x = z('lg-username'), - y = z('warn_username'), - e = z('sub_info'), - u = x.parentElement.classList; - e.style.display = 'none'; - y.style.display = 'none'; - if (check) { - if (sub.length !== 0 && sub.length < 4) { - y.innerHTML = 'Subdomain is too short! Atleast 4 characters is required'; - warn(y, u); - return !1 - } - } - if (sub.length === 0) { - e.innerHTML = ''; - if (check) { - y.innerHTML = 'Please choose a subdomain'; - warn(y, u) - } - return !1 - } - if (sub.length < 4) { - return !1 - } - if (sub.length > 16) { - y.innerHTML = 'Subdomain is too long! 16 characters max'; - warn(y, u); - return !1 - } - if (/^[A-Za-z0-9-]+$(?Note: "-" at the end is not allowed'; - warn(y, u); - return !1 - } -} -function submitHandler() { - var r = !0; - (function() { - if (!domainInfo(z('lg-username').value, !0)) { - r = !1 - } - })(); - (function() { - let x = z('lg-email'), - y = z('warn_email'), - u = x.parentElement.classList; - if (z('lg-email').value.length === 0) { - y.innerHTML = 'Email cannot be empty'; - warn(y, u); - r = !1; - return - } - if (/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(z('lg-email').value).toLowerCase()) === !1) { - y.innerHTML = 'Please enter a valid email address'; - warn(y, u); - r = !1; - return - } - ok(y, u) - })(); - (function() { - let x = z('lg-password'), - y = z('warn_password'), - u = x.parentElement.classList; - if (x.value.length > 20) { - y.innerHTML = 'Password is too long! 20 characters max'; - warn(y, u); - r = !1; - return - } - if (x.value.length < 6) { - y.innerHTML = 'Password is too short! 6 characters minimum'; - warn(y, u); - r = !1; - return - } - ok(y, u) - })(); - (function() { - let x = z('lg-password-confirm'), - y = z('warn_password_confirm'), - u = x.parentElement.classList, - o = z('lg-password'); - if (o.value.length === 0) { - return - } - if (x.value !== o.value) { - y.innerHTML = 'Password does not match!'; - warn(y, u); - r = !1; - return - } - ok(y, u) - })(); - (function() { - let x = z('lg-captcha'), - y = z('warn_captcha'), - u = x.parentElement.classList; - if (x.value.length !== 5) { - y.innerHTML = 'Captcha must be 5 characters'; - warn(y, u); - r = !1; - return - } - ok(y, u) - })(); - return r -} \ No newline at end of file diff --git a/sys-auth/app/backup/terms.md.backup b/sys-auth/app/backup/terms.md.backup deleted file mode 100644 index 0febc00..0000000 --- a/sys-auth/app/backup/terms.md.backup +++ /dev/null @@ -1,276 +0,0 @@ -#### 1\. ACCEPTANCE OF TERMS - -{$c} welcomes you. - -{$c} provides its service to you subject to the following Terms of Service ("TOS"), which may be updated by us from time to time without notice to you. You can review the most current version of the TOS at any time at:{$c} welcomes you.
-{$c} provides its service to you subject to the following Terms of Service ("TOS"), which may be updated by us from time to time without notice to you. You can review the most current version of the TOS at any time at: {$terms_url}. In addition, when using particular {$c} owned or operated services, you and {$c} shall be subject to any posted guidelines or rules applicable to such services, which may be posted from time to time. All such guidelines or rules (including but not limited to our Spam Policy) are hereby incorporated by reference into the TOS. {$c} may also offer other services that are governed by different Terms of Service.
- -{$c} provides users with access to a rich collection of resources, including various communications tools, forums, shopping services, search services, personalized content and branded programming through its network of properties which may be accessed through any various medium or device now known or hereafter developed (the "Service"). You also understand and agree that the Service may include advertisements and that these advertisements are necessary for {$c} or it's Partners to provide the Service. You also understand and agree that the Service may include certain communications from {$c} or it's Partners, such as service announcements, administrative messages and the {$c} Newsletter, and that these communications are considered part of {$c} membership and you will not be able to opt out of receiving them. Unless explicitly stated otherwise, any new features that augment or enhance the current Service, including the release of new {$c} properties, shall be subject to the TOS. You understand and agree that the Service is provided "AS-IS" and that {$c} assumes no responsibility for the timeliness, deletion, mis-delivery or failure to store any user communications or personalization settings. You are responsible for obtaining access to the Service, and that access may involve third-party fees (such as Internet service provider or airtime charges). You are responsible for those fees, including those fees associated with the display or delivery of advertisements. In addition, you must provide and are responsible for all equipment necessary to access the Service.
- -In consideration of your use of the Service, you represent that you are of legal age to form a binding contract and are not a person barred from receiving services under the laws of the United States or other applicable jurisdiction. You also agree to:
-(a) provide true, accurate, current and complete information about yourself as prompted by the Service's registration form (the "Registration Data") and
-(b) maintain and promptly update the Registration Data to keep it true, accurate, current and complete. If you provide any information that is untrue, inaccurate, not current or incomplete, or {$c} has reasonable grounds to suspect that such information is untrue, inaccurate, not current or incomplete, {$c} has the right to suspend or terminate your account and refuse any and all current or future use of the Service (or any portion thereof).
-{$c} is concerned about the safety and privacy of all its users, particularly children. Please remember that the Service is designed to appeal to a broad audience. Accordingly, as the legal guardian, it is your responsibility to determine whether any of the Service areas and/or Content (as defined in Section 6 below) are appropriate for your child.
- -Registration Data and certain other information about you is subject to our Privacy Policy. For more information, see our full privacy policy at {$privacy_url} , You understand that through your use of the Service you consent to the collection and use (as set forth in the Privacy Policy) of this information, including the transfer of this information to the United States and/or other countries for storage, processing and use by {$c} and its affiliates.
- -You will receive a password and account designation upon completing the Service's registration process. You are responsible for maintaining the confidentiality of the password and account and are fully responsible for all activities that occur under your password or account. You agree to :
-You understand that all information, data, text, software, music, sound, photographs, graphics, video, messages, tags, or other materials ("Content"), whether publicly posted or privately transmitted, are the sole responsibility of the person from whom such Content originated. This means that you, and not {$c}, are entirely responsible for all Content that you upload, post, email, transmit or otherwise make available via the Service. {$c} does not control the Content posted via the Service and, as such, does not guarantee the accuracy, integrity or quality of such Content. You understand that by using the Service, you may be exposed to Content that is offensive, pornographic, indecent or objectionable. Under no circumstances will {$c} be liable in any way for any Content, including, but not limited to, any errors or omissions in any Content, or any loss or damage of any kind incurred as a result of the use of any Content posted, emailed, transmitted or otherwise made available via the Service.
- -Sites must not contain Warez, copyright or other illegal material including links or redirects to copyright material hosted on 3rd party websites / resources. The onus is on you the customer to prove that you own the rights to publish material, not for {$c} to prove that you do not. {$c} does not allow the propagation or distribution of copyright material, files or warez under any circumstances.
- -Sites must not use excessive amounts of server resources. These include bandwidth, processor utilization and / or disk space. Please see the 'High Resource Use Policy' in the General Terms and Conditions.
- -It is the client / account holders responsibility to maintain and keep backups of website and MySQL data. We do not provide data restores from our archives / restoring a website or database to an earlier version. We also do not provide free backups / archives of customers own current data. We reserve the right to charge a fee of 14.99 USD if we are requested to create a backup on a customers behalf. We may choose to waive this fee under circumstances of our choosing.
- -Scripts on the site must be designed to produce web-based content, and not to use the server as an application server. Using the server to generate large volumes of email from a database is an example of activity that is not allowed. Scripts should not attempt to manipulate the timeouts on servers. These are set at the present values to ensure the reliability of the server. Sites that reset these do so because they are resource intensive, and adversely affect server performance and are therefore not allowed. Scripts that are designed to provide proxy services, anonymous or otherwise, are not allowed.
-The primary purpose of any script must be to produce a web page. Scripts that send a single email based upon user entered information, or update a database are acceptable. Scripts that send bulk email or perform processor intensive database processes are not allowed. All outgoing mail is monitored and filtered and must be sent to or from a {$c}-hosted domain.
-Sites must not contain scripts that attempt to access privileged server resources, or other sites on the same server
-Examples of not allowed script and website types include (but are not limited to):
-{$c} offers large web space and bandwidth with hosting accounts. By this, we mean space for legitimate web site content and bandwidth for visitors to view it. All files on a domain must be part of the active website and linked to the site. Sites should not contain any backups, downloads, or other non-web based content. We will treat all password protected archive (e.g. zip and rar) files as unacceptable. Multimedia content such as audio and video is acceptable provided it is streamed to the user, links to HTTP download of this content is not acceptable.
-Archives of movie files, audio files, zips, rars or any large volumes of files used for downloading / sharing is not allowed.
- -We reserve the right to suspend or terminate any hosting services if a website/hosting service consumes excessive server resources or effects other websites / hosting services on a shared or clustered hosting server. Excessive resource usage can constitute any form of server usage calculated and determined at the discretion of {$c}. {$c} reserves the right to suspend service at any time without prior notice if or when the health or normal running / performance of a service is effected / degraded by a website or hosting service.
-You acknowledge that {$c} may or may not pre-screen Content, but that {$c} and its designees shall have the right (but not the obligation) in their sole discretion to pre-screen, refuse, or remove any Content that is available via the Service. Without limiting the foregoing, {$c} and its designees shall have the right to remove any Content that violates the TOS or is otherwise objectionable. You agree that you must evaluate, and bear all risks associated with, the use of any Content, including any reliance on the accuracy, completeness, or usefulness of such Content. In this regard, you acknowledge that you may not rely on any Content created by {$c} or submitted to {$c}, including without limitation information in {$c} Message Boards and in all other parts of the Service.
-You acknowledge, consent and agree that {$c} may access, preserve and disclose your account information and Content if required to do so by law or in a good faith belief that such access preservation or disclosure is reasonably necessary to:
-You understand that the technical processing and transmission of the Service, including your Content, may involve
-You understand that the Service and software embodied within the Service may include security components that permit digital materials to be protected, and that use of these materials is subject to usage rules set by {$c} and/or content providers who provide content to the Service. You may not attempt to override or circumvent any of the usage rules embedded into the Service. Any unauthorized reproduction, publication, further distribution or public exhibition of the materials provided on the Service, in whole or in part, is strictly prohibited.
- -When you register with {$c}, you acknowledge that in using {$c} services to send electronic communications (including but not limited to email, uploading photos and files and other Internet activities), you will be causing communications to be sent through {$c}'s computer networks, portions of which are located in California, Ohio, UK, and other locations in the United States and portions of which are located abroad. As a result, and also as a result of {$c}'s network architecture and business practices and the nature of electronic communications, even communications that seem to be intrastate in nature can result in the transmission of interstate communications regardless of where you are physically located at the time of transmission. Accordingly, by agreeing to this Terms of Service, you acknowledge that use of the service results in interstate data transmissions.
- -Recognizing the global nature of the Internet, you agree to comply with all local rules regarding online conduct and acceptable Content. Specifically, you agree to comply with all applicable laws regarding the transmission of technical data exported from the United States or the country in which you reside.
- -{$c} does not claim ownership of Content you submit or make available for inclusion on the Service. However, with respect to Content you submit or make available for inclusion on publicly accessible areas of the Service, you grant {$c} the following worldwide, royalty-free and non-exclusive license(s), as applicable:
-"Publicly accessible" areas of the Service are those areas of the {$c} network of properties that are intended by {$c} to be available to the general public. By way of example, publicly accessible areas of the Service would include {$c} Message Boards and all areas that are open to both members and visitors. However, publicly accessible areas of the Service would not include portions of {$c} Servers that are limited to members, {$c} services intended for private communication such as {$c} Mail or, or areas off of the {$c} network of properties such as portions of World Wide Web sites that are accessible via hypertext or other links but are not hosted or served by {$c}.
- -By submitting ideas, suggestions, documents, and/or proposals ("Contributions") to {$c} through its forum, or contact forms, you acknowledge and agree that:
-You agree to indemnify and hold {$c} and its subsidiaries, affiliates, officers, agents, employees, partners and licensors harmless from any claim or demand, including reasonable attorneys' fees, made by any third party due to or arising out of Content you submit, post, transmit or otherwise make available through the Service, your use of the Service, your connection to the Service, your violation of the TOS, or your violation of any rights of another.
- -You agree not to reproduce, duplicate, copy, sell, trade, resell or exploit for any commercial purposes, any portion of the Service (including your {$c} ID), use of the Service, or access to the Service, unless you are a member of the {$c} Reseller Service, utilising the reselling platform to resell to end users.
- -You acknowledge that {$c} may establish general practices and limits concerning use of the Service, including without limitation the maximum number of days that idle hosting accounts, message board postings or other uploaded Content will be retained by the Service, the maximum number of email messages that may be sent from or received by an account on the Service, the maximum size of any email message that may be sent from or received by an account on the Service, the maximum disk space that will be allotted on {$c}'s servers on your behalf, and the maximum number of times (and the maximum duration for which) you may access the Service in a given period of time. You agree that {$c} has no responsibility or liability for the deletion or failure to store any messages and other communications or other Content maintained or transmitted by the Service. You acknowledge that {$c} reserves the right to log off accounts that are inactive for an extended period of time. You further acknowledge that {$c} reserves the right to modify these general practices and limits from time to time.
- -{$c} reserves the right at any time and from time to time to modify or discontinue, temporarily or permanently, the Service (or any part thereof) with or without notice. You agree that {$c} shall not be liable to you or to any third party for any modification, suspension or discontinuance of the Service.
-Certain services provided by {$c} are resold. Thus, certain equipment, routing, software, and programming used by {$c} are not directly owned or written by {$c}. {$c} shall not be responsible for any changes in services provided by a 3rd party provider, also will not be held liable for any damage or loss which may arise from service disruption provided by a 3rd party provider. {$c} will show highest interest to make sure that that services provided by a 3rd party are running smoothly and correctly, and will contact the 3rd party provider when changes or fixes are needed, however the time needed for any fix or alteration will not be decided by {$c} and {$c} will not be held liable for any fixes or alterations to be performed on a product provided by a 3rd party in a definite time frame.
- -You agree that {$c} may, under certain circumstances and without prior notice, immediately terminate your {$c} account, any associated email address, and access to the Service. Cause for such termination shall include, but not be limited to,
-Termination of your {$c} account includes
-Your correspondence or business dealings with, or participation in promotions of, advertisers found on or through the Service, including payment and delivery of related goods or services, and any other terms, conditions, warranties or representations associated with such dealings, are solely between you and such advertiser. You agree that {$c} shall not be responsible or liable for any loss or damage of any sort incurred as the result of any such dealings or as the result of the presence of such advertisers on the Service.
- -The Service may provide, or third parties may provide, links to other World Wide Web sites or resources. Because {$c} has no control over such sites and resources, you acknowledge and agree that {$c} is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any Content, advertising, products or other materials on or available from such sites or resources. You further acknowledge and agree that {$c} shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such Content, goods or services available on or through any such site or resource.
- -Three free hosting accounts are allowed per person. Registering more than three accounts is considered abuse and will result in all accounts being terminated without notice.
- -You acknowledge and agree that the Service and any necessary software used in connection with the Service ("Software") contain proprietary and confidential information that is protected by applicable intellectual property and other laws. You further acknowledge and agree that Content contained in sponsor advertisements or information presented to you through the Service or by advertisers is protected by copyrights, trademarks, service marks, patents or other proprietary rights and laws. Except as expressly authorized by {$c} or advertisers, you agree not to modify, rent, lease, loan, sell, distribute or create derivative works based on the Service or the Software, in whole or in part.
- -{$c} may use adverts to subsidize the costs of running the service. The use of advert blockers, or the process of recommending advert blockers whilst using the service is forbidden. Violation will result in termination.
- -YOU EXPRESSLY UNDERSTAND AND AGREE THAT:
-1. YOUR USE OF THE SERVICE IS AT YOUR SOLE RISK. THE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. {$c} AND ITS SUBSIDIARIES, AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, PARTNERS AND LICENSORS EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-2. {$c_caps} AND ITS SUBSIDIARIES, AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, PARTNERS AND LICENSORS MAKE NO WARRANTY THAT (i) THE SERVICE WILL MEET YOUR REQUIREMENTS; (ii) THE SERVICE WILL BE UNINTERRUPTED, TIMELY, SECURE OR ERROR-FREE; (iii) THE RESULTS THAT MAY BE OBTAINED FROM THE USE OF THE SERVICE WILL BE ACCURATE OR RELIABLE; (iv) THE QUALITY OF ANY PRODUCTS, SERVICES, INFORMATION OR OTHER MATERIAL PURCHASED OR OBTAINED BY YOU THROUGH THE SERVICE WILL MEET YOUR EXPECTATIONS; AND (v) ANY ERRORS IN THE SOFTWARE WILL BE CORRECTED.
-3. ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE SERVICE IS ACCESSED AT YOUR OWN DISCRETION AND RISK, AND YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY SUCH MATERIAL.
-4. NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM {$c_caps} OR THROUGH OR FROM THE SERVICE SHALL CREATE ANY WARRANTY NOT EXPRESSLY STATED IN THE TOS.
-5. A SMALL PERCENTAGE OF USERS MAY EXPERIENCE EPILEPTIC SEIZURES WHEN EXPOSED TO CERTAIN LIGHT PATTERNS OR BACKGROUNDS ON A COMPUTER SCREEN OR WHILE USING THE SERVICE. CERTAIN CONDITIONS MAY INDUCE PREVIOUSLY UNDETECTED EPILEPTIC SYMPTOMS EVEN IN USERS WHO HAVE NO HISTORY OF PRIOR SEIZURES OR EPILEPSY. IF YOU, OR ANYONE IN YOUR FAMILY, HAVE AN EPILEPTIC CONDITION, CONSULT YOUR PHYSICIAN PRIOR TO USING THE SERVICE. IMMEDIATELY DISCONTINUE USE OF THE SERVICE AND CONSULT YOUR PHYSICIAN IF YOU EXPERIENCE ANY OF THE FOLLOWING SYMPTOMS WHILE USING THE SERVICE: DIZZINESS, ALTERED VISION, EYE OR MUSCLE TWITCHES, LOSS OF AWARENESS, DISORIENTATION, ANY INVOLUNTARY MOVEMENT, OR CONVULSIONS.
- -YOU EXPRESSLY UNDERSTAND AND AGREE THAT {$c} AND ITS SUBSIDIARIES, AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, PARTNERS AND LICENSORS SHALL NOT BE LIABLE TO YOU FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF {$c} HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES), RESULTING FROM: (i) THE USE OR THE INABILITY TO USE THE SERVICE; (ii) THE COST OF PROCUREMENT OF SUBSTITUTE GOODS AND SERVICES RESULTING FROM ANY GOODS, DATA, INFORMATION OR SERVICES PURCHASED OR OBTAINED OR MESSAGES RECEIVED OR TRANSACTIONS ENTERED INTO THROUGH OR FROM THE SERVICE; (iii) UNAUTHORIZED ACCESS TO OR ALTERATION OF YOUR TRANSMISSIONS OR DATA; (iv) STATEMENTS OR CONDUCT OF ANY THIRD PARTY ON THE SERVICE; OR (v) ANY OTHER MATTER RELATING TO THE SERVICE.
- -SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF CERTAIN WARRANTIES OR THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES. ACCORDINGLY, SOME OF THE ABOVE LIMITATIONS OF SECTIONS 19 AND 20 MAY NOT APPLY TO YOU.
- -If you intend to create or join any service, receive or request any news, messages, alerts or other information from the Service concerning companies, stock quotes, investments or securities, please read the above Sections 24 and 26 again. They go doubly for you. In addition, for this type of information particularly, the phrase "Let the investor beware" is apt. The Service is provided for informational purposes only, and no Content included in the Service is intended for trading or investing purposes. {$c} and its licensors shall not be responsible or liable for the accuracy, usefulness or availability of any information transmitted or made available via the Service, and shall not be responsible or liable for any trading or investment decisions based on such information.
- -You agree that, except as otherwise expressly provided in this TOS, there shall be no third-party beneficiaries to this agreement.
- -{$c} may provide you with notices, including those regarding changes to the TOS, by email, regular mail or postings on the Service.
- -The {$c}, {$c} logo, trademarks and service marks and other {$c} logos and product and service names are trademarks of {$c} (the "{$c} Marks"). Without {$c}'s prior permission, you agree not to display or use in any manner the {$c} Marks.
- -{$c} respects the intellectual property of others, and we ask our users to do the same. {$c} may, in appropriate circumstances and at its discretion, disable and/or terminate the accounts of users who may be repeat infringers. If you believe that your work has been copied in a way that constitutes copyright infringement, or your intellectual property rights have been otherwise violated, please provide {$c}'s Copyright Agent the following information:
-The TOS constitutes the entire agreement between you and {$c} and governs your use of the Service, superseding any prior agreements between you and {$c} with respect to the Service. You also may be subject to additional terms and conditions that may apply when you use or purchase certain other {$c} services, affiliate services, third-party content or third-party software.
-The failure of {$c} to exercise or enforce any right or provision of the TOS shall not constitute a waiver of such right or provision. If any provision of the TOS is found by a court of competent jurisdiction to be invalid, the parties nevertheless agree that the court should endeavor to give effect to the parties' intentions as reflected in the provision, and the other provisions of the TOS remain in full force and effect.
-You agree that your {$c} account is non-transferable and any rights to your {$c} ID or contents within your account terminate upon your death. Upon receipt of a copy of a death certificate, your account may be terminated and all contents therein permanently deleted.
-You agree that regardless of any statute or law to the contrary, any claim or cause of action arising out of or related to use of the Service or the TOS must be filed within one (1) year after such claim or cause of action arose or be forever barred.
-The section titles in the TOS are for convenience only and have no legal or contractual effect.
- -Please report any violations of the TOS to {$email_abuse}.
\ No newline at end of file diff --git a/sys-auth/app/csrf.class.php b/sys-auth/app/csrf.class.php index 14d9bab..660f8da 100644 --- a/sys-auth/app/csrf.class.php +++ b/sys-auth/app/csrf.class.php @@ -7,12 +7,12 @@ /** * CSRF Class (Simplified) - * This class is taken from Project LOGGED 1.7 - * Simplified to suit the need for 1.6r. + * Created by PlanetCloud (https://www.byet.net/index.php?/profile/528767-planetcloud/) + * --- + * Modified to suit the needs of Project LOGGED v1.8 */ class Csrf { - # Defines how many bits to use private $bit = 128; # Current timestamp when the class is instantiated @@ -23,28 +23,28 @@ function __construct(){ $this->checkSession(); $this->time = time(); $this->deleteExpiredTokens(); - } - + } + # Check if session exsist private function checkSession(){ if(!isset($_SESSION['csrf_token'])){ $_SESSION['csrf_token'] = []; } - } - + } + # Generate random token private function generateToken(){ return bin2hex(openssl_random_pseudo_bytes($this->bit)); - } - + } + # Set Token private function setToken(String $name, Int $expires=10800){ $_SESSION['csrf_token'][$name] = [ 'token' => $this->generateToken(), 'expire' => $expires + $this->time ]; - } - + } + # Create CSRF token public function createToken(String $name, Int $expires=10800){ $this->checkSession(); @@ -52,42 +52,40 @@ public function createToken(String $name, Int $expires=10800){ $this->setToken($name, $expires); } return $_SESSION['csrf_token'][$name]; - } - + } + # Renew CSRF Token public function renewToken(String $name, Int $expires=10800){ $this->checkSession(); $this->setToken($name, $expires); return $_SESSION['csrf_token'][$name]; - } - + } + # Verify CSRF Token public function verifyToken(String $name, String $token){ $this->checkSession(); if(isset($_SESSION['csrf_token'][$name])){ - if(hash_equals($_SESSION['csrf_token'][$name]['token'], $token)){ - return true; - } + return hash_equals($_SESSION['csrf_token'][$name]['token'], $token); } return false; - } - + } + # Check if token is expired public function isExpired(String $name){ if($this->time > $_SESSION['csrf_token'][$name]['expire']){ return true; } return false; - } - + } + # Delete token public function delete(String $name){ $this->checkSession(); if(isset($_SESSION['csrf_token'][$name])){ unset($_SESSION['csrf_token'][$name]); } - } - + } + # Delete Expired tokens public function deleteExpiredTokens(){ $this->checkSession(); @@ -99,11 +97,11 @@ public function deleteExpiredTokens(){ } } return $deleted; - } - + } + # Get token public function getToken(String $name){ $this->checkSession(); - return $_SESSION['csrf_token'][$name]['token']; + return $_SESSION['csrf_token'][$name]['token'] ?? null; } } \ No newline at end of file diff --git a/sys-auth/app/lang/en.php b/sys-auth/app/lang/en.php deleted file mode 100644 index d098cfa..0000000 --- a/sys-auth/app/lang/en.php +++ /dev/null @@ -1,3 +0,0 @@ - [ + 'identifier' => 'YOUR_ID_HERE', + 'key' => 'YOUR_KEY_HERE', + 'protocol' => 'https' + ], + 'hosting2.com' => [ + 'identifier' => 'YOUR_ID_HERE', + 'key' => 'YOUR_KEY_HERE', + 'protocol' => 'https' + ] +]; diff --git a/sys-auth/assets/login.js b/sys-auth/assets/login.js index 56363c3..d16ed4e 100644 --- a/sys-auth/assets/login.js +++ b/sys-auth/assets/login.js @@ -1,3 +1,3 @@ -function z(b){return document.getElementById(b)} -function submitHandler(){var b=z("lg-username"),e=z("warn_username"),a=z("lg-password"),d=z("warn_password"),f=!1,c=!0;/^[a-zA-Z0-9]{1,6}_[0-9]{8}$/.test(b.value)?(e.style.display="none",b=b.parentElement.classList,b.remove("error"),b.add("success"),b.add("focused")):(e.innerHTML="Invalid username",e.style.display="block",c=b.parentElement.classList,c.remove("success"),c.add("error"),c.add("focused"),c=!1);6>a.value.length&&(d.innerHTML="Password is too short",f=!0);0===a.value.length&&(d.innerHTML= -"Password cannot be empty",f=!0);f?(d.style.display="block",a=a.parentElement.classList,a.remove("success"),a.add("error"),a.add("focused"),c=!1):(d.style.display="none",a=a.parentElement.classList,a.remove("error"),a.add("success"),a.add("focused"));return c}; \ No newline at end of file +var inputUsername=document.getElementById("input_username"),inputPassword=document.getElementById("input_password"),inputRemember=document.getElementById("remember");(function(){inputUsername.focus();localStorage.rememberedUsername&&(inputUsername.value=localStorage.rememberedUsername,inputPassword.focus(),inputPassword.parentNode.classList.add("focused"),inputRemember.checked=!0)})(); +function handleSubmit(){var a=!0;/^[a-zA-Z0-9]{1,6}_[0-9]{8}$/.test(inputUsername.value)?checkPassed(inputUsername):(hasError(inputUsername,"Username is not valid"),a=!1);6<=inputPassword.value.length?checkPassed(inputPassword):(0==inputPassword.value.length&&hasError(inputPassword,"Password cannot be empty"),hasError(inputPassword,"Password is too short"),a=!1);a&&(inputRemember.checked?localStorage.setItem("rememberedUsername",inputUsername.value):localStorage.removeItem("rememberedUsername")); +return a}; \ No newline at end of file diff --git a/sys-auth/assets/material.js b/sys-auth/assets/material.js index deafc29..c69b0d1 100644 --- a/sys-auth/assets/material.js +++ b/sys-auth/assets/material.js @@ -1,8 +1,10 @@ -function altContent(){$(".adsbygoogle").each(function(){0==$(this).height()&&$(this).parent().html('InfinityFree is paid for using the advertisements on our website, client area and control panel. If you like our service, please whitelist us in your ad blocker.
"!==u[1]||Ue.test(r)?0:l:l.firstChild,s=r&&r.childNodes.length;s--;)pe.nodeName(d=r.childNodes[s],"tbody")&&!d.childNodes.length&&r.removeChild(d);for(pe.merge(b,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else b.push(t.createTextNode(r));for(l&&v.removeChild(l),ue.appendChecked||pe.grep(f(b,"input"),g),y=0;r=b[y++];)if(i&&pe.inArray(r,i)>-1)o&&o.push(r);else if(a=pe.contains(r.ownerDocument,r),l=f(v.appendChild(r),"script"),a&&m(l),n)for(s=0;r=l[s++];)Me.test(r.type||"")&&n.push(r);return l=null,v}function b(){return!0}function y(){return!1}function x(){try{return ie.activeElement}catch(e){}}function w(e,t,n,i,o,s){var r,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)w(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=y;else if(!o)return e;return 1===s&&(r=o,o=function(e){return pe().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,o,i,n)})}function C(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function $(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function S(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function T(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,i,o,s=pe._data(e),r=pe._data(t,s),a=s.events;if(a){delete r.handle,r.events={};for(n in a)for(i=0,o=a[n].length;i Language
-
- -1&&(i[c]=!(r[c]=u))}}else y=f(y===r?y.splice(g,y.length):y),s?s(null,r,y,l):Y.apply(r,y)})}function g(e){for(var t,n,i,o=e.length,s=x.relative[e[0].type],r=s||x.relative[" "],a=s?1:0,l=u(function(e){return e===t},r,!0),c=u(function(e){return K(t,e)>-1},r,!0),h=[function(e,n,i){var o=!s&&(i||n!==E)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,o}];aa",ue.leadingWhitespace=3===e.firstChild.nodeType,ue.tbody=!e.getElementsByTagName("tbody").length,ue.htmlSerialize=!!e.getElementsByTagName("link").length,ue.html5Clone="<:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),ue.appendChecked=n.checked,e.innerHTML="",ue.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=ie.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),ue.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,ue.attributes=!e.getAttribute(pe.expando)}();var _e={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,"
","
"],tr:[2,"","
"],col:[2,"
"],td:[3,"
"],_default:ue.htmlSerialize?[0,"",""]:[1,"X","