]> git.p6c8.net - jirafeau_project.git/blobdiff - index.php
[BUGFIX] Print nice error when install.php is missing and we need it.
[jirafeau_project.git] / index.php
index cf54193458915294e8dcd4ad27710855cbe90e49..1a8b2bdce93d946bb915c6665388bca88295a815 100644 (file)
--- a/index.php
+++ b/index.php
@@ -27,6 +27,7 @@ require(JIRAFEAU_ROOT . 'lib/lang.php');
 
 check_errors($cfg);
 if (has_error()) {
 
 check_errors($cfg);
 if (has_error()) {
+    require(JIRAFEAU_ROOT . 'lib/template/header.php');
     show_errors();
     require(JIRAFEAU_ROOT . 'lib/template/footer.php');
     exit;
     show_errors();
     require(JIRAFEAU_ROOT . 'lib/template/footer.php');
     exit;
@@ -75,7 +76,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
                 </tr><tr>
                     <td class = "field"><input type = "password"
                     name = "upload_password" id = "upload_password"
                 </tr><tr>
                     <td class = "field"><input type = "password"
                     name = "upload_password" id = "upload_password"
-                    size = "40" />
+                    size = "40" autocomplete = "current-password" />
                     </td>
                 </tr>
                 <tr class = "nav">
                     </td>
                 </tr>
                 <tr class = "nav">
@@ -185,7 +186,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
         ?>
         <tr>
         <td><label for="input_key"><?php echo t('PSW') . ':'; ?></label></td>
         ?>
         <tr>
         <td><label for="input_key"><?php echo t('PSW') . ':'; ?></label></td>
-        <td><input type="password" name="key" id="input_key" /></td>
+        <td><input type="password" name="key" id="input_key" autocomplete = "new-password"/></td>
         </tr>
         <tr>
         <td><label for="select_time"><?php echo t('TIME_LIM') . ':'; ?></label></td>
         </tr>
         <tr>
         <td><label for="select_time"><?php echo t('TIME_LIM') . ':'; ?></label></td>
@@ -208,6 +209,10 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
             'value' => 'week',
             'label' => '1_W'
           ),
             'value' => 'week',
             'label' => '1_W'
           ),
+          array(
+              'value' => 'fortnight',
+              'label' => '2_W'
+          ),
           array(
             'value' => 'month',
             'label' => '1_M'
           array(
             'value' => 'month',
             'label' => '1_M'
@@ -265,7 +270,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
     onclick="
         document.getElementById('upload').style.display = 'none';
         document.getElementById('uploading').style.display = '';
     onclick="
         document.getElementById('upload').style.display = 'none';
         document.getElementById('uploading').style.display = '';
-        upload (<?php echo jirafeau_get_max_upload_size_bytes(); ?>);
+        upload (<?php echo jirafeau_get_max_upload_chunk_size_bytes($cfg['max_upload_chunk_size_bytes']); ?>);
     "/>
     </p>
         </table>
     "/>
     </p>
         </table>

patrick-canterino.de