-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpliteadmin-build-template.php
36 lines (29 loc) · 1.08 KB
/
phpliteadmin-build-template.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
<?php
# Start with header information, default config and default language
# INCLUDE docs/header.txt | comment_lines
# INCLUDE phpliteadmin.config.sample.php
# INCLUDE languages/lang_en.php
# INCLUDE docs/noedit.txt | comment_lines
# Include all class files
# INCLUDE classes/*.php
# Load the main phpLiteAdmin source file
# INCLUDE index.php
# Embed resources: embed file info this function, actual data below
// returns data from internal resources, available in single-file mode
function getInternalResource($res) {
# EXPORT $resources
if (isset($resources[$res]) && $f = fopen(__FILE__, 'r')) {
fseek($f, __COMPILER_HALT_OFFSET__ + $resources[$res][0]);
$data = fread($f, $resources[$res][1]);
fclose($f);
return $data;
}
return false;
}
// resources embedded below, do not edit!
# Important: no semi-colon after the call to __halt_compiler, so the parser can consume
# the closing tag
__halt_compiler() ?>
# EMBED resources/phpliteadmin.css | minify_css
# EMBED resources/phpliteadmin.js | minify_js
# EMBED resources/favicon.ico | base64_encode