File manager - Edit - /home/linknsbh/m.linkat.online/index.php
Back
<?php /** * @author Bylancer * @url https://codecanyon.net/item/quickqr-contactless-restaurant-qr-menu-maker/29012439 * @Copyright (c) 2015-20 Bylancer.com */ // Path to root directory of app. define("ROOTPATH", dirname(__FILE__)); // Path to app folder. define("APPPATH", ROOTPATH."/php/"); // Check if SSL enabled if(!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) $protocol = $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https" ? "https://" : "http://"; else $protocol = !empty($_SERVER['HTTPS']) && $_SERVER["HTTPS"] != "off" ? "https://" : "http://"; // Define APPURL $site_url = $protocol . $_SERVER["HTTP_HOST"] . (dirname($_SERVER["SCRIPT_NAME"]) == DIRECTORY_SEPARATOR ? "" : "/") . trim(str_replace("\\", "/", dirname($_SERVER["SCRIPT_NAME"])), "/"); define("SITEURL", $site_url); $config['app_url'] = SITEURL."/php/"; //$config['site_url'] = SITEURL."/"; require_once ROOTPATH . '/includes/classes/AltoRouter.php'; // Start routing. $router = new AltoRouter(); $bp = trim(str_replace("\\", "/", dirname($_SERVER["SCRIPT_NAME"])), "/"); $router->setBasePath($bp ? "/".$bp : ""); /* Setup the URL routing. This is production ready. */ // Main routes that non-customers see $router->map('GET|POST','/', 'home.php'); $router->map('GET|POST','/home/[a:lang]?/?', 'home.php'); $router->map('GET|POST','/signup/?', 'signup.php'); $router->map('GET|POST','/login/?', 'login.php'); $router->map('GET|POST','/logout/?', 'logout.php'); $router->map('GET|POST','/forgot/?', 'forgot.php'); $router->map('GET|POST','/transaction/?', 'transaction.php'); $router->map('GET|POST','/account-setting/?', 'account-setting.php'); $router->map('GET|POST','/contact/?', 'contact.php'); $router->map('GET|POST','/faq/?', 'faq.php'); $router->map('GET|POST','/feedback/?', 'feedback.php'); $router->map('GET|POST','/report/?', 'report.php'); $router->map('GET|POST','/add-restaurant/?', 'add-restaurant.php'); $router->map('GET|POST','/menu/?', 'menu.php'); $router->map('GET|POST','/menu/[i:id]?/?', 'menu-edit.php'); $router->map('GET|POST','/qr-builder/?', 'qr-builder.php'); $router->map('GET|POST','/dashboard/?', 'dashboard.php'); $router->map('GET|POST','/orders/?', 'orders.php'); $router->map('GET|POST','/webhook/[*:i]?/?', 'webhook.php'); $router->map('GET|POST','/invoice/[i:id]?/?', 'invoice.php'); $router->map('GET|POST','/test/?', 'test.php'); // Special (GET processing, etc) $router->map('GET|POST','/page/[*:id]?/?', 'html.php'); $router->map('GET|POST','/membership/[a:change_plan]?/?', 'membership.php'); $router->map('GET|POST','/ipn/[a:i]?/[*:id]?/?', 'ipn.php'); $router->map('GET|POST','/payment/[*:token]?/[a:status]?/[*:message]?/?', 'payment.php'); $router->map('GET','/sitemap.xml/?', 'xml.php'); $router->map('GET|POST','/testimonials/?', 'testimonials.php'); $router->map('GET|POST','/blog/?', 'blog.php'); $router->map('GET|POST','/blog/category/[*:keyword]/?', 'blog-category.php'); $router->map('GET|POST','/blog/author/[*:keyword]/?', 'blog-author.php'); $router->map('GET|POST','/blog/[i:id]?/[*:slug]?/?', 'blog-single.php'); $router->map('GET|POST','/whatsapp-ordering/?', 'whatsapp-ordering.php'); $router->map('GET|POST','/restaurant/[i:id]?/[*:slug]?/?','restaurant.php'); // for old urls $router->map('GET|POST','/[*:slug]?/?','restaurant.php'); // API Routes /* Match the current request */ $match=$router->match(); if($match) { if ($_SERVER["REQUEST_METHOD"] == "GET") { $_GET = array_merge($_GET,$match['params']); } require_once ROOTPATH . '/includes/config.php'; if(!isset($config['installed'])) { $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://'; $site_url = $protocol . $_SERVER['HTTP_HOST'] . str_replace ("index.php", "", $_SERVER['PHP_SELF']); header("Location: ".$site_url."install/"); exit; } require_once ROOTPATH . '/includes/lib/HTMLPurifier/HTMLPurifier.standalone.php'; require_once ROOTPATH . '/includes/sql_builder/idiorm.php'; require_once ROOTPATH . '/includes/db.php'; require_once ROOTPATH . '/includes/classes/class.template_engine.php'; require_once ROOTPATH . '/includes/classes/class.country.php'; require_once ROOTPATH . '/includes/functions/func.global.php'; require_once ROOTPATH . '/includes/lib/password.php'; require_once ROOTPATH . '/includes/lib/class.upload.php-master/src/class.upload.php'; require_once ROOTPATH . '/includes/functions/func.users.php'; require_once ROOTPATH . '/includes/functions/func.sqlquery.php'; require_once ROOTPATH . '/includes/classes/GoogleTranslate.php'; if(isset($_GET['lang'])) { if ($_GET['lang'] != ""){ change_user_lang($_GET['lang']); } } require_once ROOTPATH . '/includes/lang/lang_'.$config['lang'].'.php'; require_once ROOTPATH . '/includes/seo-url.php'; sec_session_start(); $mysqli = db_connect(); require APPPATH.$match['target']; } else { header("HTTP/1.0 404 Not Found"); require APPPATH.'404.php'; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.58 |
proxy
|
phpinfo
|
Settings