Bravo List

Bravo List (https://www.bvlist.com/index.php)
-   Downloads (https://www.bvlist.com/forumdisplay.php?f=16)
-   -   H-Tracker v2 (https://www.bvlist.com/showthread.php?t=1753)

wMan 12th May 2009 19:32

Quote:

Originally Posted by hack346 (Post 10879)
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 :wallbash: nice try !! :fire:

raefor 12th May 2009 19:34

Quote:

Originally Posted by wolfman (Post 11513)
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 :wallbash: nice try !! :fire:

this will fix "rnrn" chars from torrent description) (on windows)

wMan 12th May 2009 19:36

Quote:

Originally Posted by raefor (Post 11514)
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:

hack346 12th May 2009 20:46

2 Attachment(s)
Quote:

Originally Posted by wolfman (Post 11513)
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 :wallbash: nice try !! :fire:


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"]) . "")."");
Attachment 1327 Attachment 1328

razvaneluu 13th May 2009 21:29

how to integrate a sms payment ?

raefor 13th May 2009 22:07

Quote:

Originally Posted by razvaneluu (Post 11554)
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 `users` ADD `cell` varchar(255) NOT 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?
OBS! Type your cellphone number below. See the example.
<input type="text" name="cell">
<i>example: 0701234567</i>

<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>");
echo(
"Send a SMS to 72550 with the following information: ");
echo(
"<b>");
echo(
"SILVTORR"); // YOUR PREFIX HERE
echo("</b>");
?>
<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! You will notice this with a star beside your nickname! 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

wMan 13th May 2009 23:00

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

razvaneluu 15th May 2009 17:04

1 Attachment(s)
How to fix that ? the user is loged but he can`t post !

Attachment 1369

raefor 15th May 2009 17:59

Quote:

Originally Posted by razvaneluu (Post 11603)
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

wMan 16th May 2009 04:57

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


All times are GMT +2. The time now is 01:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2026, vBulletin Solutions Inc.