Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Downloads
Reply
Thread Tools
  #51  
Old 12th May 2009, 19:32
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Quote:
Originally Posted by hack346 View Post
2 bugs fixed:

WOW how cool is this fix
i can tel you
torrents-details.php gives error
unexpexted end in line 524
only problem is that file has only 523 lines nice try !!
Reply With Quote
  #52  
Old 12th May 2009, 19:34
raefor's Avatar
raefor raefor is offline
Senior Member
 
Join Date: Mar 2008
United States
Posts: 90
Default
Quote:
Originally Posted by wolfman View Post
WOW how cool is this fix
i can tel you
torrents-details.php gives error
unexpexted end in line 524
only problem is that file has only 523 lines nice try !!
this will fix "rnrn" chars from torrent description) (on windows)
Reply With Quote
  #53  
Old 12th May 2009, 19:36
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Quote:
Originally Posted by raefor View Post
this will fix "rnrn" chars from torrent description) (on windows)
yeah right but it gives that on linux + gives so big errors you can't even see torrent details :bubble:
Reply With Quote
  #54  
Old 12th May 2009, 20:46
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
Quote:
Originally Posted by wolfman View Post
WOW how cool is this fix
i can tel you
torrents-details.php gives error
unexpexted end in line 524
only problem is that file has only 523 lines nice try !!

Man just change this source, this is not for u...realy
Watch here in this prints from Linux & Windows hosting....where u see thats errors?

& for raefor, this is your fix for LINUX

open torrents-upload.php & find:
Code:
print ("".textbbcode("upload","descr","$descr")."");
replace with:

Code:
print ("".textbbcode("upload","descr","" . htmlspecialchars($row["descr"]) . "")."");
Click image for larger version

Name:	linux.jpg
Views:	241
Size:	136.7 KB
ID:	1327 Click image for larger version

Name:	windows.jpg
Views:	211
Size:	157.3 KB
ID:	1328
Reply With Quote
  #55  
Old 13th May 2009, 21:29
razvaneluu razvaneluu is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default
how to integrate a sms payment ?
Reply With Quote
  #56  
Old 13th May 2009, 22:07
raefor's Avatar
raefor raefor is offline
Senior Member
 
Join Date: Mar 2008
United States
Posts: 90
Default
Quote:
Originally Posted by razvaneluu View Post
how to integrate a sms payment ?
can give this a try

It's configured to work with mosms.com


Here is the SQL:

PHP Code:
ALTER TABLE `usersADD `cellvarchar(255NOT NULL default ''
Create a new .php file calledsms1.php and add this:

PHP Code:
<?
ob_start
("ob_gzhandler");
require 
"backend/functions.php";
dbconn(true);
loggedinorreturn();
stdhead();
begin_frame("SMS Donation");

  
$curre $CURUSER['username'];
  
$cell $_POST['cell'];

echo(
"<h2>SMS donation (25 SEK) Step 1/3</h2>");

?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
What cellphone number will you donate from?<br>
OBS! Type your cellphone number below. See the example.<br><br>
<input type="text" name="cell"><br>
<i>example: 0701234567</i>
<br><br>
<input type="submit" name="submit" value="Continue">
</form>

<?

if($_POST['submit'] && $_POST['cell']){
  
mysql_query("UPDATE users SET cell = '$cell' WHERE username = '$curre'");
  
header("Location: sms2.php");
  }

end_frame();
stdfoot();
?>
Then make a new one again called sms2.php and add this:

PHP Code:
<?
ob_start
("ob_gzhandler");
require 
"backend/functions.php";
dbconn(false);
loggedinorreturn();
stdhead();
begin_frame("SMS Donation");

echo(
"<h2>SMS donation (25 SEK) Step 2/3</h2><br>");
echo(
"Send a SMS to 72550 with the following information: ");
echo(
"<b>");
echo(
"SILVTORR"); // YOUR PREFIX HERE
echo("</b><br><br>");
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="GET">
<input type="submit" name="submit" value="Continue">
</form>

<?

if($_GET['submit']){
header("Location: sms3.php");
}
end_frame();
stdfoot();
?>
Then make a new again called sms3.php and add:

PHP Code:
<?
require "backend/functions.php";
dbconn(false);
loggedinorreturn();
stdhead();
begin_frame("SMS Donation");

echo(
"<h2>SMS donation (25 SEK) Step 3/3</h2>");


echo(
"Your donation should now be complete!<br> You will notice this with a star beside your nickname!<br><br> The staff at silvertorrents.org are graceful for your donation and are hoping that you will like us.");


end_frame();
stdfoot();
?>
and now the final one to create, name it takesms.php and add this:

PHP Code:
<?php
require "backend/functions.php";
dbconn(true);

$nr $_REQUEST['nr']; // Cellphone number donation came from
$donated $_REQUEST['tariff']; // How much that have been donated
$curre $CURUSER['username'];
$qry "UPDATE users SET donated = '$donated' WHERE cell = '$nr'"// Remove this line if you dont have the donation mod or the donated column in your sql 
$qry2 "UPDATE users set donor = 'yes' WHERE cell = '$nr'";
mysql_query($qry); // Remove this line if you dont have the donation mod or the donated column in your sql
mysql_query($qry2);

echo(
"Thank you for your donation! You are helping us to continue to run our activity //Staff"); //This is the SMS to the cellphone
?>
This script is configured to work with the swedish site www.mosms.com.
If you have another SMS site that you want this script to work with just easily change the $_REQUEST variables in takesms.php. If you want help with that i can probably help you out there.

Ofcource you need to have a registered account at mosms if you want this script to work. Just simply link your connection @ mosms to takesms.php . Its really simple but i can also help you with that if you dont get it to work.

Also be sure to have no errors in takesms.php or add this line -> error_reporting(0); . If you have errors in your takesms.php code it will be sent to the cellphone. Why? Well because everything you are echoing in the takesms.php file will be sent to the cellphone. So if you have any errors in your takesms.php the error msg will be sent to the cellphone.

Thats it i'll hope you will like this mod and if you have any questions just ask.

Cheers

Edit: For you who want to use mosms and don't understand swedish here is a quick guide:

MOSMS connection:

1. Create an account @ mosms

2. Login to your mosms account

3. Choose the option "Ta betalt med sms"

4. Choose the option "L
Reply With Quote
  #57  
Old 13th May 2009, 23:00
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
by the way i fixed rnrn chars from torrent description but did it my way :D
if for some reason someone that fix ain't working ask me maybe can help
Reply With Quote
  #58  
Old 15th May 2009, 17:04
razvaneluu razvaneluu is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default
How to fix that ? the user is loged but he can`t post !

Click image for larger version

Name:	nama.JPG
Views:	169
Size:	145.4 KB
ID:	1369
Reply With Quote
  #59  
Old 15th May 2009, 17:59
raefor's Avatar
raefor raefor is offline
Senior Member
 
Join Date: Mar 2008
United States
Posts: 90
Default
Quote:
Originally Posted by razvaneluu View Post
How to fix that ? the user is loged but he can`t post !

try sending them a new link to your site and then login

logout frist
Reply With Quote
  #60  
Old 16th May 2009, 04:57
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
hey where was the avatar size options ?
in config or functions ??
or elsewhere
i want to make avatars a bit biger but for a moment have no time to look for it
so it be great if someone can tel me
Reply With Quote
Reply

Tags
htracker , v2


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 01:43. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.