MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/home/artinside/fhs.artinside.com.br/index.php
<?php
ob_start();


require __DIR__ . "/vendor/autoload.php";

/**
 * BOOTSTRAP
 */

use CoffeeCode\Router\Router;
use Source\Core\Session;

$session = new Session();
$router = new Router(url(), ":");
$router->namespace("Source\App");

/**
 * WEB ROUTES
 */

$router->group(null);
$router->get("/", "Web:home");
$router->get("/termos", "Web:terms");
$router->get("/a-propos", "Web:about");
$router->get("/sh-wrapping", "Web:shWrapping");
$router->get("/nar-ppf", "Web:narPPF");
$router->get("/sh-decor", "Web:shDecor");
$router->get("/contato", "Web:contact");
$router->post("/contact", "Web:contactForm");
$router->get("/carrinho", "Web:cart");
$router->get("/fechar", "Web:checkOut");
$router->post("/fechar", "Web:checkOut");
$router->post("/newsletter", "Web:newsletter");
$router->get("/atuacao", "Web:atuacao");
$router->get("/orafol", "Web:allProducts");
$router->get("/experiences", "Web:experiences");
$router->get("/time-s1", "Web:teams1");
$router->get("/time-s2", "Web:teams2");
//$router->get("/lote", "Web:batch");
//$router->post("/lote", "Web:batch");
//$router->get("/campanha-compre-impressoras-e-tintas", "Web:lp1");
//$router->get("/typ-campanha-compre-impressoras-e-tintas", "Web:typ1");
//$router->get("/4tex-4ever", "Web:lp4ever");
$router->post("/contact4ever", "Web:contact4ever");


$router->get("/manutencao", "Web:maintenance");
$router->post("/newsletter-maintenance", "Store:newsletter");

$router->get("/fechar/{page}", "Web:checkOut");
$router->get("/finalizar/{order_id}", "Web:receipt");


//blog
$router->group("/blog");
$router->get("/", "Web:blog");
$router->get("/p/{page}", "Web:blog");
$router->get("/{uri}", "Web:blogPost");
$router->post("/buscar", "Web:blogSearch");
$router->get("/buscar/{search}/{page}", "Web:blogSearch");
$router->get("/em/{category}", "Web:blogCategory");
$router->get("/em/{category}/{page}", "Web:blogCategory");

//Produtos
$router->group("/produto");
$router->get("/em/{category}", "Web:productCategory");
$router->get("/em/{category}/{page}", "Web:productCategory");
$router->post("/buscar", "Web:productSearch");
$router->get("/buscar/{search}/{page}", "Web:productSearch");
$router->get("/tipomaquinas/{category}", "Web:products");
$router->get("/orafol/{uri}", "Web:product");
$router->post("/cta", "Web:ctaDownload");
$router->get("/servicos", "Web:inks");
$router->get("/tintas/{uri}", "Web:ink");
$router->get("/pecas", "Web:parts");
$router->get("/assistencia", "Web:assistance");

$router->group("/time");
$router->get("/", "Web:team");


////Serviços
$router->group("/servicos");
$router->get("/", "Web:services");
$router->get("/p/{page}", "Web:services");
$router->get("/{uri}", "Web:service");


//auth
$router->group(null);
$router->get("/entrar", "Web:login");
$router->get("/cadastrar", "Web:register");
$router->post("/entrar", "Web:login");
$router->post("/cadastrar", "Web:register");
$router->get("/recuperar", "Web:forget");
$router->post("/recuperar", "Web:forget");
$router->get("/recuperar/{code}", "Web:reset");
$router->post("/recuperar/resetar", "Web:reset");
$router->get("/sair", "Web:logout");
$router->get("/restrito", "Web:restricted");
$router->get("/restrito/{page}", "Web:restricted");
$router->post("/restrito/atualizar", "Web:profile");
$router->post("/restrito/endereco", "Web:address");
$router->get("/restrito/pedidos/{order_id}", "Web:order");

