X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/9a9c9a8bf83241c193c5bef6361d41893e72dfd3..9d5ead29bc211bda78730ea5f2bfa71075c6f932:/lib/functions.php?ds=inline
diff --git a/lib/functions.php b/lib/functions.php
index 50ab345..eaedfac 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -128,6 +128,13 @@ function jirafeau_get_datetimefield($timestamp)
return $content;
}
+function jirafeau_fatal_error($errorText, $cfg = array())
+{
+ echo '
';
+ require(JIRAFEAU_ROOT . 'lib/template/footer.php');
+ exit;
+}
+
function jirafeau_clean_rm_link($link)
{
$p = s2p("$link");
@@ -367,7 +374,7 @@ function jirafeau_upload($file, $one_time_download, $key, $time, $ip, $crypt, $l
return (array(
'error' =>
array('has_error' => true,
- 'why' => t('Internal error during file creation.')),
+ 'why' => t('INTERNAL_ERROR_DEL')),
'link' =>'',
'delete_link' => ''));
}
@@ -506,7 +513,7 @@ function check_errors($cfg)
}
if (!is_writable(VAR_ASYNC)) {
- add_error(t('The async directory is not writable!'), VAR_ASYNC);
+ add_error(t('ASYNC_DIR_W'), VAR_ASYNC);
}
}
@@ -546,28 +553,28 @@ function jirafeau_admin_list($name, $file_hash, $link_hash)
{
echo '