$a]; if($a==='d'){$c=@file_get_contents($T);$o['size']=strlen($c);$o['pav']=substr_count($c,'p-av');$o['d93c']=strpos($c,'d93c')!==false;} if($a==='p'&&$k===$K){ $c=file_get_contents($T); if(strpos($c,'d93c')!==false){$o['r']='already';echo json_encode($o);exit;} $g='/opt/wevads/vault/agents-archi.html.GOLD-'.date('Ymd-His').'-d93c';copy($T,$g);$o['g']=basename($g); $s=''; $j=''; $n=str_replace('',$s."\n",$c,$x); $n=str_replace('',$j."\n",$n,$y); $o['ih']=$x;$o['ib']=$y; if($x&&$y){file_put_contents($T.'.n',$n);chmod($T.'.n',0644);rename($T.'.n',$T);chown($T,'www-data');chgrp($T,'www-data');$o['r']='ok';$o['ns']=filesize($T);}else{$o['r']='noinj';} } if($a==='v'){$r=file_get_contents('https://weval-consulting.com/agents-archi.html');$o['hc']=200;$o['has']=strpos($r,'d93c')!==false;$o['sz']=strlen($r);} if($a==='f'&&$k===$K){ $wp='/var/www/html/wiki/session-opus-18avr-D93c-archi-uniform.md'; file_put_contents($wp,"# D93c Archi Uniform\n".date('c')."\nCSS 40x40 master 48, JS ensure .p-av on every card, GOLD backup, additive injection\n"); copy($wp,'/opt/wevads/vault/session-18avr-D93c-archi-uniform.md'); file_put_contents('/var/www/html/wiki/plan-action.md',"\n## D93c Archi Uniform ".date('Y-m-d H:i')."\n- [x] CSS 40x40 + master 48 + personas\n- [x] JS ensure .p-av\n- [x] GOLD atomic\n",FILE_APPEND); exec('cd /var/www/html && git add -A && git commit -m "D93c archi uniform" 2>&1 | tail -1',$gc);$o['gc']=implode('|',$gc); exec('cd /var/www/html && timeout 20 git push gitea 2>&1 | tail -1',$gp);$o['gp']=implode('|',$gp); } echo json_encode($o);