Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > TBDev
Reply
  #1  
Old 20-09-17, 16:59
Revise's Avatar
Revise Revise is offline
Member
 
Join Date: Sep 2017
Japan
Posts: 5
Smile Project
You Must Know How To Program/Edit
Blox_System.php
Code:
<?php
/*
+------------------------------------------------
|   TBDev.net BitTorrent Tracker PHP
|   =============================================
|   by CoLdFuSiOn
|   (c) 2003 - 2009 TBDev.Net
|   http://www.tbdev.net
|   =============================================
|   svn: http://sourceforge.net/projects/tbdevnet/
|   Licence Info: GPL
+------------------------------------------------
|   $Date$
|   $Revision$
|   $Author$ Elite Solutions
|   $URL$
+------------------------------------------------
*/
///////// Rules Block System  
function cms_general_rules_blocks() {
     global $cms_basic_lang;       
  echo "<div style='margin-top: 10px;margin-left: 120px;width: 75%;'>";
  echo cms_frame_begin("{$cms_basic_lang['cms_general_rules_header']}");
  echo "{$cms_basic_lang['cms_general_rules_body']}";
  echo cms_frame_end();
}

function cms_promote_ranks_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_promote_ranks_rules_header']}");
  echo "{$cms_basic_lang['cms_promote_ranks_rules_body']}";
  echo cms_frame_end();
}

function cms_first_line_support_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_first_line_support_rules_header']}");    
  echo "{$cms_basic_lang['cms_first_line_support_rules_body']}";     
  echo cms_frame_end();
}

function cms_news_editor_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_scene_editor_rules_header']}");
  echo "{$cms_basic_lang['cms_scene_editor_rules_body']}";
  echo cms_frame_end();
}
     
function cms_scene_team_rules_blocks() {
     global $cms_basic_lang;
  //--> cms_begin_frame();
  echo cms_frame_begin("{$cms_basic_lang['cms_scene_team_rules_header']}");
  echo "{$cms_basic_lang['cms_scene_team_rules_body']}";
  //--> $cms_8mile_lang['cms_elite_squad'] -> Lost Art? [=
  echo cms_frame_end();     
}

function cms_scene_moderator_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_scene_moderator_rules_header']}");
  echo "{$cms_basic_lang['cms_scene_moderator_rules_body']}";
  echo cms_frame_end();
}

function cms_scene_super_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_scene_super_rules_header']}");
  echo "{$cms_basic_lang['cms_scene_super_rules_body']}";
  echo cms_frame_end();
} 

function cms_scene_administrator_rules_blocks() {
     global $cms_basic_lang;     
     echo cms_frame_begin("{$cms_basic_lang['cms_scene_administrator_rules_header']}");
    echo "{$cms_basic_lang['cms_scene_administrator_rules_body']}";
    echo cms_frame_end();
}    

function cms_forum_rules_blocks() {
    global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_forum_rules_header']}");
  echo "{$cms_basic_lang['cms_forum_rules_body']}";
  echo cms_frame_end();
}

function cms_ratio_rules_blocks() {
     global $cms_basic_lang;
 //-- Ratio Policy Addon Feature
  echo cms_frame_begin("{$cms_basic_lang['cms_ratio_rules_header']}");
  echo "{$cms_basic_lang['cms_ratio_rules_body']}";
  echo cms_frame_end();
 //-- New Addon Feature
}

function cms_hit_and_run_rules_blocks() {
     global $cms_basic_lang;
  echo cms_frame_begin("{$cms_basic_lang['cms_hit_and_run_rules_header']}");
  echo "{$cms_basic_lang['cms_hit_and_run_rules_body']}";
  echo cms_frame_end(); 
}
 
function cms_request_rules_blocks() {
     global $cms_basic_lang;
//-- Request Addon Feature 
  echo cms_frame_begin("{$cms_basic_lang['cms_request_rules_header']}");
  echo "{$cms_basic_lang['cms_request_rules_body']}";
  echo cms_frame_end();
}

