Drupal: update.php themization
Solution
Attention: the text should use utf-8 encoding
- Open update.php file (in site root)
- Replace update_access_denied_page() function:
- Drupal 5 (line 575)
- Drupal 6 (line 385)
with this code:
function update_access_denied_page() {
drupal_set_title(‘Access denied | example.com’);
?>
<head>
<meta http-equiv=”Refresh” content=”10;url=http://example.com/user”>
<style type=”text/css” media=”all”>@import “http://example.com/sites/all/themes/garland/maintenance.css”;</style>
<link rel=”Shortcut Icon” type=”image/x-icon” href=”http://example.com/files/favicon.ico” />
</head>
<div id=”message-box”>
<h2>403 – Access denied</h2>
<div id=”message”>You have no permissions to view this page. Maybe your authorization is failed. You will be able to <a href=”http://example.com/user”>introduce to the system</a> in 10 seconds</div>
</div>
<div><img src=”http://example.com/sites/all/themes/garland/logo.png” alt=”Drupal Logo” id=”drupal-logo” /></div>
<?php
}
Attention! Replace:
- “example.com” – with address of your site
- “garland” – with theme of your site