Few cosmetic improvements (#1284)

This commit is contained in:
Roman Kelesidis 2023-12-29 23:03:02 +07:00 committed by GitHub
commit 8adb0eae3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 7 deletions

View file

@ -16,7 +16,7 @@ global $bb_cfg, $userdata, $template, $DBS, $lang;
if (!empty($template)) {
$template->assign_vars([
'SIMPLE_FOOTER' => !empty($gen_simple_header),
'POWERED' => 'Fueled by <a target="_blank" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> &copy; 2005-' . date('Y'),
'POWERED' => 'Fueled by <a target="_blank" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> with love ❤️ | &copy; 2005-' . date('Y'),
'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')),
'ADMIN_LINK_HREF' => 'admin/index.php',
]);

View file

@ -10,12 +10,12 @@
if (!defined('BB_ROOT')) {
die(basename(__FILE__));
}
if (defined('PAGE_HEADER_SENT')) {
return;
}
// Parse and show the overall page header
global $page_cfg, $userdata, $user, $ads, $bb_cfg, $template, $lang, $images;
$logged_in = (int)!empty($userdata['session_logged_in']);

View file

@ -514,7 +514,6 @@ $lang['AVATAR_PANEL'] = 'Avatar control panel';
$lang['WEBSITE'] = 'Website';
$lang['LOCATION'] = 'Location';
$lang['LOCATION_FLAGS'] = 'Flag images are rendered by country codes:';
$lang['CONTACT'] = 'Contact';
$lang['EMAIL_ADDRESS'] = 'E-mail address';
$lang['SEND_PRIVATE_MESSAGE'] = 'Send private message';

View file

@ -61,7 +61,7 @@ class CronHelper
*/
public static function touchLockFile(string $lock_file): void
{
file_write('', $lock_file, 0, true, true);
file_write('', $lock_file, replace_content: true);
}
/**

View file

@ -69,7 +69,7 @@ class File extends Common
$this->cur_query = null;
$this->num_queries++;
return (bool)file_write($filecache, $filename, false, true, true);
return (bool)file_write($filecache, $filename, max_size: false, replace_content: true);
}
public function rm($name = '')

View file

@ -46,7 +46,7 @@ class File extends Common
$this->cur_query = null;
$this->num_queries++;
return (bool)file_write($filecache, $filename, false, true, true);
return (bool)file_write($filecache, $filename, max_size: false, replace_content: true);
}
public function clean()

View file

@ -156,7 +156,7 @@
<tr>
<td class="prof-title">{L_LOCATION}:</td>
<td>
<div><input type="text" name="user_from" size="50" maxlength="100" value="{USER_FROM}"/><br><h6>{L_LOCATION_FLAGS} <a href="https://github.com/hampusborgos/country-flags/blob/ba2cf4101bf029d2ada26da2f95121de74581a4d/countries.json" target="_blank">{L_LIST}</a></h6></div>
<div><input type="text" name="user_from" size="50" maxlength="100" value="{USER_FROM}"/><br><h6>❤️ Country flags provided by <a href="https://github.com/hampusborgos/country-flags/" target="_blank">https://github.com/hampusborgos/country-flags/</a></h6></div>
</td>
</tr>
<!-- ENDIF -->