PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 45220
Šiandien: 38
Prisijungę nariai
» Svečių: 2
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
Zbigniew@ 1 Diena
tabuxnepamenu
sanpernepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-05-29 21:26
Ši sistema turi daug patobulinimų kurie kurti mūsų Šypsosi Buvo planuose pereiti ant v9, bet ....

2026-05-11 16:51
Sveiki. Norėjau pasveikinti jus su atkaklumu arba ištverme. Tai viena iš dviejų paskutinių svetainių, paremtų v7. Ar negaila švaistyti ilgametės patirties ir pereiti prie v9?

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v7 Siuntiniai tik nariams
-Donatas
#1 Spausdinti pranešimą
parašyta 2012-01-07 18:55
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24

Sveiki. Ásira?iau siuntiniø sistemà http://phpfusion....mod_id=428 Dabar norëèiau padaryti, kad siuntinius matytø visi, bet galëtø siøstis tik nariai. Gal turit ádëju?
 
PM
Rinas
#2 Spausdinti pranešimą
parašyta 2012-01-07 20:34
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Eik á "admin panelë > Pridëtiniai puslapiai", ára?yk ?emiau esantá kodà ir paspausk "Per?iûrëti", nustatys, kad visus siuntinius galëtø siøstis tik nariai. Paskui keldamas naujus siuntinius i?kart rinkis, kad juos galëtø siøstis tik nariai.
Download source  Code
dbquery(\"UPDATE \".DB_DOWNLOADS.\" SET download_access = 101 WHERE download_access < 101\");
?>


 
PM
-Donatas
#3 Spausdinti pranešimą
parašyta 2012-01-07 21:25
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24


Paskui keldamas naujus siuntinius i?kart rinkis, kad juos galëtø siøstis tik nariai.


Vat èia man nelabai tinka, nes siuntinius kels nariai, o ne a?.
 
PM
Rinas
#4 Spausdinti pranešimą
parašyta 2012-01-07 21:42
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Tu vis tiek nariø siuntinius turësi patvirtinti, tai patvirtindamas nustatyk, kad galëtø siøstis tik nariai ;)
 
PM
-Donatas
#5 Spausdinti pranešimą
parašyta 2012-01-07 22:41
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24

Na reikës redaguot visalaik, tas man nelabai patinka, ka?kaip i?eina paredaguot downloads.php, kad eitu siøstis tik nariams :|
 
PM
Wyciokazz
#6 Spausdinti pranešimą
parašyta 2012-01-07 22:56
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Per kury faila nariai pateikia siuntini?
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
-Donatas
#7 Spausdinti pranešimą
parašyta 2012-01-07 23:00
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24

?ita man atrodo:

