Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 15th December 2019, 01:27
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default Poster not showing in torrent details TS 1.3.9
Backup /include/globalfunctions.php snd then replace with this one.

globalfunctions.php

PHP Code:
<?php
# IMPORTANT: Do not edit below unless you know what you are doing!
if(!defined('IN_TRACKER'))
  die(
'Hacking attempt!');

function 
display_date_time($timestamp 0)
{
if (
$timestamp)
   return 
date("Y-m-d H:i:s"$timestamp);
else
   return 
gmdate("Y-m-d H:i:s");
}

function 
get_user_timezone($id '') {    

if(!isset(
$id) || empty($id) || !is_valid_id($id))
    return 
"2"//Default timezone
    
$query mysql_query("SELECT * FROM users WHERE id=".sqlesc($id)." LIMIT 1");
if (
mysql_num_rows($query) != "0")
    {
        
$kasutaja mysql_fetch_array($query);
        return 
"$kasutaja[tzoffset]";
    }else
        return 
"2"//Default timezone
}

function 
get_row_count($table$suffix "")
{
  if (
$suffix)
    
$suffix $suffix";
  (
$r mysql_query("SELECT COUNT(*) FROM $table$suffix")) or die(mysql_error());
  (
$a mysql_fetch_row($r)) or die(mysql_error());
  return 
$a[0];
}
function 
stdmsg($heading$text$htmlstrip TRUE)
{
    if (
$htmlstrip) {
        
$heading htmlspecialchars(trim($heading));
        
$text htmlspecialchars(trim($text));
    }
    print(
"<table class=main width=737 border=0 cellpadding=0 cellspacing=0><tr><td class=embedded>\n");
        if (
$heading)
            print(
"<h2>$heading</h2>\n");
    print(
"<table width=100% border=1 cellspacing=0 cellpadding=10><tr><td class=text>\n");
    print(
$text "</td></tr></table></td></tr></table>\n");
}

