function show_upload_documentation_form() { global $is_admin, $is_logged_in, $is_verified; if ($is_verified && !$is_admin) { ?> <div class='content_box'> <h3>Already Verified</h3> <p> Your account is already verified. There is no need for you to upload any more documentation. Thank you for putting up with this inconvenience. </p> </div> <?php } else { ?> <div class='content_box'> <h3>Upload Personal Documentation</h3> <?php $readme = ABSPATH . "/docs/{$is_logged_in}/00-README.txt"; if (!$is_admin && file_exists($readme)) { echo "<p>You have already uploaded the following:</p><br/><pre>\n"; $fp = fopen($readme, 'r'); while ($line = fgets($fp)) { $line = rtrim($line); // $line = substr($line, 35); echo " {$line}\n"; } echo "</pre>\n"; echo "<p>The upload form is available below if you need to upload more.</p>\n"; } ?> <p> <b>Please upload both of the following: <ul><li>a copy of an international ID document (a current driving license is sufficient) AND</li> <li>a copy of a recent utility bill (private) or corporate information (company)</li> </ul></b> </p> <p> All received documentation is immediately encrytped and held on a secure data store. </p> <p> We will not share your documents with any third party under any circumstance, except where legally obliged to do so. </p> <p> If you need to upload more than <?php echo post_max_size(); ?> of documents, please upload the documents separately. There is a maximum of <?php echo post_max_size(); ?> upload per page. </p> <form action='' class='indent_form' method='post' enctype='multipart/form-data' id='foo'> <input type='hidden' name='csrf_token' value="<?php echo $_SESSION['csrf_token']; ?> " /> <input type='hidden' name='upload_doc' value='true' /> <?php if ($is_admin) { echo " <label for='uid'>UserID:</label>\n"; echo " <input type='text' name='uid' />\n"; } for ($i = 0; $i < ID_FILE_UPLOAD_SLOTS; $i++) { echo " <label for='file{$i}'>File " . ($i + 1) . ":</label><input type='file' id='file{$i}' name='file{$i}'>\n"; echo " <label for='description{$i}'>Description: </label><input style='width: 680px;' type='text' id='description{$i}' name='description{$i}'>\n"; echo " <br/>\n"; } ?> <input type='submit' /> </form> </div> <?php } }
function tableau_limitations_PHP() { global $tab_commentaires; return' <table class="p"> <thead> <tr><th colspan="2">Réglage des limitations PHP</th></tr> </thead> <tbody> <tr><td><img alt="" title="'.$tab_commentaires['max_execution_time'].'" src="./_img/bulle_aide.png" /> max execution time</td><td class="hc">'.max_execution_time().'</td></tr> <tr><td><img alt="" title="'.$tab_commentaires['memory_limit'].'" src="./_img/bulle_aide.png" /> memory limit</td><td class="hc">'.memory_limit().'</td></tr> <tr><td><img alt="" title="'.$tab_commentaires['post_max_size'].'" src="./_img/bulle_aide.png" /> post max size</td><td class="hc">'.post_max_size().'</td></tr> <tr><td><img alt="" title="'.$tab_commentaires['upload_max_filesize'].'" src="./_img/bulle_aide.png" /> upload max filesize</td><td class="hc">'.upload_max_filesize().'</td></tr> <tr><td><img alt="" title="'.$tab_commentaires['safe_mode'].'" src="./_img/bulle_aide.png" /> safe_mode</td>'.safe_mode().'</tr> <tr><td><img alt="" title="'.$tab_commentaires['open_basedir'].'" src="./_img/bulle_aide.png" /> open_basedir</td>'.open_basedir().'</tr> <tr><td><img alt="" title="'.$tab_commentaires['ini_set_memory_limit'].'" src="./_img/bulle_aide.png" /> ini_set(memory_limit)</td>'.ini_set_memory_limit().'</tr> </tbody> </table> '; }