Download source  Parser note: Code too big for GeSHi! Using code tag instead:
/*-------------------------------------------------------+
| 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(\"\");
add_to_head(\"\");
    if (!file_exists(INCLUDES.\"highslide/highslide-full.js\")) {
add_to_head(\"\");
add_to_head(\"\");
add_to_head(\"\");
    }

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

   $noidex = \"]]>\";
   $noidex_end = \"]]>\";

    $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'].\"&captcha=get\");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                     redirect(\"downloads.php?wait&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'].\"&captcha=mirror\");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                        redirect(\"downloads.php?wait&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'].\"&captcha=file\");
                  } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
                        redirect(\"downloads.php?wait&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'].\"&captcha=rus\");
         } elseif($ds['on_coundown'] != '1' && $userdata['user_level'] == $ds['on_coundown']) {
          redirect(\"downloads.php?wait&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 = \"\".$cdata['download_cat_name'].\"\";
            if (dbrows($result2) == 0){$name = '';} else {$name = \" > $down_cat_name\";}
         if (dbrows($result2) == 0){$name2 = '';} else {$name2 = \"\".$cdata['download_cat_name'].\" | \";}
         $down = \"\".$locale['DS100'].\"\";

         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 \"\n\";
                while ($data = dbarray($result)) {
                        if ($counter != 0 && ($counter % $columns == 0))
                  echo \"\n\";
                        NomD (\"0\", \" = '\".$data['download_cat_id'].\"'\");
        if ($data['download_cat_icon'] != '') { $cat_icon = \"'-'\"; } else { $cat_icon = \"'-'\"; }
        echo \"\n\";

                        $num = 0;
                        $counter++;
              }
                echo \"\n
\n\".$cat_icon.\" \".$data['download_cat_name'].\" (\".$num.\")\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 \"
(\";
                                while ($data2 = dbarray($result2)) {
                                $zap = ($i+1 == $rows2 ? '' : ', ');
                                echo \"\".$data2['download_cat_name'].\"\".$zap.\"\";
                                $i++;
                                }
                                echo \")
\n\";
                        }
                        if ($data['download_cat_description'] != \"\") {
                  echo \"\".$data['download_cat_description'].\"\n\"; }
                        echo \"
\n\";

            closetable();

            if($ds['top'] == '1') { top_15(); }
   
        } else {
            opentable($locale['DS100']);
            echo \"

\n\".$locale['DS101'].\"
\n
\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 = \"\".$locale['DS100'].\"\";
         
         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 \"
\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 \"\n\";
         echo \"\n\";
         echo \"\n\";
         echo \"\n\";
         echo \"\n\";
         echo \"\n\";
         echo \"
\".$locale['DS105'].\"\n\";
         echo (FUSION_QUERY == \"cat_id='\".$_GET['cat_id'].\"'\" || $_GET['sort'] == 1 ? \"\".$locale['DS106'].\"\" : \"\".$locale['DS106'].\"\").\"
\n\";
         echo ($_GET['sort'] == 3 ? \"\".$locale['DS107'].\"\" : \"\".$locale['DS107'].\"\").\"
\n\";
         echo ($_GET['sort'] == 2 ? \"\".$locale['DS108'].\"\" : \"\".$locale['DS108'].\"\").\"
\n
\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 \"\n\";
      echo \"\n\";
      echo \"
\".$locale['DS142'].\"
\n
\n\";
      
          }
            
            $numrows = dbrows($result);
            $i = 1;

            while ($data = dbarray($result)) {
            
      if ($data['download_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
      $new = \" \".$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 \"\n\";
      echo \"\n\";
      echo \"
\".$data['download_title'].\"\".$new.\"
\n
\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"
\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 \"\n\"; }
      if ($lang != '') { echo \"\n\"; }
      if ($filesize != '') { echo \"\n\"; }

      echo \"
  \".$locale['DS123'].\"  \".$noidex.\"\".$license.\"\".$noidex_end.\"
  \".$locale['DS125'].\"  \".$lang.\"
  \".$locale['DS122'].\"  \".$filesize.\"
\n\";

               if ($data['download_allow_ratings']) {
      echo \"\n\";
               }
               if ($data['download_allow_recommends']) {       
        echo \"\n\";
                    }   

      echo \"
\".$locale['DS112'].\"'\".ceil($wyn_rating).\"'
\".$locale['DS130'].\"
\n\";
      
        echo \"\n\";
      echo \"\n\";
      
         if (($ds['on_screen_list'] == '1') && ($screen != \"\") && (file_exists(IMAGES.'screens/'.$screen))) {
      echo \"\n\";
            }

      if ($description != \"\") { echo \"\n\"; } else { echo \"\n\"; }
      
      echo \"\n\";
        echo \"\n\";   
        echo \"\n\";
        echo \"\n\";
        echo \"\n\n\";
      echo \"
\n\";
      echo \">'\".$locale['DS126'].\"\n\";
      echo \"
\".nl2br(stripslashes(parseubb(parsesmileys($description)))).\"\".$locale['DS129'].\"
\".$locale['DS121'].\" \".showdate(\"%d.%m.%y\", $data['download_datestamp']).\"\".$locale['DS110'].\" \".$col.\"\".$locale['DS128'].\" \".$data['download_count'].\"\".$locale['DS111'].\"
\n
\n\";

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

            closetable();

            if ($rows > 1) { echo \"
\n\".makepagenav($_GET['rowstart'], $ds['row_files'], $rows, 3, FUSION_SELF.\"?cat_id=\".$_GET['cat_id'].\"&sort=\".$_GET['sort'].\"&\").\"
\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 = \"\".$locale['DS100'].\"\";
    $cat = $data['c2_name'] ? \" > \".$name_cat.\"\" : \"\";
    $sub_cat = \" > \".$data['c1_name'].\"\";
    $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 \"
\n\";

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

      echo \"\n\";

            if ($data['download_allow_recommends']) {
        echo \"\n\";
                }

      echo \"\n\n\";
      
              if ($data['download_os'] != '') {
        echo \"\n\";
              }

      echo \"\n\";
      echo \"
\".$locale['DS130'].\"
\".$data['download_title'].\"
\".$noidex.\"\".$locale['DS119'].\"\".$noidex_end.\"
  
\n\";

      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\n\";
      echo \"
\n\n\";

        echo \"\n\";

   if ($license != ''){ echo \"\n\"; }   
   if ($lang != '') { echo \"\n\"; }
   if ($version != '') { echo \"\n\"; }
   if ($filesize != '') { echo \"\n\"; }

      echo \"
\".$locale['DS121'].\" \".showdate(\"%d.%m.%y\", $data['download_datestamp']).\"
\".$locale['DS123'].\"  \".$noidex.\"\".$license.\"\".$noidex_end.\"
\".$locale['DS125'].\"  \".$lang.\"
\".$locale['DS124'].\"  \".$version.\"
\".$locale['DS122'].\"  \".$filesize.\"
\n
\n\n\";

         if (($screen != \"\") && (file_exists(IMAGES.'screens/'.$screen))) {
      echo \"\n\";
            } else if($ds['on_screen'] == '1') {
        echo \"\n\";
            }

      echo \"
\n\";
      echo \">'\".$locale['DS126'].\"\n\";
      echo \"
\".$locale['DS127'].\"
\n
\n\";
      echo \"\n\";

           if ($cont != \"\") { echo \"\n\";
       } else { echo \"\n\"; }

        echo \"
\".nl2br(stripslashes(parseubb(parsesmileys($cont)))).\"
\".$locale['DS129'].\"
\n\";
        echo \"\n\";
      echo \"\n\";

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

              if ($data['download_url'] != '') {
        echo \"\n\";
              }
               if ($data['mirror_url'] != '') {
        echo \"\n\";
               }
                if ($data['download_button'] != '') {
        echo \"\n\";
              }
                if ($data['download_rus'] != '') {
        echo \"\n\";
              }
                if ($data['download_forum'] != '') {
        echo \"\n\";
              }
       echo \"\n\";
          } else { echo \"\n\"; }
        } //
      echo \"
\".$locale['DS128'].\" \".$data['download_count'].\"
\".$noidex.\"\".$locale['DS131'].\"\".$noidex_end.\"
\".$noidex.\"\".$locale['DS132'].\"\".$noidex_end.\"
\".$noidex.\"\".$data['download_button'].\"\".$noidex_end.\"
\".$noidex.\"\".$locale['DS133'].\"\".$noidex_end.\"
\".$noidex.\"\".$locale['DS134'].\"\".$noidex_end.\"
'' \".$locale['DS135'].\"
\n\";

          if (iADMIN && (iUSER_RIGHTS != \"\" || iUSER_RIGHTS != \"SD\")) {
      echo \"\n\";
           $editfile = \"\".$noidex.\"\".$locale['A101'].\"\".$noidex_end.\"\n\";
            $delfile = \"\".$noidex.\">\".$locale['A102'].\"\".$noidex_end.\"\n\";
        echo \"\n\";
      echo \"
\".$locale['A100'].\" \".$editfile.\" | \".$delfile.\"
\n\";
           } //

    if ($ds['bad_links'] != '1' && (checkgroup($ds['bad_links'])) && (checkgroup($data['download_access']))) {
               if ($data['bad_down'] == '') {
   
   add_to_head(\"\");

    add_to_head(\"\");
    add_to_head(\"\");

       echo \"
\n\";
      echo \"
 '!' \".$locale['DS137'].\"\";
        echo \"

\n
\n\";
      echo \"\";
      echo \"\n
\".$locale['DS138'].\"*

\n>
\n\";
      echo \"
\n\";
      echo \"
\n\";
               } else {
      echo \"\n\";
      echo \"\n\";
      echo \"
 '!' \".$locale['DS136'].\"
\n\";
                }
           }
                } else { echo \"

\n\".$locale['DS102'].\"\n
\n
\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 \"
\".$locale['DS103'].\"
\n\"; }

require_once THEMES.\"templates/footer.php\";

   } //

?>


 
PM
Wyciokazz
#8 Spausdinti pranešimą
parašyta 2012-01-07 23:07
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Ne spausk kazkur pas save pateikti siuntini ir ziurek koki tau faila rodo.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Rinas
#9 Spausdinti pranešimą
parašyta 2012-01-07 23:22
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

submit_file.php:
Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Download System mSF For PHP-Fusion 7.xx v.4.8
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: http://x-iweb.ru/
+----------------------------------------------------*/

