mirror of
https://github.com/pgmr3/synologySsoClientExamplePage.git
synced 2025-12-13 13:35:49 +01:00
first commit
This commit is contained in:
15
phpsysinfo-main/README.md
Normal file
15
phpsysinfo-main/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
phpSysInfo
|
||||
==============
|
||||
|
||||
* Copyright (c), 1999-2008, Uriah Welcome ([sf.net/users/precision](https://sf.net/users/precision))
|
||||
* Copyright (c), 1999-2009, Michael Cramer ([github.com/bigmichi1](https://github.com/bigmichi1), [sf.net/users/bigmichi1](https://sf.net/users/bigmichi1))
|
||||
* Copyright (c), 2007-2008, Audun Larsen ([sf.net/users/xqus](https://sf.net/users/xqus))
|
||||
* Copyright (c), 2007-2015, Erkan Valentin ([github.com/rk4an](https://github.com/rk4an), [sf.net/users/jacky672](https://sf.net/users/jacky672))
|
||||
* Copyright (c), 2009-2023, Mieczyslaw Nalewaj ([github.com/namiltd](https://github.com/namiltd), [sf.net/users/namiltd](https://sf.net/users/namiltd))
|
||||
* Copyright (c), 2010-2012, Damien Roth ([sf.net/users/iysaak](https://sf.net/users/iysaak))
|
||||
|
||||
|
||||
Loding from
|
||||
------------
|
||||
https://github.com/phpsysinfo/phpsysinfo
|
||||
|
||||
62
phpsysinfo-main/index.php
Normal file
62
phpsysinfo-main/index.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
// ------------------------------------------------------------------------------
|
||||
//
|
||||
// © Copyright (с) 2023 License: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
// Author: Rhttps://github.com/pgmr3
|
||||
// ------------------------------------------------------------------------------
|
||||
// additional code for authorization check/automatic logout
|
||||
include_once('../check_accesstoken.php');
|
||||
if(session_status() !== PHP_SESSION_ACTIVE) $name_vorher = session_name (SESSION_NAME); //"ServerTools");
|
||||
session_start();
|
||||
if (!CheckAccesstoken() === "true") {
|
||||
echo "Verboten / Forbidden";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<body>
|
||||
<div id="session-lifetime" >loading ...</div>
|
||||
</body>
|
||||
<script src="../js/myLoginScript.js" type="text/javascript"></script>
|
||||
<script>
|
||||
window.setInterval(function () { fetchAccess(); },
|
||||
1000); //milliseconds
|
||||
</script>
|
||||
|
||||
|
||||
<?php
|
||||
// original code from
|
||||
// https://github.com/phpsysinfo/phpsysinfo
|
||||
|
||||
//copy the complete code from phpsysinfo into this directory. Then copy the first 24 lines of this file into the file index.php
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phpsysinfo</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="https://github.com/pgmr3">
|
||||
<meta name="copyright" content="https://www.gnu.org/licenses/gpl-3.0.html" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="form-signin">
|
||||
<h1 class="form-signin-heading">phpsysinfo</h1>
|
||||
<h2 class="form-signin-heading" >your choice: back/home/menu</h2>
|
||||
<INPUT TYPE="button" VALUE="back" onClick="history.go(-1);">
|
||||
<button id="home-button" onclick="window.location.href = '/'" >home</button>
|
||||
<button id="menu-button" onclick="window.location.href = '/my/'" >menu</button>
|
||||
<br\>
|
||||
<br\>
|
||||
<div id="demo" >To see the original output of the phpsysinfo project here. <br\></div>
|
||||
<div> original code from: <br\></div>
|
||||
<div> <a href="https://github.com/phpsysinfo/phpsysinfo">https://github.com/phpsysinfo/phpsysinfo </a><br\></div>
|
||||
<div> copy the complete code from phpsysinfo into this directory. Then copy the first 24 lines of this file into the file index.php <br\> </div>
|
||||
<br\>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user