function 
stderr($heading$text$htmlstrip TRUE$head true$foot true$die true)
{
    if (
$headstdhead();
    
    
stdmsg($heading$text$htmlstrip);
    
    if (
$footstdfoot();
    
    if (
$die) die;
}

function 
sqlerr($file ''$line '')
{
  print(
"<table border=0 bgcolor=blue align=left cellspacing=0 cellpadding=10 style='background: blue'>" .
    
"<tr><td class=embedded><font color=white><h1>SQL Error</h1>\n" .
  
"<b>" mysql_error() . ($file != '' && $line != '' "<p>in $file, line $line</p>" "") . "</b></font></td></tr></table>");
  die;
}

// Returns the current time in GMT in MySQL compatible format.
function get_date_time($timestamp 0)
{
    global 
$_COOKIE,$_SESSION;
if (
$timestamp)
    return 
date("Y-m-d H:i:s"$timestamp);
else {
   
$idcookie base64($_COOKIE["c_secure_uid"],false);
   if (!
$idcookie)
       
$idcookie base64($_SESSION["s_secure_uid"],false);
   return 
gmdate("Y-m-d H:i:s"time() + (60 get_user_timezone($idcookie)));
    }
}

function 
encodehtml($s$linebreaks true)
{
  
$s str_replace("<""&lt;"str_replace("&""&"$s));
  if (
$linebreaks)
    
$s nl2br($s);
  return 
$s;
}

function 
get_dt_num()
{
  return 
gmdate("YmdHis");
}

function 
format_urls($s)
{
    return 
preg_replace(
        
"/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^()<>\s]+)/i",
        
"\\1<a href=\"\\2\">\\2</a>"$s);
}

/*

// Removed this fn, I've decided we should drop the redir script...
// it's pretty useless since ppl can still link to pics...
// -Rb

function format_local_urls($s)
{
    return preg_replace(
    "/(<a href=redir\.php\?url=)((http|ftp|https|ftps|irc):\/\/(www\.)?sitename\.(net|org|com)(:8[0-3])?([^<>\s]*))>([^<]+)<\/a>/i",
    "<a href=\\2>\\8</a>", $s);
}
*/

//Finds last occurrence of needle in haystack
//in PHP5 use strripos() instead of this
function _strlastpos ($haystack$needle$offset 0)
{
    
$addLen strlen ($needle);
    
$endPos $offset $addLen;
    while (
true)
    {
        if ((
$newPos strpos ($haystack$needle$endPos $addLen)) === false) break;
        
$endPos $newPos;
    }
    return (
$endPos >= 0) ? $endPos false;
}

function 
format_quotes($s)
{
    
preg_match_all('/\\[quote.*?\\]/'$s$resultPREG_PATTERN_ORDER);
$openquotecount count($openquote $result[0]);
   
preg_match_all('/\\[\/quote\\]/'$s$resultPREG_PATTERN_ORDER);
$closequotecount count($closequote $result[0]);

   if (
$openquotecount != $closequotecount) return $s// quote mismatch. Return raw string...

   // Get position of opening quotes
$openval = array();
   
$pos = -1;

   foreach(
$openquote as $val)
 
$openval[] = $pos strpos($s,$val,$pos+1);

   
// Get position of closing quotes
   
$closeval = array();
   
$pos = -1;

   foreach(
$closequote as $val)
    
$closeval[] = $pos strpos($s,$val,$pos+1);


   for (
$i=0$i count($openval); $i++)
 if (
$openval[$i] > $closeval[$i]) return $s// Cannot close before opening. Return raw string...


    
$s str_replace("[quote]","<fieldset><legend> Quote </legend><br>",$s);
   
$s preg_replace("/\\[quote=(.+?)\\]/""<fieldset><legend> Quote: \\1 </legend><br>"$s);
   
$s str_replace("[/quote]","</fieldset><br>",$s);
   return 
$s;
}

function 
format_comment($text$strip_html true$xssclean false)
{
    global 
$smilies$privatesmilies$CURUSER;

    
$s $text;

  
// This fixes the extraneous ;) smilies problem. When there was an html escaped
  // char before a closing bracket - like >), "), ... - this would be encoded
  // to &xxx;), hence all the extra smilies. I created a new :wink: label, removed
  // the ;) one, and replace all genuine ;) by :wink: before escaping the body.
  // (What took us so long? :blush:)- wyz

    
$s str_replace(";)"":wink:"$s);

    if (
$strip_html)
        
$s htmlspecialchars($s);

    if (
$xssclean)
    
$s xss_clean($s);
    
    
//[*]
    
$s preg_replace("/\[\*\]/""<img src=\"".$GLOBALS['pic_base_url']."/list.gif\" class=\"listitem\" />"$s);

    
// [b]Bold[/b]
    
$s preg_replace("/\[b\]((\s|.)+?)\[\/b\]/""<b>\\1</b>"$s);

    
// [i]Italic[/i]
    
$s preg_replace("/\[i\]((\s|.)+?)\[\/i\]/""<i>\\1</i>"$s);

    
// [u]Underline[/u]
    
$s preg_replace("/\[u\]((\s|.)+?)\[\/u\]/""<u>\\1</u>"$s);

    
// [u]Underline[/u]
    
$s preg_replace("/\[u\]((\s|.)+?)\[\/u\]/i""<u>\\1</u>"$s);

//---------------------------------
//---- Image Resizer v0.1 by xam
//---------------------------------

    // [img]http://www/image.gif[/img]
    
$s preg_replace("/\[img1\](http:\/\/[^\s'\"<>]+(\.(jpg|gif|png)))\[\/img1\]/i""<img border=\"0\" src=\"\\1\" alt=\"\" onload=\"NcodeImageResizer.createOn(this);\">"$s);
    
$s preg_replace("/\[img2\](https:\/\/[^\s'\"<>]+(\.(jpg|gif|png)))\[\/img2\]/i""<img border=\"0\" src=\"\\1\" alt=\"\" onload=\"NcodeImageResizer.createOn(this);\">"$s);
    
//$s = preg_replace("/\[img\](http:\/\/[^\s'\"#\.(png|jpg|gif)$#", "<img border=\"0\" src=\"\\1\" alt=\"\" onload=\"NcodeImageResizer.createOn(this);\">", $s);


    // [img=http://www/image.gif]
    
$s preg_replace("/\[img=(http|https:\/\/[^\s'\"<>]+(\.(gif|jpg|png)))\]/i""<img border=\"0\" src=\"\\1\" alt=\"\"  onload=\"NcodeImageResizer.createOn(this);\">"$s);

//---------------------------------
//---- Image Resizer v0.1 by xam
//---------------------------------

    // [color=blue]Text[/color]
    
$s preg_replace(
        
"/\[color=([a-zA-Z]+)\]((\s|.)+?)\[\/color\]/i",
        
"<font color=\\1>\\2</font>"$s);

    
// [color=#ffcc99]Text[/color]
    
$s preg_replace(
        
"/\[color=(#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\]((\s|.)+?)\[\/color\]/i",
        
"<font color=\\1>\\2</font>"$s);

    
// [url=http://www.example.com]Text[/url]
    
$s preg_replace(
        
"/\[url=([^()<>\s]+?)\]((\s|.)+?)\[\/url\]/i",
        
"<a href="\\1">\\2</a>"$s);

    
// [url]http://www.example.com[/url]
    
$s preg_replace(
        
"/\[url\]([^()<>\s]+?)\[\/url\]/i",
        
"<a href="\\1">\\1</a>"$s);
        
    
// [code]php code[/code]
    
$s preg_replace(
    
"/\[code\]\s*((\s|.)+?)\s*\[\/code\]\s*/i",
    
"<br><div class="codetop">CODE</div><div class="codemain">\\1</div><br>"$s);

    
// [size=4]Text[/size]
    
$s preg_replace(
        
"/\[size=([1-7])\]((\s|.)+?)\[\/size\]/i",
        
"<font size=\\1>\\2</font>"$s);

    
// [font=Arial]Text[/font]
    
$s preg_replace(
        
"/\[font=([a-zA-Z ,]+)\]((\s|.)+?)\[\/font\]/i",
        
"<font face="\\1">\\2</font>"$s);

//  //[quote]Text[/quote]
//  $s = preg_replace(
//    "/\[quote\]\s*((\s|.)+?)\s*\[\/quote\]\s*/i",
//    "<p class=sub><b>Quote:</b></p><table class=main border=1 cellspacing=0 cellpadding=10><tr><td style='border: 1px black dotted'>\\1</td></tr></table><br>", $s);

//  //[quote=Author]Text[/quote]
//  $s = preg_replace(
//    "/\[quote=(.+?)\]\s*((\s|.)+?)\s*\[\/quote\]\s*/i",
//    "<p class=sub><b>\\1 wrote:</b></p><table class=main border=1 cellspacing=0 cellpadding=10><tr><td style='border: 1px black dotted'>\\2</td></tr></table><br>", $s);

    // Quotes
    
$s format_quotes($s);

    
// URLs
    
$s format_urls($s);
//    $s = format_local_urls($s);

    // Linebreaks
    
$s nl2br($s);

    
// [pre]Preformatted[/pre]    
    
$s preg_replace("/\[pre\](.*?)\[\/pre\]/is""<pre>".htmlentities('\\1')."</pre>"$s);
    
    
// [nfo]NFO-preformatted[/nfo]
    
$s preg_replace("/\[nfo\]((\s|.)+?)\[\/nfo\]/i""<tt><nobr><font face='MS Linedraw' size=2 style='font-size: 10pt; line-height: " .
        
"10pt'>\\1</font></nobr></tt>"$s);
        
    
// [you]
    
$s str_replace ("[you]""$CURUSER[username]"$s);

    
// Maintain spacing
    
$s str_replace("  "" &nbsp;"$s);

    
reset($smilies);
    while (list(
$code$url) = each($smilies))
        
$s str_replace($code"<img border=0 src="pic/smilies/$url" alt="" . htmlspecialchars($code) . "">"$s);

    
reset($privatesmilies);
    while (list(
$code$url) = each($privatesmilies))
        
$s str_replace($code"<img border=0 src="pic/smilies/$url">"$s);

    return 
$s;
}

//---------------------------------
//---- Search Highlight v0.1 by xam
//---------------------------------

function highlight($search,$subject,$hlstart="<b><font color=red>",$hlend="</font></b>"
) {
    
    
$srchlen=strlen($search);    // lenght of searched string
    
if ($srchlen==0) return $subject;
    
$find $subject;
    while (
$find stristr($find,$search)) {    // find $search text in $subject -case insensitiv
        
$srchtxt substr($find,0,$srchlen);    // get new search text
        
$find=substr($find,$srchlen);
        
$subject str_replace($srchtxt,"$hlstart$srchtxt$hlend",$subject);    // highlight founded case insensitive search text
    
}
    return 
$subject;
}

//---------------------------------
//---- Search Highlight v0.1 by xam
//---------------------------------

function get_user_class()
{
  global 
$CURUSER;
  return 
$CURUSER["class"];
}

function 
get_user_class_name($class)
{
  switch (
$class)
  {
    case 
UC_USER: return "User";

    case 
UC_POWER_USER: return "Power User";

    case 
UC_VIP: return "VIP";

    case 
UC_UPLOADER: return "Uploader";

    case 
UC_MODERATOR: return "Moderator";

    case 
UC_ADMINISTRATOR: return "Administrator";

    case 
UC_SYSOP: return "SysOp";
    
    case 
UC_STAFFLEADER: return "Staff Leader";
    
  }
  return 
"";
}

function 
is_valid_user_class($class)
{
  return 
is_numeric($class) && floor($class) == $class && $class >= UC_USER && $class <= UC_STAFFLEADER;
}

//----------------------------------
//---- Security function v0.1 by xam
//----------------------------------
function int_check($value,$stdhead false$stdfood true$die true$log true) {
    global 
$CURUSER;
    
$msg "Invalid ID Attempt: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
    if ( 
is_array($value) ) {
        foreach (
$value as $valint_check ($val);
    } else {
        if (!
is_valid_id($value)) {
            if (
$stdhead) {
                if (
$log)
                    
write_log($msg);
                
stderr("ERROR","Invalid ID! For security reason, we have been logged this action.");
        }else {
                Print (
"<h2>Error</h2><table width=100% border=1 cellspacing=0 cellpadding=10><tr><td class=text>");
                Print (
"Invalid ID! For security reason, we have been logged this action.</td></tr></table>");
                if (
$log)
                    
write_log($msg);
            }            
            
            if (
$stdfood)
                
stdfoot();
            if (
$die)
                die;
        }            
        else
            return 
true;
    }
}
//----------------------------------
//---- Security function v0.1 by xam
//----------------------------------

function is_valid_id($id)
{
  return 
is_numeric($id) && ($id 0) && (floor($id) == $id);
}


  
//-------- Begins a main frame

  
function begin_main_frame()
  {
    print(
"<table class=main width=737 border=0 cellspacing=0 cellpadding=0>" .
      
"<tr><td class=embedded>\n");
  }

  
//-------- Ends a main frame

  
function end_main_frame()
  {
    print(
"</td></tr></table>\n");
  }

  function 
begin_frame($caption ""$center false$padding 10)
  {
    
$tdextra "";
    
    if (
$caption)
      print(
"<h2>$caption</h2>\n");

    if (
$center)
      
$tdextra .= " align=center";

    print(
"<table width=737 border=1 cellspacing=0 cellpadding=$padding><tr><td$tdextra>\n");

  }

  function 
attach_frame($padding 10)
  {
    print(
"</td></tr><tr><td style='border-top: 0px'>\n");
  }

  function 
end_frame()
  {
    print(
"</td></tr></table>\n");
  }

  function 
begin_table($fullwidth false$padding 5)
  {
    
$width "";
    
    if (
$fullwidth)
      
$width .= " width=100%";
    print(
"<table class=main$width border=1 cellspacing=0 cellpadding=$padding>\n");
  }

  function 
end_table()
  {
    print(
"</td></tr></table>\n");
  }

  
//-------- Inserts a smilies frame
  //         (move to globals)

  
function insert_smilies_frame()
  {
    global 
$smilies$BASEURL;

    
begin_frame("Smilies"true);

    
begin_table(false5);

    print(
"<tr><td class=colhead>Type...</td><td class=colhead>To make a...</td></tr>\n");

    while (list(
$code$url) = each($smilies))
      print(
"<tr><td>$code</td><td><img src=$BASEURL/pic/smilies/$url></td>\n");

    
end_table();

    
end_frame();
  }


function 
sql_timestamp_to_unix_timestamp($s)
{
  return 
mktime(substr($s112), substr($s142), substr($s172), substr($s52), substr($s82), substr($s04));
}

  function 
get_ratio_color($ratio)
  {
    if (
$ratio 0.1) return "#ff0000";
    if (
$ratio 0.2) return "#ee0000";
    if (
$ratio 0.3) return "#dd0000";
    if (
$ratio 0.4) return "#cc0000";
    if (
$ratio 0.5) return "#bb0000";
    if (
$ratio 0.6) return "#aa0000";
    if (
$ratio 0.7) return "#990000";
    if (
$ratio 0.8) return "#880000";
    if (
$ratio 0.9) return "#770000";
    if (
$ratio 1) return "#660000";
    return 
"#000000";
  }

  function 
get_slr_color($ratio)
  {
    if (
$ratio 0.025) return "#ff0000";
    if (
$ratio 0.05) return "#ee0000";
    if (
$ratio 0.075) return "#dd0000";
    if (
$ratio 0.1) return "#cc0000";
    if (
$ratio 0.125) return "#bb0000";
    if (
$ratio 0.15) return "#aa0000";
    if (
$ratio 0.175) return "#990000";
    if (
$ratio 0.2) return "#880000";
    if (
$ratio 0.225) return "#770000";
    if (
$ratio 0.25) return "#660000";
    if (
$ratio 0.275) return "#550000";
    if (
$ratio 0.3) return "#440000";
    if (
$ratio 0.325) return "#330000";
    if (
$ratio 0.35) return "#220000";
    if (
$ratio 0.375) return "#110000";
    return 
"#000000";
  }

function 
write_log($text)
{
  
$text sqlesc($text);
  
$added sqlesc(get_date_time());
  
mysql_query("INSERT INTO sitelog (added, txt) VALUES($added$text)") or sqlerr(__FILE____LINE__);
}

function 
get_elapsed_time($ts)
{
  
$mins floor((gmtime() - $ts) / 60);
  
$hours floor($mins 60);
  
$mins -= $hours 60;
  
$days floor($hours 24);
  
$hours -= $days 24;
  
$weeks floor($days 7);
  
$days -= $weeks 7;
  
$t "";
  if (
$weeks 0)
    return 
"$weeks week" . ($weeks "s" "");
  if (
$days 0)
    return 
"$days day" . ($days "s" "");
  if (
$hours 0)
    return 
"$hours hour" . ($hours "s" "");
  if (
$mins 0)
    return 
"$mins min" . ($mins "s" "");
  return 
"< 1 min";
}

function 
textbbcode($form,$text,$content="",$message=false) {
    global 
$subject;
?>
<script language=javascript>
var b_open = 0;
var i_open = 0;
var u_open = 0;
var color_open = 0;
var list_open = 0;
var quote_open = 0;
var html_open = 0;

var myAgent = navigator.userAgent.toLowerCase();
var myVersion = parseInt(navigator.appVersion);

var is_ie = ((myAgent.indexOf("msie") != -1) && (myAgent.indexOf("opera") == -1));
var is_nav = ((myAgent.indexOf('mozilla')!=-1) && (myAgent.indexOf('spoofer')==-1)
&& (myAgent.indexOf('compatible') == -1) && (myAgent.indexOf('opera')==-1)
&& (myAgent.indexOf('webtv') ==-1) && (myAgent.indexOf('hotjava')==-1));

var is_win = ((myAgent.indexOf("win")!=-1) || (myAgent.indexOf("16bit")!=-1));
var is_mac = (myAgent.indexOf("mac")!=-1);
var bbtags = new Array();
function cstat() {
var c = stacksize(bbtags);
if ( (c < 1) || (c == null) ) {c = 0;}
if ( ! bbtags[0] ) {c = 0;}
document.<?=$form?>.tagcount.value = "Close last, Open tags "+c;
}
function stacksize(thearray) {
for (i = 0; i < thearray.length; i++ ) {
if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') ) {return i;}
}
return thearray.length;
}
function pushstack(thearray, newval) {
arraysize = stacksize(thearray);
thearray[arraysize] = newval;
}
function popstackd(thearray) {
arraysize = stacksize(thearray);
theval = thearray[arraysize - 1];
return theval;
}
function popstack(thearray) {
arraysize = stacksize(thearray);
theval = thearray[arraysize - 1];
delete thearray[arraysize - 1];
return theval;
}
function closeall() {
if (bbtags[0]) {
while (bbtags[0]) {
tagRemove = popstack(bbtags)
if ( (tagRemove != 'color') ) {
doInsert("[/"+tagRemove+"]", "", false);
eval("document.<?=$form?>." + tagRemove + ".value = ' " + tagRemove + " '");
eval(tagRemove + "_open = 0");
} else {
doInsert("[/"+tagRemove+"]", "", false);
}
cstat();
return;
}
}
document.<?=$form?>.tagcount.value = "Close last, Open tags 0";
bbtags = new Array();
document.<?=$form?>.<?=$text?>.focus();
}
function add_code(NewCode) {
document.<?=$form?>.<?=$text?>.value += NewCode;
document.<?=$form?>.<?=$text?>.focus();
}
function alterfont(theval, thetag) {
if (theval == 0) return;
if(doInsert("[" + thetag + "=" + theval + "]", "[/" + thetag + "]", true)) pushstack(bbtags, thetag);
document.<?=$form?>.color.selectedIndex = 0;
cstat();
}
function tag_url() {
var FoundErrors = '';
var enterURL = prompt("You must enter a URL", "http://");
var enterTITLE = prompt("You must enter a title", "");
if (!enterURL || enterURL=="") {FoundErrors += " " + "You must enter a URL,";}
if (!enterTITLE) {FoundErrors += " " + "You must enter a title";}
if (FoundErrors) {alert("Error!"+FoundErrors);return;}
doInsert("[url="+enterURL+"]"+enterTITLE+"[/url]", "", false);
}
function tag_list() {
var FoundErrors = '';
var enterTITLE = prompt("Enter item of the list. For end of the list, press 'cancel' or leave the next field empty ", "");
if (!enterTITLE) {FoundErrors += " " + "Enter item of the list. For end of the list, press 'cancel' or leave the next field empty";}
if (FoundErrors) {alert("Error!"+FoundErrors);return;}
doInsert("[*]"+enterTITLE+"", "", false);

}
function tag_image1() {
var FoundErrors = '';
var enterURL = prompt("You must enter a full image URL", "http://");
if (!enterURL || enterURL=="http://") {
alert("Error!"+"You must enter a full image URL");
return;
}
doInsert("[img]"+enterURL+"[/img]", "", false);
}

function tag_image1() {
var FoundErrors = '';
var enterURL = prompt("You must enter a full image URL", "http://");
if (!enterURL || enterURL=="http://") {
alert("Error!"+"You must enter a full image URL");
return;
}
doInsert("[img1]"+enterURL+"[/img1]", "", false);
}

function tag_image2() {
var FoundErrors = '';
var enterURL = prompt("You must enter a full image URL", "http://");
if (!enterURL || enterURL=="https://") {
alert("Error!"+"You must enter a full image URL");
return;
}
doInsert("[img2]"+enterURL+"[/img2]", "", false);
}


function tag_email() {
var emailAddress = prompt("You must enter a E-mail", "");
if (!emailAddress) {
alert("Error!"+"You must enter a E-mail");
return;
}
doInsert("[email]"+emailAddress+"[/email]", "", false);
}
function doInsert(ibTag, ibClsTag, isSingle)
{
var isClose = false;
var obj_ta = document.<?=$form?>.<?=$text?>;
if ( (myVersion >= 4) && is_ie && is_win) {
if(obj_ta.isTextEdit){
obj_ta.focus();
var sel = document.selection;
var rng = sel.createRange();
rng.colapse;
if((sel.type == "Text" || sel.type == "None") && rng != null){
if(ibClsTag != "" && rng.text.length > 0)
ibTag += rng.text + ibClsTag;
else if(isSingle) isClose = true;
rng.text = ibTag;
}
}
else{
if(isSingle) isClose = true;
obj_ta.value += ibTag;
}
} else {
if(isSingle) isClose = true;
obj_ta.value += ibTag;
}
obj_ta.focus();
// obj_ta.value = obj_ta.value.replace(/ /, " ");
return isClose;
}
function em(theSmilie)
{
doInsert(" " + theSmilie + " ", "", false);
}

function winop()
{
windop = window.open("moresmiles.php?form=<?=$form?>&text=<?=$text?>","mywin","height=500,width=450,resizable=no,scrollbars=yes");
}

function simpletag(thetag)
{
var tagOpen = eval(thetag + "_open");
if (tagOpen == 0) {
if(doInsert("[" + thetag + "]", "[/" + thetag + "]", true))
{
eval(thetag + "_open = 1");
eval("document.<?=$form?>." + thetag + ".value += '*'");
pushstack(bbtags, thetag);
cstat();
}
}
else {
lastindex = 0;
for (i = 0; i < bbtags.length; i++ ) {
if ( bbtags[i] == thetag ) {
lastindex = i;
}
}

while (bbtags[lastindex]) {
tagRemove = popstack(bbtags);
doInsert("[/" + tagRemove + "]", "", false)
if ((tagRemove != 'COLOR') ){
eval("document.<?=$form?>." + tagRemove + ".value = ' " + tagRemove + " '");
eval(tagRemove + "_open = 0");
}
}
cstat();
}
}
</script>
<?
print("<table width=737 cellspacing=0 cellpadding=5 border=0>\n");
?>
<td align="left" colspan="2">
<table cellSpacing="1" cellPadding="2" border=0>
<tr>
<td class=embedded><input style="font-weight: bold;font-size:9px;" type=button name="b" value="B" onclick="javascript: simpletag('b')" /></td>
<td class=embedded><input class="codebuttons" style="font-style: italic;font-size:10px;" type=button name="i" value="I" onclick="javascript: simpletag('i')" /></td>
<td class=embedded><input class="codebuttons" style="text-decoration: underline;font-size:9px;" type=button name="u" value="U" onclick="javascript: simpletag('u')" /></td>
<td class=embedded><input class="codebuttons" style="font-size:10px;" type=button name='url' value='URL' onclick='tag_url()' />
<td class=embedded><input class="codebuttons" style="font-size:10px;" type=button name="IMG1" value="IMG1" onclick="javascript: tag_image1()" /></td>
<td class=embedded><input class="codebuttons" style="font-size:10px;" type=button name="IMG2" value="IMG2" onclick="javascript: tag_image2()" /></td>
<td class=embedded><input type=button style="font-size:9px;" name="list" value="List" onclick="tag_list()" /></td>
<td class=embedded><input class="codebuttons" style="font-size:10px;" type=button name="quote" value="Quote" onclick="javascript: simpletag('quote')" /></td>
<td class=embedded><input style="width:180" style="font-size:9px;" type=button onclick='javascript:closeall();' name='tagcount' value="Close all tags">
<td class=embedded><select name='color' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'color')">
<option value='0'>-------- Color --------</option>
<option style="BACKGROUND-COLOR: black" value="Black">Black
</option>
<option style="BACKGROUND-COLOR: sienna" value="Sienna">
Sienna</option>
<option style="BACKGROUND-COLOR: darkolivegreen" value="DarkOliveGreen">
Dark Olive Green</option>
<option style="BACKGROUND-COLOR: darkgreen" value="DarkGreen">
Dark Green</option>
<option style="BACKGROUND-COLOR: darkslateblue" value="DarkSlateBlue">
Dark Slate Blue</option>
<option style="BACKGROUND-COLOR: navy" value="Navy">Navy
</option>
<option style="BACKGROUND-COLOR: indigo" value="Indigo">
Indigo</option>
<option style="BACKGROUND-COLOR: darkslategray" value="DarkSlateGray">
Dark Slate Gray</option>
<option style="BACKGROUND-COLOR: darkred" value="DarkRed">
Dark Red</option>
<option style="BACKGROUND-COLOR: darkorange" value="DarkOrange">
Dark Orange</option>
<option style="BACKGROUND-COLOR: olive" value="Olive">Olive
</option>
<option style="BACKGROUND-COLOR: green" value="Green">Green
</option>
<option style="BACKGROUND-COLOR: teal" value="Teal">Teal
</option>
<option style="BACKGROUND-COLOR: blue" value="Blue">Blue
</option>
<option style="BACKGROUND-COLOR: slategray" value="SlateGray">
Slate Gray</option>
<option style="BACKGROUND-COLOR: dimgray" value="DimGray">
Dim Gray</option>
<option style="BACKGROUND-COLOR: red" value="Red">Red
</option>
<option style="BACKGROUND-COLOR: sandybrown" value="SandyBrown">
Sandy Brown</option>
<option style="BACKGROUND-COLOR: yellowgreen" value="YellowGreen">
Yellow Green</option>
<option style="BACKGROUND-COLOR: seagreen" value="SeaGreen">
Sea Green</option>
<option style="BACKGROUND-COLOR: mediumturquoise" value="MediumTurquoise">
Medium Turquoise</option>
<option style="BACKGROUND-COLOR: royalblue" value="RoyalBlue">
Royal Blue</option>
<option style="BACKGROUND-COLOR: purple" value="Purple">
Purple</option>
<option style="BACKGROUND-COLOR: gray" value="Gray">Gray
</option>
<option style="BACKGROUND-COLOR: magenta" value="Magenta">
Magenta</option>
<option style="BACKGROUND-COLOR: orange" value="Orange">
Orange</option>
<option style="BACKGROUND-COLOR: yellow" value="Yellow">
Yellow</option>
<option style="BACKGROUND-COLOR: lime" value="Lime">Lime
</option>
<option style="BACKGROUND-COLOR: cyan" value="Cyan">Cyan
</option>
<option style="BACKGROUND-COLOR: deepskyblue" value="DeepSkyBlue">
Deep Sky Blue</option>
<option style="BACKGROUND-COLOR: darkorchid" value="DarkOrchid">
Dark Orchid</option>
<option style="BACKGROUND-COLOR: silver" value="Silver">
Silver</option>
<option style="BACKGROUND-COLOR: pink" value="Pink">Pink
</option>
<option style="BACKGROUND-COLOR: wheat" value="Wheat">Wheat
</option>
<option style="BACKGROUND-COLOR: lemonchiffon" value="LemonChiffon">
Lemon Chiffon</option>
<option style="BACKGROUND-COLOR: palegreen" value="PaleGreen">
Pale Green</option>
<option style="BACKGROUND-COLOR: paleturquoise" value="PaleTurquoise">
Pale Turquoise</option>
<option style="BACKGROUND-COLOR: lightblue" value="LightBlue">
Light Blue</option>
<option style="BACKGROUND-COLOR: plum" value="Plum">Plum
</option>
<option style="BACKGROUND-COLOR: white" value="White">White
</option>
</select>
<td class=embedded>
<select name='font' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'font')">
<option value='0'>-------- Font --------</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="Arial Narrow">Arial Narrow</option>
<option value="Book Antiqua">Book Antiqua</option>
<option value="Century Gothic">Century Gothic</option>
<option value="Comic Sans MS">Comic Sans MS</option>
<option value="Courier New">Courier New</option>
<option value="Fixedsys">Fixedsys</option>
<option value="Franklin Gothic Medium">Franklin Gothic
Medium</option>
<option value="Garamond">Garamond</option>
<option value="Georgia">Georgia</option>
<option value="Impact">Impact</option>
<option value="Lucida Console">Lucida Console</option>
<option value="Lucida Sans Unicode">Lucida Sans Unicode
</option>
<option value="Microsoft Sans Serif">Microsoft Sans Serif
</option>
<option value="Palatino Linotype">Palatino Linotype</option>
<option value="System">System</option>
<option value="Tahoma">Tahoma</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Trebuchet MS">Trebuchet MS</option>
<option value="Verdana">Verdana</option>
</select>
<td class=embedded>
<select name='size' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'size')">
<option value='0'>-------- Size --------</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
</select>
</table>
</td>
</tr>
<?
if ($message) {
    
?>
    <TR>
<TD align=left colspan=2><B>Subject:&nbsp;&nbsp;</B>
  <INPUT name="subject" type="text" size="102" value="<?=$subject?>"></TD>
</TR>
<?
}
?>
<tr>
<td align=left><textarea name="<?=$text?>" id="<?=$text?>" rows="20" cols="110"><? echo $content?></textarea>
</td>
<td>
<table cellSpacing="1" cellPadding="3">
<tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-)')">
<img border=0 src=pic/smilies/smile1.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':smile:')">
<img border=0 src=pic/smilies/smile2.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-D')">
<img border=0 src=pic/smilies/grin.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':w00t:')">
<img border=0 src=pic/smilies/w00t.gif width="18" height="20"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-P')">
<img border=0 src=pic/smilies/tongue.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(';-)')">
<img border=0 src=pic/smilies/wink.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-|')">
<img border=0 src=pic/smilies/noexpression.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-/')">
<img border=0 src=pic/smilies/confused.gif width="18" height="18"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-(')">
<img border=0 src=pic/smilies/sad.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':\'-(')">
<img border=0 src=pic/smilies/cry.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':-O')">
<img border=0 src=pic/smilies/ohmy.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em('|-)')">
<img border=0 src=pic/smilies/sleeping.gif width="20" height="27"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':innocent:')">
<img border=0 src=pic/smilies/innocent.gif width="18" height="22"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':unsure:')">
<img border=0 src=pic/smilies/unsure.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':closedeyes:')">
<img border=0 src=pic/smilies/closedeyes.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':cool:')">
<img border=0 src=pic/smilies/cool2.gif width="20" height="20"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':thumbsdown:')">
<img border=0 src=pic/smilies/thumbsdown.gif width="27" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':blush:')">
<img border=0 src=pic/smilies/blush.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':yes:')">
<img border=0 src=pic/smilies/yes.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':no:')">
<img border=0 src=pic/smilies/no.gif width="20" height="20"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':love:')">
<img border=0 src=pic/smilies/love.gif width="19" height="19"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':?:')">
<img border=0 src=pic/smilies/question.gif width="19" height="19"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':!:')">
<img border=0 src=pic/smilies/excl.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':idea:')">
<img border=0 src=pic/smilies/idea.gif width="19" height="19"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':arrow:')">
<img border=0 src=pic/smilies/arrow.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':arrow2:')">
<img border=0 src=pic/smilies/arrow2.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':hmm:')">
<img border=0 src=pic/smilies/hmm.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':hmmm:')">
<img border=0 src=pic/smilies/hmmm.gif width="25" height="23"></a></td></tr><tr>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':huh:')">
<img border=0 src=pic/smilies/huh.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':rolleyes:')">
<img border=0 src=pic/smilies/rolleyes.gif width="20" height="20"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':kiss:')">
<img border=0 src=pic/smilies/kiss.gif width="18" height="18"></a></td>
<td class=embedded style='padding: 2px; margin: 1px'><a href="javascript: em(':shifty:')">
<img border=0 src=pic/smilies/shifty.gif width="20" height="20"></a></td></tr>
<td class=embedded style='padding: 2px; margin: 1px' colspan="4" align="center">
</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
</table>
<center>
<a href="javascript:winop();">More Smiles</a>
</td></tr></table>
</td>
<?
}
?>
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #2  
Old 15th December 2019, 11:55
Floky123 Floky123 is offline
Senior Member
 
Join Date: Nov 2013
Slovenia
Posts: 55
Default
This don't work for me...because my source is not original..it's edited... i will post some files like upload.php takeupload.php and details.php if can someone help me .

Images of my problem:
https://ibb.co/cDnp0XG
https://ibb.co/58ZkpfG

And files.. :

Upload.php

PHP Code:
<?php
require_once("include/bittorrent.php");
dbconn(false);
loggedinorreturn();
iplogger();
parked();
stdhead("Naloži .torrent");

if (
$CURUSER["uploadpos"] == 'no')
{
stdmsg("Nimate privilegijev""Nimate pravice do nalaganja torrentov.  (<a href=\"messages.php\">Beri sporočilo</a>)",false);

stdfoot();
exit;
}

if (
get_user_class() < UC_USER)
{
stdmsg("Napaka"'Nimate dovoljenja za nalaganje .torrentov.  (Poglejte <a href="faq.php#36">nalaganje</a> v FAQ.)<br><br>

Če mislite, da ste upravičeni do statusa nalagalca, izpolnite <a href=uploaderform.php><b>prošnjo</b></a> za dodelitev statusa<br>'
,false);

stdfoot();
exit;
}
$wherethisuser where ($_SERVER["SCRIPT_FILENAME"],$CURUSER["id"]);
?>


