HEX
Server: Apache
System: Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User: contexpert (1050)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/contexpert/public_html/admin/fisier/functii_alex.php
<?
function getExtension($file) {
	$exp = explode(".", $file);
	return $exp[count($exp)-1];
}

function validateExtenstion($ext) {
	$arr = array('doc', 'jpeg' , 'jpg', 'gif', 'bmp' , 'ppt', 'pps', 'txt', 'rtf', 'avi', 'swf', 'mpg', 'mpeg', 'png', 'zip', 'rar');
	if (in_array(strtolower($ext), $arr)) return 1;
	else return 0;
}
?>