author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-02 23:56:18 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-02 23:56:18 (UTC) |
commit | ef68436ac04da078ffdcacd7e1f785473a303d45 (patch) (unidiff) | |
tree | c403752d66a2c4775f00affd4fa8431b29c5b68c /backend/php/src/setup/setup_library/authentication.php | |
parent | 597ecfbc0249d83e1b856cbd558340c01237a360 (diff) | |
download | clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.zip clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.gz clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.bz2 |
First version of the newly restructured repository
Diffstat (limited to 'backend/php/src/setup/setup_library/authentication.php') (more/less context) (ignore whitespace changes)
-rw-r--r-- | backend/php/src/setup/setup_library/authentication.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/backend/php/src/setup/setup_library/authentication.php b/backend/php/src/setup/setup_library/authentication.php new file mode 100644 index 0000000..6a6954a --- a/dev/null +++ b/backend/php/src/setup/setup_library/authentication.php | |||
@@ -0,0 +1,30 @@ | |||
1 | <?php | ||
2 | if (sizeof($_POST) > 0 && $GLOBALS['configuration']['setup_password'] != "" && (!isset($_SESSION['authenticated']) || !$_SESSION['authenticated'])) | ||
3 | { | ||
4 | if ($_POST['setup_password'] == $GLOBALS['configuration']['setup_password']) | ||
5 | { | ||
6 | $_SESSION['authenticated'] = true; | ||
7 | } | ||
8 | $_POST = null; | ||
9 | } | ||
10 | if ((!isset($_SESSION['authenticated']) || !$_SESSION['authenticated']) && $GLOBALS['configuration']['setup_password'] != "") | ||
11 | { | ||
12 | ?> | ||
13 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
14 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
15 | <head> | ||
16 | <title>Php Object Generator Setup <?=$GLOBALS['configuration']['versionNumber'].$GLOBALS['configuration']['revisionNumber']?></title> | ||
17 | <link rel="stylesheet" href="./setup.css" type="text/css" /> | ||
18 | <link rel="stylesheet" type="text/css" href="./setup_library/xPandMenu.css"/> | ||
19 | <div align="center"> | ||
20 | <form action="./index.php" method="POST"><br/> | ||
21 | <img src="setup_images/mini_pog.jpg"/><br/><br/> | ||
22 | <input name="setup_password" type="password" class="i"/> | ||
23 | <br/><br/><input type="image" src="setup_images/generate.jpg" name="submit"/> | ||
24 | </form> | ||
25 | </div> | ||
26 | </html> | ||
27 | <?php | ||
28 | exit; | ||
29 | } | ||
30 | ?> \ No newline at end of file | ||