@ 2014-06-06T12:34:32Z <?php
session_start();
include("inc/include.php");
if(!isset($_SESSION['sess_id']))
{
header("Location: index");
exit;
}
$query = $config['mysql_connection']->prepare("SELECT SUM(`uSize`) FROM `uploads` WHERE `uUser` = ? AND `uRemoved` = 0");
$query->execute(array($_SESSION['sess_id']));
$used = $query->fetchColumn();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php echo $config['favicon']; ?>">
<title><?php echo $config['name']; ?></title>
<!-- Bootstrap -->
<link href="<?php echo $config['style'][0]; ?>" rel="stylesheet">
<link href="<?php echo $config['fa']; ?>" rel="stylesheet">
<link href="<?php echo $config['social']; ?>" rel="stylesheet">
<link href="css/quacco.css" rel="stylesheet">
<link href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css" rel="stylesheet">
<style>
#dropbox {
height: 116px;
text-align: center;
padding-top: 47px;
font-weight: bold;
letter-spacing: 1px;
}
.db-active {
background: #dd4814;
color: #ffffff;
box-shadow: 0px 0px 5px 6px #cccccc;
}
.preview {
border: 1px solid #CDCDCD;
width: 450px;
padding: 10px;
height:auto;
overflow: auto;
color: #4D4D4D;
float: left;
box-shadow:3px 3px 3px #888888;
border-radius: 2px;
}
.preview-image {
box-shadow: 3px 3px 3px #888888;
width: 70px;
height: 70px;
float: left;
margin-right: 10px;
}
.file-info {
height: 50px;
float: left;
width: auto;
margin-bottom: 10px;
border: 1px solid blue;
}
.file-info span {
margin: 3px 2px;
font-size: 12px;
float:left;
display: block;
min-width: 100px;
overflow: auto;
border: 1px solid red;
overflow: none;
}
.progress {
margin-bottom: 3px;
}
</style>
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="naaaav"><a href="dashboard" id="dashboard"><i class="fa fa-tachometer fa-fw fa-2x"></i><br />Dashboard</a></li>
<li class="naaaav"><a href="insights"><i class="fa fa-bar-chart-o fa-fw fa-2x"></i><br />Insights</a></li>
<li class="dropdown active">
<a href="#" class="dropdown-toggle naaaav" data-toggle="dropdown"><i class="fa fa-wrench fa-fw fa-2x"></i><br />Tools <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="files">Files</a></li>
<li><a href="compose">Compose</a></li>
<li><a href="shorten">Bit.ly</a></li>
<li><a href="cloud">Tag cloud</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle naaaav" data-toggle="dropdown"><i class="fa fa-user fa-fw fa-2x"></i><br /><b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-header">You</li>
<li><a href="profile">Profile</a></li>
<li><a href="add_service">Add services</a></li>
<li><a href="settings">Settings</a></li>
<li class="divider"></li>
<li><a href="pricing">Pricing & plans</a></li>
<li class="divider"></li>
<li><a href="help">Need help?</a></li>
<li><a href="privacy">Privacy</a></li>
<li><a href="developers">Developers</a></li>
<li class="divider"></li>
<li><a href="logout">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div id="page-wrapper">
<div class="row">
<div class="col-xs-12">
<h1 class="page-header">Your uploaded files<?php echo "<small id='used'> - " . round(($used/$_SESSION['sess_database']['uStorage'])*100, 0) . "% of " . formatSizeUnits($_SESSION['sess_database']['uStorage']) . " used</small>"; ?></h1>
</div>
</div>
<div class="row">
<div class="col-xs-8">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-list fa-fw"></i> Uploaded files</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="table">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Size</th>
<th>Format</th>
<th class="text-right">Uploaded</th>
<th></th>
</tr>
</thead>
<tbody id="all-files"></tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-xs-4">
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-upload fa-fw"></i> Upload files</div>
<div class="panel-body">
<?php
if($used > $_SESSION['sess_database']['uStorage']) echo '<p class="text-danger">Please upgrade to <strong>Premium</strong> if you wish to upload more than 50 MB!</p>';
?>
<input type="file" id="upload" multiple accept="image/*|audio/*" onchange="handleFiles(this.files)" />
<span>Browse and select OR drop files below</span>
<div id="dropbox" class="well">Drag and drop files here</div>
</div>
</div>
</div>
</div>
<?php if($_SESSION['sess_database']['uPremiumExpire'] == null || strtotime($_SESSION['sess_database']['uPremiumExpire']) < time()) { ?><div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-bullhorn fa-fw"></i> Sponsored content</div>
<div class="panel-body">
<?php if($_SESSION['sess_database']['uPremium'] == 0) { ?><div class="text-center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:inline-block;width:222px;height:90px" data-ad-client="ca-pub-2082821919865261" data-ad-slot="8981938589"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><?php } ?>
</div>
</div>
</div>
</div><?php } ?>
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-download fa-fw"></i> Import files</div>
<div class="panel-body">
<button type="button" class="btn btn-info btn-block btn-lg" onclick="$('#import_modal').modal()">Import files</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="import_modal" tabindex="-1" role="dialog" aria-labelledby="import_label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="import_label">Import my files</h4>
</div>
<div class="modal-body">
<a class="btn btn-block btn-social btn-dropbox" onclick="Dropbox.choose({success: function(files) {
$('#post-image-src').val(files[0].link).trigger('input');
$('#thumbnail-img').attr('src', files[0].thumbnailLink);
},linkType:'direct',multiselect:true,extensions:['images,audio']})">
<i class="fa fa-dropbox"></i> Choose from Dropbox
</a><br />
<a class="btn btn-block btn-social btn-box" onclick="box.launchPopup()">
<i class="fa fa-box"></i> Choose from Box
</a><br />
<input type="text" id="post-image-src" class="form-control" placeholder="Image source">
<div id="thumbnail" class="hidden">
<br />
<a href="" id="thumbnail-src" target="_blank" class="thumbnail">
<img src="" id="thumbnail-img" />
</a>
</div>
</div>
</div>
</div>
</div>
<iframe style="display:none" src="cache.php"></iframe>
<!-- JavaScript -->
<script src="<?php echo $config['jquery']; ?>"></script>
<script src="<?php echo $config['bootstrap']; ?>"></script>
<script src="<?php echo $config['quacco_js']; ?>"></script>
<script src="js/upload.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
<script src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="<?php echo $config['db_clientid']; ?>"></script>
<script src="https://app.box.com/js/static/select.js"></script>
<script>
var table, box = new BoxSelect({clientId: '<?php echo $config['box_clientid']; ?>',linkType: 'direct',multiselect: 'true'});
$("#all-files").load("ajax/files.php", function() {
table = $("#table").dataTable({
"aaSorting": [[0, "desc"]]
});
$("[data-toggle='tooltip']").tooltip();
});
box.success(function(response) {
console.log(response);
});
function deleteFile(fid)
{
if(confirm("Do you really want to delete this file?"))
{
$("#row-"+fid).hide();
$.ajax({
url: "api/remove_file",
type: "POST",
data: {
id: fid,
token: "<?php echo $_SESSION['sess_database']['uExternalToken']; ?>"
},
cache: false
});
$("#used").load("ajax/used.php");
}
}
</script>
</body>
</html>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.1.7 0.009 0.003 16.97 7.1.6 0.007 0.018 19.46 7.1.5 0.007 0.014 16.68 7.1.0 0.003 0.073 22.43 7.0.20 0.004 0.004 16.77 7.0.14 0.010 0.067 22.00 7.0.8 0.047 0.083 19.91 7.0.7 0.040 0.087 19.90 7.0.6 0.047 0.083 20.02 7.0.5 0.060 0.093 20.36 7.0.4 0.013 0.063 20.13 7.0.3 0.007 0.067 19.95 7.0.2 0.010 0.047 20.07 7.0.1 0.007 0.083 20.14 7.0.0 0.000 0.063 20.07 5.6.28 0.007 0.070 21.12 5.6.23 0.007 0.087 20.66 5.6.22 0.007 0.083 20.64 5.6.21 0.010 0.060 20.50 5.6.20 0.007 0.090 21.07 5.6.19 0.003 0.063 21.10 5.6.18 0.010 0.093 21.09 5.6.17 0.013 0.060 20.99 5.6.16 0.013 0.077 20.99 5.6.15 0.013 0.080 21.04 5.6.14 0.010 0.080 20.95 5.6.13 0.003 0.053 21.04 5.6.12 0.000 0.067 21.07 5.6.11 0.013 0.083 21.06 5.6.10 0.010 0.083 21.09 5.6.9 0.010 0.053 21.11 5.6.8 0.000 0.080 20.46 5.6.7 0.013 0.080 20.36 5.6.6 0.017 0.073 20.41 5.6.5 0.013 0.077 20.54 5.6.4 0.010 0.057 20.34 5.6.3 0.023 0.067 20.34 5.6.2 0.003 0.057 20.45 5.6.1 0.003 0.043 20.33 5.6.0 0.010 0.080 20.38 5.5.37 0.007 0.087 20.44 5.5.36 0.003 0.067 20.42 5.5.35 0.003 0.090 20.36 5.5.34 0.003 0.060 20.86 5.5.33 0.010 0.057 20.78 5.5.32 0.010 0.083 20.82 5.5.31 0.013 0.053 20.78 5.5.30 0.010 0.083 20.91 5.5.29 0.013 0.083 20.82 5.5.28 0.007 0.077 20.93 5.5.27 0.010 0.087 20.90 5.5.26 0.013 0.083 20.89 5.5.25 0.010 0.057 20.61 5.5.24 0.013 0.080 20.29 5.5.23 0.003 0.060 20.18 5.5.22 0.007 0.083 20.27 5.5.21 0.007 0.073 20.32 5.5.20 0.007 0.083 20.22 5.5.19 0.003 0.087 20.27 5.5.18 0.013 0.050 20.25 5.5.16 0.010 0.043 20.25 5.5.15 0.010 0.047 20.13 5.5.14 0.020 0.083 20.27 5.5.13 0.017 0.070 20.14 5.5.12 0.013 0.073 20.10 5.5.11 0.017 0.073 20.00 5.5.10 0.003 0.090 20.19 5.5.9 0.007 0.060 20.03 5.5.8 0.020 0.067 20.11 5.5.7 0.007 0.077 20.09 5.5.6 0.013 0.070 20.08 5.5.5 0.010 0.050 20.02 5.5.4 0.017 0.040 20.13 5.5.3 0.020 0.067 20.17 5.5.2 0.007 0.083 20.01 5.5.1 0.010 0.063 20.04 5.5.0 0.007 0.073 20.01 5.4.45 0.003 0.090 19.42 5.4.44 0.010 0.057 19.45 5.4.43 0.003 0.057 19.56 5.4.42 0.007 0.080 19.14 5.4.41 0.007 0.060 19.35 5.4.40 0.003 0.053 18.99 5.4.39 0.007 0.037 19.08 5.4.38 0.007 0.060 19.06 5.4.37 0.010 0.077 18.96 5.4.36 0.010 0.080 18.80 5.4.35 0.000 0.090 19.04 5.4.34 0.010 0.050 19.01 5.4.32 0.003 0.073 18.94 5.4.31 0.017 0.073 19.04 5.4.30 0.007 0.050 18.79 5.4.29 0.010 0.053 19.05 5.4.28 0.010 0.073 18.99 5.4.27 0.003 0.063 18.91 5.4.26 0.007 0.050 18.91 5.4.25 0.013 0.070 19.09 5.4.24 0.003 0.087 19.09 5.4.23 0.003 0.083 19.13 5.4.22 0.013 0.073 18.79 5.4.21 0.003 0.080 18.94 5.4.20 0.003 0.043 18.92 5.4.19 0.000 0.070 18.80 5.4.18 0.007 0.067 19.04 5.4.17 0.007 0.037 19.04 5.4.16 0.007 0.043 18.93 5.4.15 0.003 0.087 19.03 5.4.14 0.003 0.043 16.30 5.4.13 0.003 0.070 16.36 5.4.12 0.017 0.040 16.38 5.4.11 0.007 0.047 16.44 5.4.10 0.013 0.053 16.25 5.4.9 0.007 0.073 16.50 5.4.8 0.010 0.053 16.43 5.4.7 0.010 0.063 16.25 5.4.6 0.010 0.070 16.41 5.4.5 0.003 0.073 16.40 5.4.4 0.003 0.077 16.28 5.4.3 0.000 0.053 16.19 5.4.2 0.010 0.060 16.34 5.4.1 0.013 0.063 16.29 5.4.0 0.010 0.070 15.86 5.3.29 0.007 0.080 14.67 5.3.28 0.007 0.077 14.58 5.3.27 0.003 0.057 14.46 5.3.26 0.003 0.053 14.64 5.3.25 0.013 0.073 14.63 5.3.24 0.017 0.070 14.47 5.3.23 0.010 0.053 14.48 5.3.22 0.010 0.077 14.43 5.3.21 0.003 0.050 14.59 5.3.20 0.000 0.053 14.46 5.3.19 0.007 0.080 14.58 5.3.18 0.010 0.053 14.59 5.3.17 0.013 0.073 14.43 5.3.16 0.010 0.077 14.43 5.3.15 0.003 0.083 14.52 5.3.14 0.010 0.070 14.58 5.3.13 0.003 0.060 14.57 5.3.12 0.010 0.043 14.59 5.3.11 0.003 0.063 14.45 5.3.10 0.010 0.077 13.93 5.3.9 0.010 0.077 13.98 5.3.8 0.010 0.073 14.04 5.3.7 0.003 0.083 14.02 5.3.6 0.010 0.057 13.87 5.3.5 0.010 0.043 13.88 5.3.4 0.003 0.080 13.95 5.3.3 0.007 0.073 13.85 5.3.2 0.010 0.073 13.67 5.3.1 0.010 0.050 13.68 5.3.0 0.003 0.077 13.66 5.2.17 0.010 0.040 11.33 5.2.16 0.013 0.057 11.33 5.2.15 0.003 0.063 11.33 5.2.14 0.007 0.063 11.33 5.2.13 0.010 0.067 11.33 5.2.12 0.000 0.063 11.33 5.2.11 0.000 0.067 11.33 5.2.10 0.003 0.040 11.33 5.2.9 0.000 0.050 11.33 5.2.8 0.007 0.063 11.33 5.2.7 0.010 0.057 11.33 5.2.6 0.000 0.063 11.33 5.2.5 0.003 0.063 11.33 5.2.4 0.003 0.047 11.33 5.2.3 0.003 0.057 11.33 5.2.2 0.010 0.053 11.33 5.2.1 0.007 0.057 11.33 5.2.0 0.007 0.057 11.33 5.1.6 0.007 0.053 11.33 5.1.5 0.003 0.057 11.33 5.1.4 0.007 0.047 11.33 5.1.3 0.007 0.057 11.33 5.1.2 0.007 0.030 11.33 5.1.1 0.027 0.033 11.33 5.1.0 0.013 0.053 11.33 5.0.5 0.003 0.033 11.33 5.0.4 0.010 0.033 11.33 5.0.3 0.007 0.050 11.33 5.0.2 0.007 0.037 11.33 5.0.1 0.007 0.033 11.33 5.0.0 0.000 0.073 11.33 4.4.9 0.000 0.037 11.33 4.4.8 0.000 0.037 11.33 4.4.7 0.000 0.037 11.33 4.4.6 0.000 0.037 11.33 4.4.5 0.003 0.033 11.33 4.4.4 0.003 0.053 11.33 4.4.3 0.007 0.033 11.33 4.4.2 0.003 0.037 11.33 4.4.1 0.003 0.037 11.33 4.4.0 0.003 0.053 11.33 4.3.11 0.000 0.037 11.33 4.3.10 0.003 0.033 11.33 4.3.9 0.000 0.037 11.33 4.3.8 0.000 0.057 11.33 4.3.7 0.000 0.030 11.33 4.3.6 0.007 0.033 11.33 4.3.5 0.007 0.023 11.33 4.3.4 0.000 0.047 11.33 4.3.3 0.007 0.033 11.33 4.3.2 0.003 0.030 11.33 4.3.1 0.003 0.033 11.33 4.3.0 0.003 0.033 11.33
preferences:dark mode live preview
30.36 ms | 401 KiB | 5 Q