//



//optin
$router->group(null);
$router->get("/confirma", "Web:confirm");
$router->get("/obrigado/{email}", "Web:success");

//services
$router->group(null);
$router->get("/termos", "Web:terms");

/**
 * ECOMMERCE CONTROL
 */


//Carrinho
$router->group(null);
//adiciona itens no carrinho e ataualiza carrinho
$router->post("/carrinho", "Store:topCart");
$router->post("/main-cart", "Store:mainCart");
$router->post("/cadastra-cep", "Store:zipcode");
$router->post("/calcula-frete", "Store:shippingCost");

//PEDIDOS/PAGAMENTO
$router->post("/cartao", "Store:creditCard");
$router->post("/cartao/pagar", "Store:pay");




/**
 * ADMIN ROUTES
 */
$router->namespace("Source\App\Admin");
$router->group("/admin");

//Gallery Item Delete
$router->post("/removeimagegallery", "Admin:removeImageGallery");

//Manutençao
$router->post("/manutencao", "Admin:maintenance");

//Configurações do sistema
$router->get("/config/config/{id}", "Admin:config");
$router->post("/config/config/{id}", "Admin:config");

//Página Empresa
$router->get("/pages/company/{page_id}", "Admin:company");
$router->post("/pages/company/{page_id}", "Admin:company");

//login
$router->get("/", "Login:root");
$router->get("/login", "Login:login");
$router->post("/login", "Login:login");

//dash
$router->get("/dash", "Dash:dash");
$router->get("/dash/home", "Dash:home");
$router->post("/dash/home", "Dash:home");
$router->get("/logoff", "Dash:logoff");

//control
$router->get("/control/home", "Control:home");
$router->get("/control/subscriptions", "Control:subscriptions");
$router->post("/control/subscriptions", "Control:subscriptions");
$router->get("/control/subscriptions/{search}/{page}", "Control:subscriptions");
$router->get("/control/subscription/{id}", "Control:subscription");
$router->post("/control/subscription/{id}", "Control:subscription");
$router->get("/control/plans", "Control:plans");
$router->get("/control/plans/{page}", "Control:plans");
$router->get("/control/plan", "Control:plan");
$router->post("/control/plan", "Control:plan");
$router->get("/control/plan/{plan_id}", "Control:plan");
$router->post("/control/plan/{plan_id}", "Control:plan");

//Brands
$router->get("/brands/home", "Brands:home");
$router->post("/brands/home", "Brands:home");
$router->get("/brands/brand", "Brands:brand");
$router->post("/brands/brand", "Brands:brand");
$router->get("/brands/brand/{data_id}", "Brands:brand");
$router->post("/brands/brand/{data_id}", "Brands:brand");


//Products
$router->get("/product/home", "Products:home");
$router->post("/product/home", "Products:home");
$router->get("/product/home/{search}/{page}", "Products:home");
$router->get("/product/inks", "Products:inks");
$router->post("/product/inks", "Products:inks");
$router->get("/product/inks/{search}/{page}", "Products:inks");
$router->get("/product/product", "Products:product");
$router->post("/product/product", "Products:product");
$router->get("/product/product/{product_id}", "Products:product");
$router->post("/product/product/{product_id}", "Products:product");
$router->get("/product/ink", "Products:product");
$router->post("/product/ink", "Products:product");
$router->get("/product/ink/{product_id}", "Products:product");
$router->post("/product/ink/{product_id}", "Products:product");
$router->get("/product/categories", "Products:categories");
$router->get("/product/categories/{page}", "Products:categories");
$router->get("/product/category", "Products:category");
$router->post("/product/category", "Products:category");
$router->get("/product/category/{category_id}", "Products:category");
$router->post("/product/category/{category_id}", "Products:category");
$router->get("/product/variations", "Products:variations");
$router->get("/product/variations/{page}", "Products:variations");
$router->get("/product/variation", "Products:variation");
$router->post("/product/variation", "Products:variation");
$router->get("/product/variation/{variation_id}", "Products:variation");
$router->post("/product/variation/{variation_id}", "Products:variation");
$router->post("/product/files", "Products:files", "products.files");


