initial commit

This commit is contained in:
equippedcoding-master
2025-09-17 09:37:06 -05:00
parent 86108ca47e
commit e2c98790b2
55389 changed files with 6206730 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
<?php
if(isset($_POST["name"])){
echo "hello " . $_POST["name"];
exit;
}
// xrn93ngyz2tefjrx96grfksl IN A 72.14.177.72; james5 - w6zmaeei5kqza2lldzbhgcsv
// xrncp3ao8x920swcuvg8lavz IN A 173.255.204.98; james2 - w1xecqal1u2uzhh
// xrnw3to1tybema9it4kzdcvz IN A 72.14.177.72; james4 - w6zmm0ctv4347kxgmlrpeesk
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>json_decoder</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js" integrity="sha512-2V49R8ndaagCOnwmj8QnbT1Gz/rie17UouD9Re5WxbzRVUGoftCu5IuqqtAM9+UC3fwfHCSJR1hkzNQh/2wdtg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.1/backbone-min.js" integrity="sha512-TztyCWDNoN0YKl30gDCMKsiWs35juID+W7ZM2uvPeLLmiNvZg789SglgB/QeUbewqIF2Z4mVq3PyIEa+YXXADQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<style>
.spacer {
margin-bottom: 400px;
}
</style>
<div class="contianer-fluid">
<div class="row d-flex justify-content-center">
<div class="col-4 mt-5 d-flex justify-content-center border-bottom p-4">
<button id="open_json_editor_window" class="btn btn-outline-dark w-100">Open Editor</button>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-6 mt-5 border p-4">
<div class="row">
<div class="mb-3">
<label class="form-label">Input - html_entity_decode<span class="form-label-description"></span></label>
<textarea id="data_input_textarea" class="form-control" name="example-textarea-input" rows="6" placeholder=""></textarea>
</div>
</div>
<div class="row">
<div class="mb-3">
<label class="form-label">Output - json<span class="form-label-description"></span></label>
<textarea id="data_output_textarea" class="form-control" name="example-textarea-input" rows="6" placeholder=""></textarea>
</div>
</div>
<div class="row">
<div class="mb-3">
<button id="submit_decode" class="btn btn-outline-dark w-100">Decode</button>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-6 mt-5 border p-4">
<div class="row">
<div class="mb-3">
<label class="form-label">Input Decoded - htmlentities<span class="form-label-description"></span></label>
<textarea id="data_input_textarea1" class="form-control" name="example-textarea-input" rows="6" placeholder=""></textarea>
</div>
</div>
<div class="row">
<div class="mb-3">
<label class="form-label">Output Encoded<span class="form-label-description"></span></label>
<textarea id="data_output_textarea1" class="form-control" name="example-textarea-input" rows="6" placeholder=""></textarea>
</div>
</div>
<div class="row">
<div class="mb-3">
<button id="submit_encode" class="btn btn-outline-dark w-100">Encode</button>
</div>
</div>
</div>
</div>
</div>
<div class="spacer"></div>
<script> const __PLAY_MODE__ = "development"; </script>
<script src="https://api-sandbox.appfactory.studio/sdk/js/afssdk-dev.js"></script>
<script src="https://api-sandbox.appfactory.studio/sdk/js/afssdk-internal.js"></script>
<script src="script.js"></script>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<?php
require_once dirname( __DIR__, 6 ) . "/portal/admin/core/api/php/includes/init.php";
require_once dirname( __DIR__, 6 ) . "/portal/admin/core/api/php/includes/functions.php";
if(Input::get("decode_string")){
$value = Input::get("data");
$value = json_decode(html_entity_decode($value), true);
EchoJsonObject(["data" => $value]);
}
if(Input::get("encode_string")){
$value = Input::get("data");
$value = htmlentities($value);
EchoJsonObject(["data" => $value]);
}

View File

@@ -0,0 +1,53 @@
// Decode
$("#submit_decode").on("click",function(e){
e.preventDefault();
const value = $("#data_input_textarea").val().trim();
if(value==""){alert("Please add text");return;}
$("#data_output_textarea").val("");
$.post("request.php",{
"decode_string": true,
"data": value
},function(resp){
resp = JSON.parse(resp);
console.log(resp);
$("#data_output_textarea").val(JSON.stringify(resp.data));
});
});
// w6zmaeei5kqza2lldzbhgcsv
// w1zmaeei5kqza2lldzbhgcsv
// cradle2careertxorg
// Encode
$("#submit_encode").on("click",function(e){
e.preventDefault();
const value = $("#data_input_textarea1").val().trim();
if(value==""){alert("Please add text");return;}
$("#data_output_textarea1").val("");
$.post("request.php",{
"encode_string": true,
"data": value
},function(resp){
resp = JSON.parse(resp);
console.log(resp);
$("#data_output_textarea1").val(resp.data);
});
});
$("#open_json_editor_window").on("click",function(e){
e.preventDefault();
// https://github.com/josdejong/jsoneditor
window.open("https://jsoneditoronline.org/#left=local.pewama","_blank");
});
$("#submit_decodeasfsafdfgsfg").on("click",function(e){
e.preventDefault();
});
// https://jsoneditoronline.org/#left=local.pewama

View File

@@ -0,0 +1,5 @@