// Folder security checks $orig_folder_name = folder_utils::get_folder_name($folder, $mysqli); if ($orig_folder_name == '') { $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email')); $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '../artwork/page_not_found.png', '#C00000', true, true); } if (!folder_utils::has_permission($folder, $userObject, $mysqli)) { $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email')); $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '../artwork/page_not_found.png', '#C00000', true, true); } $parent_list = folder_utils::get_parent_list($orig_folder_name, $userObject, $mysqli); $module = ''; if (isset($_POST['submit'])) { $folder_parent = folder_utils::get_folder_name($folder, $mysqli); $new_folder_name = $folder_parent . ';' . $_POST['folder_name']; $duplicate_folder = folder_utils::folder_exists($new_folder_name, $userObject, $mysqli); if ($duplicate_folder == false) { folder_utils::create_folder($new_folder_name, $userObject, $mysqli); } } $folders_array = explode(';', $orig_folder_name); $parts = count($folders_array) - 1; ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="content-type" content="text/html;charset=<?php echo $configObject->get('cfg_page_charset'); ?> " />