function cms_download_rules_blocks() {
    global $cms_basic_lang;
//-- New Addon Feature
  echo cms_frame_begin("{$cms_basic_lang['cms_downloading_rules_header']}");
  echo "{$cms_basic_lang['cms_downloading_rules_body']}";
  echo cms_frame_end();
}
?>
Rules.php
Code:
<?php
/*
+------------------------------------------------
|   TBDev.net BitTorrent Tracker PHP
|   =============================================
|   by CoLdFuSiOn
|   (c) 2003 - 2009 TBDev.Net
|   http://www.tbdev.net
|   =============================================
|   svn: http://sourceforge.net/projects/tbdevnet/
|   Licence Info: GPL
+------------------------------------------------
|   $Date$
|   $Revision$
|   $Author$ Elite Solutions
|   $URL$
+------------------------------------------------
*/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."bittorrent.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."html_functions.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."user_functions.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."blox_system.php");
dbconn(); //-- new_class_system > new_class_names > new_class_colors [=
 if ( isset($SEGA_CMS_USER) ) {
$cms_basic_lang = array_merge( load_language('global'), load_language('rules'));      
echo cms_custom_header("{$cms_basic_lang['cms_rules_head_notice']}");
 //whooo who, who do you think you are?, trying to outsmart another dinosaur.
       $cms_basic_check = true; // cms_sql_query("SELECT cms_basic_check FROM admin_tools") or mysqli_error(__FILE__, __LINE__);
    if ( isset($cms_basic_check) == true ) {
    //if ( isset($CURUSER['id']) < 25 && isset($CURUSER['class_name']) >= "CMS Basic Member") {
     if ( isset($SEGA_CMS_USER['cms_general_rules_blocks']) == "active" ) {
       
       echo cms_general_rules_blocks();
    }
    //} first_line_support_rules_blocks
    }


    if ( isset($SEGA_CMS_USER['staff_id']) > 0 && isset($SEGA_CMS_USER['cms_moderator_rules_blocks']) == "active" ) {
     
     echo cms_promote_ranks_rules_blocks();
    }      
//    if ( isset($CURUSER['class']) == CMS_Scene_Super ) {
//     return $var->cms_first_line_blocks();      
//    }
//////////////////////////////////////
// $cms_objective_subject = new wrap();
// $cms_objective_subject->cmssubjectname = "concept";
/////////////////////////////////////////////////////
// class wrap {    
// public function raparoundme() {
    if ( isset($SEGA_CMS_USER['cms_first_line_rules_blocks']) == 1 && 2 ) {

      echo cms_first_line_support_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_editor_rules_blocks']) == 1 && 2 ) {    
      
      echo cms_news_editor_rules_blocks();
    } 
    
    if ( isset($SEGA_CMS_USER['cms_scene_team_rules_blocks']) == 1 && 2 ) {
      
      echo cms_scene_team_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_moderator_rules_blocks']) == 1 && 2 ) {
      
      echo cms_scene_moderator_rules_blocks();
    }

    if ( isset($SEGA_CMS_USER['cms_scene_super_rules_blocks']) == 1 && 2) {    
     
     echo cms_scene_super_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_administrator_rules_blocks']) == 1 && 2) {
      
     echo cms_scene_administrator_rules_blocks();      
    }
// }
//}
// return wrap($var);
    
    if ( isset($SEGA_CMS_USER['cms_forum_rules_blocks']) == 1 && 2 ) {
        
     echo cms_forum_rules_blocks();    
    }
    
    if ( isset($SEGA_CMS_USER['cms_ratio_rules_blocks']) == 1 || 2 ) {
     
     echo cms_ratio_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_hit_and_run_rules_blocks']) == 1 || 2 ) {
        
     echo cms_hit_and_run_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_request_rules_blocks']) == 3 ) {
     
     echo cms_request_rules_blocks();
    }
      
    if ( isset($SEGA_CMS_USER['cms_download_rules_blocks']) == 4 ) {
    
     echo cms_download_rules_blocks();
    }
    
//-- you better fucking love me, [=  
    
     echo cms_frame_begin("{$cms_basic_lang['cms_uploading_rules_header']}");
     echo "{$cms_basic_lang['cms_uploading_rules_body']}";
     echo cms_frame_end();
    
    //echo end_main_frame();
     echo "</div><br />";
    ////////////////////
    // when love hits like a bullet I don't question I salute, fortune cookie,
    // if thy does not then thy shall quit, fire and miss you strongly suggest,
    // soldiers die for thy strongly love, never question thus love for mistakes are for heaven.
    //////////////////////////////  
     echo  cms_forum_footer();
}    
?>