<div style="float: left;">
<form enctype="multipart/form-data" action="takeupload.php" method="post" name="upload" id="form_upload">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php print $max_torrent_size?>" />
<div class="lep_div_temen">
    Sledilnik (Announce URL):&nbsp;<b><?php print $announce_urls[0] . '?passkey=' $CURUSER["passkey"?></b>
</div>

<?php
if (!is_writable($torrent_dir))
    print(
"<br><br><b>ATTENTION</b>: Torrent directory isn't writable. Please contact the administrator about this problem!");

if (!
$max_torrent_size)
    print(
"<br><br><b>ATTENTION</b>: Max. Torrent Size not set. Please contact the administrator about this problem!");

/*tr("Naslov torrenta:", '<input type="text" name="name" size="80"' . ((isset($_SESSION["upload"]["name"]) && !empty($_SESSION["upload"]["name"])) ? ' value="' . $_SESSION["upload"]["name"] . '"' : "") . " /><br />\n", 1);   
*/
/*print("<tr><td style='padding: 3px'>&nbsp;&nbsp;Opis</td><td>");
textbbcode("upload","descr", (!empty($_SESSION["upload"]["descr"]) ? $_SESSION["upload"]["descr"] : ""));
print("</td></tr>\n"); 
*/
?>


<!--TORRENT FILE-->
<div class="lep_div">
    Torrent datoteka:<br />
    <input type="file" name="file" size="80" />
</div>

<!--TORRENT NAME error!!-->
<div class="lep_div">
    Naslov torrenta:<br />
    <input type="text" name="name" size="80"<?php print ((isset($_SESSION["upload"]["name"]) && !empty($_SESSION["upload"]["name"])) ? ' value="' $_SESSION["upload"]["name"] . '"' ""?> /><br />Bo prevzet od .torrent datoteke, če posebaj ne napišete.
</div>

<!--INFO POVEZAVA-->
<div class="lep_div">
    Info povezava:<br />
    <input type="text" name="info_link" size="80"<?php print ((isset($_SESSION["upload"]["info_link"]) && !empty($_SESSION["upload"]["info_link"])) ? ' value="' $_SESSION["upload"]["info_link"] . '"' ""); ?> /><br />
    Povezava do strani z informacijami o torrentu.
</div>

<!--SLIKA TORRENTA-->
<div class="lep_div">
    Slika torrenta:<br />
    <div id="torrent_slika_url">
        <input type="text" name="torrentposter" size="80"<?php print ((isset($_SESSION["upload"]["torrentposter"]) && !empty($_SESSION["upload"]["torrentposter"])) ? ' value="' $_SESSION["upload"]["torrentposter"] . '"' ""); ?> /><br />
        Vnesite direktno URL povezavo do slike.<br />
        <a href="#" class="torrentposterlink">Naloži sliko</a>
    </div>
    <div id="torrent_slika_file" style="display: none;">
        <input type="file" name="torrentposterfile" size="80" /><br />
        Izberite sliko iz računalnika.<br />
        <a href="#" class="torrentposterlink">Vnesi URL slike</a>
    </div>
    <script type="text/javascript">
        
        $(document).ready(function(){
            $('.torrentposterlink').click(function(){
                $('#torrent_slika_url, #torrent_slika_file').slideToggle();
            });
        });
        
    </script>
</div>

<!--KRATEK OPIS-->
<div class="lep_div">
    Kratek opis:<br />
    <input type="text" name="short_descr" size="80"<?php print ((isset($_SESSION["upload"]["short_descr"]) && !empty($_SESSION["upload"]["short_descr"])) ? ' value="' $_SESSION["upload"]["short_descr"] . '"' ""); ?> /><br />
    Kratek opis vsebine torrenta. (Max. 64 znakov)
</div>

<!--NFO FILE-->
<div class="lep_div">
    NFO datoteka:<br />
    <input type="file" name="nfo" size="80" />
</div> 

<!--IZBOR KATEGORIJE-->
<?
$s 
'<select name="type" id="kategorija_zanr"><option value="0">(Izberite)</option>';

$cats genrelist();
foreach (
$cats as $row)
    
$s .= "<option value=" $row["id"] . "\"" . (!empty($_SESSION["upload"]["type"]) && $_SESSION["upload"]["type"] == $row["id"] ? " selected=\"selected\"" "") . ">" htmlspecialchars($row["name"]) . "</option>\n";

$s .= "</select>\n";
?>
<div class="lep_div">
    Kategorija:<br />
    <?php print("$s"); ?>
</div> 



<!--ŽANRI KATEGORIJ-->
<?php
//tr("Žanri", '<div id="izpis_zanrov">Izberi kategorijo za izpis žanrov!</div>', 1);
//==== offer dropdown for offer mod  from code by S4NE
//===end



///za oznacene žanre, če je error

if (!empty($_SESSION["upload"]["zanr"]))
{
    print(
'<input type="hidden" name="oznaceno" value="' implode("|"$_SESSION["upload"]["zanr"]) . '" />');
}

///za oznacene žanre, če je error
?>
<div class="lep_div">
    Žanri:
    <div id="izpis_zanrov">
    <?php
    
if (!empty($_SESSION["upload"]["type"]))
    {
        
define("CATEGORY"$_SESSION["upload"]["type"]);
    }
    include 
"get_zanre.php";
    
?>
    </div> 
</div>


<!--TORRENT OPIS-->
<div class="lep_div">
    Opis:<br />
    <?php if ($CURUSER['tinymce'] == 1): ?>
        <textarea name="descr" cols="" rows="" style="width: 735px; height: 300px;" id="textarea_descr">
            <?php print (!empty($_SESSION["upload"]["descr"]) ? $_SESSION["upload"]["descr"] : ""); ?>
        </textarea>
        <script type="text/javascript">
        
        $(document).ready(function(){
            $('#textarea_descr').tinymce({
                theme: "advanced",    
                plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen",
                
                // Theme options
                theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|cut,copy,paste,pastetext,pasteword,|,undo,redo,|,link,imagecode,|,forecolor,backcolor,|,fullscreen",
                theme_advanced_buttons2 : "",
                theme_advanced_buttons3 : "",
                theme_advanced_buttons4 : "",
                theme_advanced_toolbar_location : "top",
                theme_advanced_toolbar_align : "left",
                theme_advanced_statusbar_location : false,
                theme_advanced_resizing : false
            });
        });
        
        </script>
        <br />
        <a href="change_editor.php?tinymce=0">BBCode Urejevalnik Besedila</a>
    <?php else: ?>
        <?php textbbcode('upload''descr', (!empty($_SESSION["upload"]["descr"]) ? $_SESSION["upload"]["descr"] : "")); ?>
        <a href="change_editor.php?tinymce=1">TinyMCE Urejevalnik Besedila</a>
    <?php endif; ?>
</div>


<!--ANONIMNOST DA/NE-->
<div class="lep_div">
    Anonimnost:
    <input type="checkbox" name="uplver" value="yes"<?php print (!empty($_SESSION["upload"]["uplver"]) ? " checked=\"checked\"" "")?> />
    Pri naloženih torrentih vaše uporabniško ime ne bo vidno.
</div>



<!--FREE TORRENT DA/NE-->
<?php if (get_user_class() >= UC_MODERATOR || $CURUSER["canfree"] == "da"): ?>
<div class="lep_div">
    FreeLeech:&nbsp;&nbsp;
    <input type="checkbox" name="free" value="yes"<?php print (!empty($_SESSION["upload"]["free"]) ? " checked=\"checked\"" ""); ?> />
    Torrent bo FreeLeech, štel se bo le prenos gor (za torrente nad 3Gb velikosti).
</div> 
<?php endif; ?>


<!--GUMB ZA NALOŽITEV-->
<div class="lep_div_temen">
    <input type="submit" class="btn" value="Naloži" title="Klikni za naložitev" />
    Potrdite naložitev torrenta, ko ste prepričani da imate vsa polja izpolnjena.</div> 
</div>


<!--OGLAS 160X600-->
<div style="float: right;">
    <?php include('include/oglasi_tower.php'); ?>
</div>
</form>

        
<script type="text/javascript">

    $("#kategorija_zanr").ajaxify({
        event: "change",
        method: "POST",
        link: "get_zanre.php",
        forms: "#form_upload",
        target: "#izpis_zanrov",
        loading_txt: "Nalagam. Prosimo počakajte!"
    });

</script>
<?php
stdfoot
();
unset(
$_SESSION["upload"])
?>

takeupload.php

PHP Code:
<?php
require_once("include/benc.php");
require_once(
"include/bittorrent.php");
ini_set("upload_max_filesize",$max_torrent_size);


session_start();
$_SESSION["upload"] = $_POST;



function 
bark($msg) {
    
genbark($msg"Nalaganje torrenta neuspešno!");
}
dbconn(); 
loggedinorreturn();
iplogger ();


if (
$CURUSER["uploadpos"] == 'no')
    die;

foreach(
explode(":","descr:type:name") as $v)
{
    if (!isset(
$_POST[$v]))
        
bark("Pozabili ste izpolniti eno izmed polj!");
}

if (!isset(
$_FILES["file"]))
    
bark("Pozabili ste izbrati .torrent datoteko ali .nfo datoteko!");

$f $_FILES["file"];
$fname unesc($f["name"]);
if (empty(
$fname))
    
bark("Prazna datoteka!");
if (
$_POST['uplver'] == 'yes') {
    
$anonymous "yes";
    
$anon "Anonymous";
}
else {
    
$anonymous "no";
    
$anon $CURUSER["username"];
}

$torrentposter null;
$poster $_FILES['torrentposterfile'];
if (!empty(
$poster['name']))
{
    
$dir ROOT DS 'torrents_poster';
    if (!
is_dir($dir))
    {
        
mkdir($dir0777);
        
file_put_contents($dir DS 'index.php'':))');
    }
    if (
$poster['size'] > (1024 1024))
    {
        
bark('Prevelika slika. Največja velikost je 1MB');
    }
    
$fileName explode('.'$poster['name']);
    
$koncnica end($fileName);
    
$fileName md5(uniqid() . rand(0100) . microtime()) . '.' $koncnica;
    
$filePath ROOT DS 'torrents_poster' DS $fileName;
    if (@
is_uploaded_file($poster['tmp_name']) && move_uploaded_file($poster['tmp_name'], $filePath))
    {
        
$torrentposter $BASEURL '/torrents_poster/' $fileName;
    }
}
else if (!empty(
$_POST['torrentposter'])) 
{
    
$torrentposter unesc($_POST['torrentposter']);
}

if (!empty(
$_POST['short_descr']))
    
$short_descr $_POST['short_descr'];

if (!empty(
$_POST['info_link']))
$info_link $_POST['info_link'];
    
$nfofile $_FILES['nfo'];
if (
$nfofile['name'] != '') {


if (
get_user_class() >= UC_MODERATOR || $CURUSER["canfree"] == "da")
{
    if (
$_POST["free"] == "yes")
    {
        
$freeleech "yes";
    }
    else
    {
        
$freeleech "no";
    }
}
else
{
    
$freeleech "no";
}

$zanri $_POST["zanr"];
$zanri implode("|"$zanri);


if (
$nfofile['size'] == 0)
    
bark("0-byte NFO");

if (
$nfofile['size'] > 65535)
    
bark("NFO datoteka je prevelika! Max 65,535 bajtov.");

$nfofilename $nfofile['tmp_name'];

if (@!
is_uploaded_file($nfofilename))
    
bark("Nalaganje NFO datoteke neuspešno!");
}

$descr unesc($_POST["descr"]);
if (!
$descr)
  
bark("Vpisati morate opis vsebine torrenta!");

$catid = ($_POST["type"]);
if (!
is_valid_id($catid))
    
bark("Če želite naložiti torrent morate izbrati kategorijo!");
    
if (!
validfilename($fname))
    
bark("Nepravilna vrsta datoteke!");
if (!
preg_match('/^(.+)\.torrent$/si'$fname$matches))
    
bark("Nepravilna končnica datoteke (ime datoteke ni .torrent).");
$shortfname $torrent $matches[1];
if (!empty(
$_POST["name"]))
    
$torrent unesc($_POST["name"]);

$tmpname $f["tmp_name"];
if (!
is_uploaded_file($tmpname))
    
bark("eek");
if (!
filesize($tmpname))
    
bark("Prazna datoteka!");

$dict bdec_file($tmpname$max_torrent_size);
if (!isset(
$dict))
    
bark("Nepravilna datoteka za nalaganje!");

function 
dict_check($d$s) {
    if (
$d["type"] != "dictionary")
        
bark("Direktorij ni zapisljiv!");
    
$a explode(":"$s);
    
$dd $d["value"];
    
$ret = array();
    foreach (
$a as $k) {
        unset(
$t);
        if (
preg_match('/^(.*)\((.*)\)$/'$k$m)) {
            
$k $m[1];
            
$t $m[2];
        }
        if (!isset(
$dd[$k]))
            
bark("dictionary is missing key(s)");
        if (isset(
$t)) {
            if (
$dd[$k]["type"] != $t)
                
bark("invalid entry in dictionary");
            
$ret[] = $dd[$k]["value"];
        }
        else
            
$ret[] = $dd[$k];
    }
    return 
$ret;
}

function 
dict_get($d$k$t) {
    if (
$d["type"] != "dictionary")
        
bark("not a dictionary");
    
$dd $d["value"];
    if (!isset(
$dd[$k]))
        return;
    
$v $dd[$k];
    if (
$v["type"] != $t)
        
bark("invalid dictionary entry type");
    return 
$v["value"];
}

list(
$ann$info) = dict_check($dict"announce(string):info");
list(
$dname$plen$pieces) = dict_check($info"name(string):piece length(integer):pieces(string)");

if(
get_user_class() <UC_OWNER && $CURUSER["speed"] != "da")
{
    if (!
in_array($ann$announce_urls1))
    {
        
$aok=false;
        foreach(
$announce_urls as $au)
        {
            if(
$ann=="$au?passkey=$CURUSER[passkey]")  $aok=true;
        }
        if(!
$aok)
            
bark("Invalid announce url! Must be: " $announce_urls[0] . "?passkey=$CURUSER[passkey]");
    }
}



if (
strlen($pieces) % 20 != 0)
    
bark("invalid pieces");

$filelist = array();
$totallen dict_get($info"length""integer");
if (isset(
$totallen)) {
    
$filelist[] = array($dname$totallen);
    
$type "single";
}
else {
    
$flist dict_get($info"files""list");
    if (!isset(
$flist))
        
bark("missing both length and files");
    if (!
count($flist))
        
bark("no files");
    
$totallen 0;
    foreach (
$flist as $fn) {
        list(
$ll$ff) = dict_check($fn"length(integer):path(list)");
        
$totallen += $ll;
        
$ffa = array();
        foreach (
$ff as $ffe) {
            if (
$ffe["type"] != "string")
                
bark("filename error");
            
$ffa[] = $ffe["value"];
        }
        if (!
count($ffa))
            
bark("filename error");
        
$ffe implode("/"$ffa);
        
$filelist[] = array($ffe$ll);
    }
    
$type "multi";
}

$infohash pack("H*"sha1($info["string"]));

// Replace punctuation characters with spaces

$torrent str_replace("_"" "$torrent);

$nfo sqlesc(str_replace("\x0d\x0d\x0a""\x0d\x0a", @file_get_contents($nfofilename)));

$ret sql_query("INSERT INTO torrents (search_text, filename, poster, short_descr, info_link, owner, visible, anonymous, zanri, free, info_hash, name, size, numfiles, type, descr, ori_descr, category, save_as, added, last_action, nfo) VALUES (" .
        
implode(","array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname$torrentposter$short_descr$info_link$CURUSER["id"], "no"$anonymous$zanri$freeleech$infohash$torrent$totallencount($filelist), $type$descr$descr$_POST["type"], $dname))) .
        
", '" get_date_time() . "', '" get_date_time() . "', $nfo)");
if (!
$ret) {
    if (
mysql_errno() == 1062)
        
bark("torrent already uploaded!");
    
bark("mysql puked: ".mysql_error());
}
$id mysql_insert_id();

