function tester($word, $letters, &$combinaisons) { $c = strlen($letters); for ($i = 0; $i < $c; $i++) { $word2 = $word; $letters2 = $letters; $word2 .= substr($letters2, $i, 1); $letters2 = substr($letters2, 0, $i) . substr($letters, $i + 1); $combinaisons[] = $word2; if (!empty($letters2)) { tester($word2, $letters2, $combinaisons); } } }
<?php echo '<br><br>Здесь будет контент по всем клиникам<br><br><br>'; tester($_REQUEST);
<?php echo '<br><br>А здесь будет форма на запись на онлайн консультацию к врачу<br><br><br>'; tester($_SESSION);
<VendorListID useMacro="MACROTYPE">IDTYPE</VendorListID> <!-- required --> </VendorInfo5> <DataExtRet> <!-- optional, may repeat --> <OwnerID>GUIDTYPE</OwnerID> <!-- required --> <DataExtName>STRTYPE</DataExtName> <!-- required --> <!-- DataExtType may have one of the following values: INTTYPE, AMTTYPE, PRICETYPE, QUANTYPE, PERCENTTYPE, DATETIMETYPE, STR255TYPE, STR1024TYPE --> <DataExtType>ENUMTYPE</DataExtType> <!-- required --> <DataExtValue>STRTYPE</DataExtValue> <!-- required --> </DataExtRet> </ItemInventoryRet> </ItemInventoryQueryRs> </QBPOSXMLMsgsRs> </QBPOSXML>'; print 'Sending response...' . "\n"; print tester($url, $ticket, null, 'receiveResponseXML', $response); print 'Done!' . "\n"; $fp = fopen('./out.txt', 'w+'); fwrite($fp, $DATA); fclose($fp); exit; exit; function tester($url, $username_or_ticket, $password, $method, $data = null) { print date('Y-m-d H:i:s: ') . 'Sending request method: ' . $method . "\n"; global $DATA; $DATA .= date('Y-m-d H:i:s: ') . 'Sending request method: ' . $method . "\r\n"; switch ($method) { case 'fetchVersion': $soap = '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope
<?php // Подключение файла с путями и конфигурационного файла //include_once htmlspecialchars($_SERVER['DOCUMENT_ROOT']).'/config/paths.php'; include_once htmlspecialchars($_SERVER['DOCUMENT_ROOT']) . '/NewConcept_detimediart/config/paths.php'; include_once $site_full . CONFIG . 'config.php'; // Подключение класса для работы с БД и создание экземпляра обработчика запросов к БД с подключением к БД include_once $site_full . CLS . DB . 'DB_Class.php'; $db_explorer = new DB_Class(); $my_arr = $db_explorer->GetArrayIDs(); echo '<br><br>Здесь прайс-лист услуг<br><br><br>'; tester($my_arr); unset($db_explorer);
$url = 'http://localhost:8888/Cornerstone/html/index.php?__module=accounting_quickbooks&__action=server'; $username = '******'; $password = '******'; header('Content-type: text/plain'); print 'URL: ' . $url . "\n"; print 'User: '******'Pass: '******'authenticate'); print $return; $pos = strpos($return, '<ns1:string>'); $ticket = substr($return, $pos + 12, 32); print "\n\n" . 'TICKET IS: ' . $ticket . "\n\n"; exit; $max = 1; for ($i = 0; $i < $max; $i++) { print tester($url, $ticket, null, 'sendRequestXML'); } exit; function tester($url, $username_or_ticket, $password, $method, $data = null) { print 'Sending request method: ' . $method . "\n"; switch ($method) { case 'authenticate': $soap = '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body>
<?php echo '<br><br>И всякий прочий контент домашней страницы<br><br><br>'; tester($_COOKIE);
<?php require_once 'config.inc'; require_once 'lcmess.inc'; define('dbh', pg_connect($conn_str)); if (!dbh) { die("Could not connect to the server"); } _set_lc_messages(); $res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '\nbegin\n RAISE NOTICE ''11111'';\n return ''f'';\nend;\n' LANGUAGE plpgsql;"); $res = pg_query(dbh, 'SET client_min_messages TO NOTICE;'); var_dump($res); function tester() { $res = pg_query(dbh, 'SELECT test_notice()'); $row = pg_fetch_row($res, 0); var_dump($row); pg_free_result($res); if ($row[0] == 'f') { var_dump(pg_last_notice(dbh)); } } tester(); pg_close(dbh); ?> ===DONE===