-
Notifications
You must be signed in to change notification settings - Fork 9
/
global.php
executable file
·33 lines (26 loc) · 1.08 KB
/
global.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
29
30
31
32
33
<?php
session_start();
require_once 'functions/functions.php';
/* -----------------------------------------------------------------------
IMPORTANT
Please change $_DIR to properly reflect the URL path to this deployment
of GCal in your diretory. This will affect all links, redirects, and
calls so that you don't accidentally get linked, redirected, or call
things that are in my (Jing's) directory.
This is important so that you can see modifications to your own code
and not be confused by why things aren't working.
Also, PLEASE USE the function below, ed(), whenever you're making a
link or redirect.
* Function: ed($e)
* Purpose: echo or return the directory that this deployment of GCal is
* currently using. VERY IMPORTANT.
*/
$_DIR = '/~frantzch/CSC325/GCal/'; // CHANGE ME
function ed($e=true) {
global $_DIR;
if($e)
echo $_DIR;
else
return $_DIR;
}
?>