forked from grinnellplans/grinnellplans-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
legal.php
executable file
·31 lines (31 loc) · 1.3 KB
/
legal.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
<?php
require_once ('Plans.php');
/**
* who_just_updated()
* Return the planname of the most recent person to update their plan.
* @deprecated
*/
function last_updated_plan() {
$mytime = 12;
global $dbh;
$my_planwatch = mysqli_query($dbh,"select userid,username,DATE_FORMAT(changed,
'%l:%i %p, %a %M %D ') from accounts where
changed > DATE_SUB(NOW(), INTERVAL $mytime HOUR) and username != 'test'
ORDER BY changed desc LIMIT 1");
//do the query with specifying date format to be returned
//display the results of the query
//return the results of the query
$new_plans = mysqli_fetch_row($my_planwatch);
return $new_plans[1];
}
/**
* @deprecated use get_disclaimer()
*/
function disclaimer() {
echo get_disclaimer();
}
/* Same as above, only returns it as a string */
function get_disclaimer() {
return ' Use of the GrinnellPlans service means you have accepted the <a href="http://www.grinnellplans.com/tos"> GrinnellPlans Terms of Service agreement</a>. If you do not accept and abide by this agreement, you may not use GrinnellPlans. This agreement is subject to change without notice, so you should periodically review the most up-to-date version. You may contact us at <a href="mailto:[email protected]">[email protected]</a>.';
}
?>