cfmgr init...3

This commit is contained in:
최준흠 2023-06-20 11:34:29 +09:00
parent 16fe0e2a6d
commit 3c8fcf8363
3 changed files with 4 additions and 4 deletions

View File

@ -100,10 +100,10 @@ abstract class API
final public function reload(int $page_limit = 0): array
{
$cfResults = $this->reload_cfResults($page_limit);
Log::add("notice", "-----{$this->getParent()->getTitle()} {$this->getClassName()} 처리[" . count($cfResults) . "개] 시작-----");
Log::add("notice", "-----{$this->getParent()->getTitle()} {$this->getClassName()} cfResult 처리[" . count($cfResults) . "개] 시작-----");
$entitys = $this->reload_entitys($cfResults);
$this->reload_delete($entitys);
Log::add("notice", "-----{$this->getParent()->getTitle()} {$this->getClassName()} 처리[" . count($entitys) . "개] 완료-----");
Log::add("notice", "-----{$this->getParent()->getTitle()} {$this->getClassName()} DB 처리[" . count($entitys) . "개] 완료-----");
return $entitys;
}
}

View File

@ -86,6 +86,6 @@ class Firewall extends API
protected function getCFResults_List(int $page): array
{
$this->_endPoint = is_null($this->_endPoint) ? new \Cloudflare\API\Endpoints\Firewall($this->getAdapter()) : $this->_endPoint;
return $$this->_endPoint->listFirewallRules($this->getParent()->getPrimaryKey(), $page, CF_ADAPTER_PERPAGE_MAX)->result;
return $this->_endPoint->listFirewallRules($this->getParent()->getPrimaryKey(), $page, CF_ADAPTER_PERPAGE_MAX)->result;
}
}

View File

@ -34,7 +34,7 @@
<h2><a href="/admin/cloudflare/record"><i class="fa fa-cube"></i>Record관리</a></h2>
</div>
<div class="accordion-item">
<i class="fa fa-shield"></i>Firewall관리
<h2><a href="/admin/cloudflare/firewall"><i class="fa fa-cube"></i>Firewall관리</a></h2>
</div>
</div>
</div>