Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 1st November 2017, 09:37
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default ( New Era ) CMS TBDEV 2017
So if you don't like me then you will hate me till I stop breathing so never the less here we go again with another update on my project, to the arsewipes that still shit on there monitors better wipe it off as this is a overhaul concept just used the original files and updated etc.


bittorrent.php ( cms_main_system.php )
Code:
 function cms_db_conn($autoclean = false) {
    global $CMS_TBDEV_SE;

    mysqli_connect($CMS_TBDEV_SE['sqlhost'], $CMS_TBDEV_SE['sqluser'], $CMS_TBDEV_SE['sqlpass'], $CMS_TBDEV_SE['sqldb']) or mysqli_error(__FILE__, __LINE__);

    userlogin();

    if ($autoclean)
        register_shutdown_function("autoclean");
}

 function tbdev_settings_conn() {
   global $CMS_TBDEV_SETTINGS;    
   mysqli_connect($CMS_TBDEV_SETTINGS['sqlhost'], $CMS_TBDEV_SETTINGS['sqluser'], $CMS_TBDEV_SETTINGS['sqlhash'], $CMS_TBDEV_SETTINGS['sqldata']) or myqli_error(__FILE__, __LINE__);
   userlogin();
}

//----------------- DEFAULT CONFIG SETUP --------------------------------
function default_config_settings() {
    global /*$CURUSER,*/ $CMS_TBDEV_SE;
/*if ( isset($CURUSER) ) {*/
//--------- CMS BASIC SQL SETTINGS --------------------------------------
 $CMS_TBDEV_SE['sqlhost'] = ''.$_SERVER['SERVER_NAME'].'';
 $CMS_TBDEV_SE['sqluser'] = "root";
 $CMS_TBDEV_SE['sqlpass'] = "";
 $CMS_TBDEV_SE['sqldb']   = "alpha";
//-----------------------------------------------------------------------
/*} else {*/
//-----------------------------------------------------------------------
 $CMS_TBDEV_SE['sqlhost'] = ''.$_SERVER['SERVER_NAME'].'';     
 $CMS_TBDEV_SE['sqluser'] = 'root';
 $CMS_TBDEV_SE['sqlpass'] = '';
 $CMS_TBDEV_SE['sqldb']   = 'alpha';
/*}*/
//-----------------------------------------------------------------------
 define('SQL_DEBUG',2);
 define('TIME_NOW',time());
 define('UC_USER',0);
 define('UC_POWER_USER',1);
 define('UC_VIP',2);
 define('UC_UPLOADER',3);
 define('UC_MODERATOR',4);
 define('UC_ADMINISTRATOR',5);
 define('UC_SYSOP',6);
 define('TBVERSION','TBDev_2009_svn');
 define('TBDEV_DIR',dirname(__FILE__).DIRECTORY_SEPARATOR);
 define('CMS_ROOT_PATH',realpath(TBDEV_DIR.'..'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR);
//-----------------------------------------------------------------------
 $CMS_TBDEV_SE['time_adjust'] =  0;
 $CMS_TBDEV_SE['time_offset'] = '0'; 
 $CMS_TBDEV_SE['time_use_relative'] = 1;
 $CMS_TBDEV_SE['time_use_relative_format'] = '{--}, h:i A';
 $CMS_TBDEV_SE['time_joined'] = 'j-F y';
 $CMS_TBDEV_SE['time_short'] = 'jS F Y - h:i A';
 $CMS_TBDEV_SE['time_long'] = 'M j Y, h:i A';
 $CMS_TBDEV_SE['time_tiny'] = '';
 $CMS_TBDEV_SE['time_date'] = '';
 $CMS_TBDEV_SE['site_online'] = 1;
 $CMS_TBDEV_SE['tracker_post_key'] = 'lsdflksfda4545frwe35@kk';
 $CMS_TBDEV_SE['max_torrent_size'] = 1000000;
 $CMS_TBDEV_SE['announce_interval'] = 60 * 30;
 $CMS_TBDEV_SE['signup_timeout'] = 86400 * 3;
 $CMS_TBDEV_SE['minvotes'] = 1;
 $CMS_TBDEV_SE['max_dead_torrent_time'] = 6 * 3600;
 $CMS_TBDEV_SE['maxusers'] = 1000;
 $CMS_TBDEV_SE['files_dir'] = CMS_ROOT_PATH . '/cloud/files/shared';  
 $CMS_TBDEV_SE['announce_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/announce.php';
 $CMS_TBDEV_SE['baseurl'] = 'https://' . $_SERVER["SERVER_NAME"];
 $CMS_TBDEV_SE['site_email'] = 'noreply@'.$_SERVER['SERVER_NAME'].'';
 $CMS_TBDEV_SE['site_name'] = "Bombed Away";
 $CMS_TBDEV_SE['language'] = 'en';
 $CMS_TBDEV_SE['char_set'] = 'UTF-8';
 $CMS_TBDEV_SE['msg_alert'] = 0;
 $CMS_TBDEV_SE['autoclean_interval'] = 900;
 $CMS_TBDEV_SE['sql_error_log'] = CMS_ROOT_PATH.'/cloud/files/logs/'.date("M_D_Y").'.txt';
 $CMS_TBDEV_SE['pic_base_url'] = "./pic/";
 $CMS_TBDEV_SE['stylesheet'] = "./1.css";
 $CMS_TBDEV_SE['readpost_expiry'] = 14*86400;
 $CMS_TBDEV_SE['av_img_height'] = 100;
 $CMS_TBDEV_SE['av_img_width'] = 100;
 $CMS_TBDEV_SE['allowed_ext'] = array('image/gif', 'image/png', 'image/jpeg');
}
Config.php ( cms_website_settings.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$
|   $URL$
+------------------------------------------------
*/
require_once("include/cms_main_system.php");
if ( isset($CMS_TBDEV_BASE) ) {
 default_config_settings();
} else {
//----------------------------------------------------------------------- 
if ( isset($CMS_CUR_USER) ) {
 tbdev_settings_conn();    
//--------- CMS BASIC SQL SETTINGS --------------------------------------
 $CMS_TBDEV_SE['sqlhost'] = ''.$_SERVER['SERVER_NAME'].'';
 $CMS_TBDEV_SE['sqluser'] = "root";
 $CMS_TBDEV_SE['sqlpass'] = "";
 $CMS_TBDEV_SE['sqldb']   = "alpha";    
//---------- CMS SETTINGS SQL SETTINGS ----------------------------------
 $CMS_TBDEV_SETTINGS['sqlhost'] = ''.$_SERVER['SERVER_NAME'].'';
 $CMS_TBDEV_SETTINGS['sqluser'] = "root";
 $CMS_TBDEV_SETTINGS['sqlhash'] = "";
 $CMS_TBDEV_SETTINGS['sqldata'] = "alpha_settings";
//-----------------------------------------------------------------------
// if you wanted more database connections then I strongly suggest you
// learn before you go ahead as I know from personal experience you
// must know what your doing else your stuck so learn before you brag
// to me about ya bullshit.
//----------------- CMS TBDEV SE ---------------------------------------- 
 $CMS_TBDEV_SE['time_adjust'] = $CMS_TBDEV_SETTINGS['time_adjust'];
 $CMS_TBDEV_SE['time_offset'] = ''.$CMS_TBDEV_SETTINGS['time_offset'].'';
 $CMS_TBDEV_SE['time_use_relative'] = $CMS_TBDEV_SETTINGS['time_use_relative'];
 $CMS_TBDEV_SE['time_use_relative_format'] = ''.$CMS_TBDEV_SETTINGS['time_use_relative_format'].'';
 $CMS_TBDEV_SE['time_joined'] = ''.$CMS_TBDEV_SETTINGS['time_joined'].'';
 $CMS_TBDEV_SE['time_short'] = ''.$CMS_TBDEV_SETTINGS['time_joined'].'';
 $CMS_TBDEV_SE['time_long'] = ''.$CMS_TBDEV_SETTINGS['time_long'].'';
 $CMS_TBDEV_SE['time_tiny'] = ''.$CMS_TBDEV_SETTINGS['time_tiny'].'';
 $CMS_TBDEV_SE['time_date'] = ''.$CMS_TBDEV_SETTINGS['time_date'].'';
 $CMS_TBDEV_SE['site_online'] = $CMS_TBDEV_SETTINGS['site_online'];
 $CMS_TBDEV_SE['tracker_post_key'] = ''.$CMS_TBDEV_SETTINGS['tracker_post_key'].'';
 $CMS_TBDEV_SE['max_file_size'] = $CMS_TBDEV_SETTINGS['max_file_size'];
 $CMS_TBDEV_SE['cms_announce_interval'] = $CMS_TBDEV_SETTINGS['cms_announce_interval'];
 $CMS_TBDEV_SE['timeout_signup'] = $CMS_TBDEV_SETTINGS['timeout_signup'];
 $CMS_TBDEV_SE['votes_min'] = $CMS_TBDEV_SETTINGS['votes_min'];
 $CMS_TBDEV_SE['file_max_dead_time'] = $CMS_TBDEV_SETTINGS['file_max_dead_time'];
 $CMS_TBDEV_SE['cms_max_users'] = $CMS_TBDEV_SETTINGS['cms_max_users']; 
 }
}
?>
cms_website_settings.sql
Code:
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 01, 2017 at 08:17 AM
-- Server version: 10.1.24-MariaDB
-- PHP Version: 7.1.6

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `alpha`
--

-- --------------------------------------------------------

--
-- Table structure for table `cms_website_settings`
--

CREATE TABLE `cms_website_settings` (
  `cms_time_adjust` smallint(1) NOT NULL DEFAULT '0',
  `cms_time_offset` smallint(1) NOT NULL DEFAULT '0',
  `cms_time_use_relative` smallint(1) NOT NULL DEFAULT '1',
  `cms_time_use_relative_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '{--}, h:i A',
  `cms_time_joined` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'j-F y',
  `cms_time_short` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'jS F Y - h:i A',
  `cms_time_long` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'M j Y, h:i A',
  `cms_time_tiny` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cms_time_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cms_site_online` smallint(1) NOT NULL DEFAULT '1',
  `cms_tracker_post_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0692f819558061907dd6f3b39a031b0f8c92c8ee',
  `cms_max_torrent_size` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1000000',
  `cms_announce_interval` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '60 * 30',
  `cms_signup_timeout` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '86400 * 3',
  `cms_min_votes` smallint(1) NOT NULL DEFAULT '1',
  `cms_max_dead_torrent_time` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '6 * 3600',
  `cms_max_users` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1000',
  `cms_files_path` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'CMS_ROOT_PATH."/cloud/files/shared',
  `cms_announce_url` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'https://".$_SERVER["SERVER_NAME"]."/announce.php',
  `cms_base_url` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'https://".$_SERVER["SERVER_NAME"]',
  `cms_site_email` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'noreply@".$_SERVER["SERVER_NAME"]',
  `cms_site_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Bombed Away',
  `cms_site_language` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'en',
  `cms_char_set` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'UTF-8',
  `cms_msg_alert` smallint(1) NOT NULL DEFAULT '0',
  `cms_autoclean_interval` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '900',
  `cms_sql_error_log` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'CMS_ROOT_PATH."/cloud/files/logs/".date("D_M_Y").txt',
  `cms_image_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'CMS_ROOT_PATH."/cloud/files/images/',
  `cms_stylesheet` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'CMS_ROOT_PATH."/css/mainskin.css',
  `cms_read_post_expiry` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '14*86400',
  `cms_avatar_height` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '150',
  `cms_avatar_width` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '150',
  `cms_allowed_ext` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'array("image/gif","image/jpeg","image/png")'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `cms_website_settings`
--
ALTER TABLE `cms_website_settings`
  ADD PRIMARY KEY (`cms_time_adjust`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
now I have yet to test the cms side of this I just got it all sorted today so if you run into any errors remember to read your error log before you go blasting ya shit as I don't run into any issues if you have not been monitoring my framework then you will have to change $CMS_CUR_USER back to $CURUSER till it hits ya on the head how I changed it to manage this concept yo don't be foolish just know I can help just not active online as much currently got to many mental issues to deal with ya bullshit
Reply With Quote
Reply

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