From 8fabf77b2a7720a357c63817c07035a9908818a0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Nov 2021 17:53:50 +0100 Subject: Update --- .../api/engine-cyclic/components/banner.php | 10 --- .../api/engine-cyclic/components/content.php | 22 ------ .../api/engine-cyclic/components/drawer.php | 54 ------------- .../api/engine-cyclic/components/favicon.php | 88 ---------------------- .../api/engine-cyclic/components/footer.php | 18 ----- .../api/engine-cyclic/components/init.php | 14 ---- .../api/engine-cyclic/components/menubar.php | 52 ------------- .../api/engine-cyclic/components/widgets.php | 18 ----- 8 files changed, 276 deletions(-) delete mode 100644 Neutron-trunk/api/engine-cyclic/components/banner.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/content.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/drawer.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/favicon.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/footer.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/init.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/menubar.php delete mode 100644 Neutron-trunk/api/engine-cyclic/components/widgets.php (limited to 'Neutron-trunk/api/engine-cyclic/components') diff --git a/Neutron-trunk/api/engine-cyclic/components/banner.php b/Neutron-trunk/api/engine-cyclic/components/banner.php deleted file mode 100644 index 800ead1..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/banner.php +++ /dev/null @@ -1,10 +0,0 @@ -
- \ No newline at end of file diff --git a/Neutron-trunk/api/engine-cyclic/components/content.php b/Neutron-trunk/api/engine-cyclic/components/content.php deleted file mode 100644 index e3e3be5..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/content.php +++ /dev/null @@ -1,22 +0,0 @@ -
-
-
- -

- -
-
-

- -
-
- - - - -
-

- -
-
-
diff --git a/Neutron-trunk/api/engine-cyclic/components/drawer.php b/Neutron-trunk/api/engine-cyclic/components/drawer.php deleted file mode 100644 index f0e1db7..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/drawer.php +++ /dev/null @@ -1,54 +0,0 @@ - - - -
\ No newline at end of file diff --git a/Neutron-trunk/api/engine-cyclic/components/favicon.php b/Neutron-trunk/api/engine-cyclic/components/favicon.php deleted file mode 100644 index 3d078a1..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/favicon.php +++ /dev/null @@ -1,88 +0,0 @@ -src_img = $img; - $this->src_w = imagesx($img); - $this->src_h = imagesy($img); - $this->dst_w = $dstWidth; - $this->dst_h = $dstHeight; - } - - public function __destruct() - { - if (is_resource($this->dst_img)) - { - imagedestroy($this->dst_img); - } - } - - public function display() - { - imagepng($this->dst_img, $_SERVER['DOCUMENT_ROOT'] . "/resources/upload/favicon.png"); - return $this; - } - - public function reset() - { - if (is_resource(($this->dst_img))) - { - imagedestroy($this->dst_img); - } - $this->dst_img = imagecreatetruecolor($this->dst_w, $this->dst_h); - imagecopy($this->dst_img, $this->src_img, 0, 0, 0, 0, $this->dst_w, $this->dst_h); - return $this; - } - - public function size($dstWidth, $dstHeight) - { - $this->dst_w = $dstWidth; - $this->dst_h = $dstHeight; - return $this->reset(); - } - - public function crop() - { - $this->reset(); - - $mask = imagecreatetruecolor($this->dst_w, $this->dst_h); - $maskTransparent = imagecolorallocate($mask, 255, 0, 255); - imagecolortransparent($mask, $maskTransparent); - imagefilledellipse($mask, $this->dst_w / 2, $this->dst_h / 2, $this->dst_w, $this->dst_h, $maskTransparent); - - imagecopymerge($this->dst_img, $mask, 0, 0, 0, 0, $this->dst_w, $this->dst_h, 100); - - $dstTransparent = imagecolorallocate($this->dst_img, 255, 0, 255); - imagefill($this->dst_img, 0, 0, $dstTransparent); - imagefill($this->dst_img, $this->dst_w - 1, 0, $dstTransparent); - imagefill($this->dst_img, 0, $this->dst_h - 1, $dstTransparent); - imagefill($this->dst_img, $this->dst_w - 1, $this->dst_h - 1, $dstTransparent); - imagecolortransparent($this->dst_img, $dstTransparent); - - return $this; - } - - } - - if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/siteicon-uncomp.png")) { - $path = $_SERVER['DOCUMENT_ROOT'] . "/resources/upload/siteicon-uncomp.png"; - } else { - $path = $_SERVER['DOCUMENT_ROOT'] . "/resources/upload/siteicon.png"; - } - - $image = imagecreatefrompng($path); - - $width = imagesx($image); - $height = imagesy($image); - $crop = new CircleCrop($image,$width,$height); - $crop->crop()->display(); \ No newline at end of file diff --git a/Neutron-trunk/api/engine-cyclic/components/footer.php b/Neutron-trunk/api/engine-cyclic/components/footer.php deleted file mode 100644 index ca571cb..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/footer.php +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/Neutron-trunk/api/engine-cyclic/components/init.php b/Neutron-trunk/api/engine-cyclic/components/init.php deleted file mode 100644 index d17792e..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/init.php +++ /dev/null @@ -1,14 +0,0 @@ -list; -foreach ($widgets as $widget): ?> - -class) && is_string($data->class)) { - require $_SERVER['DOCUMENT_ROOT'] . "/widgets/" . $widget . "/source.php"; -} - -?> - \ No newline at end of file diff --git a/Neutron-trunk/api/engine-cyclic/components/menubar.php b/Neutron-trunk/api/engine-cyclic/components/menubar.php deleted file mode 100644 index b6bce59..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/menubar.php +++ /dev/null @@ -1,52 +0,0 @@ - - -
- -
diff --git a/Neutron-trunk/api/engine-cyclic/components/widgets.php b/Neutron-trunk/api/engine-cyclic/components/widgets.php deleted file mode 100644 index c2a903c..0000000 --- a/Neutron-trunk/api/engine-cyclic/components/widgets.php +++ /dev/null @@ -1,18 +0,0 @@ -list; -foreach ($widgets as $widget): ?> - -
-class) && is_string($data->class)) { - $class = $data->class; - new $class(); -} else { - require $_SERVER['DOCUMENT_ROOT'] . "/widgets/" . $widget . "/source.php"; -} - -?> - \ No newline at end of file -- cgit