@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
/
ru_lite2
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/ru_lite2/config.php
<?php include_once('commonf.php'); //$myServer = "ng3.ru"; #$myServer = "192.168.1.185"; //neuro $myServer = "localhost"; $db = "RU_LITE2_20201121"; $uid = "postgres"; $pwd = "y3mvy2kwC1"; $proj_name = 'RU_LITE2'; $revrybld2file = __DIR__ . '/revrybld/revrybld2.exe'; $jsonbldfile = 'C:\Python37\python3.exe ' . __DIR__ . '/export/export_thes2json.py '; $lstbldfile = __DIR__ . '/btr/btr_postgres.exe'; $lstblddir = __DIR__ . '/lsts'; $lstcode = __DIR__ . '/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)); } ?>