| Server IP : 119.195.102.159 / Your IP : 216.73.217.134 Web Server : nginx/1.18.0 System : Linux picell 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 User : altablue ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/ |
Upload File : |
<?php
// auth_proc.php 수정 - $options 변수 앞 주석 분리
$path = '/home2/haeyulhome/okname/auth_proc.php';
$lines = file($path);
$out = [];
foreach ($lines as $line) {
// "$options = ..." 앞에 주석이 붙어있는 패턴 수정
if (preg_match('/^(\s*)\/\/[^\n]*(\$options\s*=)/', $line, $m)) {
$pos = strpos($line, $m[2]);
$out[] = $m[1] . '// 옵션 설정' . "\n";
$out[] = $m[1] . substr($line, $pos);
} else {
$out[] = $line;
}
}
file_put_contents($path, implode('', $out));
echo "Fixed auth_proc.php\n";
// auth_request.php 수정 - $options 관련 동일 패턴
$path2 = '/home2/haeyulhome/okname/auth_request.php';
$lines2 = file($path2);
$out2 = [];
foreach ($lines2 as $line) {
if (preg_match('/^(\s*)\/\/[^\n]*(\$options\s*=)/', $line, $m)) {
$pos = strpos($line, $m[2]);
$out2[] = $m[1] . '// 옵션 설정' . "\n";
$out2[] = $m[1] . substr($line, $pos);
} else {
$out2[] = $line;
}
}
file_put_contents($path2, implode('', $out2));
echo "Fixed auth_request.php\n";