Registrieren | Passwort vergessen |
Benutzername    Passwort    Eingeloggt bleiben    
Seitenaufbau in 0.43 Sekunden - 346 DB-Abfragen | Mitglieder: 2377 | Forum: 15683 | Downloads: 127 | Insgesamt runtergeladen: 41142 | Insgesamt: 14,659,177 eindeutige Besuche
Guten Morgen [Gast]
Wenn Sie bereits Registriert sind loggen Sie sich einfach ein
©
DerEinsame2 (04.01.2024 13:19): Hallo ihr lieben ich wünsche euch ein Frohes und es Gesundes neues jahr. Chat-Radio24 (02.01.2024 17:36): Ein Frohes neues Jahr wünsche ich allen JP_ONAIR (01.01.2024 15:33): Frohes neues ^^ DerEinsame2 (17.12.2023 17:24): liebe leute ich wünsche euche tolle feiertage, und das beste fürs neue jahr 2024 Radiotv (18.11.2023 18:39): Liebe Grüsse Von www.radiotvmg.de Charly3000 (18.05.2023 16:09): Happy Vatertag wünscht www.Charlys-Funradio.de Charly3000 (08.05.2023 00:41): Wünsche eine erfolgreiche Woche RadioNightlineStudios (05.10.2022 07:27): RADIO-NIGHTLINE-STUDIOS WÜNSCHT EINEN GOLDENEN OKTOBER Pilzwb (29.01.2022 09:28): Guten Morgen BlackScorpion (07.01.2022 23:00): https://radio-black-scorpion.de wünscht ein erholsames We
Datum: Dienstag, 19. März 2024 Diese Seite Geladen Am: 11:34:22Aktuelle Zeit: Zeit
 Wer ist online
Gäste & Bots online: 3
Mitglieder online: 0
Neuestes Mitglied: Leon Schlemmer

DeviceMarioPremium bis 20.05.2024 - 09:58 UhrPunkte
Offline
DeviceArminPremium bis 25.12.2025 - 12:05 UhrPunkte
Offline
Deviceandym0909
Offline
DeviceHarlekinPunkte
Offline
DeviceLars48
Offline
DeviceJP_ONAIRPunkte
Offline
DeviceRedrum
Offline
DeviceRolly8-HLPunkte
Offline
DevicepartybremenPunkte
Offline
Device21MatzePunkte
Offline
Gast
gast
Gast
gast
Gast
gast
Mehr anzeigen

     - SuperAdmin|         - Admin ©
     - Forum Mod |         - Mitglied


 Unwetterwarnung

Suche
Durchsuchen Sie die gesamte Website:
Themen-Autor: Andydeluxe97
Thema ID: 1872
Thema Info
Es gibt 6 Beiträge zu diesem Thema, und es wurde angesehen 1142 mal.  Es gibt auch Datei anhänge.
Thema ansehen
..::www.DeeoNe.de-D1Infusionen::.. » Supportbereich phpFusion v7 » Allgemeines
Wer ist hier? 1 Gäste
 Thema drucken
Download verifizierung
Andydeluxe97
Hallo Zusammen,

Wir bekomm ich die verifizierung in den Download button rein.


hab zwar mal probiert mit den Code, aber der button war etwas leider zu groß geworden.

So wie bei "MG4You"
Andydeluxe97 hat folgende Datei angehängt:
Du hast nicht die Berechtigung die Anhäge dieses Themas zu sehen.
Verwarnstatus: warningwarningwarningwarning
 
https://dayz-community.xyz/
matze
Die gewisse stelle erst mal suchen da wo steht Zugriff verweigert. Denn das ist ja für die Gastanzeige . Dann setzt du eine IF Anweisung
Verwarnstatus: warningwarningwarningwarning
 
https://fusion-mods.de
Andydeluxe97
Hallo,

eh wo genau, das problem hab ich noch der code hab ich leider nicht mehr. Habe die datei gelöscht wieder :/ miese sache

Gruss
Verwarnstatus: warningwarningwarningwarning
 
https://dayz-community.xyz/
matze
Der Dowload-button ist definiert auf die locale416. Die suchst du und fügst nur eine IF anweisung die auch hier schon mal stand im Forum glaube ich....hinzu. Ich nutze das Normale System nicht da musst du dich mal mit der Datei auseinnandersetzen.
Verwarnstatus: warningwarningwarningwarning
 
https://fusion-mods.de
Taker
Oder du fragst beim Entwickler deines downloadsystems nach wie und was er wo definiert hat laut c müsste es dann harlekin sein wo du es her hast
Rest in Peace


rac-hilft-webradio.de/signaturen/taker_1.png
Verwarnstatus: warningwarningwarningwarning
 
http://taker-is-back.de
Andydeluxe97
Hallo,

ja müsste ich mal tun

Zusammengefügt am 06. August 2017 17:02:12:
Das müsste doch der Code sein oder?

