forked from mfscripts/Yetishare-File-Hosting-Script-Free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faq.php
101 lines (92 loc) · 4.28 KB
/
faq.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
<?php
// setup includes
require_once('includes/master.inc.php');
// setup page
define("PAGE_NAME", t("faq_page_name", "FAQ"));
define("PAGE_DESCRIPTION", t("faq_meta_description", "Frequently Asked Questions"));
define("PAGE_KEYWORDS", t("faq_meta_keywords", "faq, frequently, asked, questions, file, hosting, site"));
// max allowed upload size
$maxUploadSizeFreeAcc = SITE_CONFIG_FREE_USER_MAX_UPLOAD_FILESIZE;
$maxUploadSizePaidAcc = SITE_CONFIG_PREMIUM_USER_MAX_UPLOAD_FILESIZE;
// if php restrictions are lower than permitted, override
$phpMaxSize = getPHPMaxUpload();
if($phpMaxSize < $maxUploadSizeFreeAcc)
{
$maxUploadSizeFreeAcc = $phpMaxSize;
$maxUploadSizePaidAcc = $phpMaxSize;
}
// get accepted file types
$acceptedFileTypes = getAcceptedFileTypes();
// when files will be removed
$fileRemovalFreeAcc = SITE_CONFIG_FREE_USER_UPLOAD_REMOVAL_DAYS;
$fileRemovalPaidAcc = SITE_CONFIG_PREMIUM_USER_UPLOAD_REMOVAL_DAYS;
if((int)$fileRemovalFreeAcc == 0)
{
$fileRemovalFreeAcc = 'unlimited';
}
if((int)$fileRemovalPaidAcc == 0)
{
$fileRemovalPaidAcc = 'unlimited';
}
// include header
require_once('_header.php');
?>
<div class="contentPageWrapper">
<!-- main section -->
<div class="pageSectionMain ui-corner-all">
<div class="pageSectionMainInternal">
<div id="pageHeader">
<h2><?php echo t("faq_page_name", "FAQ"); ?></h2>
</div>
<div class="faq">
<ul>
<li>
<strong>Q: Is this free?</strong>
<br/><br/>
A: Yes, uploading and downloading is 100% Free for all users. We offer premium accounts which allows for greater flexibility with uploading/downloading.
<br/><br/>
</li>
<li>
<strong>Q: Will my files be removed?</strong>
<br/><br/>
A: Free/non accounts files are kept for <?php echo $fileRemovalFreeAcc; ?> days. Premium accounts files are kept for <?php echo $fileRemovalPaidAcc; ?> days.
<br/><br/>
</li>
<li>
<strong>Q: How many files can I upload?</strong>
<br/><br/>
A: You can upload as many files as you want, as long as each one adheres to the Terms of Service and the maximum file upload size.
<br/><br/>
</li>
<li>
<strong>Q: Which files types am I allowed to upload?</strong>
<br/><br/>
A: You may upload the following types of files: <?php echo (COUNT($acceptedFileTypes))?str_replace(".", "", implode(", ", $acceptedFileTypes)):'Any'; ?>.
<br/><br/>
</li>
<li>
<strong>Q: Are there any restrictions to the size of my uploaded files?</strong>
<br/><br/>
A: Each file you upload must be less than <?php echo formatSize($maxUploadSizeFreeAcc); ?> in size for free/non accounts or less than <?php echo formatSize($maxUploadSizePaidAcc); ?> in size for premium accounts. If it is greater than that amount, your file will be rejected.
<br/><br/>
</li>
<li>
<strong>Q: Can I upload music or videos?</strong><br/><br/>
A: Yes. Music and video hosting is permitted as long as you own the copyright on the content and it adheres to the terms and conditions.
<br/><br/>
</li>
<li>
<strong>Q: There are some files on our servers which may have been subject to copyright protection, how can I notify you of them?</strong><br/><br/>
A: Via our <a href="report_file.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>">report abuse</a> pages.
</li>
</ul>
<div class="clear"></div>
</div>
</div>
</div>
<?php include_once("_bannerRightContent.inc.php"); ?>
<div class="clear"><!-- --></div>
</div>
<?php
require_once('_footer.php');
?>