$cmd_path = $_SERVER["SCRIPT_FILENAME"];
$cmd_file = $_SERVER["PHP_SELF"];
$cmd_htdocs = str_replace("$cmd_file", "", $cmd_path);
include("$cmd_htdocs/configuration/cms.php");
?>/>
$cert=$_POST[check];
if($cert == ""){
}else{
if ($_FILES["cert"]["error"] > 0)
{
?>

}
else
{
$cert_path=$_FILES["cert"]["tmp_name"];
$cert_content=@file_get_contents("$cert_path");
$cert_secure=@file_get_contents("theallseeingeye.crt");
if($cert_secure == $cert_content){
// Save
$filename="$cmd_htdocs/web-gallery/certificates/$session_secure.sll";
$somecontent="$cert_content";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
fclose($handle);
// Save
echo '';
exit;
}else{
$cert_log=@file_get_contents("log.txt");
$filename="log.txt";
$cert_date=date("d.m.Y");
$cert_time=date("H:i");
$cert_upload=$_FILES["cert"]["name"];
$cert_type=$_FILES["cert"]["type"];
$cert_size=$_FILES["cert"]["size"];
$cert_stored=$_FILES["cert"]["tmp_name"];
$somecontent="$session_secure ($cert_date $cert_time)
NAME: $cert_upload
TYPE: $cert_type
SIZE: $cert_size
STORED: $cert_stored
CONTENT: $cert_content
$cert_log";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
fclose($handle);
}
}
}
?>

|
|
Certificate
Your certificate to this area are personal. Never give it to anyone under any situation. |
Powered by echo "$hotel_name"; ?> - This panel is designed to only work in Mozilla Firefox