-
Notifications
You must be signed in to change notification settings - Fork 47
/
thankyou.php
185 lines (150 loc) · 7.24 KB
/
thankyou.php
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
$currentpage = "thankyou.php";
include("header.php");
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
if ( !function_exists('str_starts_with') ) {
function str_starts_with ( $haystack, $needle ) {
return strpos( $haystack , $needle ) === 0;
}
}
$url = "#";
if (isset($_GET['url']) ) {
$url = urldecode($_GET['url']);
// Only allow downloads from trusted source
if ( !str_starts_with($url, "https://github.com/FreeCAD/FreeCAD/releases") ) {
$url = "#";
}
if ( strpos( $url, ".." ) !== false ) {
$url = "#";
}
if ( strpos( $url, "\"" ) !== false ) {
$url = "#";
}
if ( strpos( $url, "(" ) !== false ) {
$url = "#";
}
if ( strpos( $url, ";" ) !== false ) {
$url = "#";
}
if ( strpos( $url, "%" ) !== false ) {
$url = "#";
}
// for some reason this does not work on our version of php
//if ( !str_ends_with($url, ".7z") ) {
// if ( !str_ends_with($url, ".exe") ) {
// if ( !str_ends_with($url, ".dmg") ) {
// if ( !str_ends_with($url, ".AppImage") ) {
// $url = "#";
// }
// }
// }
//}
}
?>
<script>
function startDownload() {
window.location = "<?php echo $url; ?>";
}
</script>
<main id="main" class="container-fluid whitelinks">
<div class="download-notes text-center">
<h2 class="downloads-notes-title"><?php echo _('Thank you!'); ?></h2>
<p>
<?php echo _('Your download should start automatically.
If not, click') ?> <a href="<?php echo $url; ?>"><?php echo _('here'); ?></a>
<?php echo _('to download the file.'); ?>
</p>
</div>
<section class="row section d-flex justify-content-around">
<div class="col-lg-4">
<h3><?php echo _('Support FreeCAD!'); ?></h3>
</div>
<div class="col-lg-7 text-light text-center text-lg-start px-md-4">
<p>
<?php echo _('If you are happy with FreeCAD, and would like to help
it thrive, why not donate a bit of money to the project? Being
open-source, paying to use FreeCAD will never be required, and
FreeCAD does not need money to survive, but donations help us to go
further, faster.'); ?>
</p>
<p>
<?php echo _('If you are in, choose the amount and method of your
choice below. If you are interested in supporting the project better
with a recurring donation, check the <a href=sponsor.php>sponsoring
page</a> to see more options.'); ?>
</p>
<?php $formid = "donation"; include("donation.php"); ?>
<p>
<?php echo _('There are also many other ways to help FreeCAD. For
example, you can write code, help writing documentation, translate
the FreeCAD interface and documentation, help new users, etc. See
all you need to know on the
<a href=https://wiki.freecad.org/Help_FreeCAD>Help FreeCAD</a>
page.'); ?>
</p>
<br/><br/>
</div>
<div class="col-lg-4">
<h3><?php echo _('Need help?'); ?></h3>
</div>
<div class="col-lg-7 text-light text-center text-lg-start px-md-4">
<p>
<?php echo _('If you are new to FreeCAD, or to 3D CAD modelling, we
have you covered! FreeCAD features an
<a href=https://wiki.freecad.org>extensive documentation</a>, which
is available online but also directly within the FreeCAD application.
It covers everything from installing and launching FreeCAD, using it
and its different workbenches, up to creating Python scripts to
automate it and developing your own tools and extensions.'); ?>
</p>
<p>
<?php echo _('Below are some pages of this documentation that could
be useful to you:'); ?>
</p>
<ul class="d-block whitelinks">
<li><a href="<?php echo _('https://wiki.freecad.org/Installing_on_Windows'); ?>"><?php echo _('Installing FreeCAD on Windows'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Installing_on_Linux'); ?>"><?php echo _('Installing FreeCAD on Linux'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Installing_on_Mac'); ?>"><?php echo _('Installing FreeCAD on MacOS'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Installing_additional_components'); ?>"><?php echo _('Installing additional components'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Getting_started'); ?>"><?php echo _('Getting started with FreeCAD'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/User_hub#Migrating_from_other_software.3F'); ?>"><?php echo _('Migrating from other software?'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Workbenches'); ?>"><?php echo _('Workbenches documentation'); ?></a></li>
<li><a href="<?php echo _('https://wiki.freecad.org/Frequently_asked_questions'); ?>"><?php echo _('Frequently asked questions'); ?></a></li>
</ul>
<p>
<?php echo _('FreeCAD also offers a complete user manual, that can
be downloaded as a pdf or epub file or printed:'); ?>
</p>
<ul class="d-block whitelinks">
<li><a href="<?php echo _('https://wiki.freecad.org/Manual'); ?>"><?php echo _('The FreeCAD user manual'); ?></a></li>
</ul>
<p>
<?php echo _('and many tutorials, in written or video form, created by
the FreeCAD community:'); ?>
</p>
<ul class="d-block whitelinks">
<li><a href="<?php echo _('https://wiki.freecad.org/Tutorials'); ?>"><?php echo _('Tutorials'); ?></a></li>
</ul>
<p>
<?php echo _('On behalf of all of the worldwide community of users,
developers, translators, editors, writers, testers who work hard to
make FreeCAD the best CAD modeller out there, we thank you for
downloading our baby! We hope you will like it as much as we do.'); ?>
</p>
<p>
<?php echo _('If you encounter issues with FreeCAD, or would like to
meet and discuss topics with other users, pay a visit to the
<a href=https://forum.freecad.org>FreeCAD forum</a>. The forum is the
main meeting point for FreeCAD users of all parts of the world and all
skill levels. There you can seek advice of more advanced users, find
ways to solve a particular problem, or discuss ideas about and around
the FreeCAD world.'); ?>
</p>
</div>
</section>
</main>
<?php
include 'footer.php';
?>