|
26 | 26 | require_once('./inc/databaseConn.php');
|
27 | 27 | require_once('./inc/timeFunctions.php');
|
28 | 28 |
|
29 |
| -// Strips the 'http:' from the root address so it can work on SSL. |
30 |
| -$ASSETROOTADDRESS = substr($HTTPROOTADDRESS, 5); |
| 29 | +// Strips the 'http(s):' from the root address so it can work on SSL. |
| 30 | +$ASSETROOTADDRESS = substr($HTTPROOTADDRESS, strpos($HTTPROOTADDRESS, ":") + 1); |
31 | 31 |
|
32 | 32 | // HACK FOR OPEN-GRAPH TAGS, I KNOW, THIS IS TERRIBLE
|
33 | 33 | $path = explode('/', $_SERVER['REQUEST_URI']);
|
|
44 | 44 | //OLD header.inc
|
45 | 45 | ?>
|
46 | 46 | <!DOCTYPE html>
|
47 |
| -<html prefix="og: http://ogp.me/ns#" ng-app="sm" lang="en"> |
| 47 | +<html prefix="og: https://ogp.me/ns#" ng-app="sm" lang="en"> |
48 | 48 | <head>
|
49 | 49 | <title><?= (!empty($TITLE)) ? $TITLE . " - " : "" ?>Schedule Maker</title>
|
50 | 50 |
|
|
66 | 66 | <meta property="og:title" content="<?= (!empty($TITLE)) ? $TITLE . " - " : "" ?>ScheduleMaker" />
|
67 | 67 | <meta property="og:type" content="website" />
|
68 | 68 | <meta property="og:description" content="CSH ScheduleMaker makes picking your RIT class schedule easy! Preview all permutations of your schedule, browse available courses, and search for any course, all with ScheduleMaker.">
|
69 |
| - <meta property="og:url" content="http://<?= $_SERVER['HTTP_HOST'] ?><?= $_SERVER['REQUEST_URI'] ?>" /> |
| 69 | + <meta property="og:url" content="https://<?= $_SERVER['HTTP_HOST'] ?><?= $_SERVER['REQUEST_URI'] ?>" /> |
70 | 70 | <? if(!empty($IMGURL)) { ?>
|
71 | 71 | <meta property="og:image" content="<?= $IMGURL ?>" />
|
72 | 72 | <? } else { ?>
|
|
100 | 100 | </div>
|
101 | 101 | <footer class="main default">
|
102 | 102 | <div class="container">
|
103 |
| - <div class="csh"><a target="_blank" rel="noopener" href="http://www.csh.rit.edu/"><img width="90" src="<?=$ASSETROOTADDRESS?>img/csh_logo_square.svg" alt="CSH" /></a></div> |
| 103 | + <div class="csh"><a target="_blank" rel="noopener" href="https://www.csh.rit.edu/"><img width="90" src="<?=$ASSETROOTADDRESS?>img/csh_logo_square.svg" alt="CSH" /></a></div> |
104 | 104 | <a target="_blank" rel="noopener" href="https://github.com/ComputerScienceHouse/schedulemaker">Version: <?=$APP_VERSION?></a> | <a ui-sref="help">Help</a> | <a href="/status">Status</a> | <a target="_blank" rel="noopener" href="https://github.com/ComputerScienceHouse/schedulemaker/issues">Report Issues</a>
|
105 | 105 | <div>
|
106 | 106 | Development v3.1: Devin Matte (matted at csh.rit.edu)<br>
|
107 | 107 | Development v3: Ben Grawi (bgrawi at csh.rit.edu)<br>
|
108 | 108 | Development v2: Ben Russell (benrr101 at csh.rit.edu)<br>
|
109 | 109 | Idea: John Resig (phytar at csh.rit.edu)<br>
|
110 |
| - Hosting: <a href="http://www.csh.rit.edu/">Computer Science House</a><br> |
| 110 | + Hosting: <a href="https://www.csh.rit.edu/">Computer Science House</a><br> |
111 | 111 | </div>
|
112 | 112 | </div>
|
113 | 113 | </footer>
|
114 | 114 | <footer class="main print">
|
115 | 115 | Made Using <a href='<?= $HTTPROOTADDRESS ?>'>CSH ScheduleMaker</a>
|
116 |
| - <a target="_blank" rel="noopener" href="http://www.csh.rit.edu/"><img height="25" src="/img/csh_print.png"></a> |
| 116 | + <a target="_blank" rel="noopener" href="https://www.csh.rit.edu/"><img height="25" src="/img/csh_print.png"></a> |
117 | 117 | </footer>
|
118 | 118 | </div>
|
119 | 119 | <!-- LOAD SCRIPTS LAST -->
|
|
0 commit comments