Rules_Lang.php

Code:
/*
+------------------------------------------------
|   TBDev.net BitTorrent Tracker PHP
|   =============================================
|   by CoLdFuSiOn
|   (c) 2003 - 2009 TBDev.Net
|   http://www.tbdev.net
|   =============================================
|   svn: http://sourceforge.net/projects/tbdevnet/
|   Licence Info: GPL
+------------------------------------------------
|   $Date$
|   $Revision$
|   $Author$ Elite Solutions
|   $URL$
+------------------------------------------------
*/ Add More / Check Original Rules Lang File [=
$cms_basic_lang = array( 'cms_rules_head_notice' => "Rules");
?>
Enjoy
Reply With Quote
  #2  
Old 20-09-17, 17:04
DND's Avatar
DND DND is offline
Support
 
Join Date: Dec 2008
Posts: 974
Default
Project what ?
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. TBDev Support
  5. Gazelle Support Install
  6. TSSE Install Support
Reply With Quote
  #3  
Old 05-10-17, 15:01
Revise's Avatar
Revise Revise is offline
Member
 
Join Date: Sep 2017
Japan
Posts: 5
Default
Code:
<?php
//-- Credit 208
function write_log($text){
    $text = sqlesc($text);
    $added = sqlesc(get_date_time());
    SQL_Query_exec("INSERT INTO log (added, txt) VALUES($added, $text)");
}
//--- Credit 09
function write_log($text)
{
  $text = sqlesc($text);
  $added = TIME_NOW;
  mysqli_query("INSERT INTO sitelog (added, txt) VALUES($added, $text)") or mysqli_error(__FILE__, __LINE__);
}
//-- Credit 208
function langlist() {
    $ret = array();
    $res = SQL_Query_exec("SELECT id, name, image FROM torrentlang ORDER BY sort_index, id");
    while ($row = mysql_fetch_assoc($res))
        $ret[] = $row;
    return $ret;
}
//-- Credit 208
function genrelist() {
    $ret = array();
    $res = SQL_Query_exec("SELECT id, name, parent_cat FROM categories ORDER BY parent_cat ASC, sort_index ASC");
    while ($row = mysql_fetch_assoc($res))
        $ret[] = $row;
    return $ret;
}
//-- Credit 09
function genrelist() {
    $ret = array();
    $res = mysqli_query("SELECT id, name FROM categories ORDER BY name") or mysqli_error(__FILE__, __LINE__);
    while ($row = mysqli_fetch_array($res))
        $ret[] = $row;
    return $ret;
}
?>
Code:
<?php

$cms_site_conf['sitename_title'] = "AstroBoy";
$cms_site_conf['alpha_version'] = '2-svn';
$cms_site_conf['website_dev_tech'] = "no@emo.co.uk";
$cms_site_conf['website_domain'] = "https://127.0.0.1/demo/";

function deleteaccount($userid) 
{
    SQL_Query_exec("DELETE FROM users WHERE id = $userid");
    SQL_Query_exec("DELETE FROM warnings WHERE userid = $userid");
    SQL_Query_exec("DELETE FROM ratings WHERE user = $userid");
    SQL_Query_exec("DELETE FROM peers WHERE userid = $userid");
    SQL_Query_exec("DELETE FROM completed WHERE userid = $userid"); 
    SQL_Query_exec("DELETE FROM reports WHERE addedby = $userid");
    SQL_Query_exec("DELETE FROM reports WHERE votedfor = $userid AND type = 'user'");
    SQL_Query_exec("DELETE FROM forum_readposts WHERE userid = $userid");
    SQL_Query_exec("DELETE FROM pollanswers WHERE userid = $userid");
}

?>
New Conf Fresh Outta Ya Spaghetti [=

Last edited by Revise; 05-10-17 at 15:20.
Reply With Quote
  #4  
Old 05-10-17, 21:08
DND's Avatar
DND DND is offline
Support
 
Join Date: Dec 2008
Posts: 974
Default
its the same as u-232, you just changed names.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. TBDev Support
  5. Gazelle Support Install
  6. TSSE Install Support
Reply With Quote
  #5  
Old 07-10-17, 09:42
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 233
Default
I never changed names it is based on tbdev code not u232 ask mindless dipshit, last punk to spray false info better get with limpbizkit.
__________________
"Iíve got a fire in me,
Thereís so much I have to see,
From where I was before,
To how far Iíve yet to go"
Reply With Quote
  #6  
Old 07-10-17, 10:02
Revise's Avatar
Revise Revise is offline
Member
 
Join Date: Sep 2017
Japan
Posts: 5
Default
Code:
//---
function cms_staff_list() {
    global $cms_basic_lang;
    
    echo "<div style='margin-left: 320px;'><text><h1><strong>{$cms_basic_lang['staff_text']}</strong></h1></text></div>";
  
  //function cms_scene_administrator() {
    //  global $cms_basic_lang;
    // can be utilized in a cms concept think outside the shoebox [=
    echo "<div style='margin-left: 1px;background-color: #353939;width: 500px;'>&nbsp;{$cms_basic_lang['sysops_header']}</div>";
    //$cms_basic_sysop = mysqli_query("SELECT id,username FROM staff_list ORDER BY id") or mysqli_error(__FILE__, __LINE__);
    echo "<div style='border: 1px solid #353939;height: 250px;width: 500px;'>Batman</div>";
  //} return cms_scene_administrator();
    //global $cms_basic_lang;
    echo isset($admin) ? DoStaff(UC_ADMINISTRATOR, "{$cms_basic_lang['header_admins']}") : DoStaff( UC_ADMINISTRATOR == false, "{$cms_basic_lang['header_admins']}");
    echo isset($mods) ? DoStaff($mods, "{$cms_basic_lang['header_mods']}") : DoStaff($mods=false, "{$cms_basic_lang['header_mods']}");
    echo isset($vips) ? DoStaff($vips, "{$cms_basic_lang['header_vips']}") : DoStaff($vips=false, "{$cms_basic_lang['header_vips']}");
} return cms_staff_list();
Bump: Originally Posted by Revise
Quote:
Originally Posted by Fynnon
Hi, please provide a detailed explanation of what this is:

Project - Bravo List Project - Bravo List

otherwise i will delete this topi since i do not know what is it for and how to install it.

thanks


Blox_System.php goes inside blocks folder then you pin it inside your bittorrent.php like require_once()


Rules.php goes inside /var/www/

simple bro?
BamBam0077 [=

Last edited by Revise; 07-10-17 at 10:48. Reason: $cms_basic_lang = array( instead of $lang = array(
Reply With Quote
  #7  
Old 07-10-17, 13:15
puppy's Avatar
puppy puppy is offline
Member
 
Join Date: Feb 2016
P2P
Posts: 13
Default
Code:
<?php
/*
+------------------------------------------------
|   TBDev.net BitTorrent Tracker PHP
|   =============================================
|   by CoLdFuSiOn
|   (c) 2003 - 2009 TBDev.Net
|   http://www.tbdev.net
|   =============================================
|   svn: http://sourceforge.net/projects/tbdevnet/
|   Licence Info: GPL
+------------------------------------------------
|   $Date$
|   $Revision$
|   $Author$ Elite Solutions
|   $URL$
+------------------------------------------------
*/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."bittorrent.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."html_functions.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."include".DIRECTORY_SEPARATOR."user_functions.php");
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."blox_system.php");
dbconn(); //-- new_class_system > new_class_names > new_class_colors [=
 if ( isset($SEGA_CMS_USER) ) {
$cms_basic_lang = array_merge( load_language('global'), load_language('rules'));      
echo cms_custom_header("{$cms_basic_lang['cms_rules_head_notice']}");
 //whooo who, who do you think you are?, trying to outsmart another dinosaur.
       $cms_basic_check = true; // cms_sql_query("SELECT cms_basic_check FROM admin_tools") or mysqli_error(__FILE__, __LINE__);
    if ( isset($cms_basic_check) == true ) {
    //if ( isset($CURUSER['id']) < 25 && isset($CURUSER['class_name']) >= "CMS Basic Member") {
     if ( isset($SEGA_CMS_USER['cms_general_rules_blocks']) == "active" ) {
       
       echo cms_general_rules_blocks();
    }
    //} first_line_support_rules_blocks
    }


    if ( isset($SEGA_CMS_USER['staff_id']) > 0 && isset($SEGA_CMS_USER['cms_moderator_rules_blocks']) == "active" ) {
     
     echo cms_promote_ranks_rules_blocks();
    }      
//    if ( isset($CURUSER['class']) == CMS_Scene_Super ) {
//     return $var->cms_first_line_blocks();      
//    }
//////////////////////////////////////
// $cms_objective_subject = new wrap();
// $cms_objective_subject->cmssubjectname = "concept";
/////////////////////////////////////////////////////
// class wrap {    
// public function raparoundme() {
    if ( isset($SEGA_CMS_USER['cms_first_line_rules_blocks']) == 1 && 2 ) {

      echo cms_first_line_support_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_editor_rules_blocks']) == 1 && 2 ) {    
      
      echo cms_news_editor_rules_blocks();
    } 
    
    if ( isset($SEGA_CMS_USER['cms_scene_team_rules_blocks']) == 1 && 2 ) {
      
      echo cms_scene_team_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_moderator_rules_blocks']) == 1 && 2 ) {
      
      echo cms_scene_moderator_rules_blocks();
    }

    if ( isset($SEGA_CMS_USER['cms_scene_super_rules_blocks']) == 1 && 2) {    
     
     echo cms_scene_super_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_scene_administrator_rules_blocks']) == 1 && 2) {
      
     echo cms_scene_administrator_rules_blocks();      
    }
// }
//}
// return wrap($var);
    
    if ( isset($SEGA_CMS_USER['cms_forum_rules_blocks']) == 1 && 2 ) {
        
     echo cms_forum_rules_blocks();    
    }
    
    if ( isset($SEGA_CMS_USER['cms_ratio_rules_blocks']) == 1 || 2 ) {
     
     echo cms_ratio_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_hit_and_run_rules_blocks']) == 1 || 2 ) {
        
     echo cms_hit_and_run_rules_blocks();
    }
    
    if ( isset($SEGA_CMS_USER['cms_request_rules_blocks']) == 3 ) {
     
     echo cms_request_rules_blocks();
    }
      
    if ( isset($SEGA_CMS_USER['cms_download_rules_blocks']) == 4 ) {
    
     echo cms_download_rules_blocks();
    }
    
//-- you better fucking love me, [=  
    
     echo cms_frame_begin("{$cms_basic_lang['cms_uploading_rules_header']}");
     echo "{$cms_basic_lang['cms_uploading_rules_body']}";
     echo cms_frame_end();
    
    //echo end_main_frame();
     echo "</div><br />";
    ////////////////////
    // when love hits like a bullet I don't question I salute, fortune cookie,
    // if thy does not then thy shall quit, fire and miss you strongly suggest,
    // soldiers die for thy strongly love, never question thus love for mistakes are for heaven.
    //////////////////////////////  
     echo  cms_forum_footer();
}    
?>
__________________
http://www.scene-community.com
Reply With Quote
  #8  
Old 07-10-17, 16:33
Revise's Avatar
Revise Revise is offline
Member
 
Join Date: Sep 2017
Japan
Posts: 5
Default
Rules Remastered

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.Click the image to open in full size.

now you see what my code concept is for now do you understand this is an updated rules page hope you like it you will need to edit to fit within tbdev small tweaks nothing major
Reply With Quote
Reply

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 01:16. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.