mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 18:45:57 +00:00
add experimental self-updating script
This commit is contained in:
@@ -5506,4 +5506,18 @@
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function tmpdirname($path, $prefix) {
|
||||
// Use PHP's tmpfile function to create a temporary
|
||||
// directory name. Delete the file and keep the name.
|
||||
$tempname = tempnam($path,$prefix);
|
||||
if (!$tempname)
|
||||
return false;
|
||||
|
||||
if (!unlink($tempname))
|
||||
return false;
|
||||
|
||||
return $tempname;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user