|
22 | 22 | require_once('./inc/databaseConn.php'); |
23 | 23 | require_once('./inc/timeFunctions.php'); |
24 | 24 |
|
| 25 | +// Strips the 'http:' from the root address so it can work on SSL. |
| 26 | +$ASSETROOTADDRESS = substr($HTTPROOTADDRESS, 5); |
| 27 | + |
25 | 28 | // HACK FOR OPEN-GRAPH TAGS, I KNOW, THIS IS TERRIBLE |
26 | 29 | $path = explode('/', $_SERVER['REQUEST_URI']); |
27 | 30 | if ($path[1] == 'schedule') { |
|
50 | 53 | <!-- STYLE SHEETS --> |
51 | 54 | <link rel="stylesheet" href="//brick.a.ssl.fastly.net/Roboto:300,700"> |
52 | 55 | <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css"> |
53 | | - <link rel="stylesheet" href="<?=$HTTPROOTADDRESS?>assets/prod/<?=$APP_VERSION?>/modules/sm/dist.min.css"> |
| 56 | + <link rel="stylesheet" href="<?=$ASSETROOTADDRESS?>assets/prod/<?=$APP_VERSION?>/modules/sm/dist.min.css"> |
54 | 57 |
|
55 | 58 | <!-- OPEN GRAPH TAGS --> |
56 | 59 | <meta name="twitter:card" content="photo"> |
|
90 | 93 | <div ui-view autoscroll="false"></div> |
91 | 94 | </div> |
92 | 95 | <footer class="main default"> |
93 | | - <div class="csh"><a target="_blank" href="http://www.csh.rit.edu/"><img src="<?=$HTTPROOTADDRESS?>img/csh.png" alt="CSH" /></a></div> |
| 96 | + <div class="csh"><a target="_blank" href="http://www.csh.rit.edu/"><img src="<?=$ASSETROOTADDRESS?>img/csh.png" alt="CSH" /></a></div> |
94 | 97 | Version: <?=$APP_VERSION?> | <a ui-sref="help">Help</a> | <a href="/status">Status</a> | <a target="_blank" href="https://github.com/ComputerScienceHouse/schedulemaker/issues">Report Issues</a> |
95 | 98 | <div> |
96 | 99 | Development v3: Ben Grawi (bgrawi at csh.rit.edu)<br> |
|
121 | 124 | <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular-animate.min.js"></script> |
122 | 125 | <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular-sanitize.min.js"></script> |
123 | 126 | <script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.8/angular-ui-router.min.js"></script> |
124 | | - <script src="<?=$HTTPROOTADDRESS?>assets/prod/<?=$APP_VERSION?>/modules/sm/dist.min.js"></script> |
| 127 | + <script src="<?=$ASSETROOTADDRESS?>assets/prod/<?=$APP_VERSION?>/modules/sm/dist.min.js"></script> |
125 | 128 | </body> |
126 | 129 | </html> |
127 | 130 |
|
0 commit comments