64 lines
1.6 KiB
PHP
64 lines
1.6 KiB
PHP
|
<?
|
|||
|
|
|||
|
die('<27><><EFBFBD>-<2D><> <20><><EFBFBD> <20><> <20><><EFBFBD>...');
|
|||
|
|
|||
|
$dn = htmlspecialchars($_GET['dn']);
|
|||
|
//
|
|||
|
if(!mkdir('./dnew/'.$dn.'',0777,true)) {
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.' <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<br>';
|
|||
|
}
|
|||
|
//
|
|||
|
if(!mkdir('./dnew/'.$dn.'/Left',0777,true)) {
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.'/Left <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<br>';
|
|||
|
}
|
|||
|
if(!mkdir('./dnew/'.$dn.'/Right',0777,true)) {
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.'/Right <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<br>';
|
|||
|
}
|
|||
|
//
|
|||
|
if(!mkdir('./dnew/'.$dn.'/Left/Front',0777,true)) {
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.'/Left/Front <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<br>';
|
|||
|
}
|
|||
|
if(!mkdir('./dnew/'.$dn.'/Right/Front',0777,true)) {
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.'/Right/Front <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<br>';
|
|||
|
}
|
|||
|
|
|||
|
function save_img($img) {
|
|||
|
global $dn;
|
|||
|
$s = file_get_contents('https://img.new-combats.com/i/sprites/'.$dn.'/'.$img);
|
|||
|
file_put_contents('./dnew/'.$dn.'/'.$img , $s);
|
|||
|
}
|
|||
|
|
|||
|
save_img('bg0.gif');
|
|||
|
save_img('bg1.gif');
|
|||
|
|
|||
|
save_img('Left/4_1.gif');
|
|||
|
save_img('Right/4_1.gif');
|
|||
|
save_img('Left/4_0.gif');
|
|||
|
save_img('Right/4_0.gif');
|
|||
|
save_img('Left/Front/4_2.gif');
|
|||
|
save_img('Right/Front/4_2.gif');
|
|||
|
save_img('Left/Front/4_1.gif');
|
|||
|
save_img('Right/Front/4_1.gif');
|
|||
|
save_img('Left/Front/4_0.gif');
|
|||
|
save_img('Left/3_1.gif');
|
|||
|
save_img('Right/3_1.gif');
|
|||
|
save_img('Left/3_0.gif');
|
|||
|
save_img('Right/3_0.gif');
|
|||
|
save_img('Left/Front/3_1.gif');
|
|||
|
save_img('Right/Front/3_1.gif');
|
|||
|
save_img('Left/Front/3_0.gif');
|
|||
|
save_img('Left/2_0.gif');
|
|||
|
save_img('Right/2_0.gif');
|
|||
|
save_img('Left/Front/2_1.gif');
|
|||
|
save_img('Right/Front/2_1.gif');
|
|||
|
save_img('Left/Front/2_0.gif');
|
|||
|
save_img('Left/1_0.gif');
|
|||
|
save_img('Right/1_0.gif');
|
|||
|
save_img('Left/Front/1_1.gif');
|
|||
|
save_img('Right/Front/1_1.gif');
|
|||
|
save_img('Left/Front/1_0.gif');
|
|||
|
save_img('Left/0_0.gif');
|
|||
|
save_img('Right/0_0.gif');
|
|||
|
|
|||
|
echo '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$dn.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!]';
|
|||
|
?>
|