<?php

require_once "../classes/database.class.php";
require_once "../classes/common.class.php";
session_start();
$con = new Database();
$page = new page("Create new branch");
if (!isset($_SESSION['uname']) || $_SESSION['uname'] != $_SESSION['projectName']) {
    header("location:/views/loginwrong.html");
}
$con->messageDump();
$con->close();
echo "\n\t<h2>Branching {$_SESSION['projectName']}</h2>\n\t<h3>Branch point {$_SESSION['version']}</h3>\n\tBranching switches the current version into a previous version and<br>\n\tfurther development will be made to that version.However there is<br>\n\talways an option to go back to the previous branch.<br>\n\t<form action=/controllers/gitCommands/branch.php method=post>\n\t<div style=top:250;left:50;position:absolute>\n\t\t<h3>Please Enter a Branch Name</h3>\n\t\t<input type=text name=branch><br><br>\n\t\t<input type=hidden name=version value={$_SESSION['version']}>\n\t\t<input type=submit value='Create Branch'>\n\t</div>\n\t</form>\n\t</body>\n\t</html>\n\t";
?>