-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.php
executable file
·28 lines (25 loc) · 1.07 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// Full path to put into links.
// This should be the home folder on the server where the app will be deployed.
$pos = strrpos($_SERVER['PHP_SELF'], "/");
if ($pos === false) : // note: three equal signs
// not found...
$fullPath = "http://" . $_SERVER['SERVER_NAME'];
else :
$fullPath = "http://" . $_SERVER['SERVER_NAME'] . substr($_SERVER['PHP_SELF'],0,$pos);
endif;
// This is the web page title that appears in the header and title blocks of the
// web page instance.
$PageTitle = "The ASU Social Scribe Project Homepage";
// $myHome is the variable that contains the default links in the linkBar <div>
// It also gets loaded into the JavaScript variable, myHome, for use in the login and logout functions.
$myHome = " <a class=headerlinks href='#' onClick='clearAll();'>$PageTitle</a>";
?>
<script type="text/javascript">
// Save PHP $myHome as JavaScript myHome.
// It will be used when the user logs in or out.
myHome = "<?php echo $myHome; ?>";
</script>
<?php
require_once("instanceSettings.php");
?>