Download Code  Code
include INFUSIONS."D1_verifizierung_panel/infusion_db.php";
      $d1zertu = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."d1_zerti_user WHERE user_id='".$userdata['user_id']."'"));
      if(iMEMBER){
      if ($d1zertu['zert'] == '1') {
      echo "<center><font color=#4cdd31><strong>Du bist Zertifiziert !!<b><u></u></strong></b></font></center>";
      echo "<a href='".FUSION_SELF."?cat_id=".$data['download_cat']."&amp;file_id=".$data['download_id']."' target='_blank'>".get_image("download", $locale['416'], "border:none;", $locale['416'])."</a>\n";
      if ($data['download_filesize'] != "") {
         echo "<br />(".$data['download_filesize'].")\n";
      }
     
      }else{
      echo "<center><a href='".INFUSIONS."D1_verifizierung_panel/Verifizierung.php' title='Nicht Zertifiziert'><font color=#DBF736><b>Hinweis!! Du bist nicht Zertifiziert !!</a><b><u></u></b></font></center>";
      }
      }




Wenn ja, wo soll ich das genau einbauen.

Download Code  Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2014 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: downloads.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| Addon Name: PFMUK Downloads Mod
| Version: 1.01
| Author: PHP-Fusion Mods UK
| Developer: Craig
| Site: http://www.phpfus...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."downloads.php";
include LOCALE.LOCALESET."ratings.php";
include INCLUDES."downloads_includes/downloads_functions.php";


