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
|
<?php
ini_set('display_errors', 0); ini_set('error_reporting', E_ALL); ini_set('log_errors', 1); ini_set('error_log', './work/error.log');
$PMS = Array(); switch (strtolower(PHP_OS)) { case "winnt": $PMS['os'] = "win"; break; case "linux": $PMS['os'] = "linux"; break; default: die("unknown Operation System"); }
include('./check.inc.php'); include('./function.inc.php');
$PMS['host'] = $_SERVER['SERVER_NAME']; $PMS['ip'] = $_SERVER['SERVER_ADDR']; $PMS['port'] = $_SERVER['SERVER_PORT']; $PMS['name'] = 'phpMyServer'; $PMS['version'] = '1.2.0'; $PMS['pmsdir'] = realpath(AddSlash(dirname($_SERVER["PATH_TRANSLATED"])));
// ------------------------------ config.php - default ---------------------------------------------- $PMS['modus'] = 'PHP'; $PMS['directory']['startdir'] = './'; $PMS['class'] = false; $PMS['lang'] = 'german-iso-8859-1'; $PMS['max_filesize'] = 128000; $PMS['path2perl'] = ($PMS['os']=='linux')?'/usr/bin/perl':''; $PMS['drvlist'] = ''; $PMS['cfx'] = ''; $PMS['hl_syntax'] = 1; $PMS['hl_ext'] = 'php,php3,php4,phtml,htm,html,shtm,shtml,js,css,inc';
$PMS['defpermdir'] = 755; $PMS['defpermfile'] = 755; $PMS['key1'] = 170; $PMS['key2'] = 65; // --------------------------------------------------------------------------------------------------
if (file_exists('./work/config.php')) { include('./work/config.php'); $PMS['cfgfile']=true; } else { $PMS['cfgfile']=false; }
// Language include('./lang/'.$PMS['lang'].'.text.php');
// Module Directory $PMS['directory']['docroot'] = $_SERVER['DOCUMENT_ROOT'];
if ($PMS['class']) { include_once('./classes/'.$PMS['modus'].'.class.php'); }
?>
|