mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Proper Oauth for Google Home
This commit is contained in:
1 parent
1af11f3f58
commit
fef3c1e57f
15 files changed
+403
-421
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php
|
||||
$partial = new Partial('head');
|
||||
$partial->prepare('baseDir',$BASEDIR);
|
||||
$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');
|
||||
$partial->render();
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user