// download the file Only Members Can Download Added by Craig - http://www.phpfus...
if (isset($_GET['file_id']) && isnum($_GET['file_id']) && iMEMBER) {
   $download_id = stripinput($_GET['file_id']);
   $res = 0;
   if ($data = dbarray(dbquery("SELECT download_url, download_title, download_file, download_cost, download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$download_id."'"))) {
      //Scoreabzug START
      if(checkgroup(7)){
      $kosten = '0';
      } else {
      $kosten = $data['download_cost'];
      }
      //Scoreabzug ENDE
      
      $cdata = dbarray(dbquery("SELECT download_cat_access FROM ".DB_DOWNLOAD_CATS." WHERE download_cat_id='".$data['download_cat']."'"));
      if (checkgroup($cdata['download_cat_access'])) {
         $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$download_id."'");

//PN an User und Admin für Download & Eintrag welcher User was geladen hat start
if(!empty($data['download_cost'])) {
//User PN
dbquery("INSERT INTO ".DB_MESSAGES." VALUES ('', '".$userdata['user_id']."', '1', 'Download', '  Hallo ".$userdata['user_name'].", du hast folgenden Datei heruntergeladen:<strong> ".$data['download_title']."</strong>
<p>Dir wurden f&uuml;r diesen Download <strong>".$kosten." Score</strong> von deinem Konto abgezogen.<p> Hinweis: Bitte beachte die Lizenz/Copyright-Bedingungen des Eigent&uuml;mers, &uuml;ber die Nutzung, Vervielf&auml;ltigung/Verbreitung und Modifikation des Download-Pakets.</p>', '0', '0', '".time()."', '0')");
//Eintrag welcher User was geladen hat start
dbquery("INSERT INTO ".DB_PREFIX."hp_userdownloadlog VALUES ('', '".$userdata['user_name']."', '".$data['download_title']."', '".$kosten."', '".time()."')");
//Eintrag welcher User was geladen hat stop
//Admin PN
dbquery("INSERT INTO ".DB_MESSAGES." VALUES('', '1,', '1', 'Download durch User', '  ".$userdata['user_name']."   hat den Download<strong> ".$data['download_title']."</strong> f&uuml;r <strong>".$kosten." Score</strong> heruntergeladen.', '0', '0', '".time()."', '0')");
} else {
//User PN
dbquery("INSERT INTO ".DB_MESSAGES." VALUES ('', '".$userdata['user_id']."', '1', 'Download', '  Hallo ".$userdata['user_name'].", du hast folgenden Datei heruntergeladen:<strong> ".$data['download_title']."</strong>
<p>Dir wurden f&uuml;r diesen Download <strong>0 Score</strong> von deinem Konto abgezogen.<p> Hinweis: Bitte beachte die Lizenz/Copyright-Bedingungen des Eigent&uuml;mers, &uuml;ber die Nutzung, Vervielf&auml;ltigung/Verbreitung und Modifikation des Download-Pakets.</p>', '0', '0', '".time()."', '0')");
//Eintrag welcher User was geladen hat start
dbquery("INSERT INTO ".DB_PREFIX."hp_userdownloadlog VALUES ('', '".$userdata['user_name']."', '".$data['download_title']."', '0', '".time()."')");
//Eintrag welcher User was geladen hat stop
//Admin PN
dbquery("INSERT INTO ".DB_MESSAGES." VALUES('', '1,', '1', 'Download durch User', '  ".$userdata['user_name']."   hat den Download<strong> ".$data['download_title']."</strong> f&uuml;r <strong>0 Score</strong> heruntergeladen.', '0', '0', '".time()."', '0')");
}
//PN an User und Admin für Download & Eintrag welcher User was geladen hat stop
         if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) {
            $res = 1;
         //Scoreabzug start
         if(checkgroup(7)){
         //Kein Scoreabzug
         } else {
         score_free("Download", "PDPDL", "".$data['download_cost']."", 9999999, "N", 0, 0);
         }
         //Scoreabzug stop
            require_once INCLUDES."class.httpdownload.php";
            ob_end_clean();
            $object = new httpdownload;
            $object->set_byfile(DOWNLOADS.$data['download_file']);
            $object->use_resume = true;
            $object->download();
            exit;
         } elseif (!empty($data['download_url'])) {
            $res = 1;
            redirect($data['download_url']);
         }
      }
   }
   if ($res == 0) { redirect("downloads.php"); }
}



// Statistics
$dl_stats = "";
$i_alt = dbresult(dbquery("SELECT SUM(download_count) FROM ".DB_DOWNLOADS), 0);

$dl_stats .= "<table cellpadding='0' cellspacing='1' class='tbl-border' style='width:100%;'>\n";
$dl_stats .= "<tr>\n<td class='tbl2' valign='middle'><img src='".get_image("statistics")."' alt='".$locale['429']."' /></td>\n";
$dl_stats .= "<td width='100%' align='left' class='tbl1'>\n";
$dl_stats .= "<span class='small'>".$locale['415']." ".dbcount("(download_cat)", DB_DOWNLOADS)."</span><br />\n";
$dl_stats .= "<span class='small'>".$locale['440']." ".($i_alt ? $i_alt : "0")."</span><br />";

$result = dbquery(
      "SELECT td.download_id, td.download_title, td.download_count, td.download_cat,
      tc.download_cat_id, tc.download_cat_access
      FROM ".DB_DOWNLOADS." td
      LEFT JOIN ".DB_DOWNLOAD_CATS." tc ON td.download_cat=tc.download_cat_id
      WHERE ".groupaccess('download_cat_access')."
      ORDER BY download_count DESC LIMIT 0,1");

if (dbrows($result) != 0) {
   while ($data = dbarray($result)) {
      $download_title = $data['download_title'];
      $dl_stats .= "<span class='small'>".$locale['441'];
      $dl_stats .= " <a href='".FUSION_SELF."?download_id=".$data['download_id']."' title='".$download_title."' class='side'>".trimlink($data['download_title'], 100)."</a>";
      $dl_stats .= " [ ".$data['download_count']." ]</span><br />";
   }
}

$result = dbquery(
      "SELECT td.download_id, td.download_title, td.download_count, td.download_cat, td.download_datestamp,
      tc.download_cat_id, tc.download_cat_access
      FROM ".DB_DOWNLOADS." td
      LEFT JOIN ".DB_DOWNLOAD_CATS." tc ON td.download_cat=tc.download_cat_id
      WHERE ".groupaccess('download_cat_access')."
      ORDER BY download_datestamp DESC LIMIT 0,1");
if (dbrows($result) != 0) {
   while ($data = dbarray($result)) {
      $download_title = $data['download_title'];
      $dl_stats .= "<span class='small'>".$locale['442'];
      $dl_stats .= " <a href='".FUSION_SELF."?download_id=".$data['download_id']."' title='".$download_title."' class='side'>".trimlink($data['download_title'], 100)."</a>";
      $dl_stats .= " [ ".$data['download_count']." ]</span><br />";
   }
}
$dl_stats .= "</td>\n</tr>\n</table>\n";




   // Download Cats

   if (!isset($_GET['download_id']) || !isnum($_GET['download_id'])) {

   $settingsb['downloads_per_page'] = "21";

   add_to_title($locale['global_200'].$locale['400']);
   $title = $locale['400']; $error = ""; $select_cat = ""; $row_limit = $settingsb['downloads_per_page'];
   if(isset($_GET['download_cat']) && isnum($_GET['download_cat'])) {
   $select_cat = " AND download_cat='".stripinput($_GET['download_cat'])."'";
   $cname_result = dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')." AND download_cat_id='".stripinput($_GET['download_cat'])."' ORDER BY download_cat_name");
   if(dbrows($cname_result)) {
   $cname_data = dbarray($cname_result);
   $title = $locale['462']." ".$cname_data['download_cat_name'];
   $titleb = $locale['400b'].$cname_data['download_cat_name'];
   add_to_title($titleb);
   $select_cat = " AND download_cat='".stripinput($_GET['download_cat'])."'";

   } else { redirect(FUSION_SELF); }
   }

   opentable($title);
   echo "<!--pre_download_idx-->\n";

   $cat_list_result = dbquery(
   "SELECT download_cat_id, download_cat_name
   FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')."
   ORDER BY download_cat_name");
   $cats_list = "";
   if (dbrows($cat_list_result)) {
   while ($cat_list_data = dbarray($cat_list_result)) {
   $countincatb = dbcount("(download_cat_id)", DB_DOWNLOAD_CATS, "download_cat_id='".$cat_list_data['download_cat_id']."' AND ".groupaccess('download_cat_access')."");
   if ($countincatb > 0) {
   $sel = (isset($_GET['download_cat']) && $_GET['download_cat'] == $cat_list_data['download_cat_id'] ? " selected='selected'" : "");
   $cats_list .= "<option value='".$cat_list_data['download_cat_id']."'".$sel.">".$cat_list_data['download_cat_name']."</option>";
   }
   }

   echo "<div  class='tbl' style='text-align:center;  height: 40px; margin-bottom: 3px;'>\n";
   echo "<form name='download_cats_filter_form' method='get' action='".FUSION_SELF."'>\n";
   echo "<div  style='float:left; padding: 5px 0px 4px 4px;'>\n";
   echo "<select name='download_cat' class='textbox' onchange='this.form.submit();'>\n";
   echo "<option value='all'>".$locale['451']."</option>".$cats_list."</select>";
   echo"</form>\n";
   echo "</div>";
   echo "<div class='dlsearch' style='float:right; padding: 5px 4px 4px 0px;'>\n";
   echo "<form name='searchform' method='get' action='".BASEDIR."search.php'>\n";
   echo "<input type='text' name='stext' placeholder='".$locale['460b']."' class='textbox' style='width:150px' />\n";
   echo "<input type='hidden' name='stype' value='downloads' />\n";
   echo "</form>\n";
   echo "</div>";
   if (isset($_GET['download_cat']) && isnum($_GET['download_cat']) && $_GET['download_cat'] != "all") {
   $countincat = dbcount("(download_id)", DB_DOWNLOADS, "download_cat='".$_GET['download_cat']."'");
   echo"<div class='dlsearch' style='text-align: center; padding-top: 12px;'>".$locale['447']." <strong>".$countincat."</strong></div>";
   }else{
   $countincat = dbcount("(download_id)", DB_DOWNLOADS);
   echo"<div class='dlsearch' style='text-align: center; padding-top: 12px;'>".$locale['448'].": <strong>".$countincat."</strong></div>";
   }
   echo"</div>\n";
   }

   if (isset($_GET['download_cat']) && isnum($_GET['download_cat']) && $_GET['download_cat'] != "all") {
   $cat = dbquery("SELECT download_cat_id, download_cat_name FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')." AND download_cat_id='".$_GET['download_cat']."' LIMIT 1");
   $cats_list = "";
   if (dbrows($cat)) {
   while ($cat_data = dbarray($cat)) {
   echo "<div class='tbl2' style='text-align:left; margin-top: 20px; margin-bottom: 5px;'><a href='".FUSION_SELF."'>".$locale['417']."</a> &gt; ".$cat_data['download_cat_name']."</div>";
   }
   }
   }else{
   echo "<div class='tbl2' style='text-align:left; margin-top: 20px; margin-bottom: 5px;'>".$locale['417']."</div>";
   }
   

   $row_check = dbrows(dbquery("SELECT * FROM ".DB_DOWNLOADS." INNER JOIN ".DB_DOWNLOAD_CATS." ON download_cat_id = download_cat WHERE ".groupaccess('download_cat_access')." AND download_id!=''".$select_cat));
   if(!dbrows(dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')))) {
   if (isset($error) ) {
   $error = "<div style='text-align: center; padding: 5px;'>".$locale['430']."</div>";
   } elseif($row_check == 0 && isset($_GET['download_id']) && isnum($_GET['download_id'])) {
   redirect(FUSION_SELF);
   } elseif($row_check == 0) {
   redirect(FUSION_SELF);
   }
   }

   // If download_cat is set but not numerical redirect to self
   if (isset($_GET['download_cat']) && (!isnum($_GET['download_cat']))) { redirect(FUSION_SELF); }

   // If download_cat is set but empty redirect to self
   if(isset($_GET['download_cat']) && ($_GET['download_cat'] =="")) { redirect(FUSION_SELF); }

   if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart']) && isset($_GET['download_cat']) && ($_GET['download_cat'] =="")) $_GET['rowstart'] = 0;
   $cat_name = "";
   $result = dbquery(
   "SELECT tu.*, tn.*, tb.*, download_cat_id, download_cat_name FROM ".DB_DOWNLOAD_CATS." tn
   LEFT JOIN ".DB_DOWNLOADS." tu ON tn.download_cat_id=tu.download_cat
   LEFT JOIN ".DB_USERS." tb ON tu.download_user=tb.user_id
   WHERE ".groupaccess('download_cat_access')."
   AND download_id!=''".$select_cat." ORDER BY  download_datestamp DESC LIMIT ".$_GET['rowstart'].", ".$row_limit);
   if (dbrows($result) && $row_check > 0) {
   echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
   $counter = 0;
   $i0 = 0;
   $row_color = ($i0 % 2 == 0 ? "tbl1 tbl-dl" : "tbl2 tbl2-dl");
   while ($data = dbarray($result)) {

   if ($data['download_image_thumb']) {
   $img_thumbb = DOWNLOADS."images/".$data['download_image_thumb'];
   } else {
   $img_thumbb = DOWNLOADS."images/no_image.jpg";
   }
   if ($counter != 0 && ($counter % 3 == 0)) { echo "</tr>\n<tr>\n"; }
   echo "<td align='center' valign='top' width='33%' class='$row_color'>\n";
   
   if ($data['download_datestamp']+2592000 > time()+($settings['timeoffset']*3600)) {
   echo "<strong><a href='".BASEDIR."downloads.php?download_cat=".$data['download_cat']."&amp;download_id=".$data['download_id']."'>".$data['download_title']."</a></strong> &nbsp;<img src='".BASEDIR."includes/downloads_includes/images/new_5.png' alt='".$locale['410']."' title='".$locale['410']."' class='dl-blink'  style='border:0px; vertical-align:middle;' /><br /><span style='font-size: 10px;'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])." - ".showdate("%d.%m.%Y", $data['download_datestamp'])."</span><div style='padding-bottom: 10px;'>\n";
   } else {
   echo "<strong><a href='".BASEDIR."downloads.php?download_cat=".$data['download_cat']."&amp;download_id=".$data['download_id']."'>".$data['download_title']."</a></strong><br /><span style='font-size: 10px;'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])." - ".showdate("%d.%m.%Y", $data['download_datestamp'])."</span><div style='padding-bottom: 10px;'>\n";
   //echo "<strong><a href='".BASEDIR."downloads.php?download_cat=".$data['download_cat']."&amp;download_id=".$data['download_id']."'>".$data['download_title']."</a></strong> &nbsp;<img src='".BASEDIR."includes/downloads_includes/images/new_5.png' alt='".$locale['410']."' title='".$locale['410']."' class='dl-blink'  style='border:0px; vertical-align:middle;' /><br /><span style='font-size: 10px;'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])." - ".showdate("%d.%m.%Y", $data['download_datestamp'])."</span><div style='padding-bottom: 10px;'>\n";
   }
   if ($data['download_image'] !=="") {
   //if ($settings['download_screenshot'] && $data['download_image'] !=="") {
   echo "<a class='tozoom' href='".DOWNLOADS."images/".$data['download_image']."'><img src='".$img_thumbb."' class='thumb-dl' alt='".$data['download_title']."' /></a>";
   }else{
   echo "<img src='".$img_thumbb."' class='thumb-dl' alt='".$data['download_title']."' />";
   }
   if ($data['download_allow_ratings']) {
   $rate = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='D' AND rating_item_id='".$data['download_id']."'");
   $info = dbresult($rate,0);
   $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='D' AND rating_item_id='".$data['download_id']."'");
   $download_rating = ($num_rating ? $info / $num_rating : 0);
   $rate_avg_title= round($download_rating, 2)."";
   echo"<div style='margin-top:5px;'><img src='".BASEDIR."includes/downloads_includes/ratings/images/rate/".ceil($download_rating).".gif' width='64' height='12' alt='".$rate_avg_title." ".$locale['r136']."' style=' vertical-align:middle;' title='".$rate_avg_title." ".$locale['r136']."' /></div>";
   }else{
   echo"<div>---</div>";
   }
   if(!isset($_GET['download_cat'])) {
   echo "<span style='font-size: 10px;'>".$data['download_cat_name']."</span><br />";
   }
   echo "<span style='font-size: 10px;'>".$locale['dlm002'].$data['download_count'].$locale['dlm003']."</span><br />";
   if(!empty($data['download_cost'])) {
   echo "<span style='font-size: 10px;'><span style='color:red'><strong>Preis: ".$data['download_cost']." Score!</strong></span></span>";
   }else{
   echo "<span style='font-size: 10px;'><span style='color:red'><strong>Preis: 0 Score!</strong></span></span>";
   }
   echo "<a href='".BASEDIR."downloads.php?download_cat=".$data['download_cat']."&amp;download_id=".$data['download_id']."'>\n";
   echo "<div class='dl-messageb' style='margin-top: 10px; margin-bottom: 5px;'><center><strong>Zu dem<br />".$locale['416']."</strong></center>";
   echo"</div></a>";

   echo "</div>\n";
   echo "</td>\n";
   $counter++;
   $i0;
   }

   echo "<tr>\n<td class='tbl2 small2' align='right' colspan='8'></td>\n";
   echo "</table>\n";
   echo "<!--sub_download_idx-->";
   } else {
   echo"<div style='text-align: center; padding: 5px;'>".$locale['dlm001']."</div>";

   }
   closetable();


   if (isset($_GET['download_cat'])) {
   if ($row_check> $settingsb['downloads_per_page']) echo "<div align='center'>".makepagenav($_GET['rowstart'], $settingsb['downloads_per_page'], $row_check, 3,FUSION_SELF."?download_cat=".$_GET['download_cat']."&amp;")."</div>\n";
   }else{
   if ($row_check > $settingsb['downloads_per_page']) echo "<div align='center'>".makepagenav($_GET['rowstart'], $settingsb['downloads_per_page'], $row_check, 3,FUSION_SELF."?")."</div>\n";
   }

   // opentable closetable Added to Downloads Stats by Craig - www.phpfusionmods...
   opentable($locale['429']);
   echo $dl_stats;
   closetable();

   }
   /////////////////////////





// Download details

if (isset($_GET['download_id']) && isnum($_GET['download_id'])) {

   $result = dbquery("SELECT td.*,
   tc.download_cat_id, tc.download_cat_access, tc.download_cat_name,
   tu.user_id, tu.user_name, tu.user_status
   FROM ".DB_DOWNLOADS." td
   LEFT JOIN ".DB_DOWNLOAD_CATS." tc ON td.download_cat=tc.download_cat_id
   LEFT JOIN ".DB_USERS." tu ON td.download_user=tu.user_id
   WHERE download_id='".$_GET['download_id']."'");

   if (dbrows($result)) {

   $data = dbarray($result);

   if (!checkgroup($data['download_cat_access'])) { redirect(FUSION_SELF);}

   add_to_head("<script type ='text/javascript'>
   $(window).ready(function(){
   $('div.waitb').css('display','none');

   $('a.download-it').one('click', function( event) {
   $(this).toggleClass('active').next().slideDown(1000, function() {
   startTimer(5);  // 60 seconds
   setTimeout(function() {

   $('a.download-it').removeClass('active');
   window.location = '".FUSION_SELF."?cat_id=".$data['download_cat']."&file_id=".$data['download_id']."';
   $('div.waitb').css('display','none');      
   }, 5000);
   });

   return false;
   });
   });
   </script>");

   add_to_title($locale['global_200'].$locale['400']." :: ".$data['download_title']);

   if ($data['download_image_thumb']) {
   $img_thumb = DOWNLOADS."images/".$data['download_image_thumb'];
   } else {
   $img_thumb = DOWNLOADS."images/no_image.jpg";
   }
   
   $kosten = $data['download_cost'];
   
   opentable($data['download_title']);
   echo "<!--pre_download_details-->\n";
   echo "<div class='tbl-border' style='margin-bottom:10px; padding:3px;'>\n";
   echo "<div class='tbl2' style='text-align:left;'>\n";
   echo "<a href='".FUSION_SELF."'>".$locale['417']."</a> &gt; <a href='".FUSION_SELF."?download_cat=".$data['download_cat']."'>".$data['download_cat_name']."</a> &gt; <strong>".$data['download_title']."</strong>";
   echo "</div>\n</div>\n";
   $desc = ($data['download_description'] != "" ? nl2br(parseubb(parsesmileys($data['download_description']))) : nl2br(stripslashes($data['download_description_short'])));
   echo "<table width='20%' align='left' cellpadding='0' cellspacing='1' >\n<tr>\n";
   echo "<td  class=' dl-thumb-tbl tbl' align='center'>";
   if ($data['download_image'] !=="") {
   echo"<a class='tozoom' href='".DOWNLOADS."images/".$data['download_image']."'><img class='thumb-dl' src='".$img_thumb."' style='float: left;margin:3px;' alt='".$data['download_title']."' /></a>";
   }else{
   echo"<img src='".$img_thumb."' style='float: left;margin:3px;' alt='".$data['download_title']."' />";
   }
   echo "</td></tr>";
   echo"<tr><td class='tbl' align='center'>";
   $parameterurl = urlencode($settings['siteurl'].FUSION_SELF."?download_cat=".$data['download_cat']."&download_id=".$data['download_id']);
   $title = $settings['sitename'].$locale['global_200'].$data['download_title'];
   echo "<div class='share-div'>
   <a class='dl-share-bookmark' onclick=\"window.open('http://www.facebook.com/share.php?u=".$parameterurl."&amp;t=".$title."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img style='border:0px;' src='".get_image("facebook")."' alt='".$locale['share001']."'  title='".$locale['share001']."' /></a>\n
   <a style='padding-left: 3px;' class='dl-share-bookmark' onclick=\"window.open('http://twitter.com/share?url=".$parameterurl."&amp;text=$title','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img style='border:0px;' src='".get_image("twitter")."' alt='".$locale['share002']."'  title='".$locale['share002']."' /></a>\n
   <a style='padding-left: 3px;' class='dl-share-bookmark' onclick=\"window.open('https://plus.google.com/share?url=".$parameterurl."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img style='border:0px;' src='".get_image("google+")."' alt='".$locale['share003']."'  title='".$locale['share003']."' /></a>\n</div>\n";
   echo"</td>";
   echo"</tr></table>";
   echo "<table class='dl-details-tbl' align='left' width='75%' cellpadding='0' cellspacing='1'>\n<tr>\n";
   echo "<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/author.png' alt='".$locale['422']."' title='".$locale['422']."' /></td>\n<td class='tbl1'>";
   echo  profile_link($data['user_id'], $data['user_name'], $data['user_status']);
   echo "</td>\n<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/calendar.png' alt='".$locale['414']."' title='".$locale['414']."' /></td>\n";
   echo "<td class='tbl1'>".showdate("%d.%m.%Y %H:%M", $data['download_datestamp'])."";
   echo"</td>\n";
   echo "<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/lizenz.png' alt='".$locale['411']."' title='".$locale['411']."' /></td>\n";
   echo "<td class='tbl1'>";
   echo download_license();
   echo "</td></tr>";
   echo "<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/homepage.png' alt='".$locale['418']."' title='".$locale['418']."' /></td>\n";
   echo "<td class='tbl1'>";
   if ($data['download_homepage'] != "") {
   if (!strstr($data['download_homepage'], "http://") && !strstr($data['download_homepage'], "https://")) {
   $urlprefix = "http://";
   } else {
   $urlprefix = "";
   }
   echo "<a href='".$urlprefix.$data['download_homepage']."' title='".$urlprefix.$data['download_homepage']."' target='_blank'>".$locale['418b']."</a>";
   }else{
   echo "---";
   }
   echo"</td>\n";
   echo "<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/dl.png' alt='".$locale['415']."' title='".$locale['415']."' /></td>\n";
   echo "<td class='tbl1'>";
   echo $data['download_count'];
   echo"</td>\n";
   echo "<td class='tbl1' align='center' width='40'><img src='".BASEDIR."includes/downloads_includes/images/version.png' alt='".$locale['413']."' title='".$locale['413']."' /></td>\n";
   echo "<td class='tbl1'>";
   if ($data['download_version'] !="") {
   echo $data['download_version'];
   }else{
   echo"---";
   }         
   echo"</td>\n";
   echo "</tr>\n";
   echo "<tr><td colspan='6' class='tbl2'><strong>".$locale['428'].":</strong></td>\n";
   echo "</tr>\n<tr>\n<td colspan='6' class='tbl1'>";
   echo $desc;
   echo "</td>\n</tr>\n";
   echo"<tr><td colspan='6' style='padding-top: 15px;' class='tbl1'>";
   if ($data['download_os'] != "") {
   echo "<strong>".$locale['412']."</strong> ".$data['download_os']."\n";
   }
   if ($data['download_copyright'] != "") {
   echo " - <strong>".$locale['411b']."</strong> &copy; ".$data['download_copyright']."\n";
   }
   echo"</td></tr>";
   if(!empty($data['download_cost'])) {
   echo "<tr><td colspan='6' class='tbl2'><img src='".BASEDIR."includes/downloads_includes/images/coin.png' alt='Preis' title='Preis' /> <strong><span style='color:red'>".$data['download_cost']." Score!</span></strong></td></tr>\n";
   }else{
   echo "<tr><td colspan='6' class='tbl2'><img src='".BASEDIR."includes/downloads_includes/images/coin.png' alt='Preis' title='Preis' /> <strong><span style='color:red'>0 Score!</span></strong></td></tr>\n";
   }
   echo"</table>";
   if(iMEMBER) {
      if ( score_account_stand() > $kosten ) {
   echo "<table class='tbl1' style='height: 100px;' width='100%' cellpadding='0' cellspacing='1'>\n<tr>\n";
   

   echo"<tr><td width='50%'><div class='dl-licb'>";
   echo download_license_colorbox();
   echo "</div></td><td width='50%'><a  class='download-it' ><div class='dl-itb'>\n";
   echo "<div class='dl-message' style='margin-top: 20px; margin-bottom: 5px;'><strong>".$locale['416']."</strong>";
   if ($data['download_filesize'] != "") {
   echo " <span style='font-size: 10px;'>(".$data['download_filesize'].")</span>\n";
   }
   echo"</div></a>";
   echo"<div class='waitb message'>".$locale['dlm004']." <br />".$locale['dlm005']." <span id='countdownb' style='font-weight: bold; color: #ff0000;'>5</span> ".$locale['dlm006'].".</div>";
   echo"</div>";

   echo "</td></tr>";
   echo "</table>\n";
      }else{
   echo "<table class='tbl1' style='height: 100px;' width='100%' cellpadding='0' cellspacing='1'>\n<tr>\n";
   echo"<tr><td><div class='dl-licb'>";
   echo download_license_colorbox();
   echo "</div></td><td><div class='dl-itb'>\n";
   echo"<div class='admin-message'><img src='".BASEDIR."includes/downloads_includes/images/error.png' alt=''> <strong>Zugriff verweigert!</strong><br /><small>Du hast zu wenig Score.</small></div>\n";
   echo"</div>";

   echo "</td></tr>";
   echo "</table>\n";
   }
   }else{
   echo "<table class='tbl1' style='height: 100px;' width='100%' cellpadding='0' cellspacing='1'>\n<tr>\n";
   

   echo"<tr><td><div class='dl-licb'>";
   echo download_license_colorbox();
   echo "</div></td><td><div class='dl-itb'>\n";
   echo"<div class='admin-message'><img src='".BASEDIR."includes/downloads_includes/images/error.png' alt=''> ".$locale['432']."</div>\n";
   echo"</div>";

   echo "</td></tr>";
   echo "</table>\n";
   }
   echo "<strong>Archiv:</strong><br /> ".showdate("shortdate", $data['download_datestamp'])." ".$data['download_file']." [".$data['download_filesize']."]";
   echo "<!--sub_download_details-->\n";
   closetable();

   $result = dbquery("SELECT td.*, tu.user_id, tu.user_name, tu.user_status,
   tc.download_cat_id, tc.download_cat_access, tc.download_cat_name, tc.download_cat_description
   FROM ".DB_DOWNLOADS." td
   LEFT JOIN ".DB_USERS." tu ON td.download_user=tu.user_id
   INNER JOIN ".DB_DOWNLOAD_CATS." tc ON td.download_cat=tc.download_cat_id
   ".(iSUPERADMIN ? "" : " WHERE ".groupaccess('download_cat_access'))." AND  download_user='".$data['download_user']."' AND download_id !='".$data['download_id']."'
   ORDER BY RAND() DESC LIMIT 0,5");

   $row_color = ($i % 2 == 0 ? "tbl1 tbl-dl" : "tbl2 tbl2-dl");

   if (dbrows($result)) {
   opentable($locale['dlm007'].$data['user_name']);
   $i = 0;
   $dl_cat_name = "";
   if (($dl_cat_name == "") || ($dl_cat_name != $data['download_cat_name'])) {

   echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
   echo "<tr>\n<td align='center' width='1%' style='background-color: #ccc; padding-top: 7px;' class='tbl2'><img src='".BASEDIR."includes/downloads_includes/images/download_cat_no.png' title='' alt='' border='0' /></td>";
   echo "<td class='tbl2' width='30%' style='background-color: #ccc;padding-left: 10px;'><strong>".$locale['416']."</strong>\n</td>\n";
   echo "<td class='tbl2 dlauthor' style='background-color: #ccc;padding: 5px;'><strong>".$locale['422']."</strong></td>";
   echo "<td class='tbl2 dldate' style='background-color: #ccc;padding: 5px;'><strong>".$locale['421']."</strong></td>";
   echo "<td class='tbl2 dlrat' style='background-color: #ccc;padding: 5px;'><strong>".$locale['426']."</strong></td>";
   echo "<td class='tbl2 dll' style='background-color: #ccc;padding: 5px;'><strong>".$locale['400']."</strong></td></tr>";
   }
   while ($datab = dbarray($result)) {
   $row_color = ($i % 2 == 0 ? "tbl1 tbl-dl" : "tbl2 tbl2-dl");

   if ($datab['download_datestamp'] + 2592000 > time() + ($settings['timeoffset'] * 3600)) {
   $new = "<span style='font-weight: bold;'>".$datab['download_title']."</span> &nbsp;<img src='".BASEDIR."includes/downloads_includes/images/new_5.png' alt='".$locale['410']."' title='".$locale['410']."' class='dl-blink'  style='border:0px; vertical-align:middle;' />";
   } else {
   $new = $datab['download_title'];
   }

   echo "<tr>\n<td class='$row_color' align='center' width='1%'><a title='".$locale['416']." ".$datab['download_title']."' href='".FUSION_SELF."?download_cat=".$datab['download_cat']."&download_id=".$datab['download_id']."'><img src='".BASEDIR."includes/downloads_includes/images/downl.png' alt='".$locale['416']."' border='0' /></a></td>";
   echo "<td class='$row_color' style='padding: 5px;' width='25%'>";
   echo "<a href='".FUSION_SELF."?download_cat=".$datab['download_cat']."&download_id=".$datab['download_id']."' title='".$datab['download_title']." v".$datab['download_version']."'>  ".$new."</a>";
   echo "</td>\n<td class='$row_color dlauthorb' width='10%' nowrap>".profile_link($datab['user_id'], $datab['user_name'], $datab['user_status'])."</td>\n";
   echo "<td class='$row_color dldateb' width='10%' nowrap>".date("d.m.Y", $datab['download_datestamp'])."</td>\n";
   echo "<td class='$row_color dlratb' width='10%' nowrap>";
   if ($datab['download_allow_ratings']) {
   $rate = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='D' AND rating_item_id='".$datab['download_id']."'");
   $info = dbresult($rate,0);
   $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='D' AND rating_item_id='".$datab['download_id']."'");
   $download_rating = ($num_rating ? $info / $num_rating : 0);
   echo"<img src='".BASEDIR."includes/downloads_includes/ratings/images/rate/".ceil($download_rating).".gif' width='64' height='12' alt='".ceil($download_rating)." ".$locale['r136']."' style=' vertical-align:middle;' title='".ceil($download_rating)." ".$locale['r136']."' />";
   }else{
   echo"---";
   }
   echo"</td>\n";
   echo "<td class='$row_color dllb' width='1%' nowrap>".$datab['download_count']."</td>";
   $i++;
   }
   echo "</tr></table>\n";
   closetable();
   }

   echo "<!--pre_download_comments-->\n";
   // Ajax Star Ratings Added by Craig - www.phpfusionmods...
   include INCLUDES."downloads_includes/ratings/rating_functions.php";
   include INCLUDES."comments_include.php";
   if ($data['download_allow_ratings']) { showstarratings("D", $_GET['download_id'], FUSION_SELF."?cat_id=".$data['download_cat']."&amp;download_id=".$_GET['download_id']); }
   if ($data['download_allow_comments']) { showcomments("D", DB_DOWNLOADS, "download_id", $_GET['download_id'], FUSION_SELF."?cat_id=".$data['download_cat']."&amp;download_id=".$_GET['download_id']); }

   }else{
   redirect(FUSION_SELF);
   }
   }
   
require_once THEMES."templates/footer.php";
?>



Bearbeitet von Andydeluxe97 am 06-08-2017 17:02
Verwarnstatus: warningwarningwarningwarning
 
https://dayz-community.xyz/
Springe ins Forum:
Ähnliche Themen
Thema Forum Antworten Letzter Beitrag
Download Shop Panel Allgemeines 5 15-11-2021 15:17
Pro Download Panel Allgemeines 23 15-11-2021 11:52
Infusions Verifizierung D1 Mods & Infusionen 10 20-08-2020 20:18
D1 Support Light 1.0.0 Download Dateien fehlen Fehler & Bugs 3 11-01-2019 01:31
Pro Download System Fehler Allgemeines 3 13-07-2018 23:29
Sämtliche Grafiken und Texte dieser Seite unterliegen dem Urheberrecht und dürfen nicht ohne Erlaubnis kopiert werden!!!