Skip to content

Commit

Permalink
Dropped header_http.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Jun 11, 2012
1 parent ada9c98 commit afb5600
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 38 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


// start output
require 'libraries/header_http.inc.php';
PMA_Header::sendHttpHeaders();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Expand Down
2 changes: 1 addition & 1 deletion libraries/Header.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ public function sendHttpHeaders()
header("X-Content-Security-Policy: allow 'self'; options inline-script eval-script; frame-ancestors 'self'; img-src 'self' data:; script-src 'self' http://www.phpmyadmin.net");
header("X-WebKit-CSP: allow 'self' http://www.phpmyadmin.net; options inline-script eval-script");
}
PMA_noCacheHeader();
if (! defined('IS_TRANSFORMATION_WRAPPER')) {
// Define the charset to be used
header('Content-Type: text/html; charset=utf-8');
}
PMA_no_cache_header();
}

private function _getHtmlStart()
Expand Down
33 changes: 0 additions & 33 deletions libraries/header_http.inc.php

This file was deleted.

3 changes: 1 addition & 2 deletions libraries/pmd_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
exit;
}

// not understand
require_once './libraries/header_http.inc.php';
PMA_Header::sendHttpHeaders();

$GLOBALS['PMD']['STYLE'] = 'default';

Expand Down
2 changes: 1 addition & 1 deletion setup/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$action_done = preg_replace('/[^a-z_]/', '', $action_done);

// send no-cache headers
require './libraries/header_http.inc.php';
PMA_Header::sendHttpHeaders();
?>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down

0 comments on commit afb5600

Please sign in to comment.