Welcome to mirror list, hosted at ThFree Co, Russian Federation.

page-signup.php - github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37c640dab3ec3458e108fa742188f1d6489d8f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<head>
<script>
    require(["require.config"], function() {
        require(["pages/signup"])
    });
</script>
<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/signup.css?v=3" rel="stylesheet">
<!-- Social media images. Putting in all images, hoping the sites are clever enough to pick the right. If not - png is last, and probably fine. it IS an animated png, properly shown at least in Chrome and Firefox... -->

<meta itemprop="image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.mp4">
<meta name="twitter:image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.mp4">
<meta name="twitter:image:src" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.mp4">
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/assets/img/common/yourdata.mp4">
<meta itemprop="image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.gif">
<meta name="twitter:image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.gif">
<meta name="twitter:image:src" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.gif">
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/assets/img/common/yourdata.gif">
<meta itemprop="image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.apng">
<meta name="twitter:image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.apng">
<meta name="twitter:image:src" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.apng">
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/assets/img/common/yourdata.apng">
<meta itemprop="image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.png">
<meta name="twitter:image" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.png">
<meta name="twitter:image:src" content="<?php echo get_template_directory_uri(); ?>/assets/common/yourdata.png">
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/assets/img/common/yourdata.png">
</head>

<?php
include __DIR__ . '/vendor/autoload.php';
include __DIR__ . '/config.php';

try {
	$location = $readerCity->city(whatismyip())->location;
} catch (Exception $e) {
	$location = false;
}

$l = new L10N('signup');
$registerL10n = [
    'subscribe' => $l->t('Subscribe to our newsletter'),
    'email' => $l->t('Your email address'),
    'success' => $l->t('Success! Redirecting you to the provider'),
    'error' => $l->t('Error:'),
    'processing' => $l->t('Creating your account'),
    'register' => $l->t('Sign up'),
    'change' => $l->t('change provider'),
    'close' => $l->t('close'),
    'far' => $l->t('Far far away'),
    'geterror' => $l->t('Error while retrieving the providers list.'),
    'tos' => $l->t('Terms of service'),
    'tosagree' => $l->t('I agree to the %tos%'),
    'toserror' => $l->t('Please agree to the terms of service')
];

$officialApps = [
    'files'=> $l->t('Files'),
    'calendar'=> $l->t('Calendar'),
    'contacts'=> $l->t('Contacts'),
    'spreed' => $l->t('Talk'),
    'mail'=> $l->t('Mail'),
    'tasks'=> $l->t('Tasks'),
    'notes'=> $l->t('Notes'),
    'news'=> $l->t('News'),
    'twofactor_totp' => $l->t('Two-factor authentication'),
    'twofactor_u2f' => $l->t('Two-factor U2F'),
    'gallery' => $l->t('Gallery'),
    'photos' => $l->t('Photos'),
    'collabora' => $l->t('Collabora Online'),
    'onlyoffice' => $l->t('Onlyoffice'),
    'deck' => $l->t('Deck'),
    'fulltextsearch' => $l->t('Full text search'),
    'mindmaps' => $l->t('Mindmaps'),
    'passman' => $l->t('Passman'),
    'drawio' => $l->t('Draw.io'),
    'bookmarks' => $l->t('Bookmarks'),
    'audioplayer' => $l->t('Audioplayer'),
    'appointments' => $l->t('Appointments')
];

$coreApps = ['files', 'calendar', 'contacts', 'spreed', 'mail', 'tasks', 'notes'];

?>
<div class="background register-background">
	<div class="container">
		<div class="row">
			<div class="col-md-6 topheader">
				<h1><?php echo $l->t('Simple sign up');?></h1>
<!-- 				<h2><?php echo $l->t('To help you decide where to store your data, Nextcloud maintains a list of preferred providers.');?></h2> -->
                <h2><?php echo $l->t('Sign up now with a Nextcloud provider to get a free account!');?></h2>
			</div>
		</div>
	</div>
</div>

<section class="section--providers">
  <div id="register" class="container"
  	   data-ll="<?php echo htmlspecialchars(json_encode($location)) ?>"
       data-ocsapi="<?php echo array_key_exists('HTTP_OCS_APIREQUEST', $_SERVER) ?>"
       data-l10n="<?php echo htmlspecialchars(json_encode($registerL10n)) ?>"
       data-officialapps="<?php echo htmlspecialchars(json_encode($officialApps)) ?>"
       data-coreapps="<?php echo htmlspecialchars(json_encode($coreApps)) ?>">
  </div>
  <div id="register-details" class="container"><p></p></div>
</section>

<section class="section--disclaimer">
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <h3 class="section--paragraph__title"><?php echo $l->t('Providers'); ?></h3>
            <p class="section--paragraph"><?php echo $l->t('While we have done our best in choosing quality providers, we can not take any responsibility for their services.'); ?><br>
            <p class="section--paragraph"><?php echo $l->t('If there are any issues with your account, please note that we do NOT record any of your information on our side so we can not help you. Please contact the provider you signed up with.'); ?></p>
            <p class="section--paragraph"><?php echo $l->t('Free services are of course paid somewhere by someone. The listed Nextcloud providers all give a free account with 2 to 5 GB storage but offer larger storage and more options like a dedicated setup for a fee, which funds the free accounts. Consider paying for your account, it helps them provide this service!'); ?></p>
            <p><a class="button button--white button--arrow button--large" href="https://help.nextcloud.com/c/hosting" target="_blank"><?php echo $l->t('Give feedback on providers'); ?></a></p>
            </p>
            <h3 class="section--paragraph__title"><?php echo $l->t('Privacy'); ?></h3>
            <p class="section--paragraph"><?php echo $l->t('By proceeding, you agree with our privacy policy. In short, we only handle the minimum amount of user data for the purpose of enabling the provider to create a minimal account and do not store any personally identifiable data.'); ?></p>
            <p><a href="<?php echo home_url('privacy') ?>" target="_blank" class="button button--white button--arrow button--large overlay-trigger"><?php echo $l->t('Nextcloud privacy policy'); ?></a></p>
        </div>
    </div>
</div>
</section>
<?php require __DIR__.'/overlay.php'; ?>