This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function json_response($message = null, $code = 200) | |
| { | |
| // clear the old headers | |
| header_remove(); | |
| // set the actual code | |
| http_response_code($code); | |
| // set the header to make sure cache is forced | |
| header("Cache-Control: no-transform,public,max-age=300,s-maxage=900"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Basic script to perform global search on all tables of an AppGini application. | |
| * Create a new file inside the hooks folder and name it 'global-search.php' then copy this code to it. | |
| * Related post: https://forums.appgini.com/phpbb/viewtopic.php?f=2&t=1689&p=4510 | |
| */ | |
| /* Assuming this custom file is placed inside 'hooks' */ | |
| define('PREPEND_PATH', '../'); | |
| $hooks_dir = dirname(__FILE__); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| <h3 class="card-title">Edit Page Code</h3> | |
| </div> | |
| <div class="card-body"> | |
| <!-- code mirror styles --> | |
| <!-- CODE MIRROR BELOW --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <style> | |
| #submitbtn { | |
| position: fixed; | |
| bottom: 20px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| } | |
| .sticky { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| <h3 class="card-title">Bulk Encrypt Or Decrypt Data Tool</h3> | |
| </div> | |
| <div class="card-body"> | |
| <?php | |
| $action = $_REQUEST['action'] ? $_REQUEST['action'] : ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| <h3 class="card-title">Setup Custom Login Methds</h3> | |
| </div> | |
| <div class="card-body"> | |
| <div class="row"> | |
| <div class="col-md-4"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card card-primary"> | |
| <div class="card-header"> | |
| <h3 class="card-title">App JSON Database (Read Only)</h3> | |
| </div> | |
| <div class="card-body"> | |
| <table class="table table-hover"> | |
| <tbody> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <?php | |
| $processing_page_id = ""; //Provide the page ID of the processor script; | |
| ?> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card card-primary direct-chat direct-chat-primary"> | |
| <div class="card-header"> | |
| <style> .spinit { animation: spin 1s infinite linear; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } </style> | |
| <h3 class="card-title">ChatGPT Tool</h3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (isset($_POST['content'])) { | |
| //DEFINE YOUR OPEN AI CHAT API PARAMETERS HERE. API reerence: https://platform.openai.com/docs/api-reference/chat/create | |
| $max_tokens = 4000; //The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens). | |
| $n = 1; //How many chat completion choices to generate for each input message. | |
| $temperature = 1.0; //What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.We generally recommend altering this or top_p but not both. | |
| $model = "gpt-3.5-turbo-0301"; //ID of the model to use. Currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported. | |
| $frequency_penalty = 0; //Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. | |
| $ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Write your custom page content in here, it could be anything and everything, you can also use AppginiLTE widget functions here--> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| <h3 class="card-title">New Version Uploader Tool</h3> | |
| </div> | |
| <div class="card-body"> | |
| <?php $post_max_size = ini_get('post_max_size'); $upload_max_filesize = ini_get('upload_max_filesize'); echo showAlert('info','Upload File Size','Ensure your php ini configurations for: <b>post_max_size</b> is set to <b>100M</b> atleast and <b>upload_max_filesize</b> is set to <b>100M</b> at least for this tool to work.<br> Your current configuration is: <br>post_max_size: ' . $post_max_size . '<br>upload_max_filesize: ' . $upload_max_filesize . ''); ?> | |
| <form action="" method="POST" enctype="multipart/form-data"> |
OlderNewer