Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
leinue committed Sep 26, 2014
1 parent 128cceb commit a43ede9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beta/fun/cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function getImages(){
$pic=$this->singleNew["image"];
}

$filepath="../img/".$this->getDate()."/";
$filepath="\/img/".$this->getDate()."/";
if(!is_dir($filepath)){
mkdir($filepath,0777,true);
}
Expand Down
7 changes: 6 additions & 1 deletion beta/read.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
$faceUrlFixed=substr($faceUrlFixed,0,strlen($faceUrlFixed)-2);
$data=file_get_contents($faceUrlFixed);

$filepath="../img/avatar/".$id.".".substr($faceUrlFixed,-3,3);
$filepath="\/img/avatar/".$id.".".substr($faceUrlFixed,-3,3);

if(!is_dir("\/img/avatar/")){
mkdir("\/img/avatar/",0777,true);
}

if(!file_exists($filepath)){
$fp=@fopen($filepath,"w");
@fwrite($fp,$data);
Expand Down

0 comments on commit a43ede9

Please sign in to comment.