Skip to content

Commit

Permalink
change to PHP files Configuration format
Browse files Browse the repository at this point in the history
  • Loading branch information
id4ehsan committed Apr 17, 2018
1 parent 77d4b95 commit 4db5d9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions Server/cfg.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
#cfg
$CONFIG['KEY'] = 'VAhUf2ZcvEmbtT1Y';
?>
// config/config.php

$config = [
'cryptography' => [
'key' => 'VAhUf2ZcvEmbtT1Y',
]

];
4 changes: 2 additions & 2 deletions Server/http.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
#http
require_once('lib.php');
$key = $CONFIG['KEY'];
LogLine(2,"Key: {$CONFIG['KEY']}");
$key = $config['cryptography']['key'];
LogLine(2,"Key: {$config['cryptography']['key']}");
$td = OpenCryptModule($key);
LogLine(2,"Cript: $td ");
$inputHandle = OpenRawIO($td, 'php://input', 'r', null);
Expand Down
4 changes: 2 additions & 2 deletions Server/https.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
#https
require_once('lib.php');
$key = $CONFIG['KEY'];
LogLine(2,"Key: {$CONFIG['KEY']}");
$key = $config['cryptography']['key'];
LogLine(2,"Key: {$config['cryptography']['key']}");
$td = OpenCryptModule($key);
LogLine(2,"Cript: $td ");
$inputHandle = OpenRawIO($td, 'php://input', 'r', null);
Expand Down

0 comments on commit 4db5d9d

Please sign in to comment.