Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
Thread Tools
  #1  
Old 22nd August 2009, 18:01
Geko Geko is offline
Member
 
Join Date: Apr 2009
Latvia
Posts: 6
Unhappy Fatal Error
I got problem like this.

In browse when I got full torrent list (15) then I put another one torrent then shows the second page. But when I click to open second page I got this error:

Code:
Fatal error:  Call to undefined function  convert_text() in /home2/geko/public_html/takepage.php on line 15
I am sorry for my bad language :( But please help
Reply With Quote
  #2  
Old 22nd August 2009, 18:14
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Post
Screen in studio please!
Reply With Quote
  #3  
Old 22nd August 2009, 18:26
Geko Geko is offline
Member
 
Join Date: Apr 2009
Latvia
Posts: 6
Default
Click the image to open in full size.Click the image to open in full size.


and script in takepage.php
PHP Code:

<?

require_once("include/bittorrent.php");
dbconn(false);
header ("Content-Type: text/html; charset=" $tracker_lang['language_charset']);

$page = (int) $_GET["page"];

if (!isset(
$page)) {
    
stdmsg($tracker_lang["error"], "Не пытайся меня взломать!");
}

$count = (int) $_GET["count"];
$torrentsperpage = (int) $_GET["torrentsperpage"];
$where convert_text(urldecode(decode_unicode_url($_GET["where"])));
$orderby "ORDER BY torrents.sticky ASC, torrents.id DESC";

list(
$pagertop$pagerbottom$limit) = browsepager($torrentsperpage$count"browse.php?" $addparam);
$query "SELECT torrents.id, torrents.moderated, torrents.moderatedby, torrents.category, torrents.leechers, torrents.seeders, torrents.free, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.sticky, torrents.owner," .
"IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, categories.name AS cat_name, categories.image AS cat_pic, users.username, users.class".($CURUSER ", EXISTS(SELECT * FROM readtorrents WHERE readtorrents.userid = ".sqlesc($CURUSER["id"])." AND readtorrents.torrentid = torrents.id) AS readtorrent" ", 1 AS readtorrent")." FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where $orderby $limit";
$res mysql_query($query) or die(mysql_error());

print(
"<table id=\"pager\" class=\"embedded\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\"><tr><td class=\"index\" colspan=\"12\">");
print(
$pagertop);
print(
"</td></tr>");

torrenttable($res"index");

print(
"<tr><td class=\"index\" colspan=\"12\">");
print(
$pagerbottom);
print(
"</td></tr></table>");

?>
Reply With Quote
  #4  
Old 22nd August 2009, 18:31
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Seems you miss function convert_text.....

Which source code you use?
Reply With Quote
  #5  
Old 22nd August 2009, 18:32
Geko Geko is offline
Member
 
Join Date: Apr 2009
Latvia
Posts: 6
Default
;( I don't even know what is this :( can you please help.

I am using Yuna scatari pre6

Bump: I don't know how to fix it.
When i am at torrent list or in another words in browser I have http://filebits.woano.lv/browse.php

when I click second page on torrent list shows - http://filebits.woano.lv/browse.php#

but needs to be-
http://filebits.woano.lv/browse.php?page=1

How I can fix it?

Last edited by Geko; 22nd August 2009 at 18:57.
Reply With Quote
  #6  
Old 24th August 2009, 08:31
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Damn why you use that AJAX browse mod!? It's not good.
Reply With Quote
  #7  
Old 25th August 2009, 14:24
BoLaMN BoLaMN is offline
Senior Member
 
Join Date: Jan 2008
Australia
Posts: 93
Default
well kp380lv your reply was a great success, u Geko u will need to place this function:

PHP Code:
 
function convert_text($s)
{
$out "";
 
for (
$i=0$i<strlen($s); $i++)
{
$c1 substr ($s$i1);
$byte1 ord ($c1);
if (
$byte1>>== 6// 110x xxxx, 110 prefix for 2 bytes unicode
{
$i++;
$c2 substr ($s$i1);
$byte2 ord ($c2);
$byte1 &= 31// remove the 3 bit two bytes prefix
$byte2 &= 63// remove the 2 bit trailing byte prefix
$byte2 |= (($byte1 3) << 6); // last 2 bits of c1 become first 2 of c2
$byte1 >>= 2// c1 shifts 2 to the right
 
$word = ($byte1<<8) + $byte2;
if (
$word==1025$out .= chr(168); // ?
elseif ($word==1105$out .= chr(184); // ?
elseif ($word>=0x0410 && $word<=0x044F$out .= chr($word-848); // ?-? ?-?
else
{
$a dechex($byte1);
$a str_pad($a2"0"STR_PAD_LEFT);
$b dechex($byte2);
$b str_pad($b2"0"STR_PAD_LEFT);
$out .= "&#x".$a.$b.";";
}
}
else
{
$out .= $c1;
}
}
 
return 
$out;

into your takepage.php or globals.php to make this function to work

Cheers BoLaMN
Reply With Quote
  #8  
Old 25th August 2009, 17:52
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Well BoLamn i post better mod for browse which is more effective than this lol
Reply With Quote
Reply

Tags
error , fatal


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Allowed memory size of ? Ripparinn Torrent Strike 11 16th August 2009 00:19
Upload error, Fatal error TKO Template Shares 5 14th February 2009 02:23
fatal error simbalord BT.Manager (phpMyBitTorrent) 9 23rd October 2008 16:18
URGENT !! Parse error: syntax error sharpe Torrent Strike 8 24th September 2008 15:10



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