eisen-dev/eisen_front

View on GitHub
webd/template.php

Summary

Maintainability
A
40 mins
Test Coverage
Similar blocks of code found in 2 locations. Consider refactoring.
<?php
/**
* Eisen Frontend
* http://eisen-dev.github.io
*
* Copyright (c) 2016 Alice Ferrazzi <alice.ferrazzi@gmail.com> - Takuma Muramatsu <t.muramatu59@gmail.com>
* Dual licensed under the MIT or GPL Version 3 licenses or later.
* http://eisen-dev.github.io/License.md
*
*/
 
require_once __DIR__ . '/locale.php'; ?>
<!DOCTYPE html>
<html lang="ja">
<head>
<title><?php echo _('template'); ?></title>
<?php
require_once __DIR__ .'/parts/head.php';
?>
</head>
<?php
require_once __DIR__ . '/connect.php';
require_once __DIR__ . '/locale.php';
$dbc = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
?>
 
<body>
<div class="wrapper">
<?php require_once __DIR__ .'/parts/navigation.php'; ?>
<div class="contentswrapper menu-set">
<main class="contents">
<div class="section">
<h2>γƒ†γƒ³γƒ—γƒ¬γƒΌγƒˆ</h2>
</div>
</main>
</div>
</div>
<?php require_once __DIR__ .'/parts/scripts.php'; ?>
</body>
</html>