The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable site encryption
#10
When gathering the site's URL.. doing something LIKE this would solve the protocol problem:
PHP Code:
$url  = isset($_SERVER['HTTPS']) ? 'https://' 'http://';
            
$url .= $_SERVER['SERVER_NAME'];
            
$url .= htmlspecialchars($_SERVER['REQUEST_URI']); 

the
PHP Code:
$url  = isset($_SERVER['HTTPS']) ? 'https://' 'http://'
bit of code finds if the protocol is secure or not. Doing something to this effect may solve that problem for all urls.. and depending on the current protocol all URLs used in the core/themes can be adjusted accordingly by if statements.
Reply


Messages In This Thread
Enable site encryption - by kcvv - 2011-12-27, 00:28:48
RE: Enable site encryption - by kerry - 2013-02-28, 04:27:48
RE: Enable site encryption - by Carlos - 2013-02-28, 05:13:24
RE: Enable site encryption - by shovenose - 2013-02-28, 11:09:44
RE: Enable site encryption - by WebDevandPhoto - 2013-02-28, 20:49:29
RE: Enable site encryption - by shawn_a - 2013-03-01, 01:06:11
Enable site encryption - by ccagle8 - 2011-12-27, 00:33:18
Enable site encryption - by kcvv - 2011-12-27, 02:37:21
Enable site encryption - by kcvv - 2011-12-27, 04:11:43
RE: Enable site encryption - by E.Eliveld - 2013-02-28, 20:05:10
Enable site encryption - by ccagle8 - 2011-12-27, 04:21:33



Users browsing this thread: 1 Guest(s)