@
sql_query("DELETE FROM files WHERE torrent = $id");
foreach (
$filelist as $file) {
    @
sql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");
}

move_uploaded_file($tmpname"$torrent_dir/$id.torrent");

//===add karma
KPS("+","10.0",$CURUSER["id"]);
//===end

if ($CURUSER["anonymous"]=='yes')
    
write_log("Torrent $id ($torrent) je naložil uporabnik Anonymous");
else
    
write_log("Torrent $id ($torrent) je naložil uporabnik $CURUSER[username]");

//===notify people who voted on offer thanks CoLdFuSiOn :)
if (isset($_POST['offer'])) {
$res mysql_query("SELECT `userid` FROM `offervotes` WHERE `userid` != " $CURUSER["id"] . " AND `offerid` = ". ($_POST['offer'] + 0)) or sqlerr(__FILE____LINE__);
$pn_msg "The Offer you voted for: \"$torrent\" was uploaded by " $CURUSER["username"] . ".\nYou can Download the Torrent [url=$DEFAULTBASEURL/details.php?id=$id&hit=1]here[/url]";

while(
$row mysql_fetch_assoc($res)) {
//=== use this if you DO have subject in your PMs
$subject "Offer $torrent was just uploaded";
//=== use this if you DO NOT have subject in your PMs
//$some_variable .= "(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($pn_msg) . ")";

//=== use this if you DO have subject in your PMs
mysql_query("INSERT INTO messages (poster, sender, subject, receiver, added, msg) VALUES (0, 0, ".sqlesc($subject).", $row[userid], ".sqlesc(get_date_time()).", " sqlesc($pn_msg) . ")") or sqlerr(__FILE____LINE__);
//=== use this if you do NOT have subject in your PMs
//mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES ".$some_variable."") or sqlerr(__FILE__, __LINE__);
//===end
}
//=== delete all offer stuff
@mysql_query("DELETE FROM `offers` WHERE `id` = ". ($_POST['offer'] + 0));
@
mysql_query("DELETE FROM `offervotes` WHERE `offerid` = ". ($_POST['offer'] + 0));
@
mysql_query("DELETE FROM `comments` WHERE `offer` = ". ($_POST['offer'] + 0). "");
}
//=== end notify people who voted on offer

/* Email notifs */


$res sql_query("SELECT name FROM categories WHERE id=$catid") or sqlerr(__FILE__,__LINE__);
$arr mysql_fetch_assoc($res);
$cat $arr["name"];
$res sql_query("SELECT email FROM users WHERE enabled='yes' AND parked='no' AND status='confirmed' AND notifs LIKE '%[cat$catid]%' AND notifs LIKE '%[email]%'") or sqlerr(__FILE____LINE__);

$uploader $anon;

$size mksize($totallen);
$description = ($html strip_tags($descr) : $descr);

$body = <<<EOD
Hi,

A new torrent has been uploaded.

Name: 
$torrent
Size: 
$size
Category: 
$cat
Uploaded by: 
$uploader

Description
-------------------------------------------------------------------------------
$description
-------------------------------------------------------------------------------

You can use the URL below to download the torrent (you may have to login).

$DEFAULTBASEURL/details.php?id=$id&hit=1

------
Yours,
The 
$SITENAME Team.
EOD;
$to "";
$nmax 100// Max recipients per message
$nthis 0;
$ntotal 0;
$total mysql_num_rows($res);
while (
$arr mysql_fetch_row($res))
{
  if (
$nthis == 0)
    
$to $arr[0];
  else
    
$to .= "," $arr[0];
  ++
$nthis;
  ++
$ntotal;
  if (
$nthis == $nmax || $ntotal == $total)
  {
      
$sm sent_mail("Multiple recipients <$SITEEMAIL>",$SITENAME,$SITEEMAIL,"$SITENAME New torrent - $torrent",$body,"torrent upload",false,true,$to);
    if (!
$sm)
      
stderr("Error""Your torrent has been been uploaded. DO NOT RELOAD THE PAGE!\n" .
        
"There was however a problem delivering the e-mail notifcations.\n" .
        
"Please let an administrator know about this error!\n");
    
$nthis 0;
  }
}

/**
* User Upload če je 10. torrent :D || START
*/

$torrents_res mysql_query("SELECT COUNT(*) FROM torrents WHERE owner = '" $CURUSER["id"] . "'") or sqlerr();
$torrents_row mysql_fetch_row($torrents_res);
$count $torrents_row[0];

if (
$count 10 == 0//če je ostanek pri deljenju z 10 enak 0
{
    
//doda upload
    
$pristej 1024 1024 1024 5;
    
mysql_query("UPDATE users SET uploaded = uploaded + " $pristej " WHERE id = '" $CURUSER["id"] . "'") or sqlerr();
    
    
    
$msg sqlesc("Sistem vam je dodelil 5 Gb uploada. (Za vsak deseti naloženi torrent prejmete 5 Gb uploada)."); //vsebina sporočila
    
$added sqlesc(get_date_time());
    
sql_query("INSERT INTO messages (sender, receiver, msg, added) VALUES (0, " $CURUSER["id"] . ", $msg$added)") or sqlerr(__FILE____LINE__);
    
write_log("Uporabniku " $CURUSER["username"] . " je Sistem dodelil 5 Gb uploada."); //log strani
}

/**
* User Upload če je 10. torrent :D || END
*/

$userid 2738;
$usernamehtmlspecialchars("Sistem");
$date=sqlesc(time());
$text="<font color=red><b>Naložen je bil nov torrent: </b></font><a href=details.php?id=" htmlspecialchars($id) . " target=_blank>" htmlspecialchars($torrent) . "</a>" ;
    
sql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);

unset(
$_SESSION["upload"]);
header("Location: $BASEURL/details.php?id=".htmlspecialchars($id)."&uploaded=1");
?>

details.php

