Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Downloads (http://www.bvlist.com/forumdisplay.php?f=16)
-   -   Template Shares v3.1 Nulled (http://www.bvlist.com/showthread.php?t=104)

UzAkLArDaN 2nd January 2008 21:18

Template Shares v3.1 Nulled
 
3 Attachment(s)
Installing to "localhost" using XAMPP


attention

Attention

Video Tutorial






The people who cannot login into staff panel use the code below:

Copy the code go to "root/admin" folder and edit the "staffpanel.php" by using notepad.
Code:

$rootpath = "./../";
include($rootpath . 'include/bittorrent.php');
gzip();
dbconn();
loggedinorreturn();
maxsysop();

if ($usergroups['canstaffpanel'] == 'no' OR $usergroups['canstaffpanel'] != 'yes') {
        print_no_permission(true);
        exit;
}

$action = isset($_POST['action']) ? htmlspecialchars($_POST['action']) : (isset($_GET['action']) ? htmlspecialchars($_GET['action']) : '');

if (isset($_SESSION["wpincode"]) && $_SESSION["wpincode"] >= 5) {
        sql_query("UPDATE users set enabled = 'no' WHERE id = ".sqlesc($CURUSER['id']));
        stderr("Error","Access Denied! You have been exceed your max pincode attempts therefore we have been disabled your account.");
}
$sql = sql_query("SELECT * FROM pincode WHERE area = 2 LIMIT 1");
$res = mysql_fetch_array($sql);
$sechash = $res['sechash'];
$pincode = $res['pincode'];

if (isset($_SESSION['wpincode']) && $_SESSION['wpincode'] >= 5) {
        sql_query("UPDATE users set enabled = 'no' WHERE id = ".sqlesc($CURUSER['id']));
        stderr("Error", "Access Denied! You have been exceed your max pincode attempts therefore we have been disabled your account.");
        die;
}
$sql = sql_query("SELECT * FROM pincode WHERE area = 1 LIMIT 1");
$res = mysql_fetch_array($sql);
$sechash = $res['sechash'];
$pincode = $res['pincode'];

if ($action == 'checkpincode') {
        $userpincode = trim($_POST['pincode']);
        $userpincode = md5(md5($sechash).md5($userpincode));
        if ($userpincode != $pincode) {
                if (isset($_SESSION['wpincode']))
                        ++$_SESSION['wpincode'];
                else
                {
                        session_register('wpincode');
                        ++$_SESSION['wpincode'];
                }
                stderr('Error','Invalid PINCODE!');
        }
        else {
                unset($_SESSION['wpincode']);
                $_SESSION['pincode_settings'] = $userpincode;
                header('Location: settings.php?action=showmenu');
        }
}
if (empty($_SESSION['pincode_settings']) || $_SESSION['pincode_settings'] != $pincode) {
        stdhead("Website Settings by xam ".S_VERSION." - Pincode");
?>


Please Enter Pincode to continue:



        stdfoot();
        die;
}
stdhead("Staff Panel");

begin_frame("WELCOME TO ".strtoupper($SITENAME)." - STAFF PANEL");
print("
");
print("
\n");

///////////////////// Remove And Edit Options Sys.Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sure = $_GET['sure'];
if($sure == "yes") {
$delsosadminid = (int)$_GET['delsosadminid'];
$query = "DELETE FROM sysoppanel WHERE id=" .sqlesc($delsosadminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("
");
stdfoot();
die();
}
$delsosadminid = (int)$_GET['delsosadminid'];
$name = trim(htmlspecialchars($_GET['mod']));
if($delsosadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($name) ( Yes! / No! )");
}
end_frame();
print("
");
stdfoot();
die();
}

$editsosadmin = (int)$_GET['editsosadmin'];
if($editsosadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE sysoppanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}
$editsosadminid = (int)$_GET['editsosadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editsosadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}
///////////////////// Remove And Edit Options Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$suree = $_GET['suree'];
if($suree == "yes") {
$deladminid = (int)$_GET['deladminid'];
$query = "DELETE FROM adminpanel WHERE id=" .sqlesc($deladminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("");
stdfoot();
die();
}
$deladminid = (int)$_GET['deladminid'];
$nameadmin = htmlspecialchars(trim($_GET['admin']));
if($deladminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($nameadmin) ( Yes! / No! )");
}
end_frame();
print("");
stdfoot();
die();
}

$editadmin = (int)$_GET['editadmin'];
if($editadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE adminpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}

$editadminid = (int)$_GET['editadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}

///////////////////// Remove And Edit Options Moderator \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sureee = $_GET['sureee'];
if($sureee == "yes") {
$delmodid = (int)$_GET['delmodid'];
$query = "DELETE FROM modpanel WHERE id=" .sqlesc($delmodid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("");
stdfoot();
die();
}
$delmodid = (int)$_GET['delmodid'];
$namemod = htmlspecialchars(trim($_GET['mod']));
if($delmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($namemod) ( Yes! / No! )");
}
end_frame();
print("");
stdfoot();
die();
}

$editmod = (int)$_GET['editmod'];
if($editmod == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE modpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}

$editmodid = (int)$_GET['editmodid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}


///////////////////// Add new options \\\\\\\\\\\\\\\\\\\\\\\\\\\\
$add = $_GET['add'];
if($add == 'true') {
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$cppanel = trim(htmlspecialchars($_GET['cppanel']));
unset($message);
if ($mod_name == '' OR $mod_url == '') {
        $message = 'Don\'t leave any fields blank';
}else{
$query = "INSERT INTO $cppanel SET name = ".sqlesc($mod_name).", url = ".sqlesc($mod_url).", info = ".sqlesc($mod_info);
$sql = sql_query($query);
if($sql) {
        $message = 'New option has been added.';
} else {
        $message = 'Database error.';
}
}
header("Location:  " . $_SERVER['SCRIPT_NAME'] . "?message=".$message);
}
if (get_user_class() >= UC_SYSOP) {
        if ($_GET['message'])
                $msg = "[b]".htmlspecialchars(trim($_GET['message']));
        else
                $msg = "ADD NEW OPTION";
echo $msg."
";
print("
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Name:
URL-file:
Info:
Option for:
");
}
echo("
");
echo("
");

///////////////////// Sys.Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_SYSOP) {
echo("

FOR SYSOP'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM sysoppanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);

$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
print("
");
print("
");
}
///////////////////// Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_ADMINISTRATOR) {
echo("

FOR ADMINISTRATOR'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM adminpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
print("
");
print("
");
}
///////////////////// Moderator Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
echo("

FOR MODERATOR'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM modpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
end_frame();
end_frame();
stdfoot();
?>
Other version of TS SE: v2.5 v3.3 v3.4 v3.5 v4.0 v4.3


Note: These are not nulled!
blur13th 1st March 2008 00:32

Re: TS SE v3.1 Nulled
 
I installed this and it works good. but i have a little problem.

When i download torrent file like "abcd.torrent" , IE6 changes filename to "abcd[1].torrent".

FF2 works perfectly but IE6.


how to fix it?

here my download.php

Code:

require_once ($rootpath . 'include/bittorrent.php');
dbconn();
loggedinorreturn();
maxsysop ();
parked();

@ini_set('zlib.output_compression', 'Off');
@set_time_limit(0);

if (@ini_get('output_handler') == 'ob_gzhandler' AND @ob_get_length() !== false)
{        // if output_handler = ob_gzhandler, turn it off and remove the header sent by PHP
        @ob_end_clean();
        header('Content-Encoding:');
}

getvar('id');
int_check($id,true);

$gigs = $CURUSER['downloaded'] / (1024*1024*1024);
$ratio = (($CURUSER['downloaded'] > 0) ? ($CURUSER['uploaded'] / $CURUSER['downloaded']) : 0);

if (($CURUSER['downloadpos'] == 'no' OR $usergroups['candownload'] == 'no' OR $usergroups['candownload'] != 'yes') OR ($gigs > '5' AND $ratio <= 0.4 AND $CURUSER['downloaded'] <> 0)) {
        print_no_permission();
        exit;
}

$res = sql_query("SELECT torrents.name, torrents.filename, torrents.size, torrents.owner, categories.minclassread AS minclassread FROM torrents LEFT JOIN categories ON torrents.category = categories.id WHERE torrents.id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_array($res);

if ($CURUSER['class'] < $row['minclassread'])
        print_no_permission();

$fn = "$torrent_dir/$id.torrent";

if (!$row || !is_file($fn) || !is_readable($fn))
        httperr();

sql_query("UPDATE torrents SET hits = hits + 1 WHERE id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);

require_once ($rootpath . 'include/benc.php');

if (strlen($CURUSER['passkey']) != 32) {
        $CURUSER['passkey'] = md5($CURUSER['username'].get_date_time().$CURUSER['passhash']);
        sql_query("UPDATE users SET passkey=".sqlesc($CURUSER['passkey'])." WHERE id=".sqlesc($CURUSER['id']));
}

$dict = bdec_file($fn, (1024*1024));
$dict['value']['announce']['value'] = $BASEURL.'/announce.php?passkey='.$CURUSER['passkey'];
$dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value'];
$dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);

if($CURUSER['id'] != $row['owner'])
        sql_query("INSERT INTO torrent_hit (uid,id,name,size) VALUES(".sqlesc($CURUSER['id']).", ".sqlesc($matches[1]).", ".sqlesc($row['name']).", ".sqlesc($row['size']).")") or sqlerr(__FILE__, __LINE__);

header ("Expires: Tue, 1 Jan 1980 00:00:00 GMT");
header ("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: post-check=0, pre-check=0", false);
header ("Pragma: no-cache");
header ("X-Powered-By: ".VERSION." (c) ".date("Y")." ".$SITENAME);
header ("Accept-Ranges: bytes");
header ("Connection: close");
header ("Content-Transfer-Encoding: binary");
header ("Content-Type: application/x-bittorrent");
header ("Content-Disposition: attachment; filename=\"".$row["filename"]);
ob_implicit_flush(true);
print(benc($dict));
?>


blur13th 2nd March 2008 00:51

Re: TS SE v3.1 Nulled
 
how can i use agent ban hack?

i don't know how to deal with " agent ban " in staff panel.

i want to know the way to ban or unban clients.

now, i can't use bitcomet 0.99 at all.

please help me.

djlee 9th March 2008 05:43

Re: TS SE v3.1 Nulled
 
want a tip .. dont

do not allow bitcomet if you are opening a private tracker ... it has already been stopped for possible ratio problems

never mind the fact that it used to fook about with tracker swarms (do not kno about current version thats why i said "used" lol)

wMan 4th April 2008 15:10

Re: TS SE v3.1 Nulled
 
this is total crap set pincode for staff panel doesnt work,how do you get users to shout in shoutbox
:mad: :sos: :blink: :shock:

oem 10th April 2008 21:07

Re: TS SE v3.1 Nulled
 
hmmm.....works fine but i get this all the time..'

An error has occcured!
Unable to upload torrent!

wMan 11th April 2008 17:00

Re: TS SE v3.1 Nulled
 
actually this isnt nulled i tried it on a test site still as callback function in it

sharky 30th April 2008 10:48

Re: TS SE v3.1 Nulled
 
can someone re-upload the source? Cuz i'm interested in ripping the ajax rating from this source. and if i succeed i will post it here. cheers

thedizzy 1st May 2008 12:08

Re: TS SE v3.1 Nulled
 
Can we find someone who can null ts special v4.3 ? :) :hi:

djlee 1st May 2008 20:40

Re: TS SE v3.1 Nulled
 
if we knew someone dont u think we would have done it already ..

i dont see why people still devote CPU power to nulling this source to be honest .. i mean if your silly enough to use it then your silly enough to pay for it in my opinion

thedizzy 3rd May 2008 15:52

Re: TS SE v3.1 Nulled
 
First when i installed ts i click on Staff panel and then i see one form for pincode.I wrote my true code but i saw a error "Your passkey is wrong!" .So i edit my file staffpanel.php like this:

Code:

$rootpath = "./../";
include($rootpath . 'include/bittorrent.php');
gzip();
dbconn();
loggedinorreturn();
maxsysop();

if ($usergroups['canstaffpanel'] == 'no' OR $usergroups['canstaffpanel'] != 'yes') {
        print_no_permission(true);
        exit;
}
?>
stdhead("Staff Panel");

begin_frame("WELCOME TO ".strtoupper($SITENAME)." - STAFF PANEL");
print("
");
print("
\n");

///////////////////// Remove And Edit Options Sys.Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sure = $_GET['sure'];
if($sure == "yes") {
$delsosadminid = (int)$_GET['delsosadminid'];
$query = "DELETE FROM sysoppanel WHERE id=" .sqlesc($delsosadminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("
");
stdfoot();
die();
}
$delsosadminid = (int)$_GET['delsosadminid'];
$name = trim(htmlspecialchars($_GET['mod']));
if($delsosadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($name) ( Yes! / No! )");
}
end_frame();
print("
");
stdfoot();
die();
}

$editsosadmin = (int)$_GET['editsosadmin'];
if($editsosadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE sysoppanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}
$editsosadminid = (int)$_GET['editsosadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editsosadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}
///////////////////// Remove And Edit Options Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$suree = $_GET['suree'];
if($suree == "yes") {
$deladminid = (int)$_GET['deladminid'];
$query = "DELETE FROM adminpanel WHERE id=" .sqlesc($deladminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("");
stdfoot();
die();
}
$deladminid = (int)$_GET['deladminid'];
$nameadmin = htmlspecialchars(trim($_GET['admin']));
if($deladminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($nameadmin) ( Yes! / No! )");
}
end_frame();
print("");
stdfoot();
die();
}

$editadmin = (int)$_GET['editadmin'];
if($editadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE adminpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}

$editadminid = (int)$_GET['editadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}

///////////////////// Remove And Edit Options Moderator \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sureee = $_GET['sureee'];
if($sureee == "yes") {
$delmodid = (int)$_GET['delmodid'];
$query = "DELETE FROM modpanel WHERE id=" .sqlesc($delmodid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("");
stdfoot();
die();
}
$delmodid = (int)$_GET['delmodid'];
$namemod = htmlspecialchars(trim($_GET['mod']));
if($delmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($namemod) ( Yes! / No! )");
}
end_frame();
print("");
stdfoot();
die();
}

$editmod = (int)$_GET['editmod'];
if($editmod == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE modpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("");
echo("");
echo("
It is successfully changed[ Back ]
");
}
end_frame();
print("");
stdfoot();
die();
}
}

$editmodid = (int)$_GET['editmodid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("
");
echo("");
echo("
At present you change an option \"$name\"
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Option:
URL-file:
Info:
");
}
end_frame();
print("");
stdfoot();
die();
}


///////////////////// Add new options \\\\\\\\\\\\\\\\\\\\\\\\\\\\
$add = $_GET['add'];
if($add == 'true') {
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$cppanel = trim(htmlspecialchars($_GET['cppanel']));
unset($message);
if ($mod_name == '' OR $mod_url == '') {
        $message = 'Don\'t leave any fields blank';
}else{
$query = "INSERT INTO $cppanel SET name = ".sqlesc($mod_name).", url = ".sqlesc($mod_url).", info = ".sqlesc($mod_info);
$sql = sql_query($query);
if($sql) {
        $message = 'New option has been added.';
} else {
        $message = 'Database error.';
}
}
header("Location:  " . $_SERVER['SCRIPT_NAME'] . "?message=".$message);
}
if (get_user_class() >= UC_SYSOP) {
        if ($_GET['message'])
                $msg = "[b]".htmlspecialchars(trim($_GET['message']));
        else
                $msg = "ADD NEW OPTION";
echo $msg."
";
print("
");
echo("
");
echo("");
echo("");
echo("");
echo("");
echo("");
echo("
Name:
URL-file:
Info:
Option for:
");
}
echo("
");
echo("
");

///////////////////// Sys.Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_SYSOP) {
echo("

FOR SYSOP'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM sysoppanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);

$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
print("
");
print("
");
}
///////////////////// Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_ADMINISTRATOR) {
echo("

FOR ADMINISTRATOR'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM adminpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
print("
");
print("
");
}
///////////////////// Moderator Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
echo("

FOR MODERATOR'S ONLY

");
print("
");
print("");
echo("");
$query = "SELECT * FROM modpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("");
}
print("
NAME/URLINFOEDITDELETE
$name $info
");
end_frame();
end_frame();
stdfoot();
?>
And now the script checks only your class not your pincode and now i have no problems with staff panel :D \

If you have my problem try this!
ArturK 4th June 2008 22:58

Re: TS SE v3.1 Nulled
 
1 Attachment(s)
Katls.lv

how can i fix?

Attachment 89

GaBoNtZ 5th June 2008 06:37

Re: TS SE v3.1 Nulled
 
hmmm strange...
i see you use "localhost".
if is windows is strange because it should work but if you use linux, make sure you chmod 0777 or 777 torrents folder.

Cr3tu 29th August 2008 09:47

Problem!
 
1 Attachment(s)
Help me .. when i instal xampp and i configure him i go to security i change the password etc. after go to php.admin and login i create a database,i make a folder in htdocs i copy the files in htdocs in that folder,after i copy the TS in htdocs .. and i must go to localhost .... but when i go it's this : "[1045] dbconn: mysql_pconnect: Access denied for user 'ODBC'@'localhost' (using password: NO)"

This is the picture:

Attachment 547

ArturK 29th August 2008 11:03

install source, go to install settings and check DB settings (mysql apssword and user)

Cr3tu 29th August 2008 12:41

Still don't work
 
1 Attachment(s)
I just make what you said but still don't work :((

Attachment 548

x517530 4th November 2008 14:12

How to remove or rename Powered by?
 
How to remove or rename Powered by TS Special Edition v3.1 ???:blink:

Dragan3591 4th November 2008 17:09

functions.php. Simply delete "Powered by bla bla..." or edit it!

x517530 14th December 2008 22:46

help me plz ...
 
Plz help me with this :

How to remove TS Special Edition v.3.1 Nulled by Bind
:sos:

Ashur 15th December 2008 03:51

Quote:

Originally Posted by 517530 (Post 7408)
Plz help me with this :

How to remove TS Special Edition v.3.1 Nulled by Bind
:sos:

/include/template/default/footer.php

x517530 15th December 2008 14:59

Conectable on free host not working for me =[
 
Hello

I dont have a conectable on the free host(000webhost.com) with TS 3.1
On localhost conectable work thery good but on free host dont work

In general I have this problems at other version TS for expl:Ts 5.1, Ts 4.3 :wallbash:
PLz help me really I dont understand this ....:drink:

berege2 5th January 2010 16:07

thank you!

Robertworld 22nd January 2010 21:41

this is the version that was used in the video tutorial?

tunetu 26th January 2010 15:13

Can someone tell me, what I have to modify in root/install/index.php ?

Cause I have made what I can but when I enter http://localhost/install/ its a blank page :|

Klayton 30th January 2010 11:44

thanks

Jack747 30th January 2010 11:57

Quote:

Originally Posted by tunetu (Post 20043)
Can someone tell me, what I have to modify in root/install/index.php ?

Cause I have made what I can but when I enter http://localhost/install/ its a blank page :|

Try http://localhost/install/index.php or http://localhost/install/install.php.

Fernandolazarone 9th April 2010 05:01

hi guys, I'm not getting set up here when I type localhost / install
it appears
Code:

(Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in C: \ xampp \ htdocs \ install \ index.php on line 210)

antoniu 17th April 2010 18:02

THE OBJECT HAS NOT BEING FOUND
 
http://localhost/settings.php i don't have the settings.php?


what is to do !!!

Sory for my verry,verry bad english!!

how can i get rid of this problem:
Code:

An error has occcured!
Unable to upload torrents!

:sos:

uchihaitachisan 25th April 2010 16:53

Problem
 
Quote:

Originally Posted by Fernandolazarone (Post 22293)
hi guys, I'm not getting set up here when I type localhost / install
it appears
Code:

(Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in C: \ xampp \ htdocs \ install \ index.php on line 210)

I have the same problem.Can anyone help us(me)?:sos:

I wrote in the browser the path to the index.php file :
Code:

file:///C:/xampp/htdocs/install/index.php
and it worked but the page is a mess.

You can't understand anything.No space,many odd characters (@#%$) and just a long page for all the steps i should do.

The same thing apeard when i used netmaniack: A MESS

What should i do?
Thx

mpampakos 16th March 2011 16:01

error
 

obama5493 24th March 2011 13:32

Quote:

Originally Posted by thedizzy (Post 998)
Can we find someone who can null ts special v4.3 ? :) :hi:

i dont see why people still devote CPU power to nulling this source to be honest
i mean if your silly enough to use it then your silly enough to pay for it in my opinion




_________________
cheat codes
game cheat codes

kraf 13th September 2011 16:40

...
 

fielong 8th February 2014 06:46

KINDLY HELP
 
I'm not getting set up here when I type localhost / install
it appears

arse error: syntax error, unexpected '$config' (T_VARIABLE), expecting identifier (T_STRING) in C:\wamp\www\tc\install\index.php on line 210

x360zone 8th February 2014 10:20

hi
 
also why use the old script and not use the latest on here v5.6?

");
        print("");
        tr("Save settings","\n", 1);
        print ("");
        }
        exit;
}elseif ($action == 'p_step_5') {
        step("Upgrading from TS v1.3.9 to ".TRACKER_VERSION,"UPGRADE-SETUP","5",true);
        readconfig('DATABASE,MAIN,SECURITY,EXTRA');
        dbconn ();
        //MYBB SETUP
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']." Forums' WHERE name='bbname'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."/community' WHERE name='bburl'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']."' WHERE name='homename'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."' WHERE name='homeurl'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='' WHERE name='cookiedomain'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='/' WHERE name='cookiepath'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITEEMAIL']."' WHERE name='adminemail'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='mailto:".$MAIN['SITEEMAIL']."' WHERE name='contactlink'") or sqlerr(__FILE__, __LINE__);
        write_settings();     
        //MYBB SETUP
        rebuild_announce_settings();
        $mysql_host = $DATABASE['mysql_host'];
        $mysql_user = $DATABASE['mysql_user'];
        $mysql_pass = $DATABASE['mysql_pass'];
        $mysql_db      = $DATABASE['mysql_db'];       
        $table_prefix = TABLE_PREFIX;
        $configdata = " /**
 * Daatabase configuration
 */

\$config['dbtype'] = 'mysqli';
\$config['hostname'] = '{$mysql_host}';
\$config['username'] = '{$mysql_user}';
\$config['password'] = '{$mysql_pass}';
\$config['database'] = '{$mysql_db}';
\$config['table_prefix'] = '{$table_prefix}';

/**
 * Admin CP directory
 *  For security reasons, it is recommended you
 *  rename your Admin CP directory. You then need
 *  to adjust the value below to point to the
 *  new directory.
 */

\$config['admin_dir'] = 'admin';

/**
 * Hide all Admin CP links
 *  If you wish to hide all Admin CP links
 *  on the front end of the board after
 *  renaming your Admin CP directory, set this
 *  to 1.
 */

\$config['hide_admin_links'] = 0;

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (inc/cache directory)
 *  you can change the value below to 'files' from 'db'.
 */

\$config['cache_store'] = 'db';

/**
 * Super Administrators
 *  A comma separated list of user IDs who cannot
 *  be edited, deleted or banned in the Admin CP.
 *  The administrator permissions for these users
 *  cannot be altered either.
 */

\$config['super_admins'] = '1';
 
?>";

        $file = fopen($rootpath.'community/inc/config.php', 'w');
        fwrite($file, $configdata);
        fclose($file);
       
        Print("Database/Forum/Announce system has been succussfully upgraded, please click here to go next step!");
}elseif ($action == 'p_step_6') {
        step("Upgrading from TS v1.3.9 to ".TRACKER_VERSION,"UPGRADE-FINISH","6",true);
        readconfig ('MAIN');
        lock($MAIN['BASEURL']);
        exit;
}elseif ($action == 'u_step_1') {
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-BEGIN","1",true);
        print("
Before you attempt to upgrade, ensure you have a database backup and a copy of the files currently in use on your tracker. This is so you can revert back to your earlier version if you need to or something goes horribly wrong with the upgrade process.Click here to start upgrade.
");
}elseif ($action == 'u_step_2'){
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-SQL","2",true);
        $installtype = 'upgrade_v25';
        include_once ('bigdump.php');
}elseif ($action == 'u_step_3'){
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-ADMIN","3",true);
        readconfig('DATABASE');
        dbconn();
       
        //MYBB ADMIN INSERT
        if ($_POST['insert_admin'] == 'yes') {
                if (!mkglobal("wantusername:wantpassword:passagain:email:id"))
                        die('Error, Please try again!');
                $email = htmlspecialchars(trim($email));
                $email = safe_email($email);
                if (!check_email($email))
                        bark("Invalid email address!");

                if (empty($wantusername) || empty($wantpassword) || empty($email) || empty($id))
                        bark("Don't leave any fields blank.");

                if (!validemail($email))
                        bark("That doesn't look like a valid email address.");

                if (!validusername($wantusername))
                bark("Invalid username.");             
                $now = time();
                $salt = random_str_c();
                $loginkey = generate_loginkey();
                $saltedpw = md5(md5($salt).md5($wantpassword));
                $usergroup = MYBB_ADMINISTRATOR;
                $ip = getip();
                $timezone = '+1';
                $enabledst = 'yes';
                mysql_query("INSERT INTO ".TABLE_PREFIX."users (uid, username, password, salt, loginkey, email, usergroup, regdate, lastactive, lastvisit, allownotices, hideemail, emailnotify, receivepms, pmpopup, pmnotify, remember, showsigs, showavatars, showquickreply, invisible, style, daysprune, regip, showcodebuttons, tpp, ppp, referrer, timezone, dst) VALUES (".sqlesc($id).", ".sqlesc($wantusername).", ".sqlesc($saltedpw).", ".sqlesc($salt).", ".sqlesc($loginkey).", ".sqlesc($email).", '$usergroup', ".sqlesc($now).", ".sqlesc($now).", ".sqlesc($now).", 'yes', 'no', 'no', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'no', '0', '0', ".sqlesc($ip).", '1', '0', '0', '0', ".sqlesc($timezone).", ".sqlesc($enabledst).")") or sqlerr(__FILE__, __LINE__);

                //INSERT STAFF DETAILS
                $filename = $rootpath.'config/STAFFNAMES';     
                $somecontent = $wantusername;
                $filename2 = $rootpath.'config/STAFFIDS';     
                $somecontent2 = $id;
                if (is_writable($filename)) {     
                  if (!$handle = fopen($filename, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename)");
                                exit;
                  }
                  if (fwrite($handle, $somecontent) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename)");
                          exit;
                  }           
                        fclose($handle);

                } else {
                  stdmsg ("Error","The file $filename is not writable!");
                  exit;
                }
                if (is_writable($filename2)) {   
                  if (!$handle2 = fopen($filename2, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename2)");
                                exit;
                  }
                  if (fwrite($handle2, $somecontent2) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename2)");
                          exit;
                  }           
                        fclose($handle2);

                } else {
                  stdmsg ("Error","The file $filename2 is not writable!");
                  exit;
                }
                //INSERT STAFF DETAILS

                Print("Admin added, please click here to go next step!");
        //MYBB ADMIN INSERT
        }else
        {             
                print ("");
                tr("Enter your name"," Please enter name of staffleader on your tracker, This will be become forum administrator automaticly.", 1);
                tr("Enter your id", " Please enter id of staffleader of your tracker.", 1);
                tr("Enter your password"," Please enter your password for forum.", 1);
                tr("RE-Enter your password"," Please enter your password for forum.", 1);
                tr("Enter your email"," Please enter your email for forum.", 1);

                tr("Insert Forum Admin","\n", 1);   
                print ("");
                exit;

        }
}elseif ($action == 'u_step_4') {
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-PINCODE","4",true);
        if ($_POST['u_pincode_save'] == 'yes') {
                $newpincode = trim($_POST['pincode']);
                $newpincode2 = trim($_POST['pincode2']);
                if ($newpincode == '' OR $newpincode2 == '')
                        die('Invalid PINCODE!');
                elseif ($newpincode != $newpincode2)
                        die('The pincodes didn\'t match! Must\'ve typoed. Try again.');
                readconfig('DATABASE,MAIN');
                dbconn ();
                $sechash = md5($MAIN['SITENAME']);     
                $pincode = md5(md5($sechash).md5($newpincode));
                $res = mysql_query("SELECT pincode FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
                if (mysql_num_rows($res) > 0)
                        mysql_query ("DELETE FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
                mysql_query("INSERT INTO pincode SET pincode = ".sqlesc($pincode).", sechash = ".sqlesc($sechash).", area = 1") or sqlerr(__FILE__,__LINE__);
                Print("PINCODE has been saved, please click here to go next step!");
        }else {
        print ("");
        print("");
        print("");
        tr("Save settings","\n", 1);
        print ("");
        }
        exit;
}elseif ($action == 'u_step_5') {
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-SETUP","5",true);
        readconfig('DATABASE,MAIN,SECURITY,EXTRA');
        dbconn ();
        //MYBB SETUP
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']." Forums' WHERE name='bbname'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."/community' WHERE name='bburl'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']."' WHERE name='homename'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."' WHERE name='homeurl'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='' WHERE name='cookiedomain'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='/' WHERE name='cookiepath'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITEEMAIL']."' WHERE name='adminemail'") or sqlerr(__FILE__, __LINE__);
        mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='mailto:".$MAIN['SITEEMAIL']."' WHERE name='contactlink'") or sqlerr(__FILE__, __LINE__);
        write_settings();     
        //MYBB SETUP
        rebuild_announce_settings();
        $mysql_host = $DATABASE['mysql_host'];
        $mysql_user = $DATABASE['mysql_user'];
        $mysql_pass = $DATABASE['mysql_pass'];
        $mysql_db      = $DATABASE['mysql_db'];       
        $table_prefix = TABLE_PREFIX;
        $configdata = " /**
 * Daatabase configuration
 */

\$config['dbtype'] = 'mysqli';
\$config['hostname'] = '{$mysql_host}';
\$config['username'] = '{$mysql_user}';
\$config['password'] = '{$mysql_pass}';
\$config['database'] = '{$mysql_db}';
\$config['table_prefix'] = '{$table_prefix}';

/**
 * Admin CP directory
 *  For security reasons, it is recommended you
 *  rename your Admin CP directory. You then need
 *  to adjust the value below to point to the
 *  new directory.
 */

\$config['admin_dir'] = 'admin';

/**
 * Hide all Admin CP links
 *  If you wish to hide all Admin CP links
 *  on the front end of the board after
 *  renaming your Admin CP directory, set this
 *  to 1.
 */

\$config['hide_admin_links'] = 0;

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (inc/cache directory)
 *  you can change the value below to 'files' from 'db'.
 */

\$config['cache_store'] = 'db';

/**
 * Super Administrators
 *  A comma separated list of user IDs who cannot
 *  be edited, deleted or banned in the Admin CP.
 *  The administrator permissions for these users
 *  cannot be altered either.
 */

\$config['super_admins'] = '1';
 
?>";

        $file = fopen($rootpath.'community/inc/config.php', 'w');
        fwrite($file, $configdata);
        fclose($file);
       
        Print("Database/Forum/Announce system has been succussfully upgraded, please click here to go next step!");
}elseif ($action == 'u_step_6') {
        step("Upgrading from TS v2.5 to ".TRACKER_VERSION,"UPGRADE-FINISH","6",true);
        readconfig ('MAIN');
        lock($MAIN['BASEURL']);
        exit;
}elseif ($action == 'save_db'){
        step("Database Setup (DONE!)","MYSQL Setup","2");

        GetVar(array('mysql_host','mysql_user','mysql_pass','mysql_db'));
        $DATABASE['mysql_host'] = $mysql_host;
        $DATABASE['mysql_user'] = $mysql_user;
        $DATABASE['mysql_pass'] = $mysql_pass;
        $DATABASE['mysql_db']  = $mysql_db;   
       
        WriteConfig('DATABASE', $DATABASE);
        $table_prefix = TABLE_PREFIX;
        $configdata = " /**
 * Daatabase configuration
 */

\$config['dbtype'] = 'mysqli';
\$config['hostname'] = '{$mysql_host}';
\$config['username'] = '{$mysql_user}';
\$config['password'] = '{$mysql_pass}';
\$config['database'] = '{$mysql_db}';
\$config['table_prefix'] = '{$table_prefix}';

/**
 * Admin CP directory
 *  For security reasons, it is recommended you
 *  rename your Admin CP directory. You then need
 *  to adjust the value below to point to the
 *  new directory.
 */

\$config['admin_dir'] = 'admin';

/**
 * Hide all Admin CP links
 *  If you wish to hide all Admin CP links
 *  on the front end of the board after
 *  renaming your Admin CP directory, set this
 *  to 1.
 */

\$config['hide_admin_links'] = 0;

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (inc/cache directory)
 *  you can change the value below to 'files' from 'db'.
 */

\$config['cache_store'] = 'db';

/**
 * Super Administrators
 *  A comma separated list of user IDs who cannot
 *  be edited, deleted or banned in the Admin CP.
 *  The administrator permissions for these users
 *  cannot be altered either.
 */

\$config['super_admins'] = '1';
 
?>";

        $file = fopen($rootpath.'community/inc/config.php', 'w');
        fwrite($file, $configdata);
        fclose($file);
        Print("DATABASE Settings has been saved, please click here to go next step!");
               
}elseif ($action == 'savepincode'){
        step("Setup PINCODE (DONE)","PINCODE","8");   
        $newpincode = trim($_POST['pincode']);
        $newpincode2 = trim($_POST['pincode2']);
        if ($newpincode == '' OR $newpincode2 == '')
                die('Invalid PINCODE!');
        elseif ($newpincode != $newpincode2)
                die('The pincodes didn\'t match! Must\'ve typoed. Try again.');
        readconfig('DATABASE,MAIN');
        dbconn ();
        $sechash = md5($MAIN['SITENAME']);     
        $pincode = md5(md5($sechash).md5($newpincode));
        $res = mysql_query("SELECT pincode FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
        if (mysql_num_rows($res) > 0)
                mysql_query ("DELETE FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
        mysql_query("INSERT INTO pincode SET pincode = ".sqlesc($pincode).", sechash = ".sqlesc($sechash).", area = 1") or sqlerr(__FILE__,__LINE__);
        Print("PINCODE has been saved, please click here to go next step!");

}elseif ($action == 'save_main') {
        step("Basic Tracker Setup (DONE!)","Tracker Setup","3");
        GetVar(array('site_online','max_torrent_size','announce_interval','signup_timeout','minvotes','max_dead_torrent_time','maxusers','torrent_dir','announce_urls','BASEURL','DEFAULTBASEURL','MEMBERSONLY','PEERLIMIT','SITEEMAIL','SITENAME','autoclean_interval','pic_base_url','table_cat','reportemail','invitesystem','registration','showpolls','showstats','showlastxtorrents','showlastxforumposts','showtrackerload','showwhatsgoinon','showshoutbox','waitsystem','maxdlsystem','cache','verification','invite_count','boardclosed','maxchar'));

        $MAIN['site_online'] = $site_online;
        $MAIN['max_torrent_size'] = $max_torrent_size;
        $MAIN['announce_interval'] = $announce_interval;
        $MAIN['signup_timeout'] = $signup_timeout;
        $MAIN['minvotes'] = $minvotes;
        $MAIN['max_dead_torrent_time'] = $max_dead_torrent_time;
        $MAIN['maxusers'] = $maxusers;
        $MAIN['torrent_dir'] = $torrent_dir;
        $MAIN['announce_urls'] = $announce_urls;
        $MAIN['BASEURL'] = $BASEURL;
        $MAIN['DEFAULTBASEURL'] = $DEFAULTBASEURL;
        $MAIN['MEMBERSONLY'] = $MEMBERSONLY;
        $MAIN['PEERLIMIT'] = $PEERLIMIT;
        $MAIN['SITEEMAIL'] = $SITEEMAIL;
        $MAIN['SITENAME'] = $SITENAME;
        $MAIN['autoclean_interval'] = $autoclean_interval;
        $MAIN['pic_base_url'] = $pic_base_url;
        $MAIN['table_cat'] = $table_cat;
        $MAIN['reportemail'] = $reportemail;
        $MAIN['invitesystem'] = $invitesystem;
        $MAIN['registration'] = $registration;
        $MAIN['showpolls'] = $showpolls;
        $MAIN['showstats'] = $showstats;               
        $MAIN['showlastxtorrents'] = $showlastxtorrents;       
        $MAIN['showlastxforumposts'] = $showlastxforumposts;
        $MAIN['showtrackerload'] = $showtrackerload;
        $MAIN['showwhatsgoinon'] = $showwhatsgoinon;
        $MAIN['showshoutbox'] = $showshoutbox;
        $MAIN['waitsystem'] = $waitsystem;
        $MAIN['maxdlsystem'] = $maxdlsystem;
        $MAIN['bitbucket'] = $bitbucket;
        $MAIN['cache'] = $cache;       
        $MAIN['verification'] = $verification;
        $MAIN['invite_count'] = $invite_count;         
        $MAIN['attachment_dir'] = $attachment_dir;
        $MAIN['maxchar'] = $maxchar;

        WriteConfig('MAIN', $MAIN);
        Print("MAIN Settings has been saved, please click here to go next step!");
       
}elseif ($action == 'save_smtp') {
        step("SMTP Setup (DONE!)","SMTP","5");
        GetVar('smtptype');
        if ($smtptype == 'default'){           
                $SMTP['smtptype']                      = $smtptype;
        }
        elseif ($smtptype == 'advanced') {
                GetVar(array('smtp_host','smtp_port','smtp_from'));
                $SMTP['smtptype']                      = $smtptype;
                $SMTP['smtp_host']                      = $smtp_host;
                $SMTP['smtp_port']                      = $smtp_port;
                if (strtoupper(substr(PHP_OS,0,3)=='WIN'))
                        $SMTP['smtp_from']              = $smtp_from; 
        }
        elseif ($smtptype == 'external'){
                GetVar(array('smtpaddress','smtpport','accountname','accountpassword'));
                $SMTP['smtptype']                                      = $smtptype;
                $SMTP['smtpaddress']                            = $smtpaddress;
                $SMTP['smtpport']                                      = $smtpport;
                $SMTP['accountname']                            = $accountname;
                $SMTP['accountpassword']                        = $accountpassword;
        }
        WriteConfig('SMTP', $SMTP);
        Print("SMTP Settings has been saved, please click here to go next step!");
}elseif ($action == 'save_security') {
        step("SECURITY Setup (DONE!)","Security","4");
        GetVar(array('securelogin','iv','maxip','maxloginattempts','disablerightclick','privatetrackerpatch','bannedclientdetect','securehash'));
        $SECURITY['securelogin'] = $securelogin;
        $SECURITY['iv'] = $iv;
        $SECURITY['maxip'] = $maxip;
        $SECURITY['maxloginattempts'] = $maxloginattempts;
        $SECURITY['disablerightclick'] = $disablerightclick;
        $SECURITY['privatetrackerpatch'] = $privatetrackerpatch;
        $SECURITY['bannedclientdetect'] = $bannedclientdetect;
        $SECURITY['securehash'] = $securehash;

        WriteConfig('SECURITY', $SECURITY);
        Print("SECURITY Settings has been saved, please click here to go next step!");
}elseif ($action == 'save_cleanup') {
        step("CLEANUP Setup (DONE!)","CLEANUP","9");
        GetVar(array('autoinvitetime','invite_timeout','oldlogintime','oldshoutstime','oldfundstime','oldregimgtime','inactiveusertime','parkedacctime','oldreportstime','oldtorrentstime','promote_gig_limit','promote_min_ratio','promote_min_reg_days','demote_min_ratio','leechwarn_min_ratio','leechwarn_gig_limit','leechwarn_length','leechwarn_remove_ratio'));
       
        $CLEANUP['autoinvitetime'] = $autoinvitetime;
        $CLEANUP['invite_timeout'] = $invite_timeout;
        $CLEANUP['oldlogintime'] = $oldlogintime;
        $CLEANUP['oldshoutstime'] = $oldshoutstime;
        $CLEANUP['oldfundstime'] = $oldfundstime;
        $CLEANUP['oldregimgtime'] = $oldregimgtime;
        $CLEANUP['inactiveusertime'] = $inactiveusertime;
        $CLEANUP['parkedacctime'] = $parkedacctime;   
        $CLEANUP['oldreportstime'] = $oldreportstime;
        $CLEANUP['oldtorrentstime'] = $oldtorrentstime;
        $CLEANUP['promote_gig_limit'] = $promote_gig_limit;
        $CLEANUP['promote_min_ratio'] = $promote_min_ratio;
        $CLEANUP['promote_min_reg_days'] = $promote_min_reg_days;
        $CLEANUP['demote_min_ratio'] = $demote_min_ratio;
        $CLEANUP['leechwarn_min_ratio'] = $leechwarn_min_ratio;
        $CLEANUP['leechwarn_gig_limit'] = $leechwarn_gig_limit;
        $CLEANUP['leechwarn_length'] = $leechwarn_length;
        $CLEANUP['leechwarn_remove_ratio'] = $leechwarn_remove_ratio;

        WriteConfig('CLEANUP', $CLEANUP);
        Print("CLEANUP Settings has been saved, please click here to go next step!");
}elseif ($action == 'save_admin') {
        define ("UC_STAFFLEADER", 7);
        readconfig('DATABASE');
        dbconn ();
        step("Administrator Setup (DONE!)","Admin Setup","7");
        if (!mkglobal("wantusername:wantpassword:passagain:email:hintanswer:passhint"))
                die('Error, Please try again!');
        $email = htmlspecialchars(trim($email));
        $email = safe_email($email);
        if (!check_email($email))
                bark("Invalid email address!");
        $country = $_POST["country"];
                int_check($country);   
        $gender =  htmlspecialchars(trim($_POST["gender"]));
        $allowed_genders = array("Male","Female","male","female");
        if (!in_array($gender, $allowed_genders, true))
                bark("Invalid Gender!");
        if (empty($wantusername) || empty($wantpassword) || empty($email) || empty($country) || empty($gender) || empty($hintanswer) || empty($passhint))
                bark("Don't leave any fields blank.");

        $hintanswer    = trim ( htmlspecialchars ( $hintanswer ) ) ;
        $passhint              = trim ( htmlspecialchars ( $passhint ) ) ;

        if (strlen($hintanswer) < 6)
                bark("Sorry, Hintanswer is too short (min is 6 chars)");

        if (strlen($wantusername) > 12)
                bark("Sorry, username is too long (max is 12 chars)");

        if ($wantpassword != $passagain)
                bark("The passwords didn't match! Must've typoed. Try again.");

        if (strlen($wantpassword) < 6)
                bark("Sorry, password is too short (min is 6 chars)");

        if (strlen($wantpassword) > 40)
                bark("Sorry, password is too long (max is 40 chars)");

        if ($wantpassword == $wantusername)
                bark("Sorry, password cannot be same as user name.");

        if (!validemail($email))
                bark("That doesn't look like a valid email address.");

        if (!validusername($wantusername))
                bark("Invalid username.");
        $a = (@mysql_fetch_row(@mysql_query("select count(*) from users where email='$email'"))) or sqlerr(__FILE__, __LINE__);
        if ($a[0] != 0)
        bark("The e-mail address ".htmlspecialchars($email)." is already in use.");
        $res = mysql_query("SELECT COUNT(*) FROM users") or sqlerr(__FILE__, __LINE__);
        $arr = mysql_fetch_row($res);
        $secret = mksecret();
        $wantpasshash = md5($secret . $wantpassword . $secret);
        $editsecret = (!$arr[0]?"":mksecret());
        $ret = mysql_query("INSERT INTO users (username, passhash, secret, editsecret, email, country, gender, hintanswer, passhint, status, ". (!$arr[0]?"class, ":"") ."added) VALUES (" .
                implode(",", array_map("sqlesc", array($wantusername, $wantpasshash, $secret, $editsecret, $email, $country, $gender, $hintanswer, $passhint, (!$arr[0]?'confirmed':'pending')))).
                ", ". (!$arr[0]?UC_STAFFLEADER.", ":""). "'". get_date_time() ."')") or sqlerr(__FILE__, __LINE__);
        if (!$ret) {
        if (mysql_errno() == 1062)
                bark("Username already exists!");
        bark("borked");
        }else{
                //MYBB ADMIN INSERT
                $id = mysql_insert_id();               
                $now = time();
                $salt = random_str_c();
                $loginkey = generate_loginkey();
                $saltedpw = md5(md5($salt).md5($wantpassword));
                $usergroup = MYBB_ADMINISTRATOR;
                $ip = getip();
                $timezone = '+1';
                $enabledst = 'yes';
                mysql_query("INSERT INTO ".TABLE_PREFIX."users (uid, username, password, salt, loginkey, email, usergroup, regdate, lastactive, lastvisit, allownotices, hideemail, emailnotify, receivepms, pmpopup, pmnotify, remember, showsigs, showavatars, showquickreply, invisible, style, daysprune, regip, showcodebuttons, tpp, ppp, referrer, timezone, dst) VALUES ('$id', ".sqlesc($wantusername).", ".sqlesc($saltedpw).", ".sqlesc($salt).", ".sqlesc($loginkey).", ".sqlesc($email).", '$usergroup', ".sqlesc($now).", ".sqlesc($now).", ".sqlesc($now).", 'yes', 'no', 'no', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'no', '0', '0', ".sqlesc($ip).", '1', '0', '0', '0', ".sqlesc($timezone).", ".sqlesc($enabledst).")") or sqlerr(__FILE__, __LINE__);
                //MYBB ADMIN INSERT

                //INSERT STAFF DETAILS
                $filename = $rootpath.'config/STAFFNAMES';     
                $somecontent = $wantusername;
                $filename2 = $rootpath.'config/STAFFIDS';     
                $somecontent2 = $id;
                if (is_writable($filename)) {     
                  if (!$handle = fopen($filename, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename)");
                                exit;
                  }
                  if (fwrite($handle, $somecontent) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename)");
                          exit;
                  }           
                        fclose($handle);

                } else {
                  stdmsg ("Error","The file $filename is not writable!");
                  exit;
                }
                if (is_writable($filename2)) {   
                  if (!$handle2 = fopen($filename2, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename2)");
                                exit;
                  }
                  if (fwrite($handle2, $somecontent2) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename2)");
                          exit;
                  }           
                        fclose($handle2);

                } else {
                  stdmsg ("Error","The file $filename2 is not writable!");
                  exit;
                }
                //INSERT STAFF DETAILS

                Print("Admin has been added, please click here to go next step!");
        }
       
}elseif ($action == 'step9') {
        step("Setup CLEANUP","CLEANUP","9");
        print ("");

        echo '';
        tr("Automatic Invite Time (days)", " Give x Invites every X days if usergroup have this feature.\n", 1);
        tr("Invite Timeout?"," Delete invite code after X days who didnt respond the invite request", 1); 
        tr("Delete old login attempts", " Delete failed login attempts every X days.\n", 1);
        tr("Delete old shouts", " Delete old shouts every X days.\n", 1);
        tr("Delete old funds", " Delete old funds every X days.\n", 1);
        tr("Delete old regimages.", " Delete old image verification codes every X days.\n", 1);
        tr("Delete Inactive users", " Delete inactive users every X days.\n", 1);
        tr("Delete Parked users", " Delete inactive parked accounts every X days.\n", 1);
        tr("Delete old reports", " Delete answered reports every X days.\n", 1);
        tr("Delete old torrents", " Delete torrents older than X days.\n", 1); 

        echo '';
        tr("Promote Users GIG Limit", " Min. GIG Limit for promote.\n", 1);
        tr("Promote Users RATIO Limit", " Min. RATIO Limit for promote.\n", 1);
        tr("Promote Users DAYS Limit", " Min. DAYS Limit for promote.\n", 1);
        tr("Demote Users RATIO Limit", " Min. RATIO Limit for Demote.\n", 1);
       
        echo '';
        tr("Warn User MIN. Ratio", " Min. Ratio for LeechWarning.\n", 1);
        tr("Warn User GIG Limit", " Min. GIG Limit for LeechWarning.\n", 1);
        tr("Warning Length", " LeechWarning Length (weeks)\n", 1);
        tr("Remove Warning Min. Ratio", " Min. Ratio Limit to Remove LeechWarning\n", 1);               

        tr("Save settings","\n", 1);
        print ("");
}elseif ($action == 'step8') {
        step("Setup PINCODE","PINCODE","8");
        print ("");
        print("");
        print("");
        tr("Save settings","\n", 1);
        print ("");
}elseif ($action == 'step10') {
                step("Finish the Installation","Finish","10");
                lock();
                exit;
}
elseif ($action == 'step6') {
        step("SQL Dump. Powered by BigDump ver. 0.24b from 2006-06-25","Sql","6");
        $installtype = 'fresh';
        include_once ('bigdump.php');
}

elseif ($action == 'step0') {
        step("Welcome to the installation wizard for ".TRACKER_VERSION.".","Welcome Screen","0");
?>

                       

Welcome to the installation wizard for . This wizard will install and configure a copy of on your server.


                       

Now that you've uploaded files the database and settings need to be created and imported. Below is an outline of what is going to be completed during installation.


                       

                                   
  • Step1: Requirements checked,

  •                                
  • Step2: Configuration of database engine,

  •                                
  • Step3: Basic tracker (main) settings configured,

  •                                
  • Step4: Basic tracker (security) settings configured,

  •                                
  • Step5: Basic tracker (smtp) settings configured,

  •                                
  • Step6: SQL Import,

  •                                
  • Step7: Administrator Setup,

  •                                
  • Step8: PINCODE Setup,

  •                                
  • Step9: Basic tracker (cleanup) settings configured,

  •                                
  • Step10: Finish and Lock installation!

  •                        
           
                       
Before we go any further, please ensure that all the files have been uploaded, and that the folder '/CONFIG/', '/TORRENTS/, '/CACHE/' has suitable permissions to allow this script to write to it ( 0777 should be sufficient ).
  requires PHP 4.1 or better and an MYSQL database.


You will also need the following information that your webhost can provide:

  • *nix or Windows server.

  • MYSQL 3.23 or greater. Note: This source tested on Mysql 4 and 5 (we recommend: Mysql 5)

  • PHP version 4.1 or greater. Note: This source tested on PHP 4,5,5.2 (we recommend: PHP 5)

  • The Apache webserver (version 1.3 or greater.) Note: This source tested on Apache 2 (we recommend: Apache2).

  • The ability to change directory permissions to 777 or to change ownership of directories to be owned by the webserver process.

  • .htaccess Support! (see httpd.conf for:  AllowOverride all)

  • Short Open Tag support (see php.ini for: short_open_tag = On)

  • GD2 Support (see php.ini for: extension=php_gd2.dll)

  • Mod Rewrite Support (see httpd.conf for: LoadModule rewrite_module modules/mod_rewrite.so)

  • SMTP Server.

And make sure that you have setup +followmylinks for your tracker directory if your apache version not support turn this option on via .htaccess
After each step has successfully been completed, click Next or Continue button to move on to the next step.



Please select installation type:



BamBam0077 8th February 2014 13:05

try this index.php

Code:

# IMPORTANT: DO NOT EDIT THIS FILE!!!
define ('IN_INSTALL', true);
define ('THIS_ROOT_PATH', './');
define ('ROOT_PATH', './../');
define ('INSTALL_VERSION', 'v.3.4');
define ('TRACKER_VERSION', 'TS Special Edition v.3.1'); // DO NOT CHANGE !
define ('TABLE_PREFIX', 'community_');
define ('MYBB_ADMINISTRATOR', 4);
define ('TIMENOW', time());
define ('BIGDUMP_VERSION','0.24b');
define ('DATA_CHUNK_LENGTH',16384);
define ('MAX_QUERY_LINES',30000);
@error_reporting(E_ALL & ~E_NOTICE);
@ini_set('error_reporting', E_ALL & ~E_NOTICE);
@ini_set('display_errors', '0');
@ini_set('display_startup_errors', '0');
@ini_set('ignore_repeated_errors', '1');
@set_magic_quotes_runtime(0);
@ignore_user_abort(1);
if (function_exists('set_time_limit') AND get_cfg_var('safe_mode') == 0)
{
        @set_time_limit(0);
}
@ini_set('auto_detect_line_endings', true);
define('INSTALL_URL', 'http://'.$_SERVER['HTTP_HOST']);
$rootpath = ROOT_PATH;
$shorthost =  $_SERVER["HTTP_HOST"];
$sh = preg_replace('/www./', '', $shorthost);

require_once(THIS_ROOT_PATH.'functions.php');
$action = isset($_POST['action']) ? htmlspecialchars($_POST['action']) : (isset($_GET['action']) ? htmlspecialchars($_GET['action']) : 'step0');
$allowed_actions = array('n_step_1','n_step_2','n_step_3','p_step_1','p_step_2','p_step_3','p_step_4','p_step_5','p_step_6','u_step_1','u_step_2','u_step_3','u_step_4','u_step_5','u_step_6','step0','step1','step2','step3','step4','step5','step6','step7','step8','step9','step10','save_db','save_main','save_admin','save_smtp','save_security','savepincode','save_cleanup');
if (!in_array($action, $allowed_actions))
        $action = 'step0';
?>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<?=TRACKER_VERSION ?> INSTALLATION <?=INSTALL_VERSION ?>



if (file_exists(THIS_ROOT_PATH.'install.lock'))
{
        step("Installation ERROR!","ERROR!","0");
        die("
For security reasons, this installer is locked!Please (via FTP) remove the 'install/install.lock' file before continue.
"); 
}else {
        version_check();
}
if ($action == 'n_step_1') {
        step("Upgrading from TS v3.0 to ".TRACKER_VERSION,"UPGRADE-BEGIN","1",true);
        print("
Before you attempt to upgrade, ensure you have a database backup and a copy of the files currently in use on your tracker. This is so you can revert back to your earlier version if you need to or something goes horribly wrong with the upgrade process.Click here to start upgrade.
");
}elseif ($action == 'n_step_2') {
        step("Upgrading from TS v3.0 to ".TRACKER_VERSION,"UPGRADE-SQL","2",true);
        $installtype = 'upgrade_v3';
        include_once ('bigdump.php');
}elseif ($action == 'n_step_3') {
        step("Upgrading from TS v3.0 to ".TRACKER_VERSION,"UPGRADE-FINISH","6",true);
        readconfig ('MAIN');
        lock($MAIN['BASEURL']);
        exit;
}elseif ($action == 'p_step_1') {
        step("Upgrading from TS v1.3.9 to ".TRACKER_VERSION,"UPGRADE-BEGIN","1",true);
        print("
Before you attempt to upgrade, ensure you have a database backup and a copy of the files currently in use on your tracker. This is so you can revert back to your earlier version if you need to or something goes horribly wrong with the upgrade process.Click here to start upgrade.
");
}elseif ($action == 'p_step_2'){
        step("Upgrading from TS v1.3.9 to ".TRACKER_VERSION,"UPGRADE-SQL","2",true);
        $installtype = 'upgrade_v139';
        include_once ('bigdump.php');
}elseif ($action == 'p_step_3'){
        step("Upgrading from TS v1.3.9 to ".TRACKER_VERSION,"UPGRADE-ADMIN","3",true);
        readconfig('DATABASE');
        dbconn();
       
        //MYBB ADMIN INSERT
        if ($_POST['insert_admin'] == 'yes') {
                if (!mkglobal("wantusername:wantpassword:passagain:email:id"))
                        die('Error, Please try again!');
                $email = htmlspecialchars(trim($email));
                $email = safe_email($email);
                if (!check_email($email))
                        bark("Invalid email address!");

                if (empty($wantusername) || empty($wantpassword) || empty($email) || empty($id))
                        bark("Don't leave any fields blank.");

                if (!validemail($email))
                        bark("That doesn't look like a valid email address.");

                if (!validusername($wantusername))
                bark("Invalid username.");             
                $now = time();
                $salt = random_str_c();
                $loginkey = generate_loginkey();
                $saltedpw = md5(md5($salt).md5($wantpassword));
                $usergroup = MYBB_ADMINISTRATOR;
                $ip = getip();
                $timezone = '+1';
                $enabledst = 'yes';
                mysql_query("INSERT INTO ".TABLE_PREFIX."users (uid, username, password, salt, loginkey, email, usergroup, regdate, lastactive, lastvisit, allownotices, hideemail, emailnotify, receivepms, pmpopup, pmnotify, remember, showsigs, showavatars, showquickreply, invisible, style, daysprune, regip, showcodebuttons, tpp, ppp, referrer, timezone, dst) VALUES (".sqlesc($id).", ".sqlesc($wantusername).", ".sqlesc($saltedpw).", ".sqlesc($salt).", ".sqlesc($loginkey).", ".sqlesc($email).", '$usergroup', ".sqlesc($now).", ".sqlesc($now).", ".sqlesc($now).", 'yes', 'no', 'no', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'no', '0', '0', ".sqlesc($ip).", '1', '0', '0', '0', ".sqlesc($timezone).", ".sqlesc($enabledst).")") or sqlerr(__FILE__, __LINE__);         

                //INSERT STAFF DETAILS
                $filename = $rootpath.'config/STAFFNAMES';     
                $somecontent = $wantusername;
                $filename2 = $rootpath.'config/STAFFIDS';     
                $somecontent2 = $id;
                if (is_writable($filename)) {     
                  if (!$handle = fopen($filename, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename)");
                                exit;
                  }
                  if (fwrite($handle, $somecontent) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename)");
                          exit;
                  }           
                        fclose($handle);

                } else {
                  stdmsg ("Error","The file $filename is not writable!");
                  exit;
                }
                if (is_writable($filename2)) {   
                  if (!$handle2 = fopen($filename2, 'w')) {
                                stdmsg ("Error","Cannot open file ($filename2)");
                                exit;
                  }
                  if (fwrite($handle2, $somecontent2) === FALSE) {
                          stdmsg ("Error","Cannot write to file ($filename2)");
                          exit;
                  }           
                        fclose($handle2);

                } else {
                  stdmsg ("Error","The file $filename2 is not writable!");
                  exit;
                }
                //INSERT STAFF DETAILS

                Print("Admin added, please click here to go next step!");

        //MYBB ADMIN INSERT
        }else
        {             
                print ("
");
                tr("Enter your name"," Please enter name of staffleader on your tracker, This will be become forum administrator automaticly.", 1);
                tr("Enter your id", " Please enter id of staffleader of your tracker.", 1);
                tr("Enter your password"," Please enter your password for forum.", 1);
                tr("RE-Enter your password"," Please enter your password for forum.", 1);
                tr("Enter your email"," Please enter your email for forum.", 1);

                tr("Insert Forum Admin","\n", 1);   
                print ("
");
                exit;

        }
}elseif ($action == 'p_step_4') {
        step("Upgrading from TS v.1.3.9 to ".TRACKER_VERSION,"UPGRADE-PINCODE","4",true);
        if ($_POST['u_pincode_save'] == 'yes') {
                $newpincode = trim($_POST['pincode']);
                $newpincode2 = trim($_POST['pincode2']);
                if ($newpincode == '' OR $newpincode2 == '')
                        die('Invalid PINCODE!');
                elseif ($newpincode != $newpincode2)
                        die('The pincodes didn\'t match! Must\'ve typoed. Try again.');
                readconfig('DATABASE,MAIN');
                dbconn ();
                $sechash = md5($MAIN['SITENAME']);     
                $pincode = md5(md5($sechash).md5($newpincode));
                $res = mysql_query("SELECT pincode FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
                if (mysql_num_rows($res) > 0)
                        mysql_query ("DELETE FROM pincode WHERE area=1") or sqlerr(__FILE__,__LINE__);
                mysql_query("INSERT INTO pincode SET pincode = ".sqlesc($pincode).", sechash = ".sqlesc($sechash).", area = 1") or sqlerr(__FILE__,__LINE__);
                Print("PINCODE has been saved, please click here to go next step!");
        }else {
        print ("
");
        print("
Enter your new pincode:
RE-Enter your new pincode:
Enter your new pincode:
RE-Enter your new pincode:
LIMITATIONS: Timeouts
LIMITATIONS: Promote and Demote Users
LIMITATIONS: Automatic Warning and Banning
Enter your new pincode:
RE-Enter your new pincode:

}

elseif ($action == 'step1') {
                step("Requirements Check","Req.Check","1");
        include_once ('reqcheck.php');
}

elseif ($action == 'step2') { 
        step("Database Setup","MYSQL Setup","2");
        print ("
");

        tr("Mysql Host? "," Please enter your mysql host name.\n", 1);
        tr("Mysql User? "," Please enter your mysql user name.\n", 1);
        tr("Mysql Password? "," Please enter your mysql password.\n", 1);
        tr("Mysql Database Name? "," Please enter database name of your tracker.\n", 1);

        tr("Save settings","\n", 1);
        print ("
");

}elseif ($action == 'step3') {
        Readconfig('MAIN');   
        step("Basic Tracker Setup","Tracker Setup","3");       
        print ("
");
       
        echo 'TRACKER/BOARD Online/Offline';
        tr("Tracker Online? ", "yes no Want to turn off your Tracker while performing updates or other types of maintenance?Please Note: Staff Leader will still be able to see the tracker.\n", 1);
        tr("Forum Closed? ", "yes no Want to turn off Forums while performing updates or other types of maintenance?Please Note: Administrators will still be able to see the Forums.\n", 1);

        echo 'General TRACKER Configuration';
        tr("Members Only? ", "yes no \nDisable guest downloads.", 1);
        tr("Invites System Enabled? ", "on off \nAllow Registrations via Invite System.", 1);
        tr("Registration System Enabled? ", "on off \nAllow Registrations (not need invite code)", 1);
        tr("Verification type?","Email Admin Automaticly EMAIL: Sent confirmation email.ADMIN: Manual activate by Staff.AUTOMATIC: Automaticly activate after registration by system.

\n", 1);
        tr("Wait System Enabled?","yes no \n Enable or Disable wait system (see faq)", 1);
        tr("Max. Concurrent Download Enabled?","yes no \n Enable or Disable Maximum concurrent downloads (AKA Max Slots) (see faq)", 1);

        echo 'Enable/Disable Extra Features on Index Page';
        tr("Show Polls?", "yes no Staff only \nShow POLL system on main page.", 1);
        tr("Show Stats?","yes no Staff only \nShow STATS system on main page.", 1);     
        tr("Show Last 5 Torrents?","yes no Staff only \nShow Last x Torrents on main page.", 1);
        tr("Show Latest 5 Forum Topics?","yes no Staff only \nShow Latest 5 Forum Topics on main page.", 1);
        tr("Show Server Load?","yes no Staff only \nShow Server Load on main page.", 1);
        tr("Show Whats Goin On Box (on main page)?","yes no Staff only \nShow Whats Goin On Box on main page.", 1);
        tr("Show Shoutbox?","yes no Staff only \nShow shoutbox on main page.", 1);

        echo 'General Tracker Settings';
        tr("Announce URL? "," It should be: http://" . $_SERVER["HTTP_HOST"]."/announce.php\n", 1);
        tr("Base URL? ","
NO a trailing slash (/) at the end!\n", 1);
        tr("Default Base URL? ","
NO trailing slash (/) at the end!\n", 1);
        tr("Site EMAIL? "," Website Email address\n", 1);
        tr("Report EMAIL? "," Report Email address\n", 1);
        tr("Site Name? "," Website Name.\n", 1);

        echo 'General Settings Of Tracker Directories';
        tr("Torrent Directory? "," Default: torrents NO a trailing slash (/) at the end!\n", 1);
        tr("Picture Directory? "," Default: pic/ ADD a trailing slash (/) at the end!\n", 1);
        tr("Category Directory? "," Default: categories NO a trailing slash (/) at the end!\n", 1);
        tr("Cache Directory? "," Default: cache NO a trailing slash (/) at the end!\n", 1);

        echo 'General Tracker Limitations';
        tr("Initial Number of Invites?"," How many invites should each user be given upon registration?", 1);
        tr("Max. characters Limit? "," Max. characters limit for Signature and Info.\n", 1);
        tr("Max. Torrent Size? "," Default: ".(10*1024*1024)." (10 gb)\n", 1);
        tr("Announce Interval? "," Default: 1800 (60 * 30)\n", 1);
        tr("Auto Clean Interval? "," Default: 900\n", 1);
        tr("Signup Timeout? "," Default: 259200  (86400 * 3)\n", 1);
        tr("Peer Limit? "," Default: 50000\n", 1);
        tr("Min. Votes? "," Default: 1\n", 1);
        tr("Max. Dead Torrent Time ? "," Default: 21600  (6 * 3600)\n", 1);
        tr("Max. Users? "," Disable registration whenever this limit will be reached.\n", 1);

        tr("Save settings","\n", 1);
        print ("
");
}elseif ($action == 'step4') { 
        step("SECURITY Setup","Security","4");
        readconfig('SECURITY');
        print ("
");

        echo 'General Security Settings';
        tr("Secure Login enable?","yes no Optional (selectable by users) \n", 1);
        tr("Private Tracker Patch Enabled?","yes no \n NOTE: Re-download is necessary for seed after upload a torrent.", 1);   
        tr("Banned Client Detection Enabled?","yes no \n Disable downloads if a banned client detected.. (e.g. Bitcomet, Utorrent < v1.6, Browser Clients, ABC and so far.", 1);
        tr("Image Verification enable?","yes no \n Require users to enter a Visual Verify Code to register/login/recover?", 1);
        tr("Disable right mouse click?","yes no \n Use it to stop surfers from easily saving your web page, viewing its source, or lifting images off your site when using either IE 4+ or NS 4+.", 1);
        tr("Max. IPs? "," Disable registration with same IP Address.\n", 1);
        tr("Max. Login Attempts? "," Disable/Ban IP address who exceed this limit.\n", 1);
        tr("Secure Hash","Please enter a secure word that only known by you.Whenever you change this, all users must re-login.\n", 1);
       
        tr("Save settings","\n", 1);
        print ("
");
}elseif ($action == 'step5') { 
        step("SMTP Setup","SMTP","5");
        readconfig('SMTP');
?>


      style="display: none">





 
 


  tr("Save settings","\n", 1,"default");
?>


tr("SMTP Host? "," Default: Localhost\n", 1,"advanced");
tr("SMTP Port? "," Default: 25\n", 1,"advanced");
if (strtoupper(substr(PHP_OS,0,3)=='WIN'))
        tr("SMTP sendmail from? "," Default: noreply@$sh\n", 1,"advanced"); 
else
        print("");
tr("Save settings","WARNING: Don't leave any fields blank!\n", 1,"advanced");
?>


print("");
print("");
print("");
print("");
tr("Save settings","  WARNING: Don't leave any fields blank!\n", 1,"external");
?>

Please select type of PHP Mail function?
          show="default" /> DEFAULT (Use default PHP MAIL Function.)
          show="advanced" /> ADVANCED (Use default PHP Mail Function with EXTRA headers, This function to help avoid spam-filters.)
            show="external" /> EXTERNAL (Use an external PHP Mail Script.)
   
 
Sendmail Path?Please setup your sendmail_path by editing php.ini
Outgoing mail (SMTP) address: hint: smtp.yourisp.com
Outgoing mail (SMTP) port: hint: 80
Account Name: hint: yourname@yourisp.com
Account Password: hint: your password goes here



        print ("");
        print ("How can I test php mail? Its simple easy: Click :openWindow();\">here.");
       
        print ("");
}elseif ($action == 'step7') { 
        step("Administrator Setup","Admin Setup","7"); 
                readconfig('DATABASE,MAIN,SECURITY,EXTRA');
                dbconn ();
                //MYBB SETUP
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']." Forums' WHERE name='bbname'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."/community' WHERE name='bburl'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITENAME']."' WHERE name='homename'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['BASEURL']."' WHERE name='homeurl'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='' WHERE name='cookiedomain'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='/' WHERE name='cookiepath'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='".$MAIN['SITEEMAIL']."' WHERE name='adminemail'") or sqlerr(__FILE__, __LINE__);
                mysql_query("UPDATE ".TABLE_PREFIX."settings SET value='mailto:".$MAIN['SITEEMAIL']."' WHERE name='contactlink'") or sqlerr(__FILE__, __LINE__);
                write_settings();     
                //MYBB SETUP
                rebuild_announce_settings();
        print ("
");
        ?>
        Desired username:
Allowed Characters: (a-z), (A-Z), (0-9)
Pick a password:
Enter password again:
$question = array(
'1' => 'What is your name of first school?',
'2' => 'What is your pet\'s name?',
'3' => 'What is your mothers maiden name?'
);

print("Question:");
?>
Enter hint answer:
This answer will be used to reset your password in case you forget it. Make sure its something you will not forget!

Email address:
---- None selected ----n";
$ct_r = mysql_query("SELECT id,name FROM countries ORDER BY name") or sqlerr(__FILE__, __LINE__);
while ($ct_a = mysql_fetch_array($ct_r))
$countries .= "n";
tr("Country", "", 1); ?>
Gender
Male Female
All Fields are required!


}
print("");
?>
this works fine for me.
Dingo38 8th February 2014 15:32

I would do as x360 says..I'm presuming looking at your parse error,your using php 5.3.I would imagine v3.1 was written in php 5.2.

BamBam0077 8th February 2014 17:55

Quote:

Originally Posted by Dingo38 (Post 43848)
I would do as x360 says..I'm presuming looking at your parse error,your using php 5.3.I would imagine v3.1 was written in php 5.2.

I use php version 5.4.7 installed fine for me :friend:

Dingo38 10th February 2014 02:45

Quote:

Originally Posted by BamBam0077 (Post 43852)
I use php version 5.4.7 installed fine for me :friend:

Ok,lets go a little deeper then..Line 210 on your index.php is

PHP Code:

\$config['dbtype'] = 'mysqli'

Possibly configuration isn't set correctly to start with.

BamBam0077 10th February 2014 10:56

my index.php works that I posted it. I never got any errors with my copy of TSSE 3.1 :ok: maybe his database doesn't support mysqli ?


All times are GMT +2. The time now is 04:34.

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