Skip to content

Commit d1b1f97

Browse files
committed
Move display_error_block() to footer.html
1 parent e16e922 commit d1b1f97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+78
-224
lines changed

web/inc/main.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -268,36 +268,6 @@ function send_email($to,$subject,$mailtext,$from) {
268268
mail($to, $subject, $message, $header);
269269
}
270270

271-
function display_error_block() {
272-
if (!empty($_SESSION['error_msg'])) {
273-
echo '
274-
<div>
275-
<script type="text/javascript">
276-
$(function() {
277-
$( "#dialog:ui-dialog" ).dialog( "destroy" );
278-
$( "#dialog-message" ).dialog({
279-
modal: true,
280-
buttons: {
281-
Ok: function() {
282-
$( this ).dialog( "close" );
283-
}
284-
},
285-
create:function () {
286-
$(this).closest(".ui-dialog")
287-
.find(".ui-button:first")
288-
.addClass("submit");
289-
}
290-
});
291-
});
292-
</script>
293-
<div id="dialog-message" title="">
294-
<p>'. htmlentities($_SESSION['error_msg']) .'</p>
295-
</div>
296-
</div>'."\n";
297-
unset($_SESSION['error_msg']);
298-
}
299-
}
300-
301271
function list_timezones() {
302272
$tz = new DateTimeZone('HAST');
303273
$timezone_offsets['HAST'] = $tz->getOffset(new DateTime);

web/list/user/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
}
1414
$data = json_decode(implode('', $output), true);
1515
$data = array_reverse($data,true);
16-
display_error_block();
1716

1817
// Render page
1918
render_page($user, $TAB, '*/list_user');

web/templates/admin/add_cron.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>
@@ -438,4 +436,4 @@
438436
</tr>
439437
</table>
440438
</form>
441-
</div>
439+
</div>

web/templates/admin/add_db.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_dns.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_dns_rec.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_firewall.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_firewall_banlist.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_ip.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>

web/templates/admin/add_mail.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
}
1313
?>
1414
</div>
15-
1615
</div>
17-
<? display_error_block() ?>
1816
</div>
1917

2018
<div class="l-separator"></div>
@@ -81,4 +79,4 @@
8179
</tr>
8280
</table>
8381
</form>
84-
</div>
82+
</div>

0 commit comments

Comments
 (0)