Skip to content

Commit

Permalink
Small Fixes
Browse files Browse the repository at this point in the history
updates
  • Loading branch information
(retsu8)Wiliam Paddock committed Jul 14, 2016
1 parent 026b440 commit 18f76ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 9 additions & 4 deletions autolog.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
$nid= arg(1);
$node = node_load($nid);
session_start();
<?php
$cookie_name = "user";
$cookie_value = "John Doe";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
?>
<form id="myform" name="admlogin" method="post" action="https://smartscan.controlscan.com/security/login" >
<input type="hidden" value="process" name="a">
Expand All @@ -17,8 +20,10 @@
<input class="button ssaq_button" type="Submit" value="Login to PCI ControlScan">
</div>
</form>
<?php
if(isset($_POST['remember_me'])){
$_SESSION["password"] = "password";
<?php if(!isset($_COOKIE[$cookie_name])) {
echo "Cookie named '" . $cookie_name . "' is not set!";
} else {
echo "Cookie '" . $cookie_name . "' is set!<br>";
echo "Value is: " . $_COOKIE[$cookie_name];
}
?>
4 changes: 1 addition & 3 deletions ocdlogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
$node = node_load($nid);
$user_mid = $node->field_portfolio_manager_username['und'][0]['value'];
?>
<center>
<a href="http://54.186.135.80:8000/mid/<?php echo $user_mid ?>">Click for graph</a>
</center>
<a href="http://54.186.135.80:8000/mid/<?php echo $user_mid ?>" target="_blank">Click for graph</a>

0 comments on commit 18f76ae

Please sign in to comment.