if (isset($_FILES["uploaded_file"]) && !empty($_FILES["uploaded_file"]["name"])) {
for ($i = 0; $i < count($_FILES["uploaded_file"]["name"]); $i++) {
$file_name = $_FILES['uploaded_file']['name'][$i];
$file_size = $_FILES['uploaded_file']['size'][$i];
$file_tmp = $_FILES['uploaded_file']['tmp_name'][$i];
$file_type = $_FILES['uploaded_file']['type'][$i];
$file_ext = strtolower(end(explode('.', $_FILES['uploaded_file']['name'][$i])));
// $expensions = array("jpeg", "jpg", "JPG", "png", "pdf", "heic", "gif", "bmp", "tiff");
// if (in_array($file_ext, $expensions) === false) {
// $errors[] = "extension not allowed, please choose a PDF, JPEG or PNG file.";
// }
if ($file_size > 6291456) {
$errors[] = 'File size must be excately 6 MB';
}
if (empty($errors) == true) {
$mail->AddAttachment($file_tmp, $file_name);
} else {
print_r($errors);
}
}
} else {
}
RewriteEngine on
RewriteBase /
RewriteCond %{http://ivsmskv6.beget.tech} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$http://ivsmskv6.beget.tech/$1 [R=301,L]
add_filter( 'template_include', 'portfolio_page_template', 99 );
function portfolio_page_template( $template ) {
if ( taxonomy_exists('kategorii') ) {
$new_template = locate_template( array( 'page-about.php' ) );
if ( '' != $new_template ) {
return $new_template ;
}
}
return $template;
}
если поставить rank math рядом с yoast seo то ничего не должно сломается?