-
Notifications
You must be signed in to change notification settings - Fork 6
/
crontab.php
45 lines (32 loc) · 882 Bytes
/
crontab.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
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/***************************************************************************
* crontab.php
*
* Jul 05, 07:00:00 2009
* Copyright 2009 Istvan Petres (aka P.I.Julius)
* For licensing, see LICENSE or http://jcore.net/license
****************************************************************************/
include_once('config.inc.php');
include_once('lib/includes.fxn.php');
$code = null;
$do = null;
if (isset($_GET['code']))
$code = $_GET['code'];
if (isset($_GET['do']))
$do = $_GET['do'];
if (!$code || !$do) {
exit("Didn't you forget something?!");
}
if ($code != '98430123') {
include_once('lib/email.class.php');
$email = new email();
$email->load('WebmasterWarning');
$email->to = WEBMASTER_EMAIL;
$email->variables = array(
"Warning" => 'Hmmmm...');
$email->send();
unset($email);
exit("Hmmmmm...");
}
?>