Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoapi committed Aug 1, 2019
1 parent e12ccd2 commit 2663d2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gourl.php
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ private function check_settings()
$file = (isset($_FILES[GOURL.$k."2"]["name"]) && $_FILES[GOURL.$k."2"]["name"]) ? $_FILES[GOURL.$k."2"] : "";
if ($file)
{
if ($this->options[$k."url"] && file_exists(GOURL_DIR."box/".$this->options[$k.'url'])) unlink(GOURL_DIR."box/".$this->options[$k.'url']);
if ($this->options[$k."url"] && file_exists(GOURL_DIR."box/".$this->options[$k.'url']) && current_user_can('administrator')) unlink(GOURL_DIR."box/".$this->options[$k.'url']);
$this->options[$k."url"] = $this->upload_file($file, "box");

}
Expand All @@ -995,7 +995,7 @@ private function check_settings()
$file = (isset($_FILES[GOURL."boxlogo2"]["name"]) && $_FILES[GOURL."boxlogo2"]["name"]) ? $_FILES[GOURL."boxlogo2"] : "";
if ($file)
{
if ($this->options["boxlogo_url"] && file_exists(GOURL_DIR."box/".$this->options["boxlogo_url"])) unlink(GOURL_DIR."box/".$this->options["boxlogo_url"]);
if ($this->options["boxlogo_url"] && file_exists(GOURL_DIR."box/".$this->options["boxlogo_url"]) && current_user_can('administrator')) unlink(GOURL_DIR."box/".$this->options["boxlogo_url"]);
$this->options["boxlogo_url"] = $this->upload_file($file, "box");
}

Expand Down Expand Up @@ -8387,7 +8387,7 @@ function gourl_altcoin_btc_price ($altcoin, $interval = 1)
{
return $arr2["price"];
}


return 0;
return 0;
}

0 comments on commit 2663d2d

Please sign in to comment.