Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 1st December 2012, 16:18
firefly's Avatar
firefly firefly is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 74
Default Anyone have the pre-time script for TBDEV '08
I'm looking for the pre-time/scene script for TBDEV '08, if anyone might have it please post it.


Thanks
__________________
Can install Gazelle
Reply With Quote
  #2  
Old 1st December 2012, 18:04
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
something like for DB

THEN YOU NEED TO ADD TO THE bittorrent.PHP


PHP Code:
  ALTER TABLE `torrentsADD `mtimetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
  
ALTER TABLE `torrentsADD `ctimetimestamp NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `pretimedatetime NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `afterpretext
Reply With Quote
  #3  
Old 1st December 2012, 22:16
firefly's Avatar
firefly firefly is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 74
Default
Quote:
Originally Posted by bill123 View Post
something like for DB

THEN YOU NEED TO ADD TO THE bittorrent.PHP


PHP Code:
  ALTER TABLE `torrentsADD `mtimetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
  
ALTER TABLE `torrentsADD `ctimetimestamp NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `pretimedatetime NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `afterpretext
That and the php
__________________
Can install Gazelle
Reply With Quote
  #4  
Old 1st December 2012, 22:58
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
make a file and add to root testingpre.php



PHP Code:
<?php

function getpre($name$type)
{
$pre['regexp'] = "|<tr><td>(.*)<td>(.*)<td>(.*)|";
$pre['url'] = "http://doopes.com/?cat=454647&lang=0&num=2&mode=0&from=&to=&exc=&inc=" $name "&opt=0";
$pre['file'] = file_get_contents($pre['url']);
preg_match($pre['regexp'], $pre['file'], $pre['matches']);
/**
* Types:
* 1 = Time
* 2 = Category
* 3 = Realesename
*/
return $pre['matches'][$type];
}
// Example:
print getpre("Kellys.Heroes.1970.WS.DVDRip.XVID.INT-WalMaRT"1);

?>
make a file and add to root test.php

PHP Code:
<? print($_SERVER["HTTP_HOST"]); ?>
will post rest latrs


@ bittorrrent.php

PHP Code:
  }
  
$q sql_query("select count(id) as num, YEAR(added) as year, MONTH(added) as month , DAY(added) as day FROM torrents  group by year,month,day ORDER BY day,month,year DESC") or print("error");
  while(
$amysql_fetch_assoc($q))
  
$split[$a["year"].$a["month"].$a["day"]] = $a["num"];
  while (
$row mysql_fetch_assoc($res)) {

  if (
$CURUSER['split'] == "yes" && isset($CURUSER)) {
  
/** Make some date varibles **/
  
$day_added $row['added'];
  
$day_show strtotime($day_added);
  
$thisdate date('Y-m-d',$day_show);

  
$numtorrents number_format(get_row_count("torrents""WHERE added LIKE '%".$thisdate." %'"));


  
/** If date already exist, disable $cleandate varible **/
  
if($thisdate==$prevdate){
  
$cleandate '';

  
/** If date does not exist, make some varibles **/
  
}else{
  
$day_added '  '.date('l j-M-Y'strtotime($row['added'])); // You can change this to something else
  //$cleandate = "<tr><td colspan=15 class=colhead><b>$day_added - $numtorrents torrent" . ($numtorrents > 1 ? "s" : "") . "</b></td></tr>\n"; // This also...
  
$num = isset($split[date("Ynj"$day_show)]) ? $split[date("Ynj"$day_show)] : 0;
  
$cleandate "<tr><td colspan=\"15\" class=\"colhead\"><b>$day_added (".$num." torrent".($num "s" "").")</b></td></tr>\n";
  }

  
/** Prevent that "torrents added..." wont appear again with the same date **/
  
$prevdate $thisdate;

  
$man = array(
  
'Jan' => 'January',
  
'Feb' => 'February',
  
'Mar' => 'March',
  
'Apr' => 'April',
  
'May' => 'May',
  
'Jun' => 'June',
  
'Jul' => 'July',
  
'Aug' => 'August',
  
'Sep' => 'September',
  
'Oct' => 'October',
  
'Nov' => 'November',
  
'Dec' => 'December'
  
);

  foreach(
$man as $eng => $ger){
  
$cleandate str_replace($eng$ger,$cleandate);
  }

  
$dag = array(
  
'Mon' => 'Monday',
  
'Tues' => 'Tuesday',
  
'Wednes' => 'Wednesday',
  
'Thurs' => 'Thursday',
  
'Fri' => 'Friday',
  
'Satur' => 'Saturday',
  
'Sun' => 'Sunday'
  
);

  foreach(
$dag as $eng => $ger){
  
$cleandate str_replace($eng.'day'$ger.'',$cleandate);
  }
  
/** If torrents not listed by added date **/
  
if ($row["sticky"] == "no")
  if(!
$_GET['sort'] && !$_GET['d']){
  echo 
$cleandate."\n";
  }
  } 

PHP Code:
ALTER TABLE `usersADD  `splitenum('yes','no'NOT NULL DEFAULT 'yes'

Last edited by wMan; 1st December 2012 at 23:25.
Reply With Quote
Reply

Tags
08 , pretime , script , tbdev

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:22. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.