Skip to content

Commit 412e958

Browse files
xh3n1Sam Tuke
authored andcommitted
remove old notification
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent accfd06 commit 412e958

File tree

4 files changed

+1
-60
lines changed

4 files changed

+1
-60
lines changed

public_html/lists/admin/defaultconfig.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@
9999
'category' => 'general',
100100
),
101101

102-
// how often to check for new versions of PHPlist
103-
'check_new_version' => array(
104-
'value' => '7',
105-
'description' => s('How often do you want to check for a new version of phplist (days)'),
106-
'type' => 'integer',
107-
'min' => 1,
108-
'max' => 180,
109-
'category' => 'security',
110-
),
111-
112102
//# remote processing secret
113103
// @TODO previous value generation was limited to 20 hex characters (max), determine if this is enough (80 bits)
114104
'remote_processing_secret' => array(

public_html/lists/admin/home.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -29,53 +29,6 @@
2929
//# trigger this somewhere else?
3030
refreshTlds();
3131

32-
// check for latest version
33-
$checkinterval = sprintf('%d', getConfig('check_new_version'));
34-
if (empty($checkinterval)) {
35-
$checkinterval = 7;
36-
}
37-
38-
$showUpdateAvail = !empty($_GET['showupdate']); //# just to check the design
39-
$thisversion = VERSION;
40-
$thisversion = preg_replace("/[^\.\d]/", '', $thisversion);
41-
$latestversion = getConfig('updateavailable');
42-
$showUpdateAvail = $showUpdateAvail || (!empty($latestversion) && !versionCompare($thisversion, $latestversion));
43-
44-
if (!$showUpdateAvail && $checkinterval) {
45-
46-
//#https://mantis.phplist.com/view.php?id=16815
47-
$query = sprintf('select date_add(value, interval %d day) < now() as needscheck from %s where item = "updatelastcheck"',
48-
$checkinterval, $tables['config']);
49-
$needscheck = Sql_Fetch_Row_Query($query);
50-
if ($needscheck[0] != '0') {
51-
@ini_set('user_agent', NAME.' (phplist version '.VERSION.')');
52-
@ini_set('default_socket_timeout', 5);
53-
if ($fp = @fopen('https://www.phplist.com/files/LATESTVERSION', 'r')) {
54-
$latestversion = fgets($fp);
55-
$latestversion = preg_replace("/[^\.\d]/", '', $latestversion);
56-
@fclose($fp);
57-
if (!versionCompare($thisversion, $latestversion)) {
58-
//# remember this, so we can remind about the update, without the need to check the phplist site
59-
//# hmmm, this causes it to be "stuck" on the last version checked
60-
SaveConfig('updateavailable', $latestversion, 0, true);
61-
$showUpdateAvail = true;
62-
}
63-
}
64-
SaveConfig('updatelastcheck', date('Y-m-d H:i:s', time()), 0, true);
65-
}
66-
}
67-
68-
if ($showUpdateAvail) {
69-
echo '<div class="newversion note">';
70-
echo s('A new version of phpList is available!');
71-
echo '<br/>';
72-
echo '<br/>'.s('The new version may have fixed security issues,<br/>so it is recommended to upgrade as soon as possible');
73-
echo '<br/>'.s('Your version').': <b>'.$thisversion.'</b>';
74-
echo '<br/>'.s('Latest version').': <b>'.$latestversion.'</b><br/> ';
75-
echo '<a href="https://www.phplist.com/latestchanges?utm_source=pl'.$thisversion.'&amp;utm_medium=updatenews&amp;utm_campaign=phpList" title="'.s('Read what has changed in the new version').'" target="_blank">'.$GLOBALS['I18N']->get('View what has changed').'</a>&nbsp;&nbsp;';
76-
echo '<a href="https://www.phplist.com/download?utm_source=pl'.$thisversion.'&amp;utm_medium=updatedownload&amp;utm_campaign=phpList" title="'.s('Download the new version').'" target="_blank">'.$GLOBALS['I18N']->get('Download').'</a></div>';
77-
}
78-
7932
echo '<div class="accordion">';
8033

8134
$some = 0;

public_html/lists/admin/initialise.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ function output($message)
182182
output( s('Setting default configuration').'<br/>');
183183
// mark the database to be our current version
184184
SaveConfig('version', VERSION, 0);
185-
// mark now to be the last time we checked for an update
186-
SaveConfig('updatelastcheck', date('Y-m-d H:i:s', time()), 0, true);
187185
SaveConfig('admin_address', $adminemail, 1);
188186
SaveConfig('message_from_name', strip_tags($_REQUEST['adminname']), 1);
189187
SaveConfig('campaignfrom_default', "$adminemail ".strip_tags($_REQUEST['adminname']));

public_html/lists/admin/upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function output($message)
390390
SaveConfig('releaseDBversion', RELEASEDATE, 0);
391391
}
392392
// mark now to be the last time we checked for an update
393-
SaveConfig('updatelastcheck', date('Y-m-d H:i:s', time()), 0, true);
393+
SaveConfig('lastcheckupdate', date('m/d/Y h:i:s', time()), 0, true);
394394
//# also clear any possible value for "updateavailable"
395395
Sql_Query(sprintf('delete from %s where item = "updateavailable"', $tables['config']));
396396

0 commit comments

Comments
 (0)