kartero.org

kartero.org

Git

This blob has been accessed 58 times via Git panel.

  1. <?php
  2.  
  3. require_once("core.php");
  4.  
  5. if (!isset($_SESSION['logged_uid']) or !isset($_SESSION['logged_lvl']) or !isset($_SESSION['logged_key']) or ($_SESSION['logged_lvl'] != "subscriber")) {
  6.         exit;
  7. }
  8.  
  9. if (isset($_FILES['filedrop_obj']) and !empty($_FILES['filedrop_obj']) and isset($_POST['filedrop_box']) and !empty($_POST['filedrop_box'])) {
  10.  
  11.         if (is_uploaded_file($_FILES['filedrop_obj']['tmp_name'])) {
  12.  
  13.                 if ($_FILES['filedrop_obj']['size'] <= $max_file_size) {
  14.                
  15.                         $filedrop_box = $_POST['filedrop_box'];
  16.            
  17.                         $filedrop_nom = str_replace(" ", "_", $_FILES['filedrop_obj']['name']);
  18.  
  19.                         if (!file_exists("attach/i/$fileUsr/$filedrop_box")) {
  20.                                 mkdir("attach/i/$fileUsr/$filedrop_box",0700,1);
  21.                         }
  22.              
  23.                         if (!file_exists("attach/i/$fileUsr/$filedrop_box/$filedrop_nom")) {
  24.  
  25.                                 $res = copy($_FILES['filedrop_obj']['tmp_name'], "attach/i/$fileUsr/$filedrop_box/$filedrop_nom");
  26.                                 unlink($_FILES['filedrop_obj']['tmp_name']);
  27.                                 echo "<script>alert(\"{$_FILES['filedrop_obj']['name']} saved as $filedrop_nom\");</script>";
  28.                         }
  29.                         else {
  30.                                 unlink($_FILES['filedrop_obj']['tmp_name']);
  31.                         }
  32.                 }
  33.                 else {
  34.                         unlink($_FILES['filedrop_obj']['tmp_name']);
  35.                         echo "<script>alert(\"Failed to save {$_FILES['filedrop_obj']['name']} because it is too big.\");</script>";
  36.                 }
  37.         }
  38.         else {
  39.                 unlink($_FILES['filedrop_obj']['tmp_name']);
  40.         }
  41. }
  42.  
  43. if (file_exists("attach/i/$fileUsr/$filedrop_box")) {
  44.  
  45.         $fileAttachments = glob("attach/i/$fileUsr/$filedrop_box/*");
  46.  
  47.         if (count($fileAttachments) > 0) {
  48.  
  49.                 if (file_exists("css.php")) {
  50.  
  51.                         $css = file_get_contents("css.php");
  52.                         $css = str_replace("<style>","",$css);
  53.                         $css = str_replace("</style>","",$css);
  54.  
  55.                         echo "<style>\r\n$css</style>\r\n\r\n";
  56.                 }
  57.  
  58.                 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
  59.  
  60.                 foreach ($fileAttachments as $fileAttachment) {
  61.  
  62.                         $fileName = str_replace("attach/i/$fileUsr/$filedrop_box/","",$fileAttachment);
  63.  
  64.                         $fileSize = filesize($fileAttachment);
  65.                         $fileSize = HumanReadableFilesize($fileSize);
  66.  
  67.                         $fileScan = "";
  68.  
  69.                         $scanFile = exec("clamdscan -i --no-summary $fileAttachment",$scanResult,$scanErr);
  70.  
  71.                         if ($scanErr == "1") {
  72.  
  73.                                 $fileScan = explode(" ", $scanFile);
  74.                                 $fileScan = " <font color=\"red\">{$fileScan[1]}</font>";
  75.                         }
  76.  
  77.                         if (is_image($fileAttachment)) {
  78.  
  79.                                 $img_size = getimagesize($fileAttachment);
  80.  
  81.                                 $imgSize = "";
  82.  
  83.                                 if (($img_size[0] > 0) and ($img_size[1] > 0)) {
  84.  
  85.                                         $imgSize = ", {$img_size[0]}x{$img_size[1]} pixels";
  86.  
  87.                                         if ($img_size[bits] > 0) {
  88.  
  89.                                                 $imgSize = "$imgSize, {$img_size[bits]}-bit image";
  90.                                         }
  91.                                 }
  92.  
  93.                                 echo "\r\n<tr><td><a href=\"$fileAttachment\" target=\"_blank\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$fileAttachment\" target=\"_blank\">$fileName</a><br>$fileSize{$imgSize}{$fileScan}</td></tr>\r\n";
  94.                         }
  95.                         else {
  96.                                 echo "\r\n<tr><td><a href=\"$fileAttachment\"><img src=\"images/file.png\" border=\"0\" width=\"36\" height=\"36\"></a></td><td><a href=\"$fileAttachment\">$fileName</a><br>$fileSize{$fileScan}</td></tr>\r\n";
  97.                         }
  98.                 }
  99.  
  100.                 echo "</table>";
  101.  
  102.                 echo "<script>parent.top.document.getElementById('filedrop').style.height = document.body.parentNode.clientHeight + 'px';</script>";
  103.         }
  104.         else {
  105.                 echo "<script>parent.top.document.getElementById('filedrop').style.height = 0;</script>";
  106.         }
  107. }
  108.  
  109. $_SESSION['clean_up_i'] = $filedrop_box;
  110.  
  111. ?>
  112.  
  113. <script>
  114. parent.top.document.getElementById('filedrop_wait').innerHTML = '';
  115. parent.top.document.filedrop_form.filedrop_submit.disabled=false;
  116. </script>
  117.  
