-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinclude.php
More file actions
32 lines (26 loc) · 834 Bytes
/
include.php
File metadata and controls
32 lines (26 loc) · 834 Bytes
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
<?php
//echo __FILE__ . ':' . __LINE__ . "\n";
//if(!isset($_SESSION)) { session_start( session_id('vl42tudtr63t6vbgjkvng8sv') ); }
//if(!isset($_SESSION)) { session_start(); }
//echo __FILE__ . ':' . __LINE__ . "\n";
error_reporting(-1);
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', 'debug');
exec('cd /home/xpm/xpm-bal/');
exec('export PATH=$PATH:/home/xpm/xpm-bal/:./');
//echo __FILE__ . ':' . __LINE__ . "\n";
/* Connect to an ODBC database using driver invocation */
$dsn = 'mysql:dbname=c1xpm;host=127.0.0.1';
$user = 'c1xpm';
$password = 'SErnbxFBtHy9';
//echo __FILE__ . ":" . __LINE__ . "\n";
if (!isset($pdo))
{
//echo 'creating pdo object' . "\n";
try {
$pdo = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
echo 'Connection failed: ' . $e->getMessage();
}
}