Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Installer for tt version 2.0.7
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-07-23 14:22:53
Not sure if ts as made 1 yet but this is just standard this is and installer it will automatically upload ur database (u must 1st edit the backend/mysql.php with ur db details) and add ur user account

See screen shots





[size=18px]Please note this is not a full installer it is a temp 1 (@ts if u want to remove this cause u have ur own that is fine not sure if u have got anything yet [/size] :D [size=18px])[/size]

[size=14px]This is the decoded version[/size]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5101"]installer.rar[/url]
installer.png
installer.png
user.png
user.png
installer.rar
Download
Unknown User
2011-07-23 15:10:46
As far as im aware torrentialstorm hasnt made any however it was pointless to encode the script has torrenttrader is open source so it wouldnt be released in the condition it is, if u check the english.php people have made changes and there username was kept there and i believe they should stay to show our appreciation for what they have contributed, if your installer wasnt encoded and torrentialstorm was too add it he would let you have your username there, any files i change in the svn i dont add my name to it is automatically added by the system  has the SVN has a sort of blame tool which is good to track which developer edited a file. Even the blocks files have the original coders username there

/////////////////////////////////////////////////

// blocks-edit.php //

// ------------------------------------------- //

// (c)TorrentTrader (www.torrenttrader.org) //

// ------------------------------------------- //

// coded by elegor //

// version 1.0.R2 (02/10/2007) //

// compatible with TTv2 //

// ------------------------------------------- //

// under GPL-License   //

/////////////////////////////////////////////////


^ At some stage that will be changed but for sure no doubt his username will stay in the file.
Unknown User
2011-07-23 16:30:00
<?php

define('index',true,false);

session_start();



include('version.inc.php');

if(file_exists('install_lock')) include('install_lock');

if((isset($install_lock)) && (!isset($_SESSION['install']))) {

$step = "logon";

} else {

$step = $_GET['step'];

if($step == "") {

$step = 0;

}

}

include('version.inc.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>

<title>Basslinebeats Installer</title>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" href="foz.css" type="text/css" media="screen,projection" />

</head>



<body>

<div id="container" >



<div id="header">

<h1>Torrent-Trader Installer</h1>

<h2>Version <?=$software['version']; ?> Installation</h2>

</div>



<div id="navigation">

<ul>

<li<? if($step == 0) echo ' class="selected"'; ?> ><a>Intro</a></li>

<li<? if($step == 1) echo ' class="selected"'; ?> ><a>Inserting Database</a></li>

<li<? if($step == 2) echo ' class="selected"'; ?> ><a>Create admin account</a></li>

<li<? if($step == 3) echo ' class="selected"'; ?> ><a>Finish :)</a></li>



</ul>

</div>



<div id="content">

<?php

include_once('install_pages/' . $step . '.php');

?></div>

<div id="subcontent"></div>



<div id="footer">

<p>&copy; <? echo date("Y"); ?> <a href="http://www.basslinebeats.co.uk">Basslinebeats Products</a> Foz (Fozshell) </p>

</div>



</div>

</body>

</html>


Look familiar?
Unknown User
2011-07-23 16:32:24
ok sorry about that i have always encoded my files as i have learnt in the past peeps have taken a lot of my work and passed it of as there own as i code not just for tt i also do xbtit and have made some for ipb

I will post the decoded version today :D
Unknown User
2011-07-23 16:35:32
i think you need a new encoder because all your files decode without any problems except for two of them. pointless to encode such a small mod. other than not nice mod. we can post the decoded version for you if you want lol
Unknown User
2011-07-23 16:44:21
sorry ts i have now posted the decoded version
Unknown User
2011-07-24 11:45:28
Nice work salfordscripteR i was about to post my version of that today but u beat me 2 it lol...

:angry:
Unknown User
2011-07-24 15:31:01
that is true m8 i dont even have a torrent site but i enjoy codeing so this is what i do lol like i said i also create mods for xbtit wich they use xml hacks...hopefully some 1 will make a hack uploader for tt :angry:
Unknown User
2011-07-24 18:19:44
Looking at xbtit it wouldnt actually be that hard to port over, i would replace the fopen, fclose functions with file_get_contents and file_put_contents, i would just remove the ftp functions as i dont feel there nesscary as no one has ever had problems with the block modules for torrenttrader. Some other stuff that can be removed is the conversion of comment tags from // to <!-- --> as at current we do not use a template engine, how ever it is a possiblilty torrenttrader will use smarty for v3 base. Apart from that i don't see anything that would majorily disrupt torrenttrader, it is only worth converting if it will actually be used in the source code, i do have write permissions for the development center of torrenttrader but as TorrentialStorm is the main developer i feel he should make the descions.
Unknown User
2011-07-24 18:49:01
after working with wordpress plugins i like their setup a bit on how to do plugins but there will be some people who will not like it just like some people like smarty but i hate smarty lol. an mvc probably would be best for frame but may be to advanced for some people. only problem with changing to any template is that it is something new for the people doing mods to learn and for some out there it may put them off on writing new mods.
Unknown User
2011-07-24 19:00:43
Maybe a poll should be made like torrentialstorm did with the languages.
Unknown User
2011-07-24 20:08:52
To make it work with the database is easy in dbconn under unset put

$GLOBALS["site_config"] = loadConfig();

and at bottom of file use something like this for the function

function loadConfig() {

 $return = array();

 $res = mysql_query("SELECT * FROM `configuration`");

 while ($row = mysql_fetch_assoc($res))

 $return[$row['key']] = $row['val'];

  return $return;

}
for your configuration table something like this




CREATE TABLE IF NOT EXISTS `configuration` (

 `key` varchar(100) NOT NULL DEFAULT '',

 `val` text NOT NULL,

 PRIMARY KEY (`key`),

 UNIQUE KEY `key` (`key`)

) ENGINE=MyISAM;





and a quick way to import would be of course





<?php 

 

  require_once("backend/functions.php");

  dbconn();



  foreach ($site_config as $k => $v) {

 $key = sqlesc($k);

 $val  = sqlesc($v);

 mysql_query("INSERT INTO `configuration` (`key`, `val`) VALUES ($key, $val)");

  }

?>



then u would of course u would need to build admin part and remove the config.php from being included.
Unknown User
2011-07-26 21:51:53
Great installer so far... ran into a few issues with it installing into a, for example, dev folder. I would suggest adding a field for a user to define what root folder they want to use.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728