//BATCH
$router->get("/batch/home", "Batches:home");
$router->post("/batch/home", "Batches:home");
$router->get("/batch/home/{search}/{page}", "Batches:home");
$router->get("/batch/batch", "Batches:batch");
$router->post("/batch/batch", "Batches:batch");
$router->get("/batch/batch/{data_id}", "Batches:batch");
$router->post("/batch/batch/{data_id}", "Batches:batch");

//VARIAÇÕES
$router->post("/product/variations", "Products:addVariations", "products.addVariations");


//blog
$router->get("/blog/home", "Blog:home");
$router->post("/blog/home", "Blog:home");
$router->get("/blog/home/{search}/{page}", "Blog:home");
$router->get("/blog/post", "Blog:post");
$router->post("/blog/post", "Blog:post");
$router->get("/blog/post/{post_id}", "Blog:post");
$router->post("/blog/post/{post_id}", "Blog:post");
$router->get("/blog/categories", "Blog:categories");
$router->get("/blog/categories/{page}", "Blog:categories");
$router->get("/blog/category", "Blog:category");
$router->post("/blog/category", "Blog:category");
$router->get("/blog/category/{category_id}", "Blog:category");
$router->post("/blog/category/{category_id}", "Blog:category");

//Services
$router->get("/services/home", "Services:home");
$router->post("/services/home", "Services:home");
$router->get("/services/home/{search}/{page}", "Services:home");
$router->get("/services/service", "Services:service");
$router->post("/services/service", "Services:service");
$router->get("/services/service/{service_id}", "Services:service");
$router->post("/services/service/{service_id}", "Services:service");


//faqs
$router->get("/faq/home", "Faq:home");
$router->get("/faq/home/{page}", "Faq:home");
$router->get("/faq/channel", "Faq:channel");
$router->post("/faq/channel", "Faq:channel");
$router->get("/faq/channel/{channel_id}", "Faq:channel");
$router->post("/faq/channel/{channel_id}", "Faq:channel");
$router->get("/faq/question/{channel_id}", "Faq:question");
$router->post("/faq/question/{channel_id}", "Faq:question");
$router->get("/faq/question/{channel_id}/{question_id}", "Faq:question");
$router->post("/faq/question/{channel_id}/{question_id}", "Faq:question");


//ORDERS
$router->get("/order/{type}", "Order:home");
$router->get("/order/{type}/{search}/{page}", "Order:home");
$router->get("/order/invoice/{order_id}", "Order:invoice");

//users
$router->get("/users/home", "Users:home");
$router->post("/users/home", "Users:home");
$router->get("/users/home/{search}/{page}", "Users:home");
$router->get("/users/user", "Users:user");
$router->post("/users/user", "Users:user");
$router->get("/users/user/{user_id}", "Users:user");
$router->post("/users/user/{user_id}", "Users:user");

//ORDERS
$router->post("/orders/shipping", "Order:shipping", "order.shipping");


//notification center
$router->post("/notifications/count", "Notifications:count");
$router->post("/notifications/list", "Notifications:list");


$router->get("/error/{errcode}", "Admin:error");


//END ADMIN
$router->namespace("Source\App");

/**
 * PAY ROUTES
 */
$router->group("/pay");
$router->post("/create", "Pay:create");
$router->post("/update", "Pay:update");

/**
 * ERROR ROUTES
 */
$router->group("/ops");
$router->get("/{errcode}", "Web:error");

/**
 * ROUTE
 */
$router->dispatch();

/**
 * ERROR REDIRECT
 */
if ($router->error()) {
    $router->redirect("/ops/{$router->error()}");
}


ob_end_flush();