mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
LAN Fix, Notice removal and stats trigger.
This commit is contained in:
parent
34f96ff932
commit
abe3b355d4
@ -246,7 +246,7 @@ class e107Update
|
||||
{
|
||||
if(!$list = e107::getPlugin()->updateRequired())
|
||||
{
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
$frm = e107::getForm();
|
||||
@ -1961,5 +1961,18 @@ function convert_serialized($serializedData, $type='')
|
||||
return $data;
|
||||
}
|
||||
|
||||
function theme_foot()
|
||||
{
|
||||
global $pref;
|
||||
|
||||
if(!empty($_POST['update_core']['706_to_800']))
|
||||
{
|
||||
$data = array('name'=>SITENAME, 'theme'=>$pref['sitetheme'], 'language'=>e_LANGUAGE, 'url'=>SITEURL, 'type'=>'upgrade');
|
||||
$base = base64_encode(http_build_query($data, null, '&'));
|
||||
$url = "https://e107.org/e-install/".$base;
|
||||
return "<img src='".$url."' style='width:1px; height:1px;border:0' />";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -50,4 +50,6 @@ define("LAN_NEWS_463", "There are no news items for the specified category - ple
|
||||
define("LAN_NEWS_100", "On");
|
||||
define("LAN_NEWS_307", "Total posts in this category: ");
|
||||
|
||||
define("LAN_NEWS_308", "Perhaps you're looking for one of the news items below?");
|
||||
|
||||
?>
|
@ -1008,19 +1008,14 @@ class news_front
|
||||
}
|
||||
else
|
||||
{
|
||||
// $action = 'default';
|
||||
|
||||
//XXX item not found, redirect to avoid messing up search-engine data.
|
||||
// e107::getRedirect()->go(null, true, 404);
|
||||
header("HTTP/1.0 404 Not Found",true,404);
|
||||
require_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_error.php");
|
||||
$text = e107::getMessage()->setTitle(LAN_ERROR_7, E_MESSAGE_INFO)->addInfo("Perhaps you're looking for one of the news items below?")->render();
|
||||
$text = e107::getMessage()->setTitle(LAN_ERROR_7, E_MESSAGE_INFO)->addInfo(LAN_NEWS_308)->render(); // Perhaps you're looking for one of the news items below?
|
||||
|
||||
$this->action = 'all';
|
||||
// $defaultUrl = e107::getUrl()->create('news/list/items');
|
||||
$text .= $this->renderListTemplate();
|
||||
|
||||
|
||||
return $text;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user