- if ($node_system_access=='crypto') {
-
- require(SYSTEM_ROOT.'/inc/crypto.inc');
-
- if ($_SESSION['crypto'][$node_parent]) {
- $key=$_SESSION['crypto'][$node_parent];
- }
- else {
- $key = substr(md5(uniqid(rand(), true)),0,8);
- }
-
- $node_content=crypto::crypto($node_content,$key);
-
-
- //setting generated crypto password for viewing
- if ($node_system_access=='crypto') {
- $_SESSION['crypto'][$id]=$key;
- }
-
- }
-