PHP_SMART_HOME_V3/app/views/templates/oauth.phtml

36 lines
787 B
PHTML
Raw Normal View History

2020-05-16 23:27:06 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<?php
$partial = new Partial('head');
$partial->prepare('baseDir',$BASEDIR);
$partial->prepare('baseUrl',$BASEURL);
2020-05-16 23:27:06 +00:00
$partial->render();
?>
<title><?php echo $TITLE ?></title>
</head>
<body class="no-transitions">
<?php
if (isset($ota) && $ota != '') {
$partial = new Partial('oauthLoginOta');
$partial->prepare('ota',$ota);
$partial->render();
} else {
$partial = new Partial('oauthLoginForm');
$partial->prepare('responseType',$RESPONSETYPE);
$partial->prepare('redirectUrl',$REDIRECTURL);
$partial->prepare('clientId',$CLIENTID);
$partial->prepare('state',$STATE);
$partial->render();
}
?>
<?php
$partial = new Partial('footer');
2020-06-26 14:58:08 +00:00
$partial->prepare('baseDir', BASEDIR);
2020-05-16 23:27:06 +00:00
$partial->render();
?>
</body>
</html>