PHP Code:
<?php
ob_start
("ob_gzhandler");
require_once(
"include/bittorrent.php");
dbconn(true);
loggedinorreturn();
function 
getagent($httpagent$peer_id="")
{
if (
preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]\_B([0-9][0-9|*])(.+)$)/"$httpagent$matches))
return 
"Azureus/$matches[1]";
elseif (
preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]\_CVS)/"$httpagent$matches))
return 
"Azureus/$matches[1]";
elseif (
preg_match("/^Java\/([0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches))
return 
"Azureus/<2.0.7.0";
elseif (
preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches))
return 
"Azureus/$matches[1]";
elseif (
preg_match("/BitTorrent\/S-([0-9]+\.[0-9]+(\.[0-9]+)*)/"$httpagent$matches))
return 
"Shadow's/$matches[1]";
elseif (
preg_match("/BitTorrent\/U-([0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches))
return 
"UPnP/$matches[1]";
elseif (
preg_match("/^BitTor(rent|nado)\\/T-(.+)$/"$httpagent$matches))
return 
"BitTornado/$matches[2]";
elseif (
preg_match("/^BitTornado\\/T-(.+)$/"$httpagent$matches))
return 
"BitTornado/$matches[1]";
elseif (
preg_match("/^BitTorrent\/ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/"$httpagent$matches))
return 
"ABC/$matches[1]";
elseif (
preg_match("/^ABC ([0-9]+\.[0-9]+(\.[0-9]+)*)\/ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/"$httpagent$matches))
return 
"ABC/$matches[1]";
elseif (
preg_match("/^Python-urllib\/.+?, BitTorrent\/([0-9]+\.[0-9]+(\.[0-9]+)*)/"$httpagent$matches))
return 
"BitTorrent/$matches[1]";
elseif (
preg_match("/^BitTorrent\/brst(.+)/"$httpagent$matches))
return 
"Burst";
elseif (
preg_match("/^RAZA (.+)$/"$httpagent$matches))
return 
"Shareaza/$matches[1]";
elseif (
preg_match("/Rufus\/([0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches))
return 
"Rufus/$matches[1]";
elseif (
preg_match("/^Python-urllib\\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/"$httpagent$matches))
return 
"G3 Torrent";
elseif (
preg_match("/MLDonkey\/([0-9]+).([0-9]+).([0-9]+)*/"$httpagent$matches))
return 
"MLDonkey/$matches[1].$matches[2].$matches[3]";
elseif (
preg_match("/ed2k_plugin v([0-9]+\\.[0-9]+).*/"$httpagent$matches))
return 
"eDonkey/$matches[1]";
elseif (
preg_match("/uTorrent\/([0-9]+)([0-9]+)([0-9]+)([0-9A-Z]+)/"$httpagent$matches))
return 
"µTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (
preg_match("/CT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/"$peer_id$matches))
return 
"cTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (
preg_match("/Transmission\/([0-9]+).([0-9]+)/"$httpagent$matches))
return 
"Transmission/$matches[1].$matches[2]";
elseif (
preg_match("/KT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/"$peer_id$matches))
return 
"KTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (
preg_match("/rtorrent\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/"$httpagent$matches))
return 
"rTorrent/$matches[1]";
elseif (
preg_match("/^ABC\/Tribler_ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/"$httpagent$matches))
return 
"Tribler/$matches[1]";
elseif (
preg_match("/^BitsOnWheels( |\/)([0-9]+\\.[0-9]+).*/"$httpagent$matches))
return 
"BitsOnWheels/$matches[2]";
elseif (
preg_match("/BitTorrentPlus\/(.+)$/"$httpagent$matches))
return 
"BitTorrent Plus!/$matches[1]";
elseif (
ereg("^Deadman Walking"$httpagent))
return 
"Deadman Walking";
elseif (
preg_match("/^eXeem( |\/)([0-9]+\\.[0-9]+).*/"$httpagent$matches))
return 
"eXeem$matches[1]$matches[2]";
elseif (
preg_match("/^libtorrent\/(.+)$/"$httpagent$matches))
return 
"libtorrent/$matches[1]";
elseif (
substr($peer_id012) == "d0c")
return 
"Mainline";
elseif (
substr($peer_id01) == "M")
return 
"Mainline/Decoded";
elseif (
substr($peer_id03) == "-BB")
return 
"BitBuddy";
elseif (
substr($peer_id08) == "-AR1001-")
return 
"Arctic Torrent/1.2.3";
elseif (
substr($peer_id06) == "exbc\08")
return 
"BitComet/0.56";
elseif (
substr($peer_id06) == "exbc\09")
return 
"BitComet/0.57";
elseif (
substr($peer_id06) == "exbc\0:")
return 
"BitComet/0.58";
elseif (
substr($peer_id0,4) == "-BC0")
return 
"BitComet/0.".substr($peer_id,5,2);
elseif (
substr($peer_id07) == "exbc\0L")
return 
"BitLord/1.0";
elseif (
substr($peer_id07) == "exbcL")
return 
"BitLord/1.1";
elseif (
substr($peer_id03) == "346")
return 
"TorrenTopia";
elseif (
substr($peer_id08) == "-MP130n-")
return 
"MooPolice";
elseif (
substr($peer_id08) == "-SZ2210-")
return 
"Shareaza/2.2.1.0";
elseif (
ereg("^0P3R4H"$httpagent))
return 
"Opera BT Client";
elseif (
substr($peer_id06) == "A310--")
return 
"ABC/3.1";
elseif (
ereg("^XBT Client"$httpagent))
return 
"XBT Client";
elseif (
ereg("^BitTorrent\/BitSpirit$"$httpagent))
return 
"BitSpirit";
elseif (
ereg("^DansClient"$httpagent))
return 
"XanTorrent";

else
return 
"Unknown";
}

function 
dltable($name$arr$torrent)
{

    global 
$CURUSER;
    
$s "<b>" count($arr) . $name</b>\n";
    if (!
count($arr))
        return 
$s;
    
$s .= "\n";
    
$s .= "<table width=100% border=0 class=details_prenosi cellspacing=0 cellpadding=5>\n";
    
$s .= "<tr><td class=colhead>Uporabnik</td>" .
          
"<td class=colhead align=center>Povezlj.</td>".
          
"<td class=colhead align=right>Naloženo</td>".
          
"<td class=colhead align=right>Hitrost</td>".
          
"<td class=colhead align=right>Prenešeno</td>" .
          
"<td class=colhead align=right>Hitrost</td>" .
          
"<td class=colhead align=right>Razmerje</td>" .
          
"<td class=colhead align=right>Končan</td>" .
          
"<td class=colhead align=right>Povezan</td>" .
          
"<td class=colhead align=right>Idle</td>" .
          
"<td class=colhead align=left>Klient</td></tr>\n";
    
$now time();
    
$moderator = (isset($CURUSER) && get_user_class() >= UC_MODERATOR);
$mod get_user_class() >= UC_MODERATOR;
    foreach (
$arr as $e) {


                
// user/ip/port
// check if anyone has this ip
($unr sql_query("SELECT id, username, privacy, warned, donor FROM users WHERE id=$e[userid] ORDER BY last_access DESC LIMIT 1")) or die;
$una mysql_fetch_array($unr);
if (
$una["privacy"] == "strong") continue;
++
$num;

$highlight $CURUSER["id"] == $una["id"] ? " bgcolor=#BBAF9B" "";
$s .= "<tr$highlight>\n";
//$s .= "<tr>\n";
if ($una["username"]) {

if (
get_user_class() >= UC_MODERATOR || $torrent['anonymous'] != 'yes' || $e['userid'] != $torrent['owner']) {
// $s .= "<td class=rowhead2><a href=userdetails.php?id=$e[userid]><b>$una[username]</b></a></td>\n";
$s .= "<td class=rowhead2><a href=userdetails.php?id=$e[userid]><b>$una[username]</b></a>" . ($una["donor"] == "yes" "<img src=".
"pic/star.gif alt='Donor'>" "") . ($una["enabled"] == "no" "<img src=".
"pic/disabled.gif alt=\"This account is disabled\" style='margin-left: 2px'>" : ($una["warned"] == "yes" "<a href=rules.php#warning class=altlink><img src=pic/warned.gif alt=\"Warned\" border=0></a>" ""));
}
elseif (
get_user_class() >= UC_MODERATOR || $torrent['anonymous'] = 'yes') {
$s .= "<td class=rowhead2><i>Anonimen</i></a></td>\n";
}
}
else
$s .= "<td class=rowhead2>Neznan</td>\n";
        
$secs max(1, ($now $e["st"]) - ($now $e["la"]));
        
$revived $e["revived"] == "yes";
        
$s .= "<td class=rowhead2 align=center>" . ($e[connectable] == "yes" "Da" "<font color=red>Ne</font>") . "</td>\n";
        
$s .= "<td class=rowhead2 align=right>" mksize($e["uploaded"]) . "</td>\n";
        
$s .= "<td class=rowhead2 align=right><nobr>" mksize(($e["uploaded"] - $e["uploadoffset"]) / $secs) . "/s</nobr></td>\n";
        
$s .= "<td class=rowhead2 align=right>" mksize($e["downloaded"]) . "</td>\n";
        if (
$e["seeder"] == "no")
            
$s .= "<td class=rowhead2 align=right><nobr>" mksize(($e["downloaded"] - $e["downloadoffset"]) / $secs) . "/s</nobr></td>\n";
        else
            
$s .= "<td class=rowhead2 align=right><nobr>" mksize(($e["downloaded"] - $e["downloadoffset"]) / max(1$e["finishedat"] - $e[st])) .    "/s</nobr></td>\n";
                if (
$e["downloaded"])
                {
                  
$ratio floor(($e["uploaded"] / $e["downloaded"]) * 1000) / 1000;
                    
$s .= "<td class=rowhead2 align=\"right\"><font color=" get_ratio_color($ratio) . ">" number_format($ratio3) . "</font></td>\n";
                }
                   else
                  if (
$e["uploaded"])
                    
$s .= "<td class=rowhead2 align=right>Inf.</td>\n";
                  else
                    
$s .= "<td class=rowhead2 align=right>---</td>\n";
        
$s .= "<td class=rowhead2 align=right>" sprintf("%.2f%%"100 * (- ($e["to_go"] / $torrent["size"]))) . "</td>\n";
        
$s .= "<td class=rowhead2 align=right>" mkprettytime($now $e["st"]) . "</td>\n";
        
$s .= "<td class=rowhead2 align=right>" mkprettytime($now $e["la"]) . "</td>\n";
        
$s .= "<td class=rowhead2 align=left>" htmlspecialchars(getagent($e["agent"], $e["peer_id"])) . "</td>\n";
        
$s .= "</tr>\n";
    }
    
$s .= "</table>\n";
    return 
$s;
}

$id $_GET["id"];

if (!isset(
$id) || !$id)
    die();

$res sql_query("SELECT torrents.seeders, torrents.sledilniki, torrents.zanri, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, LENGTH(torrents.nfo) AS nfosz, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.owner, torrents.save_as, torrents.descr, torrents.short_descr, torrents.info_link, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, torrents.anonymous, torrents.free, torrents.poster, categories.name AS cat_name, users.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id")
    or 
sqlerr();
$row mysql_fetch_array($res);

$owned $moderator 0;
    if (
get_user_class() >= UC_MODERATOR)
        
$owned $moderator 1;
    elseif (
$CURUSER["id"] == $row["owner"])
        
$owned 1;
        
if (!
$row || ($row["banned"] == "yes" && !$moderator))
    
stderr("Error""No torrent with this ID");
    if (
$_GET["hit"]) {
        
sql_query("UPDATE torrents SET views = views + 1 WHERE id = $id");
        if (
$_GET["tocomm"])
            
header("Location: $BASEURL/details.php?id=$id&page=0#startcomments");
        else
            
header("Location: $BASEURL/details.php?id=$id");
        exit();
    }

    if (!isset(
$_GET["page"])) {
        
stdhead("Podrobnosti torrenta \"" $row["name"] . "\"");

        if (
$CURUSER["id"] == $row["owner"] || get_user_class() >= UC_MODERATOR || $CURUSER["urejevalec"] == "da")
            
$owned 1;
        else
            
$owned 0;
    if (
$_GET["uploaded"]) {
            print(
"<h2>Torrent uspešno naložen!</h2>\n");
            print(
"<p><b>Pomnite</b>, da torrent ne bo viden, dokler ga ne začnete sejati!</p>\n");
        }
        elseif (
$_GET["edited"]) {
            print(
"<h2>Torrent uspešno urejen!</h2>\n");
            if (isset(
$_GET["returnto"]))
                print(
"<p><b>Go back to <a href=\"" htmlspecialchars($_GET["returnto"]) . "\">whence you came</a>.</b></p>\n");
        }
        elseif (isset(
$_GET["searched"])) {
            print(
"<h2>Your search for \"" htmlspecialchars($_GET["searched"]) . "\" gave a single result:</h2>\n");
        }
        elseif (
$_GET["rated"])
            print(
"<h2>Ocena oddana</h2>\n");
    
elseif (
$_GET["thanks"]){

$userid $CURUSER["id"];
$torrentid $id;
$tsql sql_query("SELECT COUNT(*) FROM thanks where torrentid=$torrentid and userid=$userid");
$trows mysql_fetch_array($tsql);
$t_ab $trows[0];
if (
$t_ab >= "1")
{
print(
"<h3>Ste se že zahvalili</h3>\n");
}
else
{
$res sql_query("INSERT INTO thanks (torrentid, userid) VALUES ($torrentid$userid)");
//===add karma
KPS("+","1.0",$CURUSER["id"]);
//===end

print("<h3>Zahvala oddana</h3>\n");
}

//===end thanks
    
}
$s=$row["name"];
$url "edit.php?id=" $row["id"];
    if (isset(
$_GET["returnto"])) {
        
$addthis "&returnto=" urlencode($_GET["returnto"]);
        
$url .= $addthis;
        
$keepget .= $addthis;
    }
        
$editlink "a href=\"$url\" class=\"sublink\"";
    
if(
$row['anonymous'] == 'yes') {
if (
get_user_class() < UC_UPLOADER)
$uprow "Anonimen";
else
$uprow "Anonimen (<a style=\"color: #68909f;\" href=userdetails.php?id=$row[owner]>$row[username]</a>)";
}
else {
$uprow = (isset($row["username"]) ? ("<a style=\"color: #68909f;\" href=userdetails.php?id=" $row["owner"] . ">" htmlspecialchars($row["username"]) . "</a>") : "(unknown)");
}
if (
$owned)
    
$uprow .= $spacer<$editlink>[Uredi torrent]</a>";

    
$added strtotime($row['added']);
    
$datum date("d.m.Y"$added);
    
$ura date("H:i:s"$added);
    
$dodano "$datum ob $ura";

$freeleech = ($row[free]=="yes" || $all_torrents_free "<b>Da</b>" "Ne");    

if (
$row[seeders] == 0) {
    
$prikazi_prenose "Torrent je brez sejalcev, kliknite <a href=takereseed.php?reseedid=$id><b>tukaj</b></a> za ponovno sejanje.";
}
    else 
        
$prikazi_prenose "Sejalci: ".$row["seeders"] . "<br> Pijavke: " $row["leechers"] . "";
        
$torrentid $_GET["id"];
    
$thanks_sql sql_query("SELECT * FROM thanks where torrentid=$torrentid");
    
$thanks_all mysql_numrows($thanks_sql);
    if (
$thanks_all) {
    while(
$rows_t mysql_fetch_array($thanks_sql)) {
    
$thanks_userid $rows_t["userid"];
    
$user_sql sql_query("SELECT * FROM users where id=$thanks_userid");
    
$rows_a mysql_fetch_array($user_sql);
    
$username_t $rows_a["username"];
    
$thanksby $thanksby."<a style=\"color: #68909f;\" href='userdetails.php?id=$thanks_userid'>$username_t</a> ";
    }
    
$t_userid $CURUSER["id"];
    
$tsql sql_query("SELECT COUNT(*) FROM thanks where torrentid=$torrentid and userid=$t_userid");
    
$trows mysql_fetch_array($tsql);
    
$t_ab $trows[0];
    if (
$t_ab == "0") {
    
$thanksby $thanksby " <div align=center><form action=\"details.php?id=$torrentid&thanks=1\" method=\"post\">
<input type=\"submit\" name=\"submit\" value=\"Zahvali se\">
<input type=\"hidden\" name=\"torrentid\" value=\"
$torrentid\">
</form></div>"
;
    }
    else {
    
$thanksby $thanksby;
    }
    }
    else {
    
$thanksby "<div align='center'>Nihče se še ni zahvalil</div>
                <div align=center><form action=\"details.php?id=
$torrentid&thanks=1\" method=\"post\">
                <input type=\"submit\" name=\"submit\" value=\"Zahvali se\">
                <input type=\"hidden\" name=\"torrentid\" value=\"
$torrentid\">
                </form></div>"
;
    }        
?>
<div id="torrent_opis" style="border: 0px solid red;">
    <div id="podrobnosti_torrenta">
        <table cellpadding="0" cellspacing="1" style="border: none;">
            <tr>
                <td class="podrobnosti_levo">Ime</td>
                <td class="podrobnosti_desno"><? print $s?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Naložil</td>
                <td class="podrobnosti_desno"><? print $uprow?></td>        
            </tr>
            <tr>
                <td class="podrobnosti_levo">NFO</td>
                <td class="podrobnosti_desno"><a style="color: #68909f;" href=viewnfo.php?id=<? print $row[id?>>Poglej NFO</a></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Opis</td>
                <td class="podrobnosti_desno"><? print $row[short_descr?></td>
            </tr>
                 <tr>
                <td class="podrobnosti_levo">Info</td>
                <td class="podrobnosti_desno"><? print ("<a target=\"_blank\" style=\"color: #68909f;\" href=".$row[info_link].">KLIK</a>"); ?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Dodano</td>
                <td class="podrobnosti_desno"><? print $dodano ?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Prenešeno</td>
                <td class="podrobnosti_desno"><? print $row[times_completed?>x</td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Velikost</td>
                <td class="podrobnosti_desno"><? print mksize($row[size]) ?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Kategorija</td>
                <td class="podrobnosti_desno"><? print $row[cat_name?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Ogledov</td>
                <td class="podrobnosti_desno"><? print $row[views?></td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">Žanri</td>
                <td class="podrobnosti_desno">
                <? 
                
                $zanri_array 
explode("|"$row["zanri"]);
                if (
count($zanri_array) > 0)
                {
                    
$zanri_array2 = array();
                    foreach(
$zanri_array as $zanri_id)
                    {
                        
$zanri_res mysql_query("SELECT * FROM zanri WHERE id = '$zanri_id'") or sqlerr();
                        if (
mysql_num_rows($zanri_res) != 1)
                        {
                            continue;
                        }
                        
$zanri_row mysql_fetch_assoc($zanri_res);
                        
$zanri_array2[] = $zanri_row["name"];
                    }
                    print(
implode(", "$zanri_array2));
                }
                else
                {
                    print (
"Ni žanrov!");
                }
                
                
?>   
                </td>
            </tr>
            <tr>
                <td class="podrobnosti_levo">FreeLeech</td>
                <td class="podrobnosti_desno"><? print $freeleech ?></td>
<?            
            
if ($row["sledilniki"] == "no" && (int)$row["seeders"] == 0) {
    
$reeseed "Torrent je brez sejalcev, kliknite <a href=takereseed.php?reseedid=$id><b>tukaj</b></a> za ponovno sejanje.";
}
          else
          
  
$reeseed "Torrent ima dovolj sejalcev.";
  
            print(
"<tr>");
            print(
"<td class=\"podrobnosti_levo\">Reseed</td>");
            print(
"<td class=\"podrobnosti_desno\">$reeseed</td>");
            print(
"</tr>");    
?>
    
        <?
            
if (get_user_class() >= UC_USER)
            {
            if (!
$_GET["dllist"]) {
            print(
"<tr>");
            print(
"<td class=\"podrobnosti_levo\">Prenosi</td>");
            print(
"<td class=\"podrobnosti_desno\"><a href=\"details.php?id=$id&dllist=1$keepget\">Poglej seznam</a></td>");
            print(
"</tr>");    
                }
            if (
$_GET["dllist"]) {
                    
$downloaders = array();
                    
$seeders = array();
                    
$subres mysql_query("SELECT seeder, finishedat, downloadoffset, uploadoffset, ip, port, uploaded, downloaded, to_go, UNIX_TIMESTAMP(started) AS st, connectable, agent, UNIX_TIMESTAMP(last_action) AS la, userid FROM peers WHERE torrent = $id") or sqlerr();
                    while (
$subrow mysql_fetch_array($subres)) {
                        if (
$subrow["seeder"] == "yes")
                            
$seeders[] = $subrow;
                        else
                            
$downloaders[] = $subrow;
                    }
        
                    function 
leech_sort($a,$b) {
                                        if ( isset( 
$_GET["usort"] ) ) return seed_sort($a,$b);                
                                        
$x $a["to_go"];
                        
$y $b["to_go"];
                        if (
$x == $y)
                            return 
0;
                        if (
$x $y)
                            return -
1;
                        return 
1;
                    }
                    function 
seed_sort($a,$b) {
                        
$x $a["uploaded"];
                        
$y $b["uploaded"];
                        if (
$x == $y)
                            return 
0;
                        if (
$x $y)
                            return 
1;
                        return -
1;
                    }
        
                    
usort($seeders"seed_sort");
                    
usort($downloaders"leech_sort");
        
                    print(
"<tr><td class=rowhead2><a href=\"details.php?id=$id$keepget\" class=\"sublink\">[Skrij seznam]</a></td><td>" dltable("Sejalcev"$seeders$row) . "</td></tr>");
                    print(
"<tr><td class=rowhead2><a href=\"details.php?id=$id$keepget\" class=\"sublink\">[Skrij seznam]</a></td><td>" dltable("Pijavk"$downloaders$row) . "</td></tr>");
                    }
                }
            if (
get_user_class() >= UC_MODERATOR)
            {
            
?>
            <tr>
                <td class="podrobnosti_levo">Končani</td>
                <td class="podrobnosti_desno"><a href="koncano.php?id=<?=$row["id"]?>">Poglej seznam</a></td>
            </tr>
            <?
            
}
        
?>
        </table>
    </div>
    
    <div id="torrent_poster">
        <div id="torrent_poster_bg">
            <a href="<?=$row["poster"]?>" rel="lightbox"><img src="<?=$row["poster"]?>" alt="" title="<?=$row["name"]?>" /></a>
        </div>
    </div>
       
    <div style="clear: both;"></div>
    
    <!-- TORRENT DESCRIPTION start -->
    
    <div id="torrent_podrobnosti">
        <?=format_comment($row["descr"])?>
    </div>
    
    <!-- TORRENT DESCRIPTION end -->

<br>

    
    <!-- KOMENTARJI start -->
    
    <h2>Komentarji</h2>
    
    <?php

        $subres 
sql_query("SELECT COUNT(*) FROM comments WHERE torrent = $id");
            
$subrow mysql_fetch_array($subres);
            
$count $subrow[0];
        
            if (!
$count)
            {
                print(
"<h2>Ni komentarjev</h2>\n");
            }
            else {
                list(
$pagertop$pagerbottom$limit) = pager(20$count"details.php?id=$id&", array(lastpagedefault => 1));
        
                
$subres sql_query("SELECT comments.id, text, user, comments.added, editedby, editedat, avatar, warned, ".
                          
"username, title, class, last_access, donor FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = " .
                          
"$id ORDER BY comments.id $limit") or sqlerr(__FILE____LINE__);
                
$allrows = array();
                while (
$subrow mysql_fetch_array($subres))
                    
$allrows[] = $subrow;
                
                print(
$commentbar);
                
//print($pagertop);
        
                
commenttable($allrows);
        
                print(
$pagerbottom);
            }
            
?>
            <script language=javascript>
        function SmileIT(smile,form,text){
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+" "+smile+" ";
           document.forms[form].elements[text].focus();
        }
        </script>
        <?
            
print ("<table class=main border=0><tr>".
          
"<td class style='padding:10px;text-align:center;'><p><b>Hitri komentar</b><br />".
          
"<form name=comment method=\"post\" action=\"comment.php?action=add\">".
          
"<textarea name=\"text\" rows=\"4\" cols=\"90\"></textarea>".
          
"<input type=\"hidden\" name=\"tid\" value=\"$id\"/><br />");
          
?>
          <center><a href="javascript: SmileIT(';-)','comment','text')"><img src=pic/smilies/wink.gif width="20" height="20" border=0></a><a href="javascript: SmileIT(':-P','comment','text')"><img src=pic/smilies/tongue.gif width="20" height="20" border=0></a><a href="javascript: SmileIT(':-)','comment','text')"><img border=0 src=pic/smilies/smile1.gif></a><a href="javascript: SmileIT(':w00t:','comment','text')"><img border=0 src=pic/smilies/w00t.gif></a><a href="javascript: SmileIT(':-D','comment','text')"><img border=0 src=pic/smilies/grin.gif></a><a href="javascript: SmileIT(':lol:','comment','text')"><img border=0 src=pic/smilies/laugh.gif></a><a href="javascript: SmileIT(':-/','comment','text')"><img border=0 src=pic/smilies/confused.gif></a><a href="javascript: SmileIT(':-(','comment','text')"><img border=0 src=pic/smilies/sad.gif></a><a href="javascript: SmileIT(':-O','comment','text')"><img src=pic/smilies/ohmy.gif border=0></a><a href="javascript: SmileIT('8-)','comment','text')"><img src=pic/smilies/cool1.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':sly:','comment','text')"><img src=pic/smilies/sly.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':greedy:','comment','text')"><img src=pic/smilies/greedy.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':weirdo:','comment','text')"><img src=pic/smilies/weirdo.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':sneaky:','comment','text')"><img src=pic/smilies/sneaky.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':shit:','comment','text')"><img src=pic/smilies/shit.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':?:','comment','text')"><img src=pic/smilies/question.gif width="18" height="18" border=0></a><a href="javascript: SmileIT(':!:','comment','text')"><img src=pic/smilies/excl.gif width="18" height="18" border=0></a></center>
          <?
          
print("<input type=\"submit\" class=btn value=\"Objavi\" /></form></p></td></tr></table>");
            print(
$commentbar);
        
?>
    
    <!-- KOMENTARJI end -->
    
</div>
<div id="sidebar" style="float: right;">
    
    <!-- DOWNLOAD start -->
    
    <div id="torrent_zahvale" style="margin: 0 0 10px 0;">
        <div id="zahvale_top"></div> 
        <div id="zahvale_middle">
            <a href="download.php?id=<?=$row["id"]?>">
                <img src="design/torrent_details/prenos.gif" border="0" />
            </a>
        </div> 
        <div id="zahvale_bottom"></div>
    </div>
    <div style="clear: both;"></div>
    
    <!-- DOWNLOAD end -->
    
    <!-- SOLEŽNIKI start -->
    
    <div id="torrent_prenosi" style="margin: 0 0 10px 0;"> 
        <div id="prenosi_naslov">
            SOLEŽNIKI
        </div> 
        <div id="prenosi_podatki" style="text-align: center;">
            <?php
            
            
if ($row["sledilniki"] == "yes" && (int)$row["seeders"] == 0)
            {
                
$row["seeders"] = 1;
            }
            
            
?>
            Sejalci: <?=$row["seeders"]?><br />
            Pijavke: <?=$row["leechers"]?>
        </div>
    </div>
    <div style="clear: both;"></div>
    
    <!-- SOLEŽNIKI end -->  
    
    <!-- ZAHVALE start -->
    
    <div id="torrent_zahvale" style="margin: 0 0 10px 0;">
        <div id="zahvale_top"></div>
        <div id="zahvale_middle">
            <div id="prenosi_naslov">
                ZAHVALE
            </div>
            <div id="prenosi_podatki">
                <div style="width: 168px; padding: 3px; text-align: justify;">
                    <?=$thanksby?>
                </div>
            </div>
        </div>
        <div id="zahvale_bottom"></div>
    </div>
    <div style="clear: both;"></div>
    
    <!-- ZAHVALE end -->
    
    <!-- ZAZNAMKI start -->
    
    <?php
    
    $zaznamek_res 
mysql_query("SELECT * FROM zaznamki WHERE userid = '" $CURUSER["id"] . "' AND torrentid = '" $row["id"] . "'") or sqlerr();
    if (
mysql_num_rows($zaznamek_res) == 1)
    {
        
$zaznamek true;
        
$zaznamek_row mysql_fetch_array($zaznamek_res);
    }
    else
    {
        
$zaznamek false;
    }
    
    
    
?>
    
    <div id="torrent_zahvale" style="margin: 0 0 10px 0;">
        <div id="zahvale_top"></div>
        <div id="zahvale_middle">
            <div id="prenosi_naslov">ZAZNAMEK</div>
            <div id="prenosi_podatki">
                <div style="width: 168px; padding: 3px; text-align: center;">
                <?php
                    
if (!$zaznamek)
                    {
                        
?>
                        <a href="<?=$BASEURL?>/zaznamki.php?action=dodaj&torrentid=<?=$row["id"]?>"><div id="prenosi_podatki">Dodaj med zaznamke!</div></a>
                        <?
                    
}
                    else
                    {
                        
?>
                        <a href="<?=$BASEURL?>/zaznamki.php?action=brisi&torrentid=<?=$row["id"]?>"><div id="prenosi_podatki">Odstrani iz zaznamkov!</div></a>
                        <?                    
                    
}
                
?>
                </div>
            </div>
        </div>
        <div id="zahvale_bottom"></div>
    </div>
    <div style="clear: both;"></div>
    
    <!-- ZAZNAMKI end -->
    
    
    <!-- OGLASI start -->
    
<div id="torrent_zahvale" style="margin: 0 0 10px 0;">
<div id="zahvale_top"></div>
<div id="zahvale_middle" style="text-align: center;">
<?
include('include/oglasi_index_tower.php'); 
?>
</div>
<div id="zahvale_bottom"></div>
</div>
    
    <!-- OGLASI end -->
    
    
</div>

<?
stdfoot
();
?>
Reply With Quote
  #3  
Old 15th December 2019, 12:27
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
As far as I can gather the problem is with images which are on a ssl domain so in the fix I just added another button (IMG2) for ssl images.

I will need a direct link to the source code so I can have a look at it.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #4  
Old 15th December 2019, 17:00
Floky123 Floky123 is offline
Senior Member
 
Join Date: Nov 2013
Slovenia
Posts: 55
Default
Quote:
Originally Posted by firefly007 View Post
As far as I can gather the problem is with images which are on a ssl domain so in the fix I just added another button (IMG2) for ssl images.

I will need a direct link to the source code so I can have a look at it.
I use now takeupload.php from original source because this was i post there get an error when i upload torrent: Column count doesn't match value count at row 1
Reply With Quote
  #5  
Old 15th December 2019, 19:05
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
First put back the files like they were and check if everything is working like it was, meaning u can upload and then give me access and I will have a look. Currently I have the source installed so I'm slightly familiar with it.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #6  
Old 15th December 2019, 21:20
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
try removing the s and set http not https see if that works looks like its not doing the https
Reply With Quote
  #7  
Old 15th December 2019, 21:27
Floky123 Floky123 is offline
Senior Member
 
Join Date: Nov 2013
Slovenia
Posts: 55
Default
Quote:
Originally Posted by Napon View Post
try removing the s and set http not https see if that works looks like its not doing the https
This is not problem i have try ... problem was that was no torrents and users table in sql when i get this source .. i was install the original source and put/replace files from my source now its problem that is missing some torrents.poster in sql and don't work that with poster...
Reply With Quote
  #8  
Old 15th December 2019, 21:35
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
As i have told you your using https from the shots ive looked at should be http, Also you need to update the format_comment with https first then start to add the poster mod on it this is a very old code your using here All of us on here well most are using PHP7 now

pm me the full code ill have a look at it
Reply With Quote
  #9  
Old 22nd December 2019, 10:40
Floky123 Floky123 is offline
Senior Member
 
Join Date: Nov 2013
Slovenia
Posts: 55
Default
Hi, i have now problem with this error:

SQL Error
Unknown column 'torrents.poster' in 'field list'

and Unknown column 'poster' in 'field list'
Reply With Quote
  #10  
Old 22nd December 2019, 12:22
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
Code:
ALTER TABLE `torrents` ADD `poster` varchar(255) NOT NULL default '';
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:52. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.