Navigacija

Vartotojų tinkle

Prisijungusių svečių: 793
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas 5 dienos
MaFetas 1 savaitė
TOMIJUS 1 savaitė
ozzWANTED 2 savaitės
Reikalas10 savaitės
Jaunelis17 savaitės
lanis17 savaitės
And2s18 savaitės
Memento Mori23 savaitės
Quwqkibor25 savaitės
asirija29 savaitės
tomeem31 savaitės
weberiz34 savaitės
mRokass37 savaitės
kartoonas38 savaitės
grunskiz41 savaitės
Bruksnys41 savaitės
illusion41 savaitės
ordo42 savaitės
Jurgaila43 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.135.184.195
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Stop - Puslapis tik nariams.
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: aivariokas48 Peržiūrų: 1531      Spausdinti temą
2013 Rugp. 4 19:08:02          1 žinutė iš 8
Spausdinti pranešimą
Sveiki forumieciai, kaip matot as dar naujokas ir norejau paklausti. kaip padaryt pvz kad forumas ir siuntiniai butu tik nariams?

Isvis geriau kaip padaryt kad kai inteini neprisijunges tau ismeta kad reikia prisiregistruot pries inteinant i websaita nes tai privatus puslapis. kaip torrent.lt tik su registracija šypsosi


Dekui, uz pagalba.

www.pervshub.com - Erotica nemokamai!
2013 Rugp. 4 20:08:30          2 žinutė iš 8
Spausdinti pranešimą
http://modai.webdnd.com/Puslapis...,m770.html Prašau šypsosi

Kas Nupiso Mano Kedus?
2013 Rugp. 4 22:08:39          3 žinutė iš 8
Spausdinti pranešimą
Neveikia šypsosi Davai rimtai, bent koks modas yra?

www.pervshub.com - Erotica nemokamai!
2013 Rugp. 4 23:08:43          4 žinutė iš 8
Spausdinti pranešimą
Redaguok tuos failus kuriuos nori paslėpti nuo svečių. pvz.:

 
 
if(iGUEST) {
echo "<b>Matoma tik nariams, prašome užsiregistruoti ir prisijungti.</b>";
} else {
 
<span style="border-bottom: 1px dotted black;">php</span> kodas kurį mato prisijungę nariai.
 
}
 
 


FILMAITAU.in
2013 Rugp. 10 01:08:06          5 žinutė iš 8
Spausdinti pranešimą
O kur ji interpt? pavyzdziui i downloads.php

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: downloads.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| 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/licenses/agpl.html. 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";

add_to_title($locale['global_200'].$locale['400']);

