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
Controls ·  Search New posts · Mark unread

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

Unknown User
2012-03-22 15:12:13
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




and 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";


ps: you could also use the $site_config['TSITEURL'] var in emails send if say only your staff or uploaders + are forced to use https
Unknown User
2012-03-22 20:08:01
thanks :)
Unknown User
2012-03-24 10:01:55
after these change i must have the

$site_config['announce_list'] = "http://mydomain/announce.php";

or

$site_config['announce_list'] = "https://mydomain/announce.php";
Unknown User
2012-03-24 16:14:21
this

$site_config['announce_list'] = "http://mydomain/announce.php";
Unknown User
2012-03-24 17:25:30
thanks
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