X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/5efae52e3028850bd88ed03945f5d912420a36d3..0b2a8101344eae4282d81f22b64f967e6775e989:/f.php?ds=inline
diff --git a/f.php b/f.php
index 4289eae..9219493 100644
--- a/f.php
+++ b/f.php
@@ -39,7 +39,7 @@ $link_name = $_GET['h'];
if (!preg_match('/[0-9a-zA-Z_-]+$/', $link_name)) {
require(JIRAFEAU_ROOT.'lib/template/header.php');
- echo '
' . t('Sorry, the requested file is not found') . '
';
+ echo '';
require(JIRAFEAU_ROOT.'lib/template/footer.php');
exit;
}
@@ -47,7 +47,7 @@ if (!preg_match('/[0-9a-zA-Z_-]+$/', $link_name)) {
$link = jirafeau_get_link($link_name);
if (count($link) == 0) {
require(JIRAFEAU_ROOT.'lib/template/header.php');
- echo '' . t('Sorry, the requested file is not found') .
+ echo '
';
require(JIRAFEAU_ROOT.'lib/template/footer.php');
exit;
@@ -73,11 +73,11 @@ if (isset($_GET['p']) && !empty($_GET['p'])) {
$do_preview = true;
}
-$p = s2p($link['md5']);
-if (!file_exists(VAR_FILES . $p . $link['md5'])) {
+$p = s2p($link['hash']);
+if (!file_exists(VAR_FILES . $p . $link['hash'])) {
jirafeau_delete_link($link_name);
require(JIRAFEAU_ROOT.'lib/template/header.php');
- echo '
'.t('File not available.').
+ echo '
';
require(JIRAFEAU_ROOT.'lib/template/footer.php');
exit;
@@ -87,23 +87,23 @@ if (!empty($delete_code) && $delete_code == $link['link_code']) {
require(JIRAFEAU_ROOT.'lib/template/header.php');
if (isset($_POST['do_delete'])) {
jirafeau_delete_link($link_name);
- echo '
'.t('File has been deleted.').
+ echo '
';
} else { ?>