require_once \"maincore.php\";
require_once THEMES.\"templates/header.php\";
include LOCALE.LOCALESET.\"downloads.php\";
include LOCALE.LOCALESET.\"admin/downloads.php\";

    if (iMEMBER) {

    if (isset($_POST['save_download'])) {
   
   require_once INCLUDES.\"download_system/function.php\";
   
       $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"download_settings\");
      $data = dbarray($result);
      
      $upload_file = $_FILES['upload']['name'];
   if ($upload_file != '') {
      $tmp_path = $_FILES['upload']['tmp_name'];
       $filext = strtolower(strrchr($upload_file,\".\"));
        $downtypes = explode(\",\", $data['downtypes']);      
         if (in_array($filext, $downtypes)) {   
      $upload_dir = BASEDIR.\"data/\";
      $upload_file_name = str_replace(\" \", \"_\", str_replace(\"%20\", \"_\", $upload_file));      
        if (file_exists($upload_dir.$upload_file_name)) {
        $upload_name = universal_detect_exists($upload_dir, $upload_file_name);
        } else { $upload_name = $upload_file_name; }
                   if (move_uploaded_file($tmp_path, $upload_dir.$upload_name)) {
                  $download_url = \"data/\".$upload_name;   
                   $size = array_reduce (array (\" $B\", \" $KB\", \" $MB\", \" $GB\", \" $TB\"),
         create_function ('$a,$b', 'return is_numeric($a)?($a>=1024?$a/1024:number_format($a,2).$b):$a;'),            filesize ($upload_dir.$upload_name));
                        }
   
      } else { Header(\"Location: \".FUSION_SELF.\"?error=upload\"); exit; }
      
    } else { $download_url = stripinput($_POST['download_url']); }
   $download_title = stripinput($_POST['download_title']);
      if ($_POST['download_filesize'] != '') {
    $download_filesize = stripinput($_POST['download_filesize']);
       } else { $download_filesize = $size; }
    $download_description = stripinput(addslash(censorwords($_POST['download_description'])));         
    $mirror_url = $data['allow_mirror'] == '1' ? stripinput($_POST['mirror_url']) : \"\";
   $download_lang = $data['allow_lang'] == '1' ? stripinput($_POST['download_lang']) : \"\";
   $download_rus = $data['allow_rus'] == '1' ? stripinput($_POST['download_rus']) : \"\";
   $download_os = $data['allow_os'] == '1' ? stripinput($_POST['download_os']) : \"\";
   $download_version = $data['allow_platform'] == '1' ? stripinput($_POST['download_version']) : \"\";
   $download_button = $data['allow_button'] == '1' ? stripinput($_POST['download_button']) : \"\";
   $download_burl = $data['allow_button'] == '1' ? stripinput($_POST['download_burl']) : \"\";
   $download_license = $data['allow_license'] == '1' ? stripinput($_POST['download_license']) : \"\";
      $download_description_p = \"\";
      $download_background = \"images/downloads/down.png\";                  
        $download_access = \"101\";
        $comments = \"1\";
        $ratings = \"1\";
      $recommends = \"0\";
      $download_datestamp = time();
      if (iSUPERADMIN) { $download_submit = \"0\"; } else { $download_submit = \"1\"; }
      $download_user = $userdata['user_id'];
      $download_forum = \"\";
      $download_cat = stripinput($_POST['download_cat']);
                  
      if ($data['allow_screen'] == '1') {
      $upload_screen = $_FILES['filename']['name'];
            if ($upload_screen != '') {
      $screenext = strtolower(strrchr($upload_screen,\".\"));
        $screentypes = explode(\",\", $data['downtypes']);      
             if (in_array($screenext, $screentypes)) {   
          $upload_dir_im = BASEDIR.\"images/screens/\";
          $tmp_path = $_FILES['filename']['tmp_name'];
          $file_name = str_replace(\" \", \"_\", str_replace(\"%20\", \"_\", $upload_screen));      
                    if (file_exists($upload_dir_im.$file_name)) {
               $screen = universal_detect_exists($upload_dir_im, $file_name);
                    } else { $screen = $file_name; }
                  if(copy($tmp_path, $upload_dir_im.$screen));
                   $download_screen = $screen;
             } else { redirect(FUSION_SELF.\"?error=upload\"); exit; }
         }
      } else { $download_screen = \"\"; }
            
        $result = dbquery(\"INSERT INTO \".DB_DOWNLOADS.\" (download_user, download_title, download_description, download_description_p, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count, download_allow_comments, download_allow_ratings, download_allow_recommends, download_access, mirror_url, download_lang, download_rus, download_forum, download_screen, download_button, download_burl, download_background, download_submit) VALUES ('$download_user', '$download_title', '$download_description', '$download_description_p', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '$download_datestamp', '0', '$comments', '$ratings', '$recommends', '$download_access', '$mirror_url', '$download_lang', '$download_rus', '$download_forum', '$download_screen', '$download_button', '$download_burl', '$download_background', '$download_submit')\");
      
          redirect(FUSION_SELF.\"?status=ok\");
            
        } else {
                                 
                opentable($locale['SA100']);
                  
   echo \"
\".$locale['SA101'].\"

\";   
   
           if (isset($_GET['status']) == \"ok\") {
          $message = \"\".$locale['SA104'].\"\";
          if ($message) {   echo \"
\".$message.\"
\n\"; }
          } elseif (isset($_GET['error']) == \"upload\") {
          $message = $locale['SA106'];
         if ($message) {   echo \"
\".$message.\"
\n\"; }
          }
      
    function catSelect($cats_id = '0', $chort = '', $sel = ''){
    global $editlist, $sel;
            if ($cats_id != 0) { $chort .= '-'; }
        $result2 = dbquery(\"SELECT * FROM \".DB_DOWNLOAD_CATS.\" WHERE download_cat_idc='\".$cats_id.\"' ORDER BY download_cat_id ASC\");
            while ($data2 = dbarray($result2)) {
        $editlist .= \"\n\";
    catSelect($data2['download_cat_id'], $chort);
            }
    }

    catSelect();

    echo \"
\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";

        $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"download_settings\");
      $data = dbarray($result);

            if ($data['allow_url'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_filesize'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_upload'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            }
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";

          if ($data['allow_license'] != '0' || $data['allow_lang'] != '0' || $data['allow_platform'] != '0' || $data['allow_os'] != '0' || $data['allow_mirror'] != '0' || $data['allow_rus'] != '0' || $data['allow_screen'] != '0' || $data['allow_button'] != '0') {
         
    echo \"\";
    echo \"\";
    echo \"\";
            }

            if ($data['allow_license'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_lang'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_platform'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_os'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_mirror'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_rus'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_screen'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_button'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
         }
   echo \"\";
    echo \"\";
    echo \"
\".$locale['SA102'].\"
\".$locale['480D'].\"
\".$locale['481D'].\"
\n\";
   require_once INCLUDES.\"bbcode_include.php\";
   echo \"\".display_bbcodes(\"100%\", \"download_description\").\"\n\";
    echo \"
\".$locale['482D'].\"
\".$locale['487D'].\"
\".$locale['S102'].\"
\".$locale['483D'].\"
\".$locale['417D'].\"
\".$locale['484D'].\"
\".$locale['445D'].\"
\".$locale['486D'].\"
\".$locale['448D'].\":
\".$locale['482_1D'].\"
\".$locale['446D'].\"
\".$locale['442D'].\"
\".$locale['SA103'].\"
\".$locale['428D'].\"
\".$locale['429D'].\"

\";
    echo \"
\";
    echo \"
\n\";

        closetable();
      
        }
      
    } else { opentable($locale['S100']); echo \"
\".$locale['S101'].\"
\n\";  closetable(); }

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



Dabar nariui pateikus failà bus automati?kai nustatyta, kad já gali siøstis tik nariai, ir tau nereikës redaguoti :)
Redagavo Rinas 2012-01-07 23:22
 
PM
-Donatas
#10 Spausdinti pranešimą
parašyta 2012-01-07 23:51
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24

Neveikia :)
 
PM
Rinas
#11 Spausdinti pranešimą
parašyta 2012-01-07 23:56
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Kaip tai neveikia? Klaidà meta? Ar tiesiog nenustato, kad failai bûtø prieinami tik nariams? Tu tikrai á reikiamà failà tà kodà ára?ei? Be to, ?itas kodas veiks tik tiems failams, kurie bus pateikti po jo ádëjimo.
 
PM
Snekutis
#12 Spausdinti pranešimą
parašyta 2012-01-08 00:15
Savekas



Reputacija: 0

Pranešimai: 224
Įstojo: 2010-05-02

Taigi jabitvairogës :D Kaip kuri kokià nors kategorijà padaryk, kad tà kategorijà matytø sveèias. Toliau jei nori pateikti siuntiná eini á Turinio Administravimas/Siuntiniai
U?pildei viskà pagal paskirti pavadinimas, apra?ymas ir t.t tada yra skiltelë Prieiga prie failo pasirenki narys ir spaudi Saugoti ir viskas kaip eisi á siuntinius rodys sveèiui kategorija kuria esi sukûræs jei jis norës siûstis failà turës prisijungti arba u?siregistruoti :D
O kaip narys pateiks failà tu taip pat eisi á Turinio Administravimas/Siuntiniai Pasirinksi Pateikta siuntiniø spausi per?iûrëti nueisi á paèia apaèia ir kur yra Prieiga prie failo pasirinksi narys ir i?saugosi. Toliau eisi vël Pateikta siuntiniø ir spausi leisti vsio.
Redagavo Snekutis 2012-01-08 00:17
 
PM
-Donatas
#13 Spausdinti pranešimą
parašyta 2012-01-08 12:01
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2011-01-24

Rinas para?ë:
Kaip tai neveikia? Klaidà meta? Ar tiesiog nenustato, kad failai bûtø prieinami tik nariams? Tu tikrai á reikiamà failà tà kodà ára?ei? Be to, ?itas kodas veiks tik tiems failams, kurie bus pateikti po jo ádëjimo.


Tiesiog neveikia, nenustato, kad failai bûtø prieinami tik nariams. Taip, tikrai á reikiamà, o failà buvau ádëjæs i? naujo.

Taigi jabitvairogës Grin Kaip kuri kokià nors kategorijà padaryk, kad tà kategorijà matytø sveèias. Toliau jei nori pateikti siuntiná eini á Turinio Administravimas/Siuntiniai
U?pildei viskà pagal paskirti pavadinimas, apra?ymas ir t.t tada yra skiltelë Prieiga prie failo pasirenki narys ir spaudi Saugoti ir viskas kaip eisi á siuntinius rodys sveèiui kategorija kuria esi sukûræs jei jis norës siûstis failà turës prisijungti arba u?siregistruoti Grin
O kaip narys pateiks failà tu taip pat eisi á Turinio Administravimas/Siuntiniai Pasirinksi Pateikta siuntiniø spausi per?iûrëti nueisi á paèia apaèia ir kur yra Prieiga prie failo pasirinksi narys ir i?saugosi. Toliau eisi vël Pateikta siuntiniø ir spausi leisti vsio.


Taip, taip bûtø galima daryti, bet tada kiekvienà kartà man reikëtø redaguoti failà ir padaryti, kad já galëtø siûstis tik narys.
 
PM
Wyciokazz
#14 Spausdinti pranešimą
parašyta 2012-01-08 12:55
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Download System mSF For PHP-Fusion 7.xx v.4.8
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: http://x-iweb.ru/
+----------------------------------------------------*/

require_once \"maincore.php\";
require_once THEMES.\"templates/header.php\";
include LOCALE.LOCALESET.\"downloads.php\";
include LOCALE.LOCALESET.\"admin/downloads.php\";

    if (iMEMBER) {

    if (isset($_POST['save_download'])) {
   
   require_once INCLUDES.\"download_system/function.php\";
   
       $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"download_settings\");
      $data = dbarray($result);
     
      $upload_file = $_FILES['upload']['name'];
   if ($upload_file != '') {
      $tmp_path = $_FILES['upload']['tmp_name'];
       $filext = strtolower(strrchr($upload_file,\".\"));
        $downtypes = explode(\",\", $data['downtypes']);     
         if (in_array($filext, $downtypes)) {   
      $upload_dir = BASEDIR.\"data/\";
      $upload_file_name = str_replace(\" \", \"_\", str_replace(\"%20\", \"_\", $upload_file));     
        if (file_exists($upload_dir.$upload_file_name)) {
        $upload_name = universal_detect_exists($upload_dir, $upload_file_name);
        } else { $upload_name = $upload_file_name; }
                   if (move_uploaded_file($tmp_path, $upload_dir.$upload_name)) {
                  $download_url = \"data/\".$upload_name;   
                   $size = array_reduce (array (\" $B\", \" $KB\", \" $MB\", \" $GB\", \" $TB\"),
         create_function ('$a,$b', 'return is_numeric($a)?($a>=1024?$a/1024:number_format($a,2).$b):$a;'),            filesize ($upload_dir.$upload_name));
                        }
   
      } else { Header(\"Location: \".FUSION_SELF.\"?error=upload\"); exit; }
     
    } else { $download_url = stripinput($_POST['download_url']); }
   $download_title = stripinput($_POST['download_title']);
      if ($_POST['download_filesize'] != '') {
    $download_filesize = stripinput($_POST['download_filesize']);
       } else { $download_filesize = $size; }
    $download_description = stripinput(addslash(censorwords($_POST['download_description'])));         
    $mirror_url = $data['allow_mirror'] == '1' ? stripinput($_POST['mirror_url']) : \"\";
   $download_lang = $data['allow_lang'] == '1' ? stripinput($_POST['download_lang']) : \"\";
   $download_rus = $data['allow_rus'] == '1' ? stripinput($_POST['download_rus']) : \"\";
   $download_os = $data['allow_os'] == '1' ? stripinput($_POST['download_os']) : \"\";
   $download_version = $data['allow_platform'] == '1' ? stripinput($_POST['download_version']) : \"\";
   $download_button = $data['allow_button'] == '1' ? stripinput($_POST['download_button']) : \"\";
   $download_burl = $data['allow_button'] == '1' ? stripinput($_POST['download_burl']) : \"\";
   $download_license = $data['allow_license'] == '1' ? stripinput($_POST['download_license']) : \"\";
      $download_description_p = \"\";
      $download_background = \"images/downloads/down.png\";                   
        $download_access = \"101\";
        $comments = \"1\";
        $ratings = \"1\";
      $recommends = \"0\";
      $download_datestamp = time();
      if (iSUPERADMIN) { $download_submit = \"0\"; } else { $download_submit = \"1\"; }
      $download_user = $userdata['user_id'];
      $download_forum = \"\";
      $download_cat = stripinput($_POST['download_cat']);
                 
      if ($data['allow_screen'] == '1') {
      $upload_screen = $_FILES['filename']['name'];
            if ($upload_screen != '') {
      $screenext = strtolower(strrchr($upload_screen,\".\"));
        $screentypes = explode(\",\", $data['downtypes']);     
             if (in_array($screenext, $screentypes)) {   
          $upload_dir_im = BASEDIR.\"images/screens/\";
          $tmp_path = $_FILES['filename']['tmp_name'];
          $file_name = str_replace(\" \", \"_\", str_replace(\"%20\", \"_\", $upload_screen));     
                    if (file_exists($upload_dir_im.$file_name)) {
               $screen = universal_detect_exists($upload_dir_im, $file_name);
                    } else { $screen = $file_name; }
                  if(copy($tmp_path, $upload_dir_im.$screen));
                   $download_screen = $screen;
             } else { redirect(FUSION_SELF.\"?error=upload\"); exit; }
         }
      } else { $download_screen = \"\"; }
           
        $result = dbquery(\"INSERT INTO \".DB_DOWNLOADS.\" (download_user, download_title, download_description, download_description_p, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count, download_allow_comments, download_allow_ratings, download_allow_recommends, download_access, mirror_url, download_lang, download_rus, download_forum, download_screen, download_button, download_burl, download_background, download_submit) VALUES ('$download_user', '$download_title', '$download_description', '$download_description_p', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '$download_datestamp', '0', '$comments', '$ratings', '$recommends', '101', '$mirror_url', '$download_lang', '$download_rus', '$download_forum', '$download_screen', '$download_button', '$download_burl', '$download_background', '$download_submit')\");
     
          redirect(FUSION_SELF.\"?status=ok\");
           
        } else {
                                 
                opentable($locale['SA100']);
                 
   echo \"
\".$locale['SA101'].\"

\";   
   
           if (isset($_GET['status']) == \"ok\") {
          $message = \"\".$locale['SA104'].\"\";
          if ($message) {   echo \"
\".$message.\"
\n\"; }
          } elseif (isset($_GET['error']) == \"upload\") {
          $message = $locale['SA106'];
         if ($message) {   echo \"
\".$message.\"
\n\"; }
          }
     
    function catSelect($cats_id = '0', $chort = '', $sel = ''){
    global $editlist, $sel;
            if ($cats_id != 0) { $chort .= '-'; }
        $result2 = dbquery(\"SELECT * FROM \".DB_DOWNLOAD_CATS.\" WHERE download_cat_idc='\".$cats_id.\"' ORDER BY download_cat_id ASC\");
            while ($data2 = dbarray($result2)) {
        $editlist .= \"\n\";
    catSelect($data2['download_cat_id'], $chort);
            }
    }

    catSelect();

    echo \"
\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";

        $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"download_settings\");
      $data = dbarray($result);

            if ($data['allow_url'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_filesize'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_upload'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            }
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";

          if ($data['allow_license'] != '0' || $data['allow_lang'] != '0' || $data['allow_platform'] != '0' || $data['allow_os'] != '0' || $data['allow_mirror'] != '0' || $data['allow_rus'] != '0' || $data['allow_screen'] != '0' || $data['allow_button'] != '0') {
         
    echo \"\";
    echo \"\";
    echo \"\";
            }

            if ($data['allow_license'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_lang'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_platform'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_os'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_mirror'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_rus'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_screen'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
            } if ($data['allow_button'] == '1') {
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
    echo \"\";
         }
   echo \"\";
    echo \"\";
    echo \"
\".$locale['SA102'].\"
\".$locale['480D'].\"
\".$locale['481D'].\"
\n\";
   require_once INCLUDES.\"bbcode_include.php\";
   echo \"\".display_bbcodes(\"100%\", \"download_description\").\"\n\";
    echo \"
\".$locale['482D'].\"
\".$locale['487D'].\"
\".$locale['S102'].\"
\".$locale['483D'].\"
\".$locale['417D'].\"
\".$locale['484D'].\"
\".$locale['445D'].\"
\".$locale['486D'].\"
\".$locale['448D'].\":
\".$locale['482_1D'].\"
\".$locale['446D'].\"
\".$locale['442D'].\"
\".$locale['SA103'].\"
\".$locale['428D'].\"
\".$locale['429D'].\"

\";
    echo \"
\";
    echo \"
\n\";

        closetable();
     
        }
     
    } else { opentable($locale['S100']); echo \"
\".$locale['S101'].\"
\n\";  closetable(); }

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



Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Snekutis
#15 Spausdinti pranešimą
parašyta 2012-01-09 15:05
Savekas



Reputacija: 0

Pranešimai: 224
Įstojo: 2010-05-02

O tau kà rankos nukris? Man kaip tik geriau, kad redaguoti galëèiau per?iûriø ar nëra jokiø reklamu ir ?iuk?liø tam faile tada tik patvirtinu..
 
PM
Peršokti į forumą: