mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Initial file upload
Initial file upload
This commit is contained in:
parent
dba813226f
commit
5584f76394
@ -54,15 +54,21 @@ By using a [YABs](https://github.com/masonr/yet-another-bench-script) output you
|
||||
|
||||
[![Screenshot1](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-data.jpg)]()
|
||||
|
||||
|
||||
[![screenshot2](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-data-MORE.jpg)]()
|
||||
|
||||
|
||||
[![screenshot3](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-data-EDIT.jpg)]()
|
||||
|
||||
|
||||
[![screenshot4](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-order-table.png)]()
|
||||
|
||||
|
||||
[![screenshot5](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-tally-card.png)]()
|
||||
|
||||
|
||||
[![Auto complete location](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-auto-location.gif)]()
|
||||
|
||||
|
||||
[![Auto complete provider](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-auto-provider.gif)]()
|
||||
|
||||
|
5
assets/css/all.min.css
vendored
Normal file
5
assets/css/all.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1607
assets/css/style.css
Normal file
1607
assets/css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
assets/favicon.ico
Normal file
BIN
assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
2
assets/js/bootstrap.min.js
vendored
Normal file
2
assets/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/jquery.min.js
vendored
Normal file
1
assets/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
377
assets/js/scripts.min.js
vendored
Normal file
377
assets/js/scripts.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/webfonts/fa-brands-400.eot
Normal file
BIN
assets/webfonts/fa-brands-400.eot
Normal file
Binary file not shown.
3717
assets/webfonts/fa-brands-400.svg
Normal file
3717
assets/webfonts/fa-brands-400.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 730 KiB |
BIN
assets/webfonts/fa-brands-400.ttf
Normal file
BIN
assets/webfonts/fa-brands-400.ttf
Normal file
Binary file not shown.
BIN
assets/webfonts/fa-brands-400.woff
Normal file
BIN
assets/webfonts/fa-brands-400.woff
Normal file
Binary file not shown.
BIN
assets/webfonts/fa-brands-400.woff2
Normal file
BIN
assets/webfonts/fa-brands-400.woff2
Normal file
Binary file not shown.
BIN
assets/webfonts/fa-solid-900.eot
Normal file
BIN
assets/webfonts/fa-solid-900.eot
Normal file
Binary file not shown.
5028
assets/webfonts/fa-solid-900.svg
Normal file
5028
assets/webfonts/fa-solid-900.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 896 KiB |
BIN
assets/webfonts/fa-solid-900.ttf
Normal file
BIN
assets/webfonts/fa-solid-900.ttf
Normal file
Binary file not shown.
BIN
assets/webfonts/fa-solid-900.woff
Normal file
BIN
assets/webfonts/fa-solid-900.woff
Normal file
Binary file not shown.
BIN
assets/webfonts/fa-solid-900.woff2
Normal file
BIN
assets/webfonts/fa-solid-900.woff2
Normal file
Binary file not shown.
76
calls.php
Normal file
76
calls.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Content-Type: application/json');
|
||||
require_once('class.php');
|
||||
$idle = new idlers();
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (isset($_GET['type'])) {
|
||||
if ($_GET['type'] == 'server') {
|
||||
echo $idle->serverData($_GET['id']);
|
||||
} elseif ($_GET['type'] == 'search') {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo $idle->searchResults($_GET['value']);
|
||||
} elseif ($_GET['type'] == 'shared_hosting') {
|
||||
echo $idle->sharedHostingData($_GET['id']);
|
||||
} elseif ($_GET['type'] == 'domain') {
|
||||
echo $idle->domainData($_GET['id']);
|
||||
} elseif ($_GET['type'] == 'yabsModal') {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo $idle->showYabsModal($_GET['id']);//Not used anymore. Still here for debugging
|
||||
} elseif ($_GET['type'] == 'infoCard') {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo $idle->infoCard();//Info card for the "info" tab
|
||||
} elseif ($_GET['type'] == 'autocomplete') {
|
||||
if ($_GET['input'] == 'location') {
|
||||
$idle->locationsAutoCompleteGET($_GET['value']);//Auto complete locations input
|
||||
} elseif ($_GET['input'] == 'provider') {
|
||||
$idle->providersAutoCompleteGET($_GET['value']);//Auto complete providers input
|
||||
}
|
||||
} elseif ($_GET['type'] == 'view_more_modal') {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
if ($_GET['value'] == 'server') {
|
||||
$idle->viewMoreModal($_GET['id']);//View more details modal
|
||||
} elseif ($_GET['value'] == 'shared') {
|
||||
$idle->viewMoreSharedHostingModal($_GET['id']);//View more details modal
|
||||
} elseif ($_GET['value'] == 'domain') {
|
||||
$idle->viewMoreDomainModal($_GET['id']);//View more details modal
|
||||
}
|
||||
}
|
||||
}
|
||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (isset($_POST['order_form'])) {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo $idle->orderTable($_POST['order_by']);//Returns order table
|
||||
} else {
|
||||
if (isset($_POST['action']) && $_POST['action'] == 'insert') {//From an insert 'type' form
|
||||
$insert = new itemInsert($_POST);
|
||||
if (isset($_POST['from_yabs'])) {//From add form YABs
|
||||
$insert->insertBasicWithYabs();//Insert basic data from form
|
||||
$insert->insertYabsData();//Insert YABs data from the form
|
||||
} elseif (isset($_POST['manual'])) {//From add form manual
|
||||
$insert->insertBasic();
|
||||
} elseif (isset($_POST['shared_hosting_form'])) {//From shared hosting form
|
||||
$insert->insertSharedHosting();
|
||||
} elseif (isset($_POST['domain_form'])) {//From domain form
|
||||
$insert->insertDomain();
|
||||
}
|
||||
} elseif (isset($_POST['action']) && $_POST['action'] == 'update') {
|
||||
$update = new itemUpdate($_POST);
|
||||
if (isset($_POST['me_delete'])) {//Delete object
|
||||
$update->deleteObjectData();
|
||||
} elseif ($_POST['type'] == 'server_modal_edit') {//Update the server info
|
||||
$update->updateServerFromModal();
|
||||
$update->updateServerPricingFromModal();
|
||||
} elseif ($_POST['type'] == 'shared_hosting_modal_edit') {//Update the shared hosting info
|
||||
$update->updateSharedHostingFromModal();
|
||||
$update->updateSharedHostingPricingFromModal();
|
||||
} elseif ($_POST['type'] == 'domain_modal_edit') {//Update the domain info
|
||||
$update->updateDomainFromModal();
|
||||
$update->updateDomainPricingFromModal();
|
||||
}
|
||||
}
|
||||
header('Location:index.php');
|
||||
die();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user