????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.107 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/customerzon/ |
Upload File : |
<?php
session_start();
$_SESSION['listoffiles'] = ""; // For setting the uploaded files only!
$_SESSION['file_time'] = time();
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("vpa");
$ProjectId = $_GET['projectId'];
$CompanyId = $_SESSION['ASTACUS_SSO_INFO'][4];
$UserGroupId = $_SESSION['ASTACUS_SSO_INFO'][3];
if($UserGroupId == 2 || $UserGroupId == 7 || $UserGroupId == 8 || $UserGroupId == 10 ){
$sql = "SELECT * FROM Project, ProjectStatus WHERE Project.ProjectStatusId = ProjectStatus.ProjectStatusId and ProjectId = $ProjectId";
}else{
$sql = "SELECT * FROM Project, ProjectStatus WHERE Project.ProjectStatusId = ProjectStatus.ProjectStatusId and ProjectId = $ProjectId and CompanyId = $CompanyId";
}
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$CompanyId = $row['CompanyId'];
$ProjectName = $row['Name'];
$Description = $row['Description'];
$RequestedDeliveryDate = $row['RequestedDeliveryDate'];
$ProjectStatusId = $row['ProjectStatusId'];
}
if($ProjectName == "" && $ProjectStatusId == "" && ($UserGroupId != 2 && $UserGroupId != 8 && $UserGroupId != 10 )){
$CompanyId = "";
$ProjectId = "";
echo("<center><h1>Kunde inte hitta detta ProjektID till ditt konto!</h1></center>");
exit;
}
$Email = $_SESSION['ASTACUS_SSO_INFO'][5];
$Company = $_SESSION['ASTACUS_SSO_INFO'][10];
?>
<link href="../main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style6 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
<link rel="stylesheet" href="universal/style.css">
<!-- Examples css file -->
<link href="universal/styles.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="universal/universaluploader.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi">
</script>
<script type="text/javascript">
google.load("language", "1");
var s;
function initialize() {
var text = document.getElementById("text").value;
google.language.detect(text, function(result) {
if (!result.error && result.language) {
google.language.translate(text, result.language, "en",
function(result) {
var translated = document.getElementById("translation");
if (result.translation) {
translated.value = result.translation;
}
});
}
});
s=setTimeout("initialize()",1000);
}
google.setOnLoadCallback(initialize);
</script>
<table width="850" height="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/tabb2.jpg"><table width="850" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5" height="23"> </td>
<td width="111" valign="bottom" class="blacklink"><div align="center"><a href="?page=project&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a60);?></a></div></td>
<td width="22" valign="bottom" class="blacklink"><div align="center"></div></td>
<td width="106" valign="bottom" class="blacklink"><div align="center"><a href="?page=upload&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a50);?></a></div></td>
<td width="18" valign="bottom" class="blacklink"><div align="center"></div></td>
<td width="107" valign="bottom" class="blacklink"><div align="center"><a href="?page=download&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a49);?></a></div></td>
<td width="22" class="blacklink"> </td>
<td width="103" valign="bottom" class="blacklink"><div align="center"><a href="?page=logg&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a61);?></a></div></td>
<td width="21" class="blacklink"> </td>
<td width="104" valign="bottom" class="blacklink"><div align="center"><a href="?page=settings&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a62);?></a></div></td>
<td width="138" class="blacklink"> </td>
<td width="23" class="blacklink"> </td>
<td width="70" class="blacklink"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="90"> </td>
<td width="820"><table width="820" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" valign="top"><table width="821" border="0" cellpadding="0" cellspacing="0">
<tr >
<td colspan="4" valign="top" class="text"><span class="heading1"><?php echo($a50);?></span>
<table width="397" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="398"><span class="heading2"><?php echo($a63);?><?php echo($CompanyId);?>_<?php echo($ProjectName);?> (<?php echo($ProjectId);?>)</span> <br>
</td>
<td width="57"><div align="right"><span class="textthin"><br>
</span> </div></td>
</tr>
</table></td>
<td width="357" valign="top" class="textthin"><div align="right"><span class="heading1"><a href="?page=upload&projectId=<?php echo($ProjectId);?>"><img src="../images/Back-Arrow.jpg" width="37" height="36" border="0" align="absmiddle"></a> <a href="?page=upload&projectId=<?php echo($ProjectId);?>" class="blacklinkhuge"><?php echo($a93);?></a></span></div></td>
</tr>
</table> <br>
<hr width="820" size="1">
<span class="heading2"><br>
</span>
<table width="820" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="725" height="677" valign="top"><p><span class="heading2"><span class="text">Upload files to path <?php echo($_GET['path']);?></span></span></p>
<p><br />
<!-- PlaceHolder for UniversalUploader User Interface. Existing content will not be removed.
UniversalUpload will append own content to the end of this div-->
</p>
<div id="universalUploader_holder" >
<noscript>
<br/>
<form id="myform" name="myform" action="url to file processing script" method="post" enctype="multipart/form-data">
<input name="Filedata" type="file" />
<br />
<input type="submit" value="Upload" />
</form>
</noscript>
</div>
<!-- Initialization of UniversalUploader object -->
<script type="text/javascript">
universalUploader.init({
//Your serialNumber
serialNumber: "0081141102825226316027322442225716924771310192",
//List of uploaders to render
uploaders: "drag-and-drop, flash, silverlight, java, classic",
//First of correctly initialized uploader will be rendered
singleUploader : false,
fileFilter_ignoreFolders : true,
//Id of html element where universalUploader should be rendered
//If not set, document body used
holder: "universalUploader_holder",
//Enable thumbnails view
fileView: "thumbnails",
thumbnailView_width: 120,
thumbnailView_height: 120,
width:"100%",
height:"400",
//Url to the swf file
flash_swfUrl : "universal/uploaders/ElementITMultiPowUpload.swf",
//Url to the xap file
silverlight_xapUrl : "universal/uploaders/UltimateUploader.xap",
//url to folder with jar files
java_libPath : "universal/uploaders/java/",
//Path to the folder with images (status icons, remove icon) By default images subfolder is used (relative to the html page base path)
//In these examples we place icons inside universal/images subfolder.
imagesPath : "universal/images/",
//Url to the file processing script
url: "DirUploadKund.php?projectId=<?php echo($ProjectId);?>&customerId=<?php echo($CompanyId);?>&path=<?php echo($_GET['path'])?>"
});
//File upload complete
universalUploader.bindEventListener("UploadComplete", function (uploaderId, file){
//var responselable = document.getElementById("serverresponse");
//if(file.serverResponse) responselable.innerHTML += "<strong>" + file.serverResponse + "</strong>";
//addlogg.php?type=files&ProjectId=<?php echo($ProjectId);?>&path=<?php echo($_GET['path'])?>
alert("DIE");
document.location = "?page=upload&projectId=<?php echo($ProjectId);?>&companyId=<?php echo($CompanyId);?>&path=<?php echo($_GET['path'])?>&uploaded=true";
});
//File upload error handler
universalUploader.bindEventListener("FileUploadError", function (uploaderId, file, status, msg){
var responselable = document.getElementById("serverresponse");
responselable.innerHTML += "File Upload error "+file.name+" status "+status+" message "+msg;
});
universalUploader.bindEventListener("Init", function (inited){
if(!inited)
alert("UniversalUploader failed to init!");
});
</script>
<a href="?page=upload&projectId=<?php echo($ProjectId);?>&companyId=<?php echo($CompanyId);?>&path=<?php echo($_GET['path'])?>&uploaded=true">Go back to files </a>
</p>
<p></p>
<p><span class="heading2"></span></p>
<p><span class="heading2"><br>
</span><span class="heading2"> </span> </p></td>
<td width="16"> </td>
<td width="79" valign="top"> </td>
</tr>
</table>
<span class="style6"><br>
</span>
<hr width="820" size="1">
<span class="style6"> </span></td>
</tr>
</table>
</td>
<td width="90"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>