$GLOBALS['config'] = array(
'mysql' => array(
'mysql_host' => 'localhost', //leave this as localhost if you are unsure
'mysql_user' => "name", //Username to connect
'mysql_pass' => "pass", //Password to connect
'mysql_db' => "name", //Database name
'ttversion' => '3.0', //DONT CHANGE THIS!
// Main Site Settings
'SITENAME' => 'TorrentTrader', //Site Name
'SITEEMAIL' => 'change@myemailsux.com', //Emails will be sent from this addressclass Config
{
public static function get($path = null)
{
if ($path) {
$config = $GLOBALS['config'];
$path = explode('/', $path);
foreach ($path as $bit) {
if (isset($config[$bit])) {
$config = $config[$bit];
}
}
return $config;
}
return $false;
}
}define("BACKEND", dirname(__FILE__));
$BACKEND = BACKEND;
include("/ttcore/helpers/exceptionhelper.php");
// Register custom exception handler
set_exception_handler("handleUncaughtException");
require_once("/config/config.php");
require_once("/ttcore/database/dbclass.php"); //Get MYSQL Connection Info
require_once("/ttcore/libraries/Config.Class.php"); //Get Site Settings and Vars ($site_config)
require_once("/ttcore/libraries/cache.php"); // Caching
require_once("/ttcore/libraries/mail.php"); // Mail functions
$this->cachedir = Config::get('mysql/cache_dir');$site_config = array();
$site_config['ttversion'] = '3.0'$site_config['ttversion']class config {
static ttversion = '3.0'config::ttversion //START THANKS\\\\
$thanksl = explode(",", $row['thanks']);
if class_user($CURUSER["username"] == class_user($row["username"]) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == class_user($CURUSER["username"]) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}
if (!$leftthanks2) {
$button='<br/><input type="button" value="Dire merci" id="refresh">';
} else {
$button='';
}
echo '<tr><td align="left"><b>Thanks by : </b></td><td><div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>
<script type="text/javascript">
var $s = jQuery.noConflict();
$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');
$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script></td></tr><br/>';
////END THANKS\\\\\ /* -- jquery hide --*/
.hide{
display:none;
}
.block{
width: 100px;
height:50px;
background-color:#cccccc;
text-align:center;
line-height:50px;
}
?>
<script type="text/javascript">
function show(elementId) {
document.getElementById("id1").style.display="none";
document.getElementById("id2").style.display="none";
document.getElementById("id3").style.display="none";
document.getElementById("id4").style.display="none";
document.getElementById("id5").style.display="none";
document.getElementById("id6").style.display="none";
document.getElementById("id7").style.display="none";
document.getElementById(elementId).style.display="block";
}
</script>
<button type="button" onclick="show('id1');">DETAILS</button>
<button type="button" onclick="show('id2');">RATING</button>
<button type="button" onclick="show('id3');">IMAGES</button>
<button type="button" onclick="show('id4');">FILES</button>
<button type="button" onclick="show('id5');">PEERLIST</button>
<button type="button" onclick="show('id6');">NFO</button>
<button type="button" onclick="show('id7');">COMMENTS</button>
<?php// start id7
echo "<div id=id7 style=display:none>";
// the code for first div id1 set to
// style=display:block
echo "</div>";
//end id7

<tr>
<td width="26"><a href="javascript:SmileIT(':gigg','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/giggle.png" border="0" alt=':|' title=':|' /></a></td>
<td width="26"><a href="javascript:SmileIT(':rofl','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/roflamo.png" border="0" alt='O:-D' title='0:-D' /></a></td>
<td width="26"><a href="javascript:SmileIT(':slep','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/sleep.png" border="0" alt=':-@' title=':-@' /></a></td>
<td width="26"><a href="javascript:SmileIT(':thum','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/thumbsup.png" border="0" alt=':o)' title=':o)' /></a></td>
</tr>
<tr>
<td width="26"><a href="javascript:SmileIT(':0_0','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/zpo.png" border="0" alt=':|' title=':|' /></a></td>
<td width="26"><a href="javascript:SmileIT(':poop','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/poop.png" border="0" alt='O:-D' title='0:-D' /></a></td>
<td width="26"><a href="javascript:SmileIT(':spechles','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/speechless.png" border="0" alt=':-@' title=':-@' /></a></td>
<td width="26"><a href="javascript:SmileIT(':unsure','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/unsure.png" border="0" alt=':o)' title=':o)' /></a></td>
</tr>
<tr>
<td width="26"><a href="javascript:SmileIT(':mad','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/mad.png" border="0" alt=':|' title=':|' /></a></td>
<td width="26"><a href="javascript:SmileIT(':roll','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/rolleyes.png" border="0" alt='O:-D' title='0:-D' /></a></td>
<td width="26"><a href="javascript:SmileIT(':sick','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/sick.png" border="0" alt=':-@' title=':-@' /></a></td>
</tr>
<tr>
<td width="26"><a href="javascript:SmileIT(':crylol','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/crylaugh.png" border="0" alt=':|' title=':|' /></a></td>
<td width="26"><a href="javascript:SmileIT(':confos','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/confound.png" border="0" alt='O:-D' title='0:-D' /></a></td>
<td width="26"><a href="javascript:SmileIT(':fire','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/fire.png" border="0" alt=':-@' title=':-@' /></a></td>
</tr> ":gigg" => "giggle.png",
":rofl" => "roflmao.png",
":slep" => "sleep.png",
":thum" => "thumbsup.png",
":0_0" => "zpo.png",
":poop" => "poop.png",
":spechles" => "speechless.png",
":unsure" => "unsure.png",
":mad" => "mad.png",
":roll" => "rolleyes.png",
":sick" => "sick.png",
":crylol" => "crylaugh.png",
":confos" => "confound.png",
":fire" => "fire.png",