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
Simple Change Siteurl If Https [TT v2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2019-01-04 16:16:04
All credit to: ArticWolf

Ok this is an simple mod to change the siteurl if using https
in thory should fix issues while browsers stating an mix of secure data and insecure data.
in confg.php

change:
$site_config['SITEURL'] = 'http://changemydomain.com';  //Main Site URL changemydomain.com to well your domain

To
if($_SERVER['SERVER_PORT'] != '443') 
   
   $site_config['SITEURL'] = 'http://changemydomain.com';  //Main Site URL changemydomain.com to well your domain
   
   else
   
   $site_config['SITEURL'] = 'https://changemydomain.com'; //Main Site URL changemydomain.com to well your domain


after that add:
$site_config['TSITEURL'] = 'http://changemydomain.com'; //Main Tracker URL


now farther down change:
$site_config['PASSKEYURL'] =  "$site_config[sITEURL]/announce.php?passkey=%s"; // Announce URL to use for passkey

To
$site_config['PASSKEYURL'] =  "$site_config[TSITEURL]/announce.php?passkey=%s"; // Announce URL to use for passkey


keep the old url for the announce_list aka
$site_config['announce_list'] = "http://mydomain/announce.php";
2019-02-25 02:07:10
I may be crazy, but some of that code posted above doesn't make much sense. It should be as simple as this, but I have never tested it. I would like to know where the "TSITEURL" comes from
if($_SERVER['SERVER_PORT'] != '443')             //settings for SSL if you have a certificate
   $site_config['SITEURL'] = 'http://site.com';  //Main Site URL without HTTPS
   else
   $site_config['SITEURL'] = 'https://site.com'; //Main Site URL for HTTPS
 
$site_config['announce_list'] = "$site_config[SITEURL]/announce.php"; //seperate via comma
$site_config['PASSKEYURL'] =  "$site_config[SITEURL]/announce.php?passkey=%s"; // Announce URL to use for passkey

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-02-25 09:18:49
mate look at my v3 its done as it should be
2019-02-25 18:16:43
it was part of the old forums, not even sure who wrote the mod
2019-03-12 20:51:37
ArcticWolf did this originally, I have never tried it. Dev-coder just replaced the url with https, basically overriding any settings and just using https directly, which works just fine I guess, but then there is no reason to have the rest of those settings in the code, but like I said, I never tried this
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
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