git.p6c8.net
/
jirafeau.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix 2 minor typos
[jirafeau.git]
/
f.php
diff --git
a/f.php
b/f.php
index d61caebf7ef0db0cf51cfa1792113f833e9ff3a8..e2547d7d36f19324089434fb10303890362a66a2 100644
(file)
--- a/
f.php
+++ b/
f.php
@@
-32,8
+32,6
@@
if (!isset($_GET['h']) || empty($_GET['h'])) {
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
-/* Remove errors. */
-@error_reporting(0);
$link_name = $_GET['h'];
$link_name = $_GET['h'];
@@
-144,7
+142,7
@@
if (!empty($link['key'])) {
'<legend>' . t('PSW_PROTEC') .
'</legend><table><tr><td>' .
t('GIMME_PSW') . ' : ' .
'<legend>' . t('PSW_PROTEC') .
'</legend><table><tr><td>' .
t('GIMME_PSW') . ' : ' .
- '<input type = "password" name = "key" />' .
+ '<input type = "password" name = "key"
autocomplete = "current-password"
/>' .
'</td></tr>' .
'<tr><td>' .
t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' .
'</td></tr>' .
'<tr><td>' .
t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' .
@@
-169,7
+167,6
@@
if (!empty($link['key'])) {
echo '&k=' . urlencode($crypt_key);
} ?>';
document.getElementById('submit_preview').submit ();"/><?php
echo '&k=' . urlencode($crypt_key);
} ?>';
document.getElementById('submit_preview').submit ();"/><?php
-
}
echo '</td></tr></table></fieldset></form></div>';
require(JIRAFEAU_ROOT.'lib/template/footer.php');
}
echo '</td></tr></table></fieldset></form></div>';
require(JIRAFEAU_ROOT.'lib/template/footer.php');
@@
-222,7
+219,6
@@
if (!$password_challenged && !$do_download && !$do_preview) {
echo '&k=' . urlencode($crypt_key);
} ?>';
document.getElementById('submit_post').submit ();"/><?php
echo '&k=' . urlencode($crypt_key);
} ?>';
document.getElementById('submit_post').submit ();"/><?php
-
}
echo '</td></tr>';
echo '</table></fieldset></form></div>';
}
echo '</td></tr>';
echo '</table></fieldset></form></div>';
@@
-255,7
+251,7
@@
if ($cfg['litespeed_workaround']) {
}
}
/* Read encrypted file. */
}
}
/* Read encrypted file. */
-else
if ($link['crypted']) {
+elseif ($link['crypted']) {
/* Init module */
$m = mcrypt_module_open('rijndael-256', '', 'ofb', '');
/* Extract key and iv. */
/* Init module */
$m = mcrypt_module_open('rijndael-256', '', 'ofb', '');
/* Extract key and iv. */
@@
-268,7
+264,6
@@
else if ($link['crypted']) {
while (!feof($r)) {
$dec = mdecrypt_generic($m, fread($r, 1024));
print $dec;
while (!feof($r)) {
$dec = mdecrypt_generic($m, fread($r, 1024));
print $dec;
- ob_flush();
}
fclose($r);
/* Cleanup. */
}
fclose($r);
/* Cleanup. */
@@
-280,7
+275,6
@@
else {
$r = fopen(VAR_FILES . $p . $link['hash'], 'r');
while (!feof($r)) {
print fread($r, 1024);
$r = fopen(VAR_FILES . $p . $link['hash'], 'r');
while (!feof($r)) {
print fread($r, 1024);
- ob_flush();
}
fclose($r);
}
}
fclose($r);
}
patrick-canterino.de