filedropkartero.git-41992ae.tar.bz2 new
412.12 KB
706 downloads
filedropkartero.git-41992ae.zip
448.41 KB
608 downloads
filedropkartero.git-b404ba2.tar.bz2
411.70 KB
209 downloads
filedropkartero.git-b404ba2.zip
447.96 KB
265 downloads
filedropkartero.git-a7684d9.tar.bz2
411.72 KB
250 downloads
filedropkartero.git-a7684d9.zip
447.96 KB
366 downloads
filedropkartero.git-83512be.tar.bz2
410.26 KB
235 downloads
filedropkartero.git-83512be.zip
445.30 KB
249 downloads
filedropkartero.git-1954b25.tar.bz2
410.21 KB
246 downloads
filedropkartero.git-1954b25.zip
445.30 KB
253 downloads
filedropkartero.git-2f7c910.tar.bz2
410.25 KB
234 downloads
filedropkartero.git-2f7c910.zip
445.29 KB
266 downloads
filedropkartero.git-6317ffb.tar.bz2
410.40 KB
258 downloads
filedropkartero.git-6317ffb.zip
445.28 KB
266 downloads
filedropkartero.git-60ccd7a.tar.bz2
410.40 KB
255 downloads
filedropkartero.git-60ccd7a.zip
445.20 KB
255 downloads
filedropkartero.git-ea6f885.tar.bz2
410.47 KB
246 downloads
filedropkartero.git-ea6f885.zip
445.26 KB
245 downloads
filedropkartero.git-7f580e5.zip
445.17 KB
262 downloads
filedropkartero.git-7f580e5.tar.bz2
410.18 KB
254 downloads
filedropkartero.git-b9364de.tar.bz2
409.41 KB
291 downloads
filedropkartero.git-b9364de.zip
444.09 KB
273 downloads
filedropkartero.git-e9bcd78.zip
444.03 KB
266 downloads
filedropkartero.git-e9bcd78.tar.bz2
409.39 KB
258 downloads
filedropkartero.git-96c60ff.tar.bz2
407.96 KB
266 downloads
filedropkartero.git-96c60ff.zip
441.87 KB
267 downloads
filedropkartero.git-4357b59.tar.bz2
407.17 KB
280 downloads
filedropkartero.git-4357b59.zip
440.69 KB
281 downloads
filedropkartero.git-c6ff319.tar.bz2
407.28 KB
287 downloads
filedropkartero.git-c6ff319.zip
440.70 KB
272 downloads
filedropkartero.git-8b87a29.tar.bz2
407.27 KB
276 downloads
filedropkartero.git-8b87a29.zip
440.71 KB
285 downloads
filedropkartero.git-ee42942.tar.bz2
406.49 KB
246 downloads
filedropkartero.git-ee42942.zip
439.92 KB
268 downloads
filedropkartero.git-867e7e6.tar.bz2
406.75 KB
272 downloads
filedropkartero.git-867e7e6.zip
440.03 KB
274 downloads
filedropkartero.git-3f3fc02.tar.bz2
406.38 KB
274 downloads
filedropkartero.git-3f3fc02.zip
439.71 KB
302 downloads
filedropkartero.git-b6f779d.tar.bz2
406.55 KB
299 downloads
filedropkartero.git-b6f779d.zip
440.00 KB
271 downloads
filedropkartero.git-83f24b0.zip
439.12 KB
253 downloads
filedropkartero.git-52316ec.tar.bz2
406.17 KB
260 downloads
filedropkartero.git-52316ec.zip
439.18 KB
277 downloads
filedropkartero.git-83f24b0.tar.bz2
405.84 KB
257 downloads
filedropkartero.git-8a42d47.tar.bz2
405.73 KB
258 downloads
filedropkartero.git-8a42d47.zip
439.02 KB
251 downloads
filedropkartero.git-830c9cb.tar.bz2
406.08 KB
263 downloads
filedropkartero.git-830c9cb.zip
439.08 KB
257 downloads
filedropkartero.git-ebec1be.tar.bz2
406.16 KB
258 downloads
filedropkartero.git-ebec1be.zip
439.09 KB
287 downloads
filedropkartero.git-7c0b70f.tar.bz2
402.43 KB
252 downloads
filedropkartero.git-7c0b70f.zip
435.91 KB
251 downloads
filedropkartero.git-80edc03.tar.bz2
402.75 KB
264 downloads
filedropkartero.git-80edc03.zip
435.84 KB
264 downloads
filedropkartero.git-b408c23.tar.bz2
402.19 KB
256 downloads
filedropkartero.git-b408c23.zip
435.59 KB
269 downloads
filedropkartero.git-29c0e1f.tar.bz2
401.84 KB
261 downloads
filedropkartero.git-29c0e1f.zip
435.25 KB
279 downloads
filedropkartero.git-9086094.tar.bz2
401.94 KB
263 downloads
filedropkartero.git-9086094.zip
435.34 KB
279 downloads
filedropkartero.git-47ca624.tar.bz2
402.10 KB
264 downloads
filedropkartero.git-47ca624.zip
435.51 KB
249 downloads
filedropkartero.git-81314a5.zip
435.53 KB
268 downloads
filedropkartero.git-81314a5.tar.bz2
402.25 KB
259 downloads
filedropkartero.git-cae7074.zip
435.20 KB
265 downloads
filedropkartero.git-cae7074.tar.bz2
401.98 KB
278 downloads
filedropkartero.git-cc68e56.tar.bz2
402.07 KB
264 downloads
filedropkartero.git-cc68e56.zip
435.16 KB
292 downloads
filedropkartero.git-230f35d.tar.bz2
401.43 KB
248 downloads
filedropkartero.git-230f35d.zip
434.68 KB
283 downloads
filedropkartero.git-5ae58a2.tar.bz2
401.54 KB
252 downloads
filedropkartero.git-5ae58a2.zip
434.68 KB
252 downloads
filedropkartero.git-a591f4b.tar.bz2
401.76 KB
253 downloads
filedropkartero.git-a591f4b.zip
435.17 KB
260 downloads
filedropkartero.git-36876c8.tar.bz2
400.44 KB
251 downloads
filedropkartero.git-36876c8.zip
432.36 KB
285 downloads
filedropkartero.git-a34c9ed.tar.bz2
400.57 KB
274 downloads
filedropkartero.git-a34c9ed.zip
432.27 KB
273 downloads
filedropkartero.git-e828148.zip
433.58 KB
255 downloads
filedropkartero.git-e828148.tar.bz2
400.88 KB
260 downloads
filedropkartero.git-476cdda.tar.bz2
400.60 KB
290 downloads
filedropkartero.git-476cdda.zip
432.26 KB
267 downloads
filedropkartero.git-054c286.tar.bz2
98.09 KB
317 downloads
filedropkartero.git-054c286.zip
109.53 KB
324 downloads
filedropkartero.git-071b099.tar.bz2
98.76 KB
319 downloads
filedropkartero.git-071b099.zip
110.21 KB
325 downloads
filedropkartero.git-551c38d.tar.bz2
98.51 KB
327 downloads
filedropkartero.git-551c38d.zip
110.20 KB
314 downloads
filedropkartero.git-569dc0c.tar.bz2
98.40 KB
322 downloads
filedropkartero.git-569dc0c.zip
109.86 KB
306 downloads
filedropkartero.git-58a052b.tar.bz2
97.95 KB
318 downloads
filedropkartero.git-58a052b.zip
109.36 KB
319 downloads
filedropkartero.git-43a5af3.tar.bz2
97.80 KB
313 downloads
filedropkartero.git-43a5af3.zip
109.30 KB
315 downloads
filedropkartero.git-bbe069d.tar.bz2
98.03 KB
324 downloads
filedropkartero.git-bbe069d.zip
109.19 KB
322 downloads
filedropkartero.git-02f97e1.tar.bz2
97.76 KB
293 downloads
filedropkartero.git-02f97e1.zip
109.24 KB
412 downloads
filedropkartero.git-d82e393.tar.bz2
97.74 KB
323 downloads
filedropkartero.git-d82e393.zip
109.24 KB
322 downloads
filedropkartero.git-7cdd1f5.tar.bz2
98.03 KB
309 downloads
filedropkartero.git-7cdd1f5.zip
109.24 KB
306 downloads
filedropkartero.git-40825aa.tar.bz2
97.71 KB
307 downloads
filedropkartero.git-40825aa.zip
109.16 KB
340 downloads
filedropkartero.git-3dd941b.tar.bz2
97.69 KB
307 downloads
filedropkartero.git-3dd941b.zip
109.12 KB
313 downloads
filedropkartero.git-50f1e46.tar.bz2
97.65 KB
317 downloads
filedropkartero.git-50f1e46.zip
109.02 KB
318 downloads
filedropkartero.git-fdf9225.tar.bz2
93.19 KB
349 downloads
filedropkartero.git-fdf9225.zip
104.25 KB
329 downloads
filedropkartero.git-21415da.tar.bz2
93.24 KB
304 downloads
filedropkartero.git-21415da.zip
104.22 KB
328 downloads
filedropkartero.git-aff5e89.tar.bz2
93.17 KB
324 downloads
filedropkartero.git-aff5e89.zip
104.22 KB
316 downloads
filedropkartero.git-b27ef39.tar.bz2
91.97 KB
326 downloads
filedropkartero.git-b27ef39.zip
102.80 KB
344 downloads
filedropkartero.git-3d6e8a2.tar.bz2
91.99 KB
308 downloads
filedropkartero.git-3d6e8a2.zip
102.77 KB
338 downloads
filedropkartero.git-1442b69.tar.bz2
91.79 KB
300 downloads
filedropkartero.git-1442b69.zip
102.50 KB
345 downloads
filedropkartero.git-6d15918.tar.bz2
91.56 KB
322 downloads
filedropkartero.git-6d15918.zip
102.28 KB
311 downloads
filedropkartero.git-45140d8.tar.bz2
91.52 KB
326 downloads
filedropkartero.git-45140d8.zip
102.23 KB
316 downloads
filedropkartero.git-d5b48e5.tar.bz2
91.35 KB
314 downloads
filedropkartero.git-d5b48e5.zip
102.01 KB
329 downloads
filedropkartero.git-e007e55.tar.bz2
91.35 KB
323 downloads
filedropkartero.git-e007e55.zip
102.01 KB
301 downloads
filedropkartero.git-30fd7e3.tar.bz2
90.87 KB
300 downloads
filedropkartero.git-30fd7e3.zip
101.44 KB
328 downloads
filedropkartero.git-421a4a7.tar.bz2
88.02 KB
42 downloads
filedropkartero.git-421a4a7.zip
97.96 KB
307 downloads
filedropkartero.git-b49b8bc.tar.bz2
88.09 KB
346 downloads
filedropkartero.git-b49b8bc.zip
97.99 KB
322 downloads
filedropkartero.git-1cc9571.tar.bz2
87.74 KB
324 downloads
filedropkartero.git-1cc9571.zip
97.70 KB
327 downloads
filedropkartero.git-159152f.tar.bz2
87.60 KB
321 downloads
filedropkartero.git-159152f.zip
97.52 KB
331 downloads
filedropkartero.git-35caaf3.tar.bz2
87.74 KB
304 downloads
filedropkartero.git-35caaf3.zip
97.57 KB
314 downloads
filedropkartero.git-3c9d305.zip
96.67 KB
317 downloads
filedropkartero.git-3c9d305.tar.bz2
86.77 KB
313 downloads
filedropkartero.git-14cb2af.tar.bz2
86.41 KB
310 downloads
filedropkartero.git-14cb2af.zip
96.13 KB
322 downloads
filedropkartero.git-e8f00cb.tar.bz2
86.46 KB
326 downloads
filedropkartero.git-e8f00cb.zip
96.21 KB
311 downloads
filedropkartero.git-bdab380.tar.bz2
86.14 KB
323 downloads
filedropkartero.git-bdab380.zip
95.79 KB
315 downloads
filedropkartero.git-48f9134.tar.bz2
85.78 KB
331 downloads
filedropkartero.git-48f9134.zip
95.48 KB
324 downloads
filedropkartero.git-adb9757.tar.bz2
85.67 KB
315 downloads
filedropkartero.git-adb9757.zip
95.37 KB
316 downloads
filedropkartero.git-1601cbd.zip
95.30 KB
329 downloads
filedropkartero.git-1601cbd.tar.bz2
85.69 KB
297 downloads
filedropkartero.git-18a5106.tar.bz2
85.72 KB
296 downloads
filedropkartero.git-18a5106.zip
95.48 KB
329 downloads
filedropkartero.git-a5b1caa.tar.bz2
85.61 KB
332 downloads
filedropkartero.git-a5b1caa.zip
95.36 KB
323 downloads
filedropkartero.git-effff82.zip
97.06 KB
334 downloads
filedropkartero.git-effff82.tar.bz2
87.13 KB
322 downloads
filedropkartero.git-b70d364.tar.bz2
84.09 KB
360 downloads
filedropkartero.git-b70d364.zip
93.67 KB
330 downloads
filedropkartero.git-48f0e53.tar.bz2
84.16 KB
335 downloads
filedropkartero.git-48f0e53.zip
93.66 KB
325 downloads
filedropkartero.git-c17135e.tar.bz2
84.09 KB
316 downloads
filedropkartero.git-c17135e.zip
93.57 KB
311 downloads
filedropkartero.git-a2e2848.tar.bz2
85.59 KB
320 downloads
filedropkartero.git-a2e2848.zip
100.10 KB
322 downloads
filedropkartero.git-1f683db.tar.bz2
83.55 KB
318 downloads
filedropkartero.git-1f683db.zip
93.24 KB
317 downloads
filedropkartero.git-d342596.tar.bz2
83.57 KB
316 downloads
filedropkartero.git-d342596.zip
93.28 KB
312 downloads
filedropkartero.git-e0131d5.tar.bz2
83.55 KB
321 downloads
filedropkartero.git-e0131d5.zip
93.27 KB
329 downloads
filedropkartero.git-ad467e8.tar.bz2
83.13 KB
330 downloads
filedropkartero.git-ad467e8.zip
92.78 KB
315 downloads
filedropkartero.git-b20e27d.tar.bz2
83.46 KB
334 downloads
filedropkartero.git-b20e27d.zip
93.19 KB
343 downloads
filedropkartero.git-eefd8fe.zip
92.67 KB
342 downloads
filedropkartero.git-eefd8fe.tar.bz2
83.01 KB
317 downloads
filedropkartero.git-bea685a.zip
96.88 KB
324 downloads
filedropkartero.git-bea685a.tar.bz2
84.44 KB
313 downloads
filedropkartero.git-a8bd019.tar.bz2
84.25 KB
328 downloads
filedropkartero.git-a8bd019.zip
96.60 KB
317 downloads
filedropkartero.git-cbc914d.tar.bz2
84.38 KB
323 downloads
filedropkartero.git-cbc914d.zip
96.64 KB
306 downloads
filedropkartero.git-09a2e70.tar.bz2
84.40 KB
301 downloads
filedropkartero.git-09a2e70.zip
96.70 KB
328 downloads
filedropkartero.git-641dc05.tar.bz2
84.37 KB
320 downloads
filedropkartero.git-641dc05.zip
96.73 KB
320 downloads
filedropkartero.git-cde49c6.tar.bz2
84.26 KB
330 downloads
filedropkartero.git-cde49c6.zip
96.59 KB
323 downloads
filedropkartero.git-1d004e0.tar.bz2
77.42 KB
328 downloads
filedropkartero.git-1d004e0.zip
87.56 KB
800 downloads
filedropkartero.git-1f0bf17.tar.bz2
77.47 KB
327 downloads
filedropkartero.git-1f0bf17.zip
87.56 KB
313 downloads
filedropkartero.git-265e63c.tar.bz2
77.43 KB
307 downloads
filedropkartero.git-265e63c.zip
87.52 KB
351 downloads
filedropkartero.git-635a5db.zip
87.60 KB
318 downloads
filedropkartero.git-a041f85.tar.bz2
77.37 KB
323 downloads
filedropkartero.git-a041f85.zip
87.52 KB
339 downloads
filedropkartero.git-ae049a7.tar.bz2
77.44 KB
317 downloads
filedropkartero.git-ae049a7.zip
87.52 KB
309 downloads
filedropkartero.git-eef571a.tar.bz2
20.56 KB
426 downloads
filedropkartero.git-eef571a.zip
25.69 KB
433 downloads
filedropkartero.git-0bc16f5.tar.bz2
82.61 KB
312 downloads
filedropkartero.git-0bc16f5.zip
94.75 KB
333 downloads
filedropkartero.git-2afc0f7.tar.bz2
83.61 KB
325 downloads
filedropkartero.git-2afc0f7.zip
96.00 KB
345 downloads
filedropkartero.git-3529bdf.tar.bz2
77.72 KB
285 downloads
filedropkartero.git-3529bdf.zip
87.92 KB
312 downloads
filedropkartero.git-49aac92.tar.bz2
78.98 KB
323 downloads
filedropkartero.git-49aac92.zip
90.01 KB
308 downloads
filedropkartero.git-5d48f21.tar.bz2
78.65 KB
322 downloads
filedropkartero.git-5d48f21.zip
89.51 KB
330 downloads
filedropkartero.git-635a5db.tar.bz2
77.50 KB
309 downloads
filedropkartero.git-6e34786.tar.bz2
77.76 KB
317 downloads
filedropkartero.git-6e34786.zip
88.09 KB
325 downloads
filedropkartero.git-7dc2fd2.tar.bz2
83.51 KB
339 downloads
filedropkartero.git-7dc2fd2.zip
95.99 KB
308 downloads
filedropkartero.git-9cad005.tar.bz2
78.85 KB
324 downloads
filedropkartero.git-9cad005.zip
90.00 KB
329 downloads
filedropkartero.git-b303f61.tar.bz2
82.57 KB
333 downloads
filedropkartero.git-b303f61.zip
94.78 KB
359 downloads
filedropkartero.git-c15ef85.tar.bz2
77.76 KB
327 downloads
filedropkartero.git-c15ef85.zip
88.16 KB
43 downloads
filedropkartero.git-c99e84d.tar.bz2
83.58 KB
360 downloads
filedropkartero.git-c99e84d.zip
96.01 KB
343 downloads
filedropkartero.git-e5009e6.tar.bz2
78.73 KB
325 downloads
filedropkartero.git-e5009e6.zip
89.69 KB
317 downloads
filedropkartero.git-0502d01.tar.bz2
83.54 KB
326 downloads
filedropkartero.git-0502d01.zip
96.00 KB
357 downloads
filedropkartero.git-44ca46d.tar.bz2
83.73 KB
327 downloads
filedropkartero.git-44ca46d.zip
96.20 KB
309 downloads
filedropkartero.git-834f923.tar.bz2
83.75 KB
324 downloads
filedropkartero.git-834f923.zip
96.14 KB
319 downloads