0 Star 0 Fork 0

foru / RAResource

加入 Gitee
与超过 800 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
weapon.php 3.67 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
石榴木 提交于 2016-03-15 04:21 . no commit message
<?php
//source匡숭셸코벵唐1켕昑2큽昑3槻벎몹2몸匡숭
header("Content-Type: text/html; charset=gb2312");
$act = @$_GET['act'];
$source_path = 'source/';
$target_dir = 'target';
$target_path = $target_dir.'/';
$target_gender = array('남','여');
$target_name = array('frog_kagerou','kagerou','peco_rebellion','rebellion','가드','검사','건너','결혼','궁수','권성','권성융합','권성포링','그리폰가드','기사','길로틴크로스','노비스포링','닌자','도둑','두꺼비닌자','두꺼비소울링커','두꺼비카게로','레인져','레인져늑대','로그','로드나이트','로드페코','루나이트','룬나이트쁘띠','마법사','여름','여우마법사','여우세이지','여우소서러','여우워록','여우위저드','여우프로페서','여우하이위저드','몽크','몽크알파카','미케닉','미케닉멧돼지','민스트럴','바드','복사알파카','사자기사','사자로드나이트','사자로얄거드','사자룬나이트','사자크루세이더','사자팔라딘','산타','상인','상인멧돼지','성직자','세이지','소서러','소울링커','쉐도우체이서','슈라','슈라알파카','슈퍼노비스','슈퍼노비스포링','스나이퍼','스토커','신페코크루세이더','아크비숍','아크비숍알파카','어세신','어세신크로스','연금술사','연금술사멧돼지','워록','위저드','제철공','제철공멧돼지','제네릭','제네릭멧돼지','챔피온','챔피온알파카','초보자','카게로','켈베로스길로틴크로스','켈베로스도둑','켈베로스로그','켈베로스쉐도우체이서','켈베로스스토커','켈베로스어세신','켈베로스어세신크로스','크루세이더','크리에이터','크리에이터멧돼지','클라운','타조궁수','타조레인져','타조민스트럴','타조바드','타조스나이퍼','타조크라운','타조헌터','태권소년','태권소년포링','팔라딘','페코검사','페코건너','페코크루세이더','페코팔라딘','페코페코','프로페서','프리스트','프리스트알파카','하이위저드','하이프리','하이프리스트알파카','헌터','화이트스미스','화이트스미스멧돼지','운영자');
if ($act=='proc') {
$id = @$_GET['id'];
//$type = @$_GET['type'] ? @$_GET['type'] : 0;
//$gender = @$_GET['gender'] ? @$_GET['gender'] : 0;
//털뙤커쩌角뤠닸瞳
if (!is_dir($target_path)) {
mkdir($target_dir,07777,true);
foreach ($target_name as $val) {
mkdir($target_path.$val,0777,true);
}
}
//삿혤캐커쩌苟杰唐匡숭、커쩌츰(꼇관윅綾커쩌苟匡숭、커쩌츰)
$handler = opendir($source_path);
$i = 0;
while (($filename = readdir($handler)) !== false) {//蛟극賈痰!==,렝岺커쩌苟놔君잚慨匡숭츰“0”된헙워
if ($filename != "." && $filename != "..") {
list($files[$i]['name'],$files[$i]['ex']) = explode('.',$filename);
$files[$i]['fullname'] = $filename;
}
$i++;
}
closedir($handler);
//print_r($files);exit;
foreach ($files as $value) {
foreach ($target_name as $val) { //츰俚
//$type_str = $type==1?'_검광':'';
//$gender_str = $gender==1?'여':'남';
switch($value['name']){
case 1:
@copy($source_path.$value['fullname'],$target_path.$val.'/'.$value['fullname']);
@rename($target_path.$val.'/'.$value['fullname'],$target_path.$val.'/'.$val.'_남_'.$id.'.'.$value['ex']);
break;
case 2:
@copy($source_path.$value['fullname'],$target_path.$val.'/'.$value['fullname']);
@rename($target_path.$val.'/'.$value['fullname'],$target_path.$val.'/'.$val.'_여_'.$id.'.'.$value['ex']);
break;
case 3:
@copy($source_path.$value['fullname'],$target_path.$val.'/'.$value['fullname']);
@rename($target_path.$val.'/'.$value['fullname'],$target_path.$val.'/'.$val.'_남_'.$id.'_검광.'.$value['ex']);
@copy($source_path.$value['fullname'],$target_path.$val.'/'.$value['fullname']);
@rename($target_path.$val.'/'.$value['fullname'],$target_path.$val.'/'.$val.'_여_'.$id.'_검광.'.$value['ex']);
break;
}
}
}
}
?>
<form action="" method="get">
<input type="text" name="id" value="<?php echo @$id;?>">
<input type="submit" value="瓊슥">
<input type="hidden" name="act" value="proc">
</form>
1
https://gitee.com/sw1981/RAResource.git
git@gitee.com:sw1981/RAResource.git
sw1981
RAResource
RAResource
master

搜索帮助