mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Few cosmetic improvements (#1284)
This commit is contained in:
parent
c70efeec1b
commit
8adb0eae3b
7 changed files with 6 additions and 7 deletions
|
@ -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> © 2005-' . date('Y'),
|
||||
'POWERED' => 'Fueled by <a target="_blank" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> with love ❤️ | © 2005-' . date('Y'),
|
||||
'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')),
|
||||
'ADMIN_LINK_HREF' => 'admin/index.php',
|
||||
]);
|
||||
|
|
|
@ -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']);
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 = '')
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue