mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
75990902ae
commit
dcd19e54a9
3 changed files with 4 additions and 12 deletions
|
@ -196,9 +196,7 @@ function unlink_attach($filename, $mode = false)
|
|||
$filename = $upload_dir . '/' . $filename;
|
||||
}
|
||||
|
||||
$deleted = @unlink($filename);
|
||||
|
||||
return $deleted;
|
||||
return @unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -49,9 +49,7 @@ function read_word($fp)
|
|||
{
|
||||
$data = fread($fp, 2);
|
||||
|
||||
$value = ord($data[1]) * 256 + ord($data[0]);
|
||||
|
||||
return $value;
|
||||
return ord($data[1]) * 256 + ord($data[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,9 +59,7 @@ function read_byte($fp)
|
|||
{
|
||||
$data = fread($fp, 1);
|
||||
|
||||
$value = ord($data);
|
||||
|
||||
return $value;
|
||||
return ord($data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue