Cleanup the indentation ... tabs and whitespace after the last pull request.
This commit is contained in:
parent
15a1ecbcea
commit
c3b12c217d
|
|
@ -25,17 +25,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//check the permission
|
//check the permission
|
||||||
|
|
||||||
if(defined('STDIN')) {
|
if(defined('STDIN')) {
|
||||||
// $document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
|
$document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
|
||||||
// preg_match("/^(.*)\/core\/.*$/", $document_root, $matches);
|
preg_match("/^(.*)\/core\/.*$/", $document_root, $matches);
|
||||||
// $document_root = $matches[1];
|
$document_root = $matches[1];
|
||||||
// set_include_path($document_root);
|
set_include_path($document_root);
|
||||||
$format = 'text'; //html, text
|
|
||||||
include "root.php";
|
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
|
$_SERVER["DOCUMENT_ROOT"] = $document_root;
|
||||||
// $_SERVER["DOCUMENT_ROOT"] = $document_root;
|
$format = 'text'; //html, text
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
include "root.php";
|
include "root.php";
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ require_once "resources/require.php";
|
||||||
//ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
|
//ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
|
||||||
$bind_dn = $_SESSION["ldap"]["user_attribute"]["text"]."=".$username.",".$_SESSION["ldap"]["user_dn"]["text"];
|
$bind_dn = $_SESSION["ldap"]["user_attribute"]["text"]."=".$username.",".$_SESSION["ldap"]["user_dn"]["text"];
|
||||||
$bind_pw = $_REQUEST["password"];
|
$bind_pw = $_REQUEST["password"];
|
||||||
//Note: As of 4/16, the call below will fail randomly. Php debug reports ldap_bind
|
//Note: As of 4/16, the call below will fail randomly. PHP debug reports ldap_bind
|
||||||
//called below with all arguments '*uninitialized*'. However, the debugger
|
//called below with all arguments '*uninitialized*'. However, the debugger
|
||||||
//single-stepping just before the failing call correctly displays all the values.
|
//single-stepping just before the failing call correctly displays all the values.
|
||||||
$bind = ldap_bind($connect, $bind_dn, $bind_pw);
|
$bind = ldap_bind($connect, $bind_dn, $bind_pw);
|
||||||
|
|
|
||||||
|
|
@ -67,14 +67,15 @@ if (!class_exists('switch_settings')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{ //connect to event socket
|
//connect to event socket
|
||||||
$esl = new event_socket;
|
$esl = new event_socket;
|
||||||
$esl->connect($this->event_socket_ip_address, $this->event_socket_port, $this->event_socket_password);
|
$esl->connect($this->event_socket_ip_address, $this->event_socket_port, $this->event_socket_password);
|
||||||
|
|
||||||
//run the api command
|
//run the api command
|
||||||
$result = $esl->request('api global_getvar');
|
$result = $esl->request('api global_getvar');
|
||||||
} //close event socket
|
|
||||||
|
|
||||||
|
//close event socket
|
||||||
|
fclose($fp);
|
||||||
|
|
||||||
//set the result as a named array
|
//set the result as a named array
|
||||||
$vars = array();
|
$vars = array();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue