Skip to content

Instantly share code, notes, and snippets.

View remyweb's full-sized avatar
🟩

Rémy remyweb

🟩
View GitHub Profile
{"success":true,"error":"","purchase_type":"extend","data":"<?php\n\/**\n * Share by HoaBinh(babiato) @package QuickAI - OpenAI Content & Image Generator\n * @author Bylancer\n * @version 3.3\n * @Updated Date: 08\/May\/2023\n * @Copyright 2015-23 Bylancer\n *\/\n\ndefine(\"ROOTPATH\", dirname(__DIR__));\ndefine(\"APPPATH\", ROOTPATH.\"\/php\/\");\n\nrequire_once ROOTPATH . '\/includes\/autoload.php';\nrequire_once ROOTPATH . '\/includes\/lang\/lang_'.$config['lang'].'.php';\n\n$con = db_connect();\nadmin_session_start();\nif (!checkloggedadmin()) {\n exit('Access Denied.');\n}\n\/\/Admin Ajax Function\nif(isset($_REQUEST['action'])){\n if ($_REQUEST['action'] == \"deleteAIDocument\") { deleteAIDocument(); }\n if ($_REQUEST['action'] == \"deleteAIImages\") { deleteAIImages(); }\n if ($_REQUEST['action'] == \"deleteAICustomTemplates\") { deleteAICustomTemplates(); }\n if ($_REQUEST['action'] == \"deleteAITplCategories\") { deleteAITplCategories(); }\n if ($_REQUEST['action'] == \"loginAsUser\