update 234879955

This commit is contained in:
equippedcoding-master
2025-09-19 14:48:51 -05:00
parent 2732371d5c
commit 67ef31a4d0
21 changed files with 205 additions and 2 deletions

0
core/js/functions.js Normal file
View File

4
core/js/main.js Normal file
View File

@@ -0,0 +1,4 @@
(function(){
})();

26
core/js/pages/_temp.js Normal file
View File

@@ -0,0 +1,26 @@
define([], function() {
function init(myapp,afsconfig){
}
return init;
});
(function(factory) {
var root = typeof self == 'object' && self.self === self && self || typeof global == 'object' && global.global === global && global;
if (typeof define === 'function' && define.amd) {
define([],function() {return factory(); });
} else if (typeof exports !== 'undefined') {
module.exports = factory();
} else {
root.AFSPayments = factory();// browser global.
}
})(function() {
return {}
});// !!!END!!!

17
core/js/pages/index.js Normal file
View File

@@ -0,0 +1,17 @@
define([], function() {
function init(app){
}
return init;
});

2
core/main.js Normal file
View File

@@ -0,0 +1,2 @@

View File

@@ -0,0 +1,8 @@
<?php
?>

91
core/php/indexcore.php Normal file
View File

@@ -0,0 +1,91 @@
<?php
// session_start();
/***
* The main component by which html pages are served
*
*/
function AFSIndexCoreTemplate($title,
$page,
$css,
$mypage,
$dir,
$show_header = true,
$show_footer = true,
$javascript = "",
$isAdmin = false,
$clientcount=1,
$pageIncludes="",
$top_admin=true){
$GLOBALS["MYPATH"] = $dir;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo $title ?></title>
<link rel="icon" type="image/x-icon" href="<?php echo $dir ?>assets/favicon.ico">
<link rel="stylesheet" href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="/portal/admin/core/api/styles/tabler/tabler.min.css" />
<link rel="stylesheet" href="/core/styles/styles.css">
<link rel="stylesheet" href="/core/styles/global.css">
<link rel="stylesheet" href="<?php echo $css ?>">
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<script src="/portal/admin/core/api/js/libs/analytics_0.8.14.min.js"></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://api.appfactory.studio/sdk/js/afssdk-dev.js"></script>
<script src="/core/js/functions.js"></script>
<?php
if($pageIncludes!=""){ require_once $pageIncludes; }
?>
</head>
<body>
<?php
// Header
if($show_header){
?>
<link rel="stylesheet" href="<?php echo $dir ?>pages/_components/header/header.css">
<?php include_once($dir . "pages/_components/header/header.php")?>
<?php
}
?>
<!-- Contents -->
<script>window.mypage = "<?php echo $mypage ?>"; window.mypath = "<?php echo $dir ?>"</script>
<?php include_once($page); ?>
<?php
// Footer
if($show_footer){
?>
<link rel="stylesheet" href="<?php echo $dir ?>pages/_components/footer/footer.css">
<?php include_once $dir . "pages/_components/footer/footer.php" ?>
<?php
}
?>
<script data-main="/core/js/main" src="/portal/admin/core/api/js/libs/require.js"></script>
<body>
</html>
<?php
}

8
core/php/request.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
require dirname( __DIR__, 2 ) . "/portal/admin/core/api/php/includes/init.php";
require dirname( __DIR__, 2 ) . "/portal/admin/core/api/php/includes/libs/dompdf/vendor/autoload.php";
require dirname( __DIR__, 2 ) . "/portal/admin/core/api/php/includes/functions.php";
require dirname( __DIR__, 2 ) . "/core/php/callrequest.php";
header_remove("X-Powered-By");

4
core/styles/global.css Normal file
View File

@@ -0,0 +1,4 @@

0
core/styles/styles.css Normal file
View File