@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux www.thesweb.ru 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
Current Path :
/
var
/
www
/
www-root
/
data
/
www
/
new.labinform.ru
/
bigdata
/
sec
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/bigdata/sec/config.php
<?php include_once('commonf.php'); //$myServer = "ng3.ru"; #$myServer = "192.168.1.185"; //neuro $myServer = "localhost"; $db = "BIGDATA_SEC_THES_20211023"; $uid = "postgres"; $pwd = "y3mvy2kwC1"; $proj_name = 'BIGDATA_SEC_THES'; $revrybld2file = 'e:\\usr\\local\\www\\labinform\\bigdata\\sec\\revrybld\\revrybld2.exe'; $lstbldfile = 'E:\\usr\\local\\www\\labinform\\bigdata\\sec\\btr\\btr_postgres.exe'; $lstblddir = 'E:\\usr\\local\\www\\labinform\\bigdata\\sec\\lsts'; $lstcode = 'E:\\usr\\local\\www\\labinform\\bigdata\\sec\\btr\\codeb.bat'; if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") { $location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $location); exit; } ob_start(); session_start(); //print_r($_SESSION); if ((isset($_SESSION['valid_thes_' . $db])) && ($_SESSION['valid_thes_' . $db] === true)) { $usr_id = $_SESSION['usr_id']; $usr_name = $_SESSION['username']; $ssid = $_SESSION['ssid']; $isadm = ($_SESSION['usertypeid'] === 10); //echo($usr_id); } else { $usr_id = -1; $usr_name = ''; $ss_id = 0; $isadm = 0; unset($usr_id); unset($ss_id); } $start_page = '/'; $connect_string = "host=$myServer port=5432 dbname=$db user=$uid password=$pwd"; $conn = pg_connect($connect_string); if( $conn === false ) { echo "Unable to connect.</br>"; die( print_r( pg_errors(), true)); } ?>