// download the file
if (isset($_GET['file_id']) && isnum($_GET['file_id'])) {
   $download_id = stripinput($_GET['file_id']);
   $res = 0;
   if ($data = dbarray(dbquery("SELECT download_url, download_file, download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$download_id."'"))) {
      $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."'");
         if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) {
            $res = 1;
            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";

// Filter form, list of existing cats and downloads
if (!isset($_GET['download_id']) || !isnum($_GET['download_id'])) {
   opentable($locale['400']);
   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 = ""; $filter = ""; $order_by = ""; $sort = ""; $getString = "";
   if (dbrows($cat_list_result)) {
      while ($cat_list_data = dbarray($cat_list_result)) {
         $sel = (isset($_GET['cat_id']) && $_GET['cat_id'] == $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>";
      }

      if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart']) || $_GET['rowstart'] > dbrows($cat_list_result)) { $_GET['rowstart'] = 0; }
      if (isset($_GET['cat_id']) && isnum($_GET['cat_id']) && $_GET['cat_id'] != "all") {
         $filter .= " AND download_cat_id='".$_GET['cat_id']."'";
         $order_by_allowed = array("download_id", "download_user", "download_count", "download_datestamp");
         if (isset($_GET['orderby']) && in_array($_GET['orderby'], $order_by_allowed)) {
            $order_by = $_GET['orderby'];
            $getString .= "&amp;orderby=".$order_by;
         } else {
            $order_by = "";
         }
         if (isset($_GET['sort']) && $_GET['sort'] == "DESC") {
            $sort = "DESC";
            $getString .= "&amp;sort=DESC";
         } else {
            $sort = "ASC";
         }
      } else {
         $filter = ""; $order_by = ""; $sort = ""; // Can be removed
      }

      echo "<form name='filter_form' method='get' action='".FUSION_SELF."'>\n";
      echo "<table class='tbl' cellpadding='1' cellspacing='0' style='width:100%;'>\n";
      echo "<tr>\n";
      echo "<td class='tbl1' style='width:40%; text-align:left;'>".$locale['450']."</td>\n";
      echo "<td class='tbl1' style='width:60%; text-align:right;'>".$locale['462']."\n";
      echo "<select name='cat_id' class='textbox' onchange='this.form.submit();'>\n";
      echo "<option value='all'>".$locale['451']."</option>".$cats_list."</select>\n";
      echo "</td>\n";
      echo "</tr>\n";
      if (isset($_GET['cat_id']) && isnum($_GET['cat_id'])) {
         echo "<tr>\n";
         echo "<td class='tbl1' style='width:40%; text-align:left;'></td>\n";
         echo "<td class='tbl1' style='width:60%; text-align:right;'>";
         echo $locale['463']." <select name='orderby' class='textbox' onchange='this.form.submit();'>\n";
         echo "<option value='download_id'".($order_by == "download_id" ? " selected='selected'" : "").">".$locale['452']."</option>\n";
         echo "<option value='download_title'".($order_by == "download_title" ? " selected='selected'" : "").">".$locale['453']."</option>\n";
         echo "<option value='download_user'".($order_by == "download_user" ? " selected='selected'" : "").">".$locale['454']."</option>\n";
         echo "<option value='download_count'".($order_by == "download_count" ? " selected='selected'" : "").">".$locale['455']."</option>\n";
         echo "<option value='download_datestamp'".($order_by == "download_datestamp" ? " selected='selected'" : "").">".$locale['456']."</option>\n";
         echo "</select>\n";
         echo "<select name='sort' class='textbox' onchange='this.form.submit();'>\n";
         echo "<option value='ASC'".($sort == "ASC" ? " selected='selected'" : "").">".$locale['457']."</option>\n";
         echo "<option value='DESC'".($sort == "DESC" ? " selected='selected'" : "").">".$locale['458']."</option>\n";
         echo "</select>";
         echo "</td>\n";
         echo "</tr>\n";
      }
      echo "<tr>\n";
      echo "<td class='tbl1' style='width:40%; text-align:left;'></td>\n";
      echo "<td class='tbl1' style='width:60%; text-align:right;'>";
      echo "<input id='filter_button' type='submit' class='button' value='".$locale['459']."' />";
      echo "</td>\n";
      echo "</tr>\n";
      echo "</table>\n</form>\n";
      echo "<hr /><div style='text-align:right;'>\n";
      echo "<form name='searchform' method='get' action='".BASEDIR."search.php'>\n";
      echo "<span class='small'>".$locale['460']." </span>\n";
      echo "<input type='text' name='stext' class='textbox' style='width:150px' />\n";
      echo "<input type='submit' name='search' value='".$locale['461']."' class='button' />\n";
      echo "<input type='hidden' name='stype' value='downloads' />\n";
      echo "</form>\n";
      echo "</div>";

      echo "<script language='JavaScript' type='text/javascript'>\n";
      echo "/* <![CDATA[ */\n";
      echo "jQuery(document).ready(function() {
            jQuery('#filter_button').hide();
         });";
      echo "/* ]]>*/\n";
      echo "</script>\n";
   }

   $cat_result = dbquery(
         "SELECT download_cat_id, download_cat_name, download_cat_description, download_cat_access, download_cat_sorting
         FROM ".DB_DOWNLOAD_CATS."
         WHERE ".groupaccess('download_cat_access').$filter."
         ORDER BY download_cat_name");
   if (dbrows($cat_result)) {
      echo "<br /><table class='tbl-border center' cellpadding='1' cellspacing='2' style='width:100%;'>\n";
      echo "<tr>\n";
      echo "<td class='tbl2' colspan='2'>".$locale['420']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['421']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['422']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['423']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['424']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['425']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['426']."</td>\n";
      echo "</tr>\n";
      while($cat_data = dbarray($cat_result)) {
         echo "<tr><td colspan='8' class='tbl2' style='text-align:left;font-weight:bold;'>".$cat_data['download_cat_name']."</td></tr>\n";
         if (isset($_GET['cat_id']) && isnum($_GET['cat_id']) && $cat_data['download_cat_description'] != "") {
            echo "<tr><td colspan='8' class='tbl1 small' style='text-align:left;'>".$cat_data['download_cat_description']."</td></tr>\n";
         }
         if (checkgroup($cat_data['download_cat_access'])) {
            echo "<!--pre_download_cat-->";
            $rows = dbcount("(download_id)", DB_DOWNLOADS, "download_cat='".$cat_data['download_cat_id']."'");
            if (!isset($_GET['rowstart'.$cat_data['download_cat_id']]) || !isnum($_GET['rowstart'.$cat_data['download_cat_id']]) || $_GET['rowstart'.$cat_data['download_cat_id']] > $rows) { $_GET['rowstart'.$cat_data['download_cat_id']] = 0; }
            if ($rows != 0) {
                  $result = dbquery(
                     "SELECT td.download_id, td.download_user, td.download_datestamp, td.download_image_thumb, td.download_cat,
                           td.download_title, td.download_version, td.download_count, td.download_description_short,
                           tu.user_id, tu.user_name, tu.user_status,
                     SUM(tr.rating_vote) AS sum_rating,
                     COUNT(tr.rating_item_id) AS count_votes
                     FROM ".DB_DOWNLOADS." td
                     LEFT JOIN ".DB_USERS." tu ON td.download_user=tu.user_id
                     LEFT JOIN ".DB_RATINGS." tr ON tr.rating_item_id = td.download_id AND tr.rating_type='D'
                     WHERE download_cat='".$cat_data['download_cat_id']."'
                     GROUP BY download_id
                     ORDER BY ".($order_by == "" ? $cat_data['download_cat_sorting'] : $order_by." ".$sort)."
                     LIMIT ".$_GET['rowstart'.$cat_data['download_cat_id']].",".$settings['downloads_per_page']);
               $numrows = dbrows($result); $i = 1;
               while ($data = dbarray($result)) {
                  if ($data['download_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
                     $new = " <span class='small'>".$locale['410']."</span>";
                  } else {
                     $new = "";
                  }
                  if ($data['download_image_thumb']) {
                     $img_thumb = DOWNLOADS."images/".$data['download_image_thumb'];
                  } else {
                     $img_thumb = DOWNLOADS."images/no_image.jpg";
                  }
                  $comments_count = dbcount("(comment_id)", DB_COMMENTS, "comment_type='D' AND comment_item_id='".$data['download_id']."'");
                  echo "<tr>\n";
                  echo "<td class='tbl2' style='width:1%;'>".$new."</td>\n";
                  echo "<td class='tbl1' style='text-align:left;'><a href='".FUSION_SELF."?cat_id=".$cat_data['download_cat_id']."&amp;download_id=".$data['download_id']."'>".$data['download_title']."</a></td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".showdate("shortdate", $data['download_datestamp'])."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".($data['download_version'] ?  $data['download_version'] : "--")."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".$data['download_count']."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".$comments_count."</td>\n";
                  echo "<td class='tbl2' style='white-space:nowrap;'>".($data['count_votes'] > 0 ? str_repeat("<img src='".get_image("star")."' alt='*' style='vertical-align:middle; width:10px;height:10px;' />", ceil($data['sum_rating'] / $data['count_votes'])) : "--")."</td>\n";
                  echo "</tr>\n";
                  echo "<tr>\n";
                  echo "<td colspan='8' class='tbl1 small'>\n";
                  if ($settings['download_screenshot']) {
                     echo "<img src='".$img_thumb."' style='float: left;margin:3px;' alt='".$data['download_title']."' />\n";
                  }
                  if ($data['download_description_short']) {
                     echo nl2br(stripslashes($data['download_description_short']));
                  }
                  echo "</td>\n</tr>\n";
               }
               if ($rows > $settings['downloads_per_page']) {
                  echo "<tr>\n<td colspan='8' class='tbl2' style='text-align:center;'>\n".makepagenav($_GET['rowstart'.$cat_data['download_cat_id']], $settings['downloads_per_page'], $rows, 3, FUSION_SELF."?cat_id=".$cat_data['download_cat_id'].$getString."&amp;", "rowstart".$cat_data['download_cat_id'])."\n</td></tr>\n"; }
            } else {
               echo "<tr>\n<td class='tbl1' colspan='8' style='text-align:center'>".$locale['431']."</td></tr>\n";
               echo "<!--sub_download_cat-->";
            }
         }
      }
      echo "</table>\n";
   } else {
      echo "<div style='text-align:center'><br />\n".$locale['430']."<br /><br />\n</div>\n";
   }
   echo "<!--sub_download_idx-->";
   closetable();
}

// Download details
if (isset($_GET['download_id']) && isnum($_GET['download_id'])) {
   add_to_head("<link rel='stylesheet' href='".INCLUDES."jquery/colorbox/colorbox.css' type='text/css' media='screen' />");
   add_to_head("<script type='text/javascript' src='".INCLUDES."jquery/colorbox/jquery.colorbox.js'></script>");
   add_to_head("<script type='text/javascript'>\n
   /* <![CDATA[ */\n
   jQuery(document).ready(function(){
      jQuery('a.tozoom').colorbox();
   });\n
   /* ]]>*/\n
   </script>\n");

   $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);}
      opentable($locale['400'].": ".$data['download_title']);
      echo "<!--pre_download_details-->\n";
      echo "<div class='tbl-border' style='margin-bottom:10px; padding:3px;'>\n";
      echo "<div class='forum-caption' style='text-align:left;'>\n";
      echo "<a href='".FUSION_SELF."'>".$locale['417']."</a> &gt; <a href='".FUSION_SELF."?cat_id=".$data['download_cat']."'>".$data['download_cat_name']."</a> &gt; <strong>".$data['download_title']."</strong>";
      echo "</div>\n</div>\n";

      echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border center'>\n";
      echo "<tr>\n<td class='tbl1' colspan='2'><h2>".$data['download_title']." ".$data['download_version']."</h2><hr /></td></tr>\n";
      echo "<tr>\n<td class='tbl1' style='vertical-align:top;'>".($data['download_description'] != "" ? nl2br(parseubb(parsesmileys($data['download_description']))) : nl2br(stripslashes($data['download_description_short'])))."</td>";
      echo "<td class='tbl1' style='width:20%;text-align:center;vertical-align:top;'>";
      echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border center'>\n";
      if ($data['download_homepage'] != "") {
         if (!strstr($data['download_homepage'], "http://") && !strstr($data['download_homepage'], "https://")) {
            $urlprefix = "http://";
         } else {
            $urlprefix = "";
         }
         echo "<tr><td class='tbl2' style='text-align:center;'>";
         echo "<img src='".get_image("homepage")."' alt='".$locale['418']."' /><br />";
         echo "<a href='".$urlprefix.$data['download_homepage']."' title='".$urlprefix.$data['download_homepage']."' target='_blank'>".$locale['418']."</a>";
         echo "</td>\n</tr>\n";
      }

      if ($settings['download_screenshot'] && $data['download_image'] != "") {
         echo "<tr>\n";
         echo "<td class='tbl2' style='text-align:center;'><img src='".get_image("screenshot")."' alt='".$locale['419']."' /><br />\n";
         echo "<a class='tozoom' href='".DOWNLOADS."images/".$data['download_image']."'>".$locale['419']."</a>\n";
         echo "</td>\n</tr>\n";
      }
      echo "<tr>\n";
      echo "<td class='tbl2' style='text-align:center;'><img src='".get_image("calendar")."' alt='".$locale['427']."' />\n";
      echo "<br />".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."\n";
      echo "<br />".showdate("longdate", $data['download_datestamp'])."\n";
      echo "</td>\n</tr>\n";
      echo "<tr>\n";
      echo "<td class='tbl2' style='text-align:center;'>\n";
      echo "<img src='".get_image("downloads")."' alt='".$locale['424']."' /><br />".$locale['416']." ".$data['download_count']."\n";
      echo "</td>\n</tr>\n";
      if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") {
         echo "<tr>\n<td class='tbl2' style='text-align:center;'><img src='".get_image("info")."' alt='".$locale['428']."' /><br />\n";
      }
      if ($data['download_version'] != "") {
         echo $locale['413']." ".$data['download_version']."<br />\n";
      }
      if ($data['download_license'] != "") {
         echo $locale['411']." ".$data['download_license']."<br />\n";
      }
      if ($data['download_os'] != "") {
         echo $locale['412']." ".$data['download_os']."<br />\n";
      }
      if ($data['download_copyright'] != "") {
         echo "&copy; ".$data['download_copyright']."<br />\n";
      }
      if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") {
         echo "</td>\n</tr>\n";
      }
      echo "</table>\n";
      echo "</td></tr>\n";
      echo "<tr>\n";
      echo "<td class='tbl1' colspan='2' style='text-align:center;'><hr />\n";
      echo "<strong>".$locale['416'].":</strong><br />\n";
      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";
      }
      echo "</td>\n</tr>\n";
      echo "</table>\n";

      echo "<!--sub_download_details-->\n";
      closetable();
      echo "<!--pre_download_comments-->\n";
      include INCLUDES."comments_include.php";
      include INCLUDES."ratings_include.php";
      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']); }
      if ($data['download_allow_ratings']) { showratings("D", $_GET['download_id'], FUSION_SELF."?cat_id=".$data['download_cat']."&amp;download_id=".$_GET['download_id']); }
   }
}

echo $dl_stats;

require_once THEMES."templates/footer.php";
?>




www.pervshub.com - Erotica nemokamai!
2013 Rugp. 10 15:08:44          6 žinutė iš 8
Spausdinti pranešimą
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: downloads.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| 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/licenses/agpl.html. 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";

add_to_title($locale['global_200'].$locale['400']);

if(iGUEST) {

opentable("DEMESIO!");
echo "<b>Matoma tik nariams, prašome užsiregistruoti ir prisijungti.</b>";
closetable();
} else {

// download the file
if (isset($_GET['file_id']) && isnum($_GET['file_id'])) {
   $download_id = stripinput($_GET['file_id']);
   $res = 0;
   if ($data = dbarray(dbquery("SELECT download_url, download_file, download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$download_id."'"))) {
      $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."'");
         if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) {
            $res = 1;
            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";

// Filter form, list of existing cats and downloads
if (!isset($_GET['download_id']) || !isnum($_GET['download_id'])) {
   opentable($locale['400']);
   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 = ""; $filter = ""; $order_by = ""; $sort = ""; $getString = "";
   if (dbrows($cat_list_result)) {
      while ($cat_list_data = dbarray($cat_list_result)) {
         $sel = (isset($_GET['cat_id']) && $_GET['cat_id'] == $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>";
      }

      if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart']) || $_GET['rowstart'] > dbrows($cat_list_result)) { $_GET['rowstart'] = 0; }
      if (isset($_GET['cat_id']) && isnum($_GET['cat_id']) && $_GET['cat_id'] != "all") {
         $filter .= " AND download_cat_id='".$_GET['cat_id']."'";
         $order_by_allowed = array("download_id", "download_user", "download_count", "download_datestamp");
         if (isset($_GET['orderby']) && in_array($_GET['orderby'], $order_by_allowed)) {
            $order_by = $_GET['orderby'];
            $getString .= "&amp;orderby=".$order_by;
         } else {
            $order_by = "";
         }
         if (isset($_GET['sort']) && $_GET['sort'] == "DESC") {
            $sort = "DESC";
            $getString .= "&amp;sort=DESC";
         } else {
            $sort = "ASC";
         }
      } else {
         $filter = ""; $order_by = ""; $sort = ""; // Can be removed
      }

      echo "<form name='filter_form' method='get' action='".FUSION_SELF."'>\n";
      echo "<table class='tbl' cellpadding='1' cellspacing='0' style='width:100%;'>\n";
      echo "<tr>\n";
      echo "<td class='tbl1' style='width:40%; text-align:left;'>".$locale['450']."</td>\n";
      echo "<td class='tbl1' style='width:60%; text-align:right;'>".$locale['462']."\n";
      echo "<select name='cat_id' class='textbox' onchange='this.form.submit();'>\n";
      echo "<option value='all'>".$locale['451']."</option>".$cats_list."</select>\n";
      echo "</td>\n";
      echo "</tr>\n";
      if (isset($_GET['cat_id']) && isnum($_GET['cat_id'])) {
         echo "<tr>\n";
         echo "<td class='tbl1' style='width:40%; text-align:left;'></td>\n";
         echo "<td class='tbl1' style='width:60%; text-align:right;'>";
         echo $locale['463']." <select name='orderby' class='textbox' onchange='this.form.submit();'>\n";
         echo "<option value='download_id'".($order_by == "download_id" ? " selected='selected'" : "").">".$locale['452']."</option>\n";
         echo "<option value='download_title'".($order_by == "download_title" ? " selected='selected'" : "").">".$locale['453']."</option>\n";
         echo "<option value='download_user'".($order_by == "download_user" ? " selected='selected'" : "").">".$locale['454']."</option>\n";
         echo "<option value='download_count'".($order_by == "download_count" ? " selected='selected'" : "").">".$locale['455']."</option>\n";
         echo "<option value='download_datestamp'".($order_by == "download_datestamp" ? " selected='selected'" : "").">".$locale['456']."</option>\n";
         echo "</select>\n";
         echo "<select name='sort' class='textbox' onchange='this.form.submit();'>\n";
         echo "<option value='ASC'".($sort == "ASC" ? " selected='selected'" : "").">".$locale['457']."</option>\n";
         echo "<option value='DESC'".($sort == "DESC" ? " selected='selected'" : "").">".$locale['458']."</option>\n";
         echo "</select>";
         echo "</td>\n";
         echo "</tr>\n";
      }
      echo "<tr>\n";
      echo "<td class='tbl1' style='width:40%; text-align:left;'></td>\n";
      echo "<td class='tbl1' style='width:60%; text-align:right;'>";
      echo "<input id='filter_button' type='submit' class='button' value='".$locale['459']."' />";
      echo "</td>\n";
      echo "</tr>\n";
      echo "</table>\n</form>\n";
      echo "<hr /><div style='text-align:right;'>\n";
      echo "<form name='searchform' method='get' action='".BASEDIR."search.php'>\n";
      echo "<span class='small'>".$locale['460']." </span>\n";
      echo "<input type='text' name='stext' class='textbox' style='width:150px' />\n";
      echo "<input type='submit' name='search' value='".$locale['461']."' class='button' />\n";
      echo "<input type='hidden' name='stype' value='downloads' />\n";
      echo "</form>\n";
      echo "</div>";

      echo "<script language='JavaScript' type='text/javascript'>\n";
      echo "/* <![CDATA[ */\n";
      echo "jQuery(document).ready(function() {
            jQuery('#filter_button').hide();
         });";
      echo "/* ]]>*/\n";
      echo "</script>\n";
   }

   $cat_result = dbquery(
         "SELECT download_cat_id, download_cat_name, download_cat_description, download_cat_access, download_cat_sorting
         FROM ".DB_DOWNLOAD_CATS."
         WHERE ".groupaccess('download_cat_access').$filter."
         ORDER BY download_cat_name");
   if (dbrows($cat_result)) {
      echo "<br /><table class='tbl-border center' cellpadding='1' cellspacing='2' style='width:100%;'>\n";
      echo "<tr>\n";
      echo "<td class='tbl2' colspan='2'>".$locale['420']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['421']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['422']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['423']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['424']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['425']."</td>\n";
      echo "<td class='tbl2' style='width:1%;'>".$locale['426']."</td>\n";
      echo "</tr>\n";
      while($cat_data = dbarray($cat_result)) {
         echo "<tr><td colspan='8' class='tbl2' style='text-align:left;font-weight:bold;'>".$cat_data['download_cat_name']."</td></tr>\n";
         if (isset($_GET['cat_id']) && isnum($_GET['cat_id']) && $cat_data['download_cat_description'] != "") {
            echo "<tr><td colspan='8' class='tbl1 small' style='text-align:left;'>".$cat_data['download_cat_description']."</td></tr>\n";
         }
         if (checkgroup($cat_data['download_cat_access'])) {
            echo "<!--pre_download_cat-->";
            $rows = dbcount("(download_id)", DB_DOWNLOADS, "download_cat='".$cat_data['download_cat_id']."'");
            if (!isset($_GET['rowstart'.$cat_data['download_cat_id']]) || !isnum($_GET['rowstart'.$cat_data['download_cat_id']]) || $_GET['rowstart'.$cat_data['download_cat_id']] > $rows) { $_GET['rowstart'.$cat_data['download_cat_id']] = 0; }
            if ($rows != 0) {
                  $result = dbquery(
                     "SELECT td.download_id, td.download_user, td.download_datestamp, td.download_image_thumb, td.download_cat,
                           td.download_title, td.download_version, td.download_count, td.download_description_short,
                           tu.user_id, tu.user_name, tu.user_status,
                     SUM(tr.rating_vote) AS sum_rating,
                     COUNT(tr.rating_item_id) AS count_votes
                     FROM ".DB_DOWNLOADS." td
                     LEFT JOIN ".DB_USERS." tu ON td.download_user=tu.user_id
                     LEFT JOIN ".DB_RATINGS." tr ON tr.rating_item_id = td.download_id AND tr.rating_type='D'
                     WHERE download_cat='".$cat_data['download_cat_id']."'
                     GROUP BY download_id
                     ORDER BY ".($order_by == "" ? $cat_data['download_cat_sorting'] : $order_by." ".$sort)."
                     LIMIT ".$_GET['rowstart'.$cat_data['download_cat_id']].",".$settings['downloads_per_page']);
               $numrows = dbrows($result); $i = 1;
               while ($data = dbarray($result)) {
                  if ($data['download_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
                     $new = " <span class='small'>".$locale['410']."</span>";
                  } else {
                     $new = "";
                  }
                  if ($data['download_image_thumb']) {
                     $img_thumb = DOWNLOADS."images/".$data['download_image_thumb'];
                  } else {
                     $img_thumb = DOWNLOADS."images/no_image.jpg";
                  }
                  $comments_count = dbcount("(comment_id)", DB_COMMENTS, "comment_type='D' AND comment_item_id='".$data['download_id']."'");
                  echo "<tr>\n";
                  echo "<td class='tbl2' style='width:1%;'>".$new."</td>\n";
                  echo "<td class='tbl1' style='text-align:left;'><a href='".FUSION_SELF."?cat_id=".$cat_data['download_cat_id']."&amp;download_id=".$data['download_id']."'>".$data['download_title']."</a></td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".showdate("shortdate", $data['download_datestamp'])."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".($data['download_version'] ?  $data['download_version'] : "--")."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".$data['download_count']."</td>\n";
                  echo "<td class='tbl2' style='text-align:center;'>".$comments_count."</td>\n";
                  echo "<td class='tbl2' style='white-space:nowrap;'>".($data['count_votes'] > 0 ? str_repeat("<img src='".get_image("star")."' alt='*' style='vertical-align:middle; width:10px;height:10px;' />", ceil($data['sum_rating'] / $data['count_votes'])) : "--")."</td>\n";
                  echo "</tr>\n";
                  echo "<tr>\n";
                  echo "<td colspan='8' class='tbl1 small'>\n";
                  if ($settings['download_screenshot']) {
                     echo "<img src='".$img_thumb."' style='float: left;margin:3px;' alt='".$data['download_title']."' />\n";
                  }
                  if ($data['download_description_short']) {
                     echo nl2br(stripslashes($data['download_description_short']));
                  }
                  echo "</td>\n</tr>\n";
               }
               if ($rows > $settings['downloads_per_page']) {
                  echo "<tr>\n<td colspan='8' class='tbl2' style='text-align:center;'>\n".makepagenav($_GET['rowstart'.$cat_data['download_cat_id']], $settings['downloads_per_page'], $rows, 3, FUSION_SELF."?cat_id=".$cat_data['download_cat_id'].$getString."&amp;", "rowstart".$cat_data['download_cat_id'])."\n</td></tr>\n"; }
            } else {
               echo "<tr>\n<td class='tbl1' colspan='8' style='text-align:center'>".$locale['431']."</td></tr>\n";
               echo "<!--sub_download_cat-->";
            }
         }
      }
      echo "</table>\n";
   } else {
      echo "<div style='text-align:center'><br />\n".$locale['430']."<br /><br />\n</div>\n";
   }
   echo "<!--sub_download_idx-->";
   closetable();
}

// Download details
if (isset($_GET['download_id']) && isnum($_GET['download_id'])) {
   add_to_head("<link rel='stylesheet' href='".INCLUDES."jquery/colorbox/colorbox.css' type='text/css' media='screen' />");
   add_to_head("<script type='text/javascript' src='".INCLUDES."jquery/colorbox/jquery.colorbox.js'></script>");
   add_to_head("<script type='text/javascript'>\n
   /* <![CDATA[ */\n
   jQuery(document).ready(function(){
      jQuery('a.tozoom').colorbox();
   });\n
   /* ]]>*/\n
   </script>\n");

   $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);}
      opentable($locale['400'].": ".$data['download_title']);
      echo "<!--pre_download_details-->\n";
      echo "<div class='tbl-border' style='margin-bottom:10px; padding:3px;'>\n";
      echo "<div class='forum-caption' style='text-align:left;'>\n";
      echo "<a href='".FUSION_SELF."'>".$locale['417']."</a> &gt; <a href='".FUSION_SELF."?cat_id=".$data['download_cat']."'>".$data['download_cat_name']."</a> &gt; <strong>".$data['download_title']."</strong>";
      echo "</div>\n</div>\n";

      echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border center'>\n";
      echo "<tr>\n<td class='tbl1' colspan='2'><h2>".$data['download_title']." ".$data['download_version']."</h2><hr /></td></tr>\n";
      echo "<tr>\n<td class='tbl1' style='vertical-align:top;'>".($data['download_description'] != "" ? nl2br(parseubb(parsesmileys($data['download_description']))) : nl2br(stripslashes($data['download_description_short'])))."</td>";
      echo "<td class='tbl1' style='width:20%;text-align:center;vertical-align:top;'>";
      echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border center'>\n";
      if ($data['download_homepage'] != "") {
         if (!strstr($data['download_homepage'], "http://") && !strstr($data['download_homepage'], "https://")) {
            $urlprefix = "http://";
         } else {
            $urlprefix = "";
         }
         echo "<tr><td class='tbl2' style='text-align:center;'>";
         echo "<img src='".get_image("homepage")."' alt='".$locale['418']."' /><br />";
         echo "<a href='".$urlprefix.$data['download_homepage']."' title='".$urlprefix.$data['download_homepage']."' target='_blank'>".$locale['418']."</a>";
         echo "</td>\n</tr>\n";
      }

      if ($settings['download_screenshot'] && $data['download_image'] != "") {
         echo "<tr>\n";
         echo "<td class='tbl2' style='text-align:center;'><img src='".get_image("screenshot")."' alt='".$locale['419']."' /><br />\n";
         echo "<a class='tozoom' href='".DOWNLOADS."images/".$data['download_image']."'>".$locale['419']."</a>\n";
         echo "</td>\n</tr>\n";
      }
      echo "<tr>\n";
      echo "<td class='tbl2' style='text-align:center;'><img src='".get_image("calendar")."' alt='".$locale['427']."' />\n";
      echo "<br />".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."\n";
      echo "<br />".showdate("longdate", $data['download_datestamp'])."\n";
      echo "</td>\n</tr>\n";
      echo "<tr>\n";
      echo "<td class='tbl2' style='text-align:center;'>\n";
      echo "<img src='".get_image("downloads")."' alt='".$locale['424']."' /><br />".$locale['416']." ".$data['download_count']."\n";
      echo "</td>\n</tr>\n";
      if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") {
         echo "<tr>\n<td class='tbl2' style='text-align:center;'><img src='".get_image("info")."' alt='".$locale['428']."' /><br />\n";
      }
      if ($data['download_version'] != "") {
         echo $locale['413']." ".$data['download_version']."<br />\n";
      }
      if ($data['download_license'] != "") {
         echo $locale['411']." ".$data['download_license']."<br />\n";
      }
      if ($data['download_os'] != "") {
         echo $locale['412']." ".$data['download_os']."<br />\n";
      }
      if ($data['download_copyright'] != "") {
         echo "&copy; ".$data['download_copyright']."<br />\n";
      }
      if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") {
         echo "</td>\n</tr>\n";
      }
      echo "</table>\n";
      echo "</td></tr>\n";
      echo "<tr>\n";
      echo "<td class='tbl1' colspan='2' style='text-align:center;'><hr />\n";
      echo "<strong>".$locale['416'].":</strong><br />\n";
      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";
      }
      echo "</td>\n</tr>\n";
      echo "</table>\n";

      echo "<!--sub_download_details-->\n";
      closetable();
      echo "<!--pre_download_comments-->\n";
      include INCLUDES."comments_include.php";
      include INCLUDES."ratings_include.php";
      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']); }
      if ($data['download_allow_ratings']) { showratings("D", $_GET['download_id'], FUSION_SELF."?cat_id=".$data['download_cat']."&amp;download_id=".$_GET['download_id']); }
   }
}

echo $dl_stats;

}

require_once THEMES."templates/footer.php";
?>





FILMAITAU.in
2013 Rugp. 11 00:08:47          7 žinutė iš 8
Spausdinti pranešimą
O kaip ant sito veiktu? Cia siuntiniai tik modifikacija.

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: downloads.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| Download System mSF For PHP-Fusion 7.xx v.4.9
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: http://x-iweb.ru/
+--------------------------------------------------------+
| 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/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once INCLUDES."download_system/download_captcha.php";

if (isset($_GET['feeds'])) { require_once INCLUDES."download_system/feeds/rss.php";
} else if (isset($_GET['status'])) { require_once INCLUDES."download_system/status.php";
} else if (isset($_GET['down'])) { captcha_down();
} else if (isset($_GET['wait'])) { require_once INCLUDES."download_system/download.php"; } else {

require_once THEMES."templates/header.php";
require_once INCLUDES."download_system/function.php";
require_once INCLUDES."download_system/top_panel.php";
include LOCALE.LOCALESET."downloads.php";

add_to_head("<script src='".INCLUDES."download_system/jscripts/status.js' type=\"text/javascript\"></script>");
add_to_head("<link rel='stylesheet' href='".INCLUDES."download_system/css/download_system.css' type='text/css' media='screen' />");
    if (!file_exists(INCLUDES."highslide/highslide-full.js")) {
add_to_head("<script type='text/javascript' src='".INCLUDES."highslide/highslide-with-gallery.js'></script>");
add_to_head("<script type='text/javascript' src='".INCLUDES."highslide/include_highslide.js'></script>");
add_to_head("<link rel='stylesheet' type='text/css' href='".INCLUDES."highslide/highslide.css' />");
    }

    global $active, $captcha, $bad_links, $new, $navigation, $on_coundown, $on_screen, $on_screen_list, $newincat, $row_files, $top, $noidex, $noidex_end;

   $noidex = "<span style='display: none'><![CDATA[<noindex>]]></span>";
   $noidex_end = "<span style='display: none'><![CDATA[</noindex>]]></span>";

    $ds = dbarray(dbquery("SELECT active, captcha, bad_links, new, navigation, on_coundown, on_screen, on_screen_list, newincat, row_files, top FROM ".DB_PREFIX."download_settings"));

    if($ds['active'] == '1') {
   
   reset_count_today();

    if ((isset($_GET['download_id'])) && (isnum($_GET['download_id']))) {
           if ($data = dbarray(dbquery("SELECT d.download_id, d.download_cat, d.download_access, d.download_url, c.download_cat_access FROM ".DB_DOWNLOADS." d
         LEFT JOIN ".DB_DOWNLOAD_CATS." c ON c.download_cat_id=d.download_cat
          WHERE d.download_id='".$_GET['download_id']."'"))) {
            if (checkgroup($data['download_cat_access']) && checkgroup($data['download_access'])) {
                     $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1, download_count_today=download_count_today+1 WHERE download_id='".$_GET['download_id']."'");
                  if ($ds['captcha'] != '1' && $userdata['user_level'] == $ds['captcha']) {
                     redirect("downloads.php?page_id=".$data['download_id']."&amp;captcha=get");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                     redirect("downloads.php?wait&amp;get_id=".$data['download_id']."");
                  } else {
                   down($data['download_url']);
                  }
                  }
               }

    } elseif ((isset($_GET['mirror_id'])) && (isnum($_GET['mirror_id']))) {
         if ($data = dbarray(dbquery("SELECT d.download_id, d.download_cat, d.download_access, d.mirror_url, c.download_cat_access FROM ".DB_DOWNLOADS." d
         LEFT JOIN ".DB_DOWNLOAD_CATS." c ON c.download_cat_id=d.download_cat
          WHERE d.download_id='".$_GET['mirror_id']."'"))) {
            if (checkgroup($data['download_cat_access']) && checkgroup($data['download_access'])) {
                        $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1, download_count_today=download_count_today+1 WHERE download_id='".$_GET['mirror_id']."'");
                        if ($ds['captcha'] != '1' && $userdata['user_level'] == $ds['captcha']) {
                     redirect("downloads.php?page_id=".$data['download_id']."&amp;captcha=mirror");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                        redirect("downloads.php?wait&amp;mirror_id=".$data['download_id']."");
                  } else {
                   down($data['mirror_url']);
                  }
                    }
                }

    } elseif ((isset($_GET['file_id'])) && (isnum($_GET['file_id']))) {
         if ($data = dbarray(dbquery("SELECT d.download_id, d.download_cat, d.download_access, d.download_burl, c.download_cat_access FROM ".DB_DOWNLOADS." d
         LEFT JOIN ".DB_DOWNLOAD_CATS." c ON c.download_cat_id=d.download_cat
          WHERE d.download_id='".$_GET['file_id']."'"))) {
            if (checkgroup($data['download_cat_access']) && checkgroup($data['download_access'])) {
                        $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1, download_count_today=download_count_today+1 WHERE download_id='".$_GET['file_id']."'");
                  if ($ds['captcha'] != '1' && $userdata['user_level'] == $ds['captcha']) {
                     redirect("downloads.php?page_id=".$data['download_id']."&amp;captcha=file");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                        redirect("downloads.php?wait&amp;file_id=".$data['download_id']."");
                  } else {
                        down($data['download_burl']);
                        }
               }
                }     

    } elseif ((isset($_GET['rus_id'])) && (isnum($_GET['rus_id']))) {
      if ($data = dbarray(dbquery("SELECT (download_id),(download_rus) FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['rus_id']."'"))) {
          if ($ds['captcha'] != '1' && $userdata['user_level'] == $ds['captcha']) {
         redirect("downloads.php?page_id=".$data['download_id']."&amp;captcha=rus");
         } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
          redirect("downloads.php?wait&amp;rus_id=".$data['download_id']."");
          } else {
          down($data['download_rus']);
          }
       }

    } elseif ((isset($_GET['forum_id'])) && (isnum($_GET['forum_id']))) {
      if ($data = dbarray(dbquery("SELECT (download_forum) FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['forum_id']."'"))) { redirect($data['download_forum']); }

    } elseif ((isset($_GET['author_id'])) && (isnum($_GET['author_id']))) {
        if ($data = dbarray(dbquery("SELECT (download_os) FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['author_id']."' ORDER BY download_os"))) { redirect($data['download_os']); }

    } elseif ((isset($_GET['bad_link'])) && (isnum($_GET['bad_link']))) {

   if ($data = dbarray(dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['bad_link']."'"))) {

       if ($_POST['bad_description'] != '') {
       $bad_description = stripinput(censorwords($_POST['bad_description']));
        if (iMEMBER) { $bad_user = $userdata['user_id']; } else { $bad_user = "0"; }

      $result = dbquery("INSERT INTO ".DB_PREFIX."download_bad (bad_id, bad_cat, bad_down, bad_name, bad_description, bad_user, bad_user_ip) VALUES ('', '".$data['download_cat']."', '".$data['download_id']."', '".$data['download_title']."', '$bad_description', '$bad_user', '".USER_IP."')");
      redirect($_SERVER['HTTP_REFERER']);

           } else { redirect($_SERVER['HTTP_REFERER']); }
       }
    }

       if ((isset($_GET['cat_id']) == "0") && (!isset($_GET['page_id']))) {
         
      $result = dbquery("SELECT dc1.download_cat_id, dc1.download_cat_name, dc1.download_cat_icon, dc1.download_cat_description FROM ".DB_DOWNLOAD_CATS." dc1 WHERE ".groupaccess('dc1.download_cat_access')." AND dc1.download_cat_idc='0' ORDER BY dc1.download_cat_name ASC");
        $rows = dbrows($result);
        if ($rows != 0) {
            $result2 = dbquery("SELECT dc2.download_cat_id, dc2.download_cat_name FROM ".DB_DOWNLOAD_CATS." dc2 WHERE dc2.download_cat_id='0'");
            $cdata = dbarray($result2);
         $down_cat_name = "<a href='".FUSION_SELF."?cat_id=".$cdata['download_cat_id']."'>".$cdata['download_cat_name']."</a>";
            if (dbrows($result2) == 0){$name = '';} else {$name = " > $down_cat_name";}
         if (dbrows($result2) == 0){$name2 = '';} else {$name2 = "".$cdata['download_cat_name']." | ";}
         $down = "<a href='downloads.php'>".$locale['DS100']."</a>";

         set_title($locale['DS100']." - ".$settings['sitename']);
         set_meta("keywords", $locale['DS100']);
           set_meta("description", $locale['DS100']." - ".$settings['sitename']);
         opentable("".$locale['DS100']."");
         
                $counter = 0; $columns = 2;
                $num = 0;
                echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
                while ($data = dbarray($result)) {
                        if ($counter != 0 && ($counter % $columns == 0))
                  echo "<tr>\n";
                        NomD ("0", " = '".$data['download_cat_id']."'");
        if ($data['download_cat_icon'] != '') { $cat_icon = "<img src='".IMAGES."downloads/cat_icon/".$data['download_cat_icon']."' alt='-' style='vertical-align:middle; border: 0;' />"; } else { $cat_icon = "<img src='".IMAGES."downloads/cat_icon/folder.png' alt='-' style='vertical-align:middle; border: 0;' />"; }
        echo "<td align='left' valign='top' width='50%' class='tbl'>\n<b>".$cat_icon."<span>&nbsp;</span><a href='downloads.php?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']." </a>(".$num.")</b>\n";
                        $result2 = dbquery("SELECT dc3.download_cat_id, dc3.download_cat_name FROM ".DB_DOWNLOAD_CATS." dc3 WHERE ".groupaccess('dc3.download_cat_access')." AND dc3.download_cat_idc='".$data['download_cat_id']."' ORDER BY dc3.download_cat_name ASC");
                        $rows2 = dbrows($result2);
                        if ($rows2 != 0) {
                            $i = 0;
                                echo "<div class='small' style='padding: 0.5em 0em 0em 0em;'>(";
                                while ($data2 = dbarray($result2)) {
                                $zap = ($i+1 == $rows2 ? '' : ', ');
                                echo "<a href='downloads.php?cat_id=".$data2['download_cat_id']."'>".$data2['download_cat_name']."</a>".$zap."";
                                $i++;
                                }
                                echo ")</div>\n";
                        }
                        if ($data['download_cat_description'] != "") {
                  echo "<span class='small'>".$data['download_cat_description']."</span>\n"; }
                        echo "<br /></td>\n";

                        $num = 0;
                        $counter++;
              }
                echo "</tr>\n</table>\n";

            closetable();

            if($ds['top'] == '1') { top_15(); }
   
        } else {
            opentable($locale['DS100']);
            echo "<div style='text-align:center'><br />\n".$locale['DS101']."<br />\n</div>\n";
            closetable();
        }

       } elseif ((isset($_GET['cat_id'])) && (isnum($_GET['cat_id']))) {

      Put($_GET['cat_id']);
      $result = dbquery("SELECT dc1.download_cat_idc, dc1.download_cat_name, dc1.download_cat_access, dc1.download_cat_sorting FROM ".DB_DOWNLOAD_CATS." dc1 WHERE dc1.download_cat_id='".$_GET['cat_id']."'");
          if (dbrows($result) != 0) {
                $cdata = dbarray($result);

         $rows = dbcount("(*)", DB_DOWNLOADS, "download_cat='".$_GET['cat_id']."' AND download_submit = '0'");
         if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
         if (!isset($_GET['sort']) || !isnum($_GET['sort'])) { $_GET['sort'] = 1; }
         $sorting = $cdata['download_cat_sorting'];
         if ($_GET['sort'] == 1)   $sorting = "download_title ASC";
         if ($_GET['sort'] == 2)   $sorting = "download_count DESC";
         if ($_GET['sort'] == 3)   $sorting = "download_datestamp DESC, download_title ASC";
         
         if (checkgroup($cdata['download_cat_access'])) {

         $down = "<a href='downloads.php'>".$locale['DS100']."</a>";
         
         Put2($_GET['cat_id']);
          $keywords = ""; $arry_words = explode(">", $sil2);
          foreach ($arry_words as $print_arry_words) { $keywords .= trim($print_arry_words).", "; }
         
         set_title($sil2." | ".$locale['DS100']." - ".$settings['sitename']);
         set_meta("keywords", $keywords.$locale['DS140'].", ".$locale['DS100']);
         set_meta("description", $keywords.$locale['DS100']." - ".$settings['sitename']);
         opentable("$down > ".$sil.""); echo "<br />\n";
         
         require_once INCLUDES."download_system/sub_categores.php";
         
         if (($ds['navigation'] == '1') && (($cdata['download_cat_idc']) > 0 )) { navpanel_list(); }
         
         sub_categores();
         
         if ($rows != 0) {

         echo "<table width='100%' cellspacing='1' cellpadding='1'>\n";
         echo "<tr>\n";
         echo "<td align='center' class='tbl2'><strong>".$locale['DS105']."</strong></td>\n";
         echo "<td align='left' class='".(FUSION_QUERY == "cat_id='".$_GET['cat_id']."'" || $_GET['sort'] == 1 ? "tbl1" : "tbl2")."'><span class='small'>\n";
         echo (FUSION_QUERY == "cat_id='".$_GET['cat_id']."'" || $_GET['sort'] == 1 ? "<strong>".$locale['DS106']."</strong>" : "<a href='".FUSION_SELF."?cat_id=".$_GET['cat_id']."&sort=1'>".$locale['DS106']."</a>")."</span></td>\n";
         echo "<td align='left' class='".($_GET['sort'] == 3 ? "tbl1" : "tbl2")."'><span class='small'>\n";
         echo ($_GET['sort'] == 3 ? "<strong>".$locale['DS107']."</strong>" : "<a href='".FUSION_SELF."?cat_id=".$_GET['cat_id']."&sort=3'>".$locale['DS107']."</a>")."</span></td>\n";
         echo "<td align='left' class='".($_GET['sort'] == 2 ? "tbl1" : "tbl2")."'><span class='small'>\n";
         echo ($_GET['sort'] == 2 ? "<strong>".$locale['DS108']."</strong>" : "<a href='".FUSION_SELF."?cat_id=".$_GET['cat_id']."&sort=2'>".$locale['DS108']."</a>")."</span></td>\n";
         echo "</tr></table>\n<br />\n";

            $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_cat='".$_GET['cat_id']."' AND download_submit = '0' ORDER BY $sorting LIMIT ".$_GET['rowstart'].",".$ds['row_files']."");
            
         } else {
            
      $result = dbquery("SELECT d.*, dc.*
      FROM ".DB_DOWNLOADS." d
      INNER JOIN ".DB_DOWNLOAD_CATS." dc ON d.download_cat=dc.download_cat_id
      WHERE download_cat_idc='".$_GET['cat_id']."' ORDER BY download_datestamp DESC LIMIT ".$ds['row_files']."
      ");
      
      echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>\n";
      echo "<tr><td align='left' class='tbl1'><strong>".$locale['DS142']."</strong></td></tr>\n";
      echo "</table>\n<br />\n";
      
          }
            
            $numrows = dbrows($result);
            $i = 1;

            while ($data = dbarray($result)) {
            
      if ($data['download_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
      $new = "&nbsp;<img src='".IMAGES."downloads/new.gif' width='25' height='13' alt=".$locale['DS109']." />";
      } else { $new = ""; }

                $wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='F' AND rating_item_id='".$data['download_id']."'");
                $info = dbresult($wynik,0);
                $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='F' AND rating_item_id='".$data['download_id']."'");
                $wyn_rating = ($num_rating ? $info / $num_rating : 0);
            $col = dbrows(dbquery("SELECT comment_item_id FROM ".DB_COMMENTS." WHERE comment_type='F' AND comment_item_id='".$data['download_id']."'"));

      echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>\n";
      echo "<tr><td align='center' class='downloadtitle'><strong>".$data['download_title']."</strong>".$new."</td></tr>\n";
      echo "</table>\n<br />\n";
      echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>\n";
      echo "<tr><td><table width='260' cellspacing='0' cellpadding='0' border='0' align='left'>\n";
      
      $filesize = $data['download_filesize']; $version = $data['download_version']; $license = $data['download_license']; $lang = $data['download_lang']; $description = $data['download_description']; $screen = $data['download_screen'];

      if ($license != '') { echo "<tr><td class='small2 info' style='white-space:nowrap;'><strong>  ".$locale['DS123']."  </strong>".$noidex."<a href='javascript:openPopupWin();'>".$license."</a>".$noidex_end."</td></tr>\n"; }
      if ($lang != '') { echo "<tr><td class='small2' style='white-space:nowrap;'><strong>  ".$locale['DS125']."  </strong>".$lang." </td></tr>\n"; }
      if ($filesize != '') { echo "<tr><td class='small2 info' style='white-space:nowrap;'><strong>  ".$locale['DS122']."  </strong>".$filesize."</td></tr>\n"; }

      echo "</table></td>\n";
      echo "<td><table width='100%' cellspacing='0' cellpadding='0' border='0' align='right'>\n";

               if ($data['download_allow_ratings']) {
      echo "<tr><td class='small' align='right' style='white-space:nowrap;'><strong>".$locale['DS112']."</strong><img src='".IMAGES."downloads/rate/".ceil($wyn_rating).".gif' width='64' height='12' alt='".ceil($wyn_rating)."' style='vertical-align:middle;' title='".$locale['DS112'].ceil($wyn_rating)."' /></td></tr>\n";
               }
               if ($data['download_allow_recommends']) {       
        echo "<tr><td class='small recommend' align='right' style='white-space:nowrap;'><strong><i>".$locale['DS130']."</i></strong></td></tr>\n";
                    }   

      echo "</table></td></tr>\n";
      echo "</table>\n";
      
        echo "<table width='100%' align='center' cellpadding='1' cellspacing='1' border='0' style='padding: 0.6em 0em 0em 0em;'>\n";
      echo "<tr>\n";
      
         if (($ds['on_screen_list'] == '1') && ($screen != "") && (file_exists(IMAGES.'screens/'.$screen))) {
      echo "<td class='small2' align='center'>\n";
      echo "<a href='".IMAGES."screens/".$screen."' class='highslide' onclick='return hs.expand(this)' title='".$locale['DS126']." ".$data['download_title']."'><img alt='".$locale['DS126']." ".$data['download_title']."' src='".IMAGES."screens/".$screen."' style='max-width:110px;max-height:80px;border:0;vertical-align:middle' align='center' /></a>\n";
      echo "</td>\n";
            }

      if ($description != "") { echo "<td colspan='4' class='tbl1' align='justify'>".nl2br(stripslashes(parseubb(parsesmileys($description))))."</td>\n"; } else { echo "<td colspan='4' class='tbl1' align='center'>".$locale['DS129']."</td>\n"; }
      
      echo "</tr>\n";
        echo "<tr><td width='28%' class='small2' align='center' style='white-space:nowrap;'><strong>".$locale['DS121']." </strong>".showdate("%d.%m.%y", $data['download_datestamp'])."</td>\n";   
        echo "<td width='25%' class='small2' align='center' style='white-space:nowrap;'><strong>".$locale['DS110']." </strong>".$col."</td>\n";
        echo "<td width='25%' class='small2' align='center' style='white-space:nowrap;'><strong>".$locale['DS128']." </strong>".$data['download_count']."</td>\n";
        echo "<td width='22%' class='side-small' align='center' style='white-space:nowrap;'><a href='downloads.php?page_id=".$data['download_id']."' target='_self'>".$locale['DS111']."</a></td>\n</tr>\n";
      echo "</table>\n<br />\n";

               $col = 0;
               if ($i != $numrows) { $i++; }
              }

            closetable();

            if ($rows > 1) { echo "<div align='center' style=';margin-top:5px;'>\n".makepagenav($_GET['rowstart'], $ds['row_files'], $rows, 3, FUSION_SELF."?cat_id=".$_GET['cat_id']."&amp;sort=".$_GET['sort']."&amp;")."</div>\n"; }      

                }   
               if ($ds['new'] == '1') { top_5(); }       
         }   
    }
      if ((isset($_GET['page_id'])) && (isnum($_GET['page_id']))) {
      
      $result = dbquery("SELECT d.*, c1.download_cat_name AS c1_name, c1.download_cat_id AS c1_cat_id, c2.download_cat_name AS c2_name, c2.download_cat_id AS c2_cat_id, c1.download_cat_idc AS c1_cat_idc, b.bad_down
      FROM ".DB_DOWNLOADS." d
      LEFT JOIN ".DB_DOWNLOAD_CATS." c1 ON c1.download_cat_id=d.download_cat
      LEFT JOIN ".DB_DOWNLOAD_CATS." c2 ON c2.download_cat_id=c1.download_cat_idc
      LEFT JOIN ".DB_PREFIX."download_bad b ON b.bad_down=d.download_id
      WHERE d.download_id='".$_GET['page_id']."' AND d.download_submit = '0'");
       
      if (dbrows($result) != 0) {   
      $data = dbarray($result);

      $filesize = $data['download_filesize']; $version = $data['download_version']; $license = $data['download_license']; $lang = $data['download_lang']; $screen = $data['download_screen'];

        if ($data['download_description_p'] == "") { $cont = $data['download_description']; }
      else { $cont = $data['download_description_p']; }

   $name_cat = $data['c2_name'] ? $data['c2_name'] : "";
    $base = "<a href='downloads.php'>".$locale['DS100']."</a>";
    $cat = $data['c2_name'] ? " > <a href='downloads.php?cat_id=".$data['c2_cat_id']."'>".$name_cat."</a>" : "";
    $sub_cat = " > <a href='downloads.php?cat_id=".$data['c1_cat_id']."'>".$data['c1_name']."</a>";
    $file = $locale['DS131']." ".$data['download_title'];
      
      $all_words = ($file." ".$data['c1_name']." ".$name_cat." ".$locale['DS100']);
      $keywords = ""; $arry_words = explode(" ", $all_words);
      foreach ($arry_words as $print_arry_words) { $keywords .= trim($print_arry_words).", "; }

   set_title($data['download_title']." | ".$locale['DS100']." - ".$settings['sitename']);
   set_meta("keywords", $keywords.$locale['DS140']);
    set_meta("description", $file." - ".trimlink($cont, 80)." ".$filesize.", ".$version.", ".$license);
    opentable($base.$cat.$sub_cat); echo "<br />\n";

      require_once INCLUDES."download_system/sub_categores.php";
      if($ds['navigation'] == '1') { navpanel_file(); }

      echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>\n";

            if ($data['download_allow_recommends']) {
        echo "<tr><td width='50%' align='right' colspan='2' class='recommend' style='white-space:nowrap;'><strong><i>".$locale['DS130']."</i></strong></td></tr>\n";
                }

      echo "<td width='100%' align='center' class='downloadtitle'><strong>".$data['download_title']."</strong></td>\n</tr>\n";
      
              if ($data['download_os'] != '') {
        echo "<tr><td align='center' class='downloados'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?author_id=".$data['download_id']."' target='_blank'><strong>".$locale['DS119']."</strong></a>".$noidex_end."</td></tr>\n";
              }

      echo "<tr><td width='50' align='left'><span>&nbsp;&nbsp;</span></td></tr>\n";
      echo "</table>\n";

      echo "<table width='100%' cellspacing='0' cellpadding='0' border='0' style='line-height: 1.45em; padding: 1em 0.25em;'>\n";
      echo "<tr>\n<td>\n<table width='280' cellspacing='0' cellpadding='0' border='0' align='left'>\n";

        echo "<tr><td class='small2 info' width='50%'><strong>".$locale['DS121']."</strong> ".showdate("%d.%m.%y", $data['download_datestamp'])."</td></tr>\n";

   if ($license != ''){ echo "<tr><td class='small2' style='white-space:nowrap;'><strong>".$locale['DS123']."  </strong>".$noidex."<a href='javascript:openPopupWin();'>".$license."</a>".$noidex_end."</td></tr>\n"; }   
   if ($lang != '') { echo "<tr><td class='small2 info' width='50%' style='white-space:nowrap;'><strong>".$locale['DS125']."  </strong>".$lang." </td></tr>\n"; }
   if ($version != '') { echo "<tr><td class='small2' width='50%' style='white-space:nowrap;'><strong>".$locale['DS124']."  </strong>".$version." </td></tr>\n"; }
   if ($filesize != '') { echo "<tr><td class='small2 info' width='50%' style='white-space:nowrap;'><strong>".$locale['DS122']."  </strong>".$filesize."</td></tr>\n"; }

      echo "</table>\n</td>\n";
      echo "<td>\n<table width='230' cellspacing='0' cellpadding='0' border='0' align='left'>\n";

         if (($screen != "") && (file_exists(IMAGES.'screens/'.$screen))) {
      echo "<tr><td class='small2' align='center'>\n";
      echo "<a href='".IMAGES."screens/".$screen."' class='highslide' onclick='return hs.expand(this)' title='".$locale['DS126']." ".$data['download_title']."'><img alt='".$locale['DS126']." ".$data['download_title']."' src='".IMAGES."screens/".$screen."' style='max-width:110px;max-height:80px;border:0;vertical-align:middle' align='center' /></a>\n";
      echo "</td></tr>\n";
            } else if($ds['on_screen'] == '1') {
        echo "<tr><td class='small2' align='center'><strong>".$locale['DS127']."</strong></td></tr>\n";
            }

      echo "</table>\n</td>\n</tr>\n";
      echo "</table>\n";
      echo "<table width='100%' align='center' cellpadding='0' cellspacing='1' border='0'>\n";

           if ($cont != "") { echo "<tr><td colspan='3' class='tbl1' align='justify'>".nl2br(stripslashes(parseubb(parsesmileys($cont))))."</td></tr>\n";
       } else { echo "<tr><td colspan='3' class='tbl1' align='justify'>".$locale['DS129']."</td></tr>\n"; }

        echo "</table>\n";
        echo "<table width='100%' cellspacing='1' cellpadding='0' border='0' style='padding: 0em 1.5em 0em 0em;'>\n";
      echo "<tr><td class='small' align='left' valign='top'><strong> ".$locale['DS128']." </strong>".$data['download_count']."</td>\n";

      if (isset($_GET['captcha'])) { captcha_form(); } else {
            if (checkgroup($data['download_access'])) {

              if ($data['download_url'] != '') {
        echo "<td width='80' height='20' bgcolor='#CCCCCC' background='".IMAGES."downloads/down.png' style='white-space:nowrap;padding: 0em 0.8em 0em 0.8em;'><div align='center'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?cat_id=".$data['c1_cat_id']."&amp;download_id=".$data['download_id']."'><strong>".$locale['DS131']."</strong></a>".$noidex_end."</div></td>\n";
              }
               if ($data['mirror_url'] != '') {
        echo "<td width='80' height='20' bgcolor='#CCCCCC' background='".IMAGES."downloads/mirror.png' style='white-space:nowrap;padding: 0em 0.8em 0em 0.8em;'><div align='center'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?cat_id=".$data['c1_cat_id']."&amp;mirror_id=".$data['download_id']."'><strong>".$locale['DS132']."</strong></a>".$noidex_end."</div></td>\n";
               }
                if ($data['download_button'] != '') {
        echo "<td width='80' height='20' bgcolor='#CCCCCC' background='".BASEDIR.$data['download_background']."' style='white-space:nowrap;padding: 0em 0.8em 0em 0.8em;'><div align='center'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?cat_id=".$data['c1_cat_id']."&amp;file_id=".$data['download_id']."'><strong>".$data['download_button']."</strong></a>".$noidex_end."</div></td>\n";
              }
                if ($data['download_rus'] != '') {
        echo "<td width='80' height='20' bgcolor='#CCCCCC' background='".IMAGES."downloads/rus.png' style='white-space:nowrap;padding: 0em 0.8em 0em 0.8em;'><div align='center'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?cat_id=".$data['c1_cat_id']."&amp;rus_id=".$data['download_id']."'><strong>".$locale['DS133']."</strong></a>".$noidex_end."</div></td>\n";
              }
                if ($data['download_forum'] != '') {
        echo "<td width='80' height='20' bgcolor='#CCCCCC' background='".IMAGES."downloads/forum.png' style='white-space:nowrap;padding: 0em 0.8em 0em 0.8em;'><div align='center'>".$noidex."<a rel='nofollow' href='".FUSION_SELF."?cat_id=".$data['c1_cat_id']."&amp;forum_id=".$data['download_id']."'><strong>".$locale['DS134']."</strong></a>".$noidex_end."</div></td>\n";
              }
       echo "</tr>\n";
          } else { echo "<tr><td align='center'><img src='".IMAGES."downloads/lock.png' alt='' style='vertical-align:middle; border: 0;' /><span>&nbsp;</span>".$locale['DS135']."</td></tr>\n"; }
        } //
      echo "</table>\n";

          if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "SD")) {
      echo "<table width='100%' cellspacing='1' cellpadding='0' border='0' class='small2'>\n";
           $editfile = "".$noidex."<a rel='nofollow' href='administration/downloads.php".$aidlink."&step=edit&amp;download_cat_id=".$data['download_cat']."&amp;download_id=".$data['download_id']."'>".$locale['A101']."</a>".$noidex_end."\n";
            $delfile = "".$noidex."<a rel='nofollow' href='administration/downloads.php".$aidlink."&step=delete&amp;download_cat_id=".$data['download_cat']."&amp;download_id=".$data['download_id']."' onClick='return DeleteItem()'>".$locale['A102']."</a>".$noidex_end."\n";
        echo "<tr><td align='left' width='100' colspan='8'> ".$locale['A100']." ".$editfile." | ".$delfile."</td></tr>\n";
      echo "</table>\n";
           } //

    if ($ds['bad_links'] != '1' && (checkgroup($ds['bad_links'])) && (checkgroup($data['download_access']))) {
               if ($data['bad_down'] == '') {
   
   add_to_head("<script type='text/javascript'><!--
function broken_link() {
if(document.getElementById('id4').style.display=='none') {
document.getElementById('id4').style.display='block';
document.getElementById('id3').innerHTML='".$locale['DS137']."';
}else{
document.getElementById('id4').style.display='none';
document.getElementById('id3').innerHTML='".$locale['DS137']."';}
}
//--></script>");

    add_to_head("<script type=\"text/javascript\" src=\"".INCLUDES."download_system/jscripts/ajax_ds.js\"></script>");
    add_to_head("<script type=\"text/javascript\" src=\"".INCLUDES."javascripts/prototype.js\"></script>");

       echo "<div id='broken_message'>\n";
      echo "<div class='small2'><span>&nbsp;</span><img src='".IMAGES."downloads/bad.gif' width='10' height='10' alt='!' style='vertical-align:middle; border: 0;' /><span>&nbsp;</span><a href=\"javascript:broken_link();\" id=\"id3\">".$locale['DS137']."</a>";
        echo "<div id='id4' style='display:none;'><br />\n<form id='brokenform' name='brokenform' method='post'>\n";
      echo "<input type='hidden' name='download_id' value='".$data['download_id']."' />";
      echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr><td width='80' class='tbl'>".$locale['DS138']."<span style='color:#ff0000'>*</span></td><td class='tbl'><textarea name='bad_description' rows='2' cols='70' class='textbox'></textarea></td></tr><td colspan='2' class='tbl' align='center'><br />\n<input type='button' onclick=\"add_report(); return false;\" value='".$locale['DS139']."' class='button' /></td></tr></table></form></div>\n";
      echo "</div>\n";
      echo "</div>\n";
               } else {
      echo "<table width='100%' border='0' class='small2'>\n";
      echo "<tr><td width='80%' class='small2' align='right'><span>&nbsp;</span><img src='".IMAGES."downloads/warning.png' width='19' height='18' alt='!' style='vertical-align:middle; border: 0;' /></td><td width='20%' class='tbl redcolor'><strong> ".$locale['DS136']."</strong></td></tr>\n";
      echo "</table>\n";
                }
           }
                } else { echo "<center><br />\n".$locale['DS102']."\n<br />\n<br /></center>\n"; }

        closetable();

        if (dbrows($result) && checkgroup($data['download_access'])) {
      require_once INCLUDES."ratings_include.php";
       if ($data['download_allow_ratings']) { showratings("F", $_GET['page_id'], FUSION_SELF."?page_id=".$_GET['page_id']); }
      require_once INCLUDES."comments_include.php";
       if ($data['download_allow_comments']) { showcomments("F", DB_DOWNLOADS, "download_id", $_GET['page_id'],FUSION_SELF."?page_id=".$_GET['page_id']); }
        } //

         if($ds['newincat'] == '1') { top_cats($data['c2_cat_id']); }

      }
         
    } else { echo "<div align='center' class='nofailes'><strong>".$locale['DS103']."</strong></div>\n"; }

require_once THEMES."templates/footer.php";

   } //

?>




www.pervshub.com - Erotica nemokamai!
2013 Rugp. 12 17:08:22          8 žinutė iš 8
Spausdinti pranešimą
Pagalbos? Tipo toks apmires saitas kad niekas negali padėt?

www.pervshub.com - Erotica nemokamai!
Peršokti į forumą: