mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -55,7 +55,7 @@ function base64_unpack($string)
|
|||
|
||||
for ($i = 1; $i <= $length; $i++) {
|
||||
$pos = $length - $i;
|
||||
$operand = strpos($chars, (string) $string[$pos]);
|
||||
$operand = strpos($chars, (string)$string[$pos]);
|
||||
$exponent = $base ** ($i - 1);
|
||||
$decValue = $operand * $exponent;
|
||||
$number += $decValue;
|
||||
|
@ -454,7 +454,7 @@ function _set_var(&$result, $var, $type, $multibyte = false)
|
|||
$result = $var;
|
||||
|
||||
if ($type == 'string') {
|
||||
$result = trim(str_replace(array("\r\n", "\r", '\xFF'), array("\n", "\n", ' '), $result));
|
||||
$result = trim(str_replace(["\r\n", "\r", '\xFF'], ["\n", "\n", ' '], $result));
|
||||
// 2.0.x is doing addslashes on all variables
|
||||
$result = stripslashes($result);
|
||||
if ($multibyte) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue