-
Notifications
You must be signed in to change notification settings - Fork 0
/
jinxup.php
88 lines (74 loc) · 1.96 KB
/
jinxup.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* Apply a global timezone, timezones are handled by the application settings
*/
date_default_timezone_set('UTC');
/**#@+
* Constants
*/
/**
* Global Directory Separator
*/
define('DS', DIRECTORY_SEPARATOR);
/**
* The path to where the init file should be
* @var string
*/
$controller = __DIR__ . DS . 'jinxup' . DS . 'libraries' . DS . 'Jinxup.php';
if (is_file($controller))
{
if (session_id() == '')
session_start();
require_once($controller);
$jinxup = new Jinxup();
$jinxup->init();
} else {
$margin = 0;
$style = null;
$font = 'font-family: \'HelveticaNeue-Light\', \'Helvetica Neue Light\', \'Helvetica Neue\',';
$font .= '\'Helvetica, Arial\', \'Lucida Grande\', sans-serif;';
echo <<<EOF
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Jinxup Framework</title>
</head>
<body>
<div style="border: 1px solid #DBDBDB; border-bottom: 3px solid #DBDBDB; width: 600px; margin: 50px auto;">
<div style="padding: 25px; {$font}">
<span style="display: block;">
Oops, your installation seems iffy.
<br />
<br />
Please check that your installation paths look like this:
</span>
<div style="border-left: 2px solid #878787; padding: 5px 0 8px; margin: 30px 0;">
EOF;
foreach (array('jinxup', 'libraries', 'Jinxup.php') as $path)
{
$margin += 20;
$style .= 'display: block; margin: 8px 0 0 ' . $margin . 'px; height: 15px;';
$style .= 'padding-left: 8px; border-left: 1px solid #000;';
echo <<<EOF
<span style="{$style}">{$path}</span>
EOF;
}
echo <<<EOF
</div>
<div>
<p>Or download a fresh copy</p>
<p><a href="https://www.jinxup.com/download/latest" id="download-jinxup">Download Latest</a></p>
<p>
For more assistance, please visit
<a href="https://www.jinxup.com/support/installation/">
https://www.jinxup.com/support/installation
</a>
</p>
</div>
</div>
</div>
</body>
</html>
EOF;
exit();
}