Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802396
simple
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 8:00 PM
Size
4 KB
Mime Type
text/x-diff
Expires
Tue, Feb 25, 8:00 PM (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
574088
Attached To
rTSIM Themes.Simple
simple
View Options
Index: branches/1.3.x/maintenance.tpl
===================================================================
--- branches/1.3.x/maintenance.tpl (revision 15967)
+++ branches/1.3.x/maintenance.tpl (revision 15968)
@@ -1,166 +1,166 @@
<!--##
<NAME>Maintenance Mode</NAME>
<DESC></DESC>
<SECTION></SECTION>
##-->
<inp2:m_NoDebug/>
<inp2:m_DefineElement name="add_to_head">
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="refresh" content="120; url=<inp2:m_if check='m_Get' name='next_template'><inp2:m_Get name='next_template'/><inp2:m_else/><inp2:m_Link template='index' m_cat_id='0'/></inp2:m_if>">
<script type="text/javascript">
var a_parent = window.parent,
to_close = new Array (),
$modal_windows = <inp2:m_if check="adm_UsePopups" mode="modal">true<inp2:m_else/>false</inp2:m_if>;
function getFrame($name) {
var $main_window = window;
// 1. cycle through popups to get main window
try {
// will be error, when other site is opened in parent window
var $i = 0;
var $opener;
do {
if ( $i == 10 ) {
break;
}
// get popup opener
$opener = $main_window.opener;
if ( !$opener ) {
// when no opener found, then try parent window
$opener = $main_window.parent;
}
if ( $opener ) {
$main_window = $opener;
}
$i++;
} while ($opener);
}
catch (err) {
// catch Access/Permission Denied error
return window;
}
var $frameset = $main_window.parent.frames;
for ($i = 0; $i < $frameset.length; $i++) {
if ( $frameset[$i].name == $name ) {
return $frameset[$i];
}
}
return $main_window.parent;
}
function getWindowOpener($window) {
// use this instead of "window.opener"
if ( !$modal_windows ) {
return $window.opener;
}
if ( $window.name == 'main' || $window.name == 'main_frame' ) {
return null;
}
return getFrame('main').TB.findWindow($window.name, -1);
}
function redirect() {
var $main_frame = getFrame('main');
a_parent = window;
try {
var i = 0;
while (i < 10) {
i++;
var $opener = $main_frame.getWindowOpener(a_parent);
if ( $opener ) {
to_close.push(a_parent);
a_parent = $opener;
continue;
}
if ( a_parent.name == 'main_frame' ) {
break;
}
if ( a_parent.parent && a_parent.parent.name != a_parent.name ) {
a_parent = a_parent.parent;
continue;
}
}
}
catch (err) {
// another website is opened in parent window
alert('Error while trying to access window opener: [' + err.message + ']');
i = 10;
}
if ( i < 10 ) {
setTimeout(close_windows, 100);
}
}
function window_close($close_callback) {
// use this instead of "window.close();"
if ( !$modal_windows ) {
if ( $.isFunction($close_callback) ) {
// use close callback, because iframe will be removed later in this method
$close_callback();
}
window.close();
return;
}
if ( window.name == 'main' ) {
return;
}
if ( $close_callback !== undefined ) {
return getFrame('main').TB.remove(null, $close_callback);
}
return getFrame('main').TB.remove();
}
function close_windows() {
- page = '<inp2:m_Link template="login" js_escape="1" no_amp="1" index_file="admin/index.php" __NO_REWRITE__="1" m_cat_id="0" m_wid=""/>';
+ page = '<inp2:m_Link template="login" index_file="admin/index.php" __NO_REWRITE__="1" m_cat_id="0" m_wid="" no_amp="1" js_escape="1"/>';
a_parent.location.href = page;
for (var c = (to_close.length - 1); c >= 0; c--) {
window_close(to_close[c]);
}
}
if ( window.top.frames.length > 0 ) {
redirect();
}
</script>
</inp2:m_DefineElement>
<!--## DEFINE MAIN CONTENT ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-element">
<div id="block-latest" class="block">
<div class="round-top"></div>
<div class="content">
<h1 class="movable-header"><inp2:m_Phrase name="lu_title_MaintenanceMode"/></h1>
<inp2:m_GetConfig name="MaintenanceMessageFront"/>
</div>
<div class="round-bottom"></div>
</div>
</div>
</inp2:m_DefineElement>
<!--## /DEFINE MAIN CONTENT ELEMENT ##-->
<inp2:m_include template="designs/default_design.des" pass_params="1"/>
Event Timeline
Log In to Comment