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

page-appmarketing.php - github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1768a1e521a231f30bfbf8fd61b40d29c573bbda (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
<head>
    <link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/appdev.css?v=2" rel="stylesheet">
    <meta itemprop="image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png">
    <meta name="twitter:image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png">
    <meta name="twitter:image:src" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png">
    <meta property="og:image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png">
    <meta name=”Description” content="Develop for Nextcloud! Write a new app, extend Nextcloud or integrate other software.">

<script>
	require(["require.config"], function() {
		require(["bootstrap"])
	});
</script>
</head>

<div class="background appdev-background">
	<div class="container">
		<div class="row">
			<div class="col-md-6 topheader">
				<h1><?php echo $l->t('Develop for Nextcloud');?></h1>
				<h2><?php echo $l->t('<span class="avoidwrap">Write new applications</span>, <span class="avoidwrap">extend Nextcloud</span> <span class="avoidwrap">or integrate other software</span>');?></p>
			</div>
		</div>
	</div>
</div>
<section class="content">
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <p>If you'd like to promote your app with a post on our blog or even look for ways to monetize an app together with us, contact us now!
        </div>
    </div>

    <?php

    $int1 = random_int(0, 15);
    $int2 = random_int(0, 50);
    $salt = bin2hex(random_bytes(5));
    $hash = hash('sha256', $salt . ($int1 + $int2));
    $checksum = $salt . ':' . $hash;

    $image = imagecreate(100, 20);
    $background_color = imagecolorallocate($image, 255, 255, 255);
    $text_color = imagecolorallocate($image, 0, 0, 0);
    imagestring($image, 5, 3, 2, $int1 . ' + ' . $int2, $text_color);

    ob_start();
    imagepng($image);
    $imagestring = ob_get_contents();
    ob_end_clean();
    imagedestroy($image);
    ?>

    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <form name="contact" method="post" action="appmarketingsubmit/">
            <div class="row">
                <div class="col-md-8">
                    <p><label for="yourname">Your name<br>
                    <input  type="text" name="yourname" maxlength="60" size="60"></label></p>
                    <p><label for="email">Email<br>
                    <input  type="text" name="email" maxlength="80" size="60"></label></p>
                    <p><label for="organization">Organization <small>(say <em>private</em> if none)</small><br>
                    <input  type="text" name="organization" maxlength="100" size="60" placeholder=""></label></p>
                    <p><label for="comments">Your message<br />
                    <textarea  name="comments" maxlength="2000" cols="80" rows="8" placeholder="Let us know what your plans are and how we can help or how you would like to collaborate!"></textarea></label></p>
                    <p><label for="captcha">Please calculate the following sum <span></span><br>
                    <img src="data:image/png;base64,<?php echo base64_encode($imagestring); ?>"><br>
                    <input  type="text" name="captcha" maxlength="20" size="20" placeholder="13"></label></p>
                    <input  type="hidden" name="checksum" value="<?php echo $checksum;?>">
                    <td colspan="2" style="text-align:center">
                    <div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_SITEKEY; ?>"></div>
                    <input type="submit" value=" Submit ">
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
</section>