<?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"));
define("TITLE_DESCRIPTION_LEFT", t("faq_title_page_description_left", "[[[SITE_CONFIG_SITE_NAME]]] frequently asked questions.", array('SITE_CONFIG_SITE_NAME' => SITE_CONFIG_SITE_NAME)));
define("TITLE_DESCRIPTION_RIGHT", t("faq_title_page_description_right", ""));
define("CURRENT_PAGE_KEY", "faq");

// max allowed upload size
$maxUploadSizeFreeAcc = UserPeer::getMaxUploadFilesize(1);
$maxUploadSizePaidAcc = UserPeer::getMaxUploadFilesize(2);

// get accepted file types
$acceptedFileTypes = UserPeer::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 = t('faq_unlimited', 'unlimited');
}
if ((int) $fileRemovalPaidAcc == 0)
{
    $fileRemovalPaidAcc = t('faq_unlimited', 'unlimited');
}

// include header
require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php');
?>
<div class="faq">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingOne">
      <h4 class="panel-title">
        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
          <?php echo t('faq_q1_question', 'Q: Is this free?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
      <div class="panel-body">
        <?php echo t('faq_q1_answer', 'A: Yes, uploading and downloading is 100% Free for all users. We offer premium accounts which allows for greater flexibility with uploading/downloading.'); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingTwo">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
          <?php echo t('faq_q2_question', 'Q: Will my files be removed?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
      <div class="panel-body">
        <?php echo t('faq_q2_answer', 'A: Free/non accounts files are kept for [[[KEPT_FOR_DAYS_FREE]]] days. Premium accounts files are kept for [[[KEPT_FOR_DAYS_PAID]]] days.', array('KEPT_FOR_DAYS_FREE' => $fileRemovalFreeAcc, 'KEPT_FOR_DAYS_PAID' => $fileRemovalPaidAcc)); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingThree">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
          <?php echo t('faq_q3_question', 'Q: How many files can I upload?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
      <div class="panel-body">
        <?php echo t('faq_q3_answer', '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.'); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingFour">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
          <?php echo t('faq_q4_question', 'Q: Which files types am I allowed to upload?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
      <div class="panel-body">
        <?php echo t('faq_q4_answer', 'A: You may upload the following types of files: [[[FILE_TYPES]]].', array('FILE_TYPES' => ((COUNT($acceptedFileTypes)) ? str_replace(".", "", implode(", ", $acceptedFileTypes)) : t('faq_any', 'Any')))); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingFive">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive">
          <?php echo t('faq_q5_question', 'Q: Are there any restrictions to the size of my uploaded files?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">
      <div class="panel-body">
        <?php echo t('faq_q5_answer', 'A: Each file you upload must be less than [[[MAX_UPLOAD_SIZE_FREE]]] in size for free/non accounts or less than [[[MAX_UPLOAD_SIZE_PAID]]] in size for premium accounts. If it is greater than that amount, your file will be rejected.', array('MAX_UPLOAD_SIZE_FREE' => coreFunctions::formatSize($maxUploadSizeFreeAcc), 'MAX_UPLOAD_SIZE_PAID' => coreFunctions::formatSize($maxUploadSizePaidAcc))); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingSix">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix">
          <?php echo t('faq_q6_question', 'Q: Can I upload music or videos?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
      <div class="panel-body">
        <?php echo t('faq_q6_answer', '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.'); ?>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingSeven">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" aria-expanded="false" aria-controls="collapseSeven">
          <?php echo t('faq_q7_question', 'Q: There are some files on our servers which may have been subject to copyright protection, how can I notify you of them?'); ?>
        </a>
      </h4>
    </div>
    <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
      <div class="panel-body">
        <?php echo t('faq_q7_answer', 'A: Via our <a href="report_file.[[[SITE_CONFIG_PAGE_EXTENSION]]]">report abuse</a> pages.', array('SITE_CONFIG_PAGE_EXTENSION' => SITE_CONFIG_PAGE_EXTENSION)); ?>
      </div>
    </div>
  </div>
</div>
</div>
<?php
// include footer
require_once(SITE_TEMPLATES_PATH . '/partial/_footer.inc.php');
?>
