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/googleaiphotobooth.com/narrative-google-ai-web/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/googleaiphotobooth.com/narrative-google-ai-web/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 is_https() {
	if ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
		return true;
	} else {
		return false;
	}
}

function check_method() {
	return (trim(strtoupper($_SERVER['REQUEST_METHOD'])));
}

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

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

	return $string;
}

function send_response($response_code = 0, $db_code = 0) {
	global $api_response_code;

	 // clear the old headers
	header_remove();
	 
	// Set HTTP Response Content Type
	header('Content-Type: application/json; charset=utf-8');

	// Create the response array
	$response['status'] = $api_response_code[$response_code]['HTTP Response'];
	$response['message'] = $api_response_code[$response_code]['Message'];
	$response['time'] = time();
	
	if ($db_code != 0 && strlen($db_code) == 16) {
		$response['code'] = $db_code;
	}
	
	// Format data into a JSON response
	$json_response = json_encode($response);

	exit ($json_response);
	 
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit