????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.25 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/digitaliseringstrappan.astacus.se/ |
Upload File : |
<?php
session_start();
if($_SESSION['DIGTRAPP_LOGIN'][0] == ""){
header("location: index.php");
}
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("fi2xml_tool");
$sql = "SELECT * FROM tblLicenses WHERE id = '".$_SESSION['DIGTRAPP_LOGIN'][0]."'";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$SystemUserId = $row['id'];
$Admin = $row['Admin'];
$CompanyId = $row['CompanyId'];
$Username = $row['Username'];
$Company = $row['Company'];
$GUID = $row['GUID'];
$Expirydate = $row['Expirydate'];
if($row['Active'] == "1"){
$Active_text = "Aktiv";
} else{
$Active_text = "Ej aktiv";
}
}
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Konto - Webbportal</title>
<link rel="stylesheet" href="styles.css">
<script>
function order_license(){
var GUID = "<?php echo( $GUID );?>";
if(GUID == ""){
location.href = "order_license.php";
}else{
alert("Du har redan en licens. Kontakta support om du behöver hjälp!");
}
}
function update_password(){
if(document.getElementById("password1").value == document.getElementById("password2").value && document.getElementById("password1").value != "Astacus"){
location.href = "change_password.php?password="+document.getElementById("password1").value;
} else{
alert("Lösenorden stämmer inte överens!");
}
}
</script>
<?php
if($_GET['message'] != ""){
echo("<script>alert('".$_GET['message']."');</script>");
}
?>
</head>
<body>
<!-- Sidebar Menu -->
<aside id="sidebar"><br>
ASTACUS TOOLBOX<br>
<hr>
<nav>
<ul>
<li><a href="konto.php"><img src="images/konto.png" width="15" height="15" alt="" class="center"/> Konto / Licens</a></li>
<?php if($Admin == "1"){?>
<li><a href="admin.php"><img src="images/admin.png" width="15" height="15" alt="" class="center"/> Administration</a></li>
<?php }?>
<li><a href="download.php"><img src="images/download.png" width="15" height="15" alt="" class="center"/> Nedladdning</a></li>
<li><a href="support.php"><img src="images/support.png" width="15" height="15" alt="" class="center"/> Support</a></li>
</ul>
<br>
<hr>
<ul>
<li><a href="index.php?logout=true">Logga ut</a></li>
</ul>
</nav>
<nav>
</nav>
</aside>
<!-- User Account Section -->
<main>
<section id="account-section">
<h2>Ditt konto<br>
</h2>
Företag/Org:
<?php echo($Company);?><br>
Namn: <span id="user-name"><?php echo($Username);?></span><br>
<br>
Licens giltig till: <?php echo($Expirydate);?>
<br>Licensstatus: <?php echo($Active_text);?><br>
<br>
<table width="974" border="0">
<tbody>
<tr>
<th width="145" align="left" scope="col">Licensnyckel: </th>
<th width="819" align="left" scope="col"><input type="text" size="60" name="licensecode" id="licensecode" value="<?php echo($GUID);?>" readonly>
<button id="order-license2" onclick="order_license();">Beställ Licens</button> </th>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left">Lösenord: </td>
<td align="left"><input type="password" size="25" name="password1" id="password1" value="Astacus"></td>
</tr>
<tr>
<td align="left">Lösenord: </td>
<td align="left"><input type="password" size="25" name="password2" id="password2" value="Astacus"></td>
</tr>
</tbody>
</table>
<p>
<button id="order-license" onclick="update_password();"> Uppdatera lösenord</button>
</p>
</section>
</main>
</body>
</html>