X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/ce571122a5b6866835a9313e599bcad57bc790ff..30a3728e3002f864820531af817364a7b40c9cf3:/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 '