Explorar el Código

modified download.php

development
Teknikode hace 4 años
padre
commit
6e5f80fe28
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7
    7
      upload/lib/download.php

+ 7
- 7
upload/lib/download.php Ver fichero

@@ -1,7 +1,7 @@
<?php
include('../../includes/config.php');
require_once('../../includes/PiwikTracker.php');
PiwikTracker::$URL = get_page_url('stats', $CONF).'/piwik.php';
PiwikTracker::$URL = get_page_url('stats', $CONF).'/';
$fileURL = $_GET['file'];
$file_db = $db->select('uploads', "url=? LIMIT 1", array($fileURL));
$file_path = $CONF['upload_dir'] . $file_db['filename'];
@@ -9,11 +9,11 @@ $temp_path = sys_get_temp_dir()."\\".$file_db['filename'];
if (file_exists($file_path) && $file_db)
{
$t = new PiwikTracker( $idSite = 1);
$t->setUserAgent($_SERVER['HTTP_USER_AGENT']);
$t->setUrlReferrer($_SERVER['HTTP_REFERER']);
$t->setUrl( $url = get_page_url('u', $CONF).'/'.$fileURL );
$t->doTrackPageView('Teknik Upload - '.$fileURL);
$t = new PiwikTracker( $idSite = 1);
$t->setUserAgent($userAgent = $_SERVER['HTTP_USER_AGENT']);
$t->setUrlReferrer($url = $_SERVER['HTTP_REFERER']);
$t->setUrl($url = get_page_url('u', $CONF).'/'.$fileURL);
$t->doTrackPageView($documentTitle = 'Teknik Upload - '.$fileURL);
if ($file_db['hash'] != "")
{
@@ -50,4 +50,4 @@ else
{
header('Location: '.get_page_url("error", $CONF).'/404');
}
?>
?>

Cargando…
Cancelar
Guardar