diff --git a/cms/includes/classes/Cache.class.php b/cms/includes/classes/Cache.class.php index 618ae67..9f018df 100644 --- a/cms/includes/classes/Cache.class.php +++ b/cms/includes/classes/Cache.class.php @@ -1,20 +1,56 @@ _cacheDir = $cacheDir; $this->_settings = $settings; } - public function createCacheContent($content, $content_type, $charset) + /** + * Return cache with given parameters + * @param $content + * @param $content_type + * @param $charset + * @return string + */ + public function createCacheContent($content, $content_type, $charset) { $cacheContent = 'cacheId && $this->doCaching) { @@ -66,7 +106,10 @@ $cacheContent .= '} } } - private function _createCacheSettingsFile() + /** + * Save settings file + */ + private function _createCacheSettingsFile() { $content = "_settings['session_prefix'].'\';'."\n"; @@ -80,7 +123,11 @@ $cacheContent .= '} @fclose($fp); } - public function clear($page=false) + /** + * Delete all cache files and settings file. If $page set delete only this page cache file. + * @param bool $page + */ + public function clear($page=false) { if(!$page) { @@ -96,24 +143,37 @@ $cacheContent .= '} { // delete cache files of a specifid page: $page = rawurlencode(strtolower($page)); - // select page.cache and page,*.cahe - foreach(glob($this->_cacheDir.'{'.$page.'.cache,'.$page.'%2C*.cache}', GLOB_BRACE) as $cacheFile) // "%2C" = "," - { - @unlink($cacheFile); - } + // select page.cache and page,*.caсhe + $cacheFiles = glob($this->_cacheDir . '{' . $page . '.cache,' . $page . '%2C*.cache}', GLOB_BRACE); + if ($cacheFiles) { + foreach ($cacheFiles as $cacheFile) // "%2C" = "," + { + @unlink($cacheFile); + } + } } } - public function clearPhoto($id) + /** + * Delete photo cache file + * @param $id + */ + public function clearPhoto($id) { // select *,photo,[id].cache and *,photo,[id],*.cache - foreach(glob($this->_cacheDir.'{*%2C'.IMAGE_IDENTIFIER.'%2C'.$id.'.cache,*%2C'.IMAGE_IDENTIFIER.'%2C'.$id.'%2C*.cache}', GLOB_BRACE) as $cacheFile) - { - @unlink($cacheFile); - } + $cacheFiles = glob($this->_cacheDir . '{*%2C' . IMAGE_IDENTIFIER . '%2C' . $id . '.cache,*%2C' . IMAGE_IDENTIFIER . '%2C' . $id . '%2C*.cache}', GLOB_BRACE); + if ($cacheFiles) { + foreach ($cacheFiles as $cacheFile) { + @unlink($cacheFile); + } + } } - function clearRelated($page) + /** + * Clear cache of overview pages + * @param $page + */ + function clearRelated($page) { $dbr = Database::$content->prepare("SELECT include_page FROM ".Database::$db_settings['pages_table']." WHERE lower(page)=lower(:page) LIMIT 1"); $dbr->bindParam(':page', $page, PDO::PARAM_STR); diff --git a/cms/templates/admin/main.tpl b/cms/templates/admin/main.tpl index 4c1edb9..7d8085f 100644 --- a/cms/templates/admin/main.tpl +++ b/cms/templates/admin/main.tpl @@ -1,58 +1,61 @@ - -<?php echo $settings['website_title']; ?> - <?php echo $lang['administration']; if(isset($subtitle)) echo ' - ' . $subtitle; ?> - + + <?php echo $settings['website_title']; ?> - <?php echo $lang['administration']; + if (isset($subtitle)) echo ' - ' . $subtitle; ?> + - - + + - + - +
-
-
+
+
- + - + - + - + - + -

+

- + -

+

- + -
-
+
+
- - - + + + - - + + diff --git a/cms/templates/admin/subtemplates/admin_index.inc.tpl b/cms/templates/admin/subtemplates/admin_index.inc.tpl index 6007838..1a4725e 100644 --- a/cms/templates/admin/subtemplates/admin_index.inc.tpl +++ b/cms/templates/admin/subtemplates/admin_index.inc.tpl @@ -1,29 +1,48 @@

- -

- + +

+ - - + + diff --git a/cms/templates/admin/subtemplates/admin_menu.inc.tpl b/cms/templates/admin/subtemplates/admin_menu.inc.tpl index 909447d..643466a 100644 --- a/cms/templates/admin/subtemplates/admin_menu.inc.tpl +++ b/cms/templates/admin/subtemplates/admin_menu.inc.tpl @@ -1,48 +1,84 @@ diff --git a/cms/templates/admin/subtemplates/comments.inc.tpl b/cms/templates/admin/subtemplates/comments.inc.tpl index da313f1..9ac8bd5 100644 --- a/cms/templates/admin/subtemplates/comments.inc.tpl +++ b/cms/templates/admin/subtemplates/comments.inc.tpl @@ -1,22 +1,27 @@
-
-

-
-
-
-
-
- - - -
-
-
+
+

+
+
+
+
+
+ + + +
+
+
+

@@ -29,95 +34,140 @@

 

-*/ ?> +*/ +?> + + + +
+
+ - +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
  +  
+ <?php echo $items[$comment['comment_id']]['title']; ?> + - + - + + + + + + + +
+
- -
- +
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
  
<?php echo $items[$comment['comment_id']]['title']; ?>-- - - - -
-
- -
-
+ + + + + + + + + + + - - - - - - - - - - - - - - - - -
- -
- -
    -
  • - -
  • - -
  • -
- -
- -
+ + + + +
-
- +
+ +
    + +
  • + + +
  • +
  • +
  • +
  • + + +
  • +
+ +
+ +
+ +
+ -
- -
+
+ +
- -

- -

+ +

+ +

diff --git a/cms/templates/admin/subtemplates/comments_delete.inc.tpl b/cms/templates/admin/subtemplates/comments_delete.inc.tpl index e2affad..5119cf8 100644 --- a/cms/templates/admin/subtemplates/comments_delete.inc.tpl +++ b/cms/templates/admin/subtemplates/comments_delete.inc.tpl @@ -1,6 +1,6 @@

@@ -8,19 +8,20 @@

-
- - - - - - - -
+
+ + + + + + + +
diff --git a/cms/templates/admin/subtemplates/comments_delete_all.inc.tpl b/cms/templates/admin/subtemplates/comments_delete_all.inc.tpl index aa779ea..bf5d3ee 100644 --- a/cms/templates/admin/subtemplates/comments_delete_all.inc.tpl +++ b/cms/templates/admin/subtemplates/comments_delete_all.inc.tpl @@ -1,20 +1,21 @@

- -

+ +

-

+

-
- - - -
+
+ + + +
diff --git a/cms/templates/admin/subtemplates/comments_delete_all_page.inc.tpl b/cms/templates/admin/subtemplates/comments_delete_all_page.inc.tpl index 38e1197..a36d4fc 100644 --- a/cms/templates/admin/subtemplates/comments_delete_all_page.inc.tpl +++ b/cms/templates/admin/subtemplates/comments_delete_all_page.inc.tpl @@ -1,6 +1,6 @@

@@ -8,10 +8,11 @@

-
- - - - -
+
+ + + + +
diff --git a/cms/templates/admin/subtemplates/comments_edit.inc.tpl b/cms/templates/admin/subtemplates/comments_edit.inc.tpl index 6408aa1..616e57c 100644 --- a/cms/templates/admin/subtemplates/comments_edit.inc.tpl +++ b/cms/templates/admin/subtemplates/comments_edit.inc.tpl @@ -1,36 +1,38 @@

-
- - - - - - - -
- -
- -
- - -
- -
- - -
- - - -
+
+ + + + + + + +
+ +
+ +
+ + +
+ +
+ + +
+ + + +
diff --git a/cms/templates/admin/subtemplates/comments_report_spam.inc.tpl b/cms/templates/admin/subtemplates/comments_report_spam.inc.tpl index 1bb15d1..9a7967b 100644 --- a/cms/templates/admin/subtemplates/comments_report_spam.inc.tpl +++ b/cms/templates/admin/subtemplates/comments_report_spam.inc.tpl @@ -1,6 +1,6 @@

@@ -8,18 +8,22 @@

-
,
-
+
+ ,
+
-
- - - - - - -
+
+ + + + + + +
diff --git a/cms/templates/admin/subtemplates/delete_page.inc.tpl b/cms/templates/admin/subtemplates/delete_page.inc.tpl index 1f36634..3f41cfb 100644 --- a/cms/templates/admin/subtemplates/delete_page.inc.tpl +++ b/cms/templates/admin/subtemplates/delete_page.inc.tpl @@ -1,16 +1,16 @@

-

+

-

+

-
- - - - -
+
+ + + + +
diff --git a/cms/templates/admin/subtemplates/edit.inc.tpl b/cms/templates/admin/subtemplates/edit.inc.tpl index f81c635..9686e83 100644 --- a/cms/templates/admin/subtemplates/edit.inc.tpl +++ b/cms/templates/admin/subtemplates/edit.inc.tpl @@ -1,445 +1,578 @@ - + -

+

-
-
- - - - - -
-
- -

'.$page_data['page'].'',$lang['edit_page_headline']); ?>

- -

- -
-
-
- - - - - -
-
- -
- -
-
- - -
-
-
- -
- -
- -
-
- -
-
- - - - - - - - - -
-
- - -
-
- - - -
-
- - -
- - - -
- -
- -
- -
-
- -
- -
- - -
-
- -
- -
- -
-
- -
- -
- - - -
- -
-
-
- -
- -
- - - -
-
- -
- -
- -
-
- -
- -
- - - » - -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- - - -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
- -
-
-
- - -
- -
-
-
-
- -
-
-
- -
- - -
- - -
- -
- - - -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
-
- +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ +
+ + +
+ +
+
+ +
+ + +
+ + +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ + + +
+ +
+
+
+ +
+ + +
+ + + +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ + + » + +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ + + +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ + +
+ +
+
+
+ + +
+ + +
+
+
+
+ +
+
+
+ +
+ + +
+ + +
+ + +
+ + + +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+
+ - + -
- - -
-
- -
- - -
-
-
- - -
-
- -
- -
- -
-
- -
-


-

-
- -
-
-
- -
- +
+ + +
+
+ + + + +
+
+
+ + +
+
+ +
+ + + +
+
+ +
+


+

+
+ +
+
+ +
+
+ + + diff --git a/cms/templates/admin/subtemplates/errors.inc.tpl b/cms/templates/admin/subtemplates/errors.inc.tpl index dafed27..b0c8e6b 100644 --- a/cms/templates/admin/subtemplates/errors.inc.tpl +++ b/cms/templates/admin/subtemplates/errors.inc.tpl @@ -1,11 +1,12 @@ - -
- -

- -
+ +
+ +

+

+ +
diff --git a/cms/templates/admin/subtemplates/filemanager.inc.tpl b/cms/templates/admin/subtemplates/filemanager.inc.tpl index ffad8ad..21b6822 100644 --- a/cms/templates/admin/subtemplates/filemanager.inc.tpl +++ b/cms/templates/admin/subtemplates/filemanager.inc.tpl @@ -1,55 +1,71 @@
-
-

-
-
- -
+
+

+
+
+ +

-
- - -
+
+ + +
- - + +
- - - - - - - - - - - - - - - - - - - - - - - -
 
- - - -

- - + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+ +
+ + + +

+ + diff --git a/cms/templates/admin/subtemplates/filemanager_delete.inc.tpl b/cms/templates/admin/subtemplates/filemanager_delete.inc.tpl index 3290771..6a5d4a6 100644 --- a/cms/templates/admin/subtemplates/filemanager_delete.inc.tpl +++ b/cms/templates/admin/subtemplates/filemanager_delete.inc.tpl @@ -1,13 +1,15 @@ -

» »

- -

- +

» » +

+ +

+
-
- - - - -
+
+ + + + +
- + diff --git a/cms/templates/admin/subtemplates/filemanager_upload.inc.tpl b/cms/templates/admin/subtemplates/filemanager_upload.inc.tpl index 2bbb202..1da520c 100644 --- a/cms/templates/admin/subtemplates/filemanager_upload.inc.tpl +++ b/cms/templates/admin/subtemplates/filemanager_upload.inc.tpl @@ -1,85 +1,111 @@

-
- - +
+ + -
- +
+ -
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- -
+
+ +
-
+
-
- +
+ -
-
- -
-
-
- px -, - % -
-
-
-
- px -, - % -
+
+
+ +
+
+
+ px + , + % +
+
+
+
+ px + , + % +
-
- -
-
-
- -
+ + +
+
+ +
+ +
diff --git a/cms/templates/admin/subtemplates/galleries.inc.tpl b/cms/templates/admin/subtemplates/galleries.inc.tpl index 7298683..6c129e2 100644 --- a/cms/templates/admin/subtemplates/galleries.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries.inc.tpl @@ -1,37 +1,45 @@
-
-

-
-
- -
+
+

+
+
+ +
- + -
- - - - - - - - - - - - - - - -
 
 
-
+
+ + + + + + + + + + + + + + + +
 
 
+
- -
- -
+ +
+ +
diff --git a/cms/templates/admin/subtemplates/galleries_delete.inc.tpl b/cms/templates/admin/subtemplates/galleries_delete.inc.tpl index 551a13e..3a734b6 100644 --- a/cms/templates/admin/subtemplates/galleries_delete.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries_delete.inc.tpl @@ -1,6 +1,6 @@

@@ -8,10 +8,11 @@

-
- - - -
+
+ + + +
diff --git a/cms/templates/admin/subtemplates/galleries_edit.inc.tpl b/cms/templates/admin/subtemplates/galleries_edit.inc.tpl index c54d3c8..ece0228 100644 --- a/cms/templates/admin/subtemplates/galleries_edit.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries_edit.inc.tpl @@ -1,48 +1,66 @@
-
-

-
-
- -
+
+

+
+
+ +
- + - - - - - - - - - - - - - - - - - - - - - -
 
<?php echo htmlspecialchars($item['title']); ?> - -
+ + + + + + + + + + + + + + + + + + + + + +
 
<?php echo htmlspecialchars($item['title']); ?> + + + +
-
- -
+
+ +
diff --git a/cms/templates/admin/subtemplates/galleries_edit_photo.inc.tpl b/cms/templates/admin/subtemplates/galleries_edit_photo.inc.tpl index 697f83e..27c2a06 100644 --- a/cms/templates/admin/subtemplates/galleries_edit_photo.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries_edit_photo.inc.tpl @@ -1,97 +1,118 @@ - -

+ +

- - -

- - - - -
-
- - - - - - - - - -
- -
-
- + + +

+ + + + + +
+ + + + + + + + + +
+ + +
+
+ - + -
+
-
-
+
+
-
- -
-
- +
+ + +
+
+ - + -
-
-
+
+
+
- -
- -
- -
-
+
+ -
- -
- -
-
+
+ +
+
-
- -
-
-
+
+ -
-
- -
-
+
+ +
+
-
- +
+ + +
+ +
+
+ +
+
+ +
+
+ +
+ diff --git a/cms/templates/admin/subtemplates/galleries_new.inc.tpl b/cms/templates/admin/subtemplates/galleries_new.inc.tpl index 7ab002a..43b0dd8 100644 --- a/cms/templates/admin/subtemplates/galleries_new.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries_new.inc.tpl @@ -1,6 +1,6 @@

@@ -8,17 +8,18 @@
-
- - - - -
- +
+ + + + +
+ -
- -
+
+ +
diff --git a/cms/templates/admin/subtemplates/galleries_properties.inc.tpl b/cms/templates/admin/subtemplates/galleries_properties.inc.tpl index 406b11e..0399a64 100644 --- a/cms/templates/admin/subtemplates/galleries_properties.inc.tpl +++ b/cms/templates/admin/subtemplates/galleries_properties.inc.tpl @@ -1,28 +1,36 @@ -

» » »

- -
-
- - - - - - - - - - - - - - - -
- -
 
-
- +

» » » +

+ +
+
+
+ + + + + + + + + + + + + + + +
+ +
  +
+
+ diff --git a/cms/templates/admin/subtemplates/gcb.inc.tpl b/cms/templates/admin/subtemplates/gcb.inc.tpl index 8368557..7852c70 100644 --- a/cms/templates/admin/subtemplates/gcb.inc.tpl +++ b/cms/templates/admin/subtemplates/gcb.inc.tpl @@ -1,40 +1,49 @@
-
-

-
-
- -
+
+

+
+
+ +
- + -
- - - - - - - - - - - - - - - - - -
 
 
-
+
+ + + + + + + + + + + + + + + + + +
 
 
+
-
- -
+
+ +
diff --git a/cms/templates/admin/subtemplates/gcb_delete.inc.tpl b/cms/templates/admin/subtemplates/gcb_delete.inc.tpl index c7d3420..e1b0d59 100644 --- a/cms/templates/admin/subtemplates/gcb_delete.inc.tpl +++ b/cms/templates/admin/subtemplates/gcb_delete.inc.tpl @@ -1,6 +1,6 @@

@@ -8,10 +8,11 @@

-
- - - -
+
+ + + +
diff --git a/cms/templates/admin/subtemplates/gcb_edit.inc.tpl b/cms/templates/admin/subtemplates/gcb_edit.inc.tpl index b3995e3..4992202 100644 --- a/cms/templates/admin/subtemplates/gcb_edit.inc.tpl +++ b/cms/templates/admin/subtemplates/gcb_edit.inc.tpl @@ -1,30 +1,35 @@ -

+

- - - - + + + + -
- - -
+
+ + +
-
- - -
+
+ + +
-
- -
+
+ +
diff --git a/cms/templates/admin/subtemplates/login.inc.tpl b/cms/templates/admin/subtemplates/login.inc.tpl index a64bb39..d30f660 100644 --- a/cms/templates/admin/subtemplates/login.inc.tpl +++ b/cms/templates/admin/subtemplates/login.inc.tpl @@ -1,26 +1,26 @@

- -
- -
+ +
+ +
-
- +
+ - + - + -
+
diff --git a/cms/templates/admin/subtemplates/menus.inc.tpl b/cms/templates/admin/subtemplates/menus.inc.tpl index e1c7366..13681ef 100644 --- a/cms/templates/admin/subtemplates/menus.inc.tpl +++ b/cms/templates/admin/subtemplates/menus.inc.tpl @@ -1,37 +1,51 @@
-
-

-
-
- -
+
+

+
+
+ +
- + -
- - - - - - - - - - - - - - - -
 
- -
-
+
+ + + + + + + + + + + + + + + +
 
+ + +
+
-

+

diff --git a/cms/templates/admin/subtemplates/menus_delete.inc.tpl b/cms/templates/admin/subtemplates/menus_delete.inc.tpl index e50a205..775f6f6 100644 --- a/cms/templates/admin/subtemplates/menus_delete.inc.tpl +++ b/cms/templates/admin/subtemplates/menus_delete.inc.tpl @@ -1,13 +1,13 @@

- +

- -
-
- - - -
+ + +
+ + + +
- + diff --git a/cms/templates/admin/subtemplates/menus_edit.inc.tpl b/cms/templates/admin/subtemplates/menus_edit.inc.tpl index 3f66202..4e70744 100644 --- a/cms/templates/admin/subtemplates/menus_edit.inc.tpl +++ b/cms/templates/admin/subtemplates/menus_edit.inc.tpl @@ -1,74 +1,126 @@

- +
-
- - - - - - - -
- - - - - - - - - - - - data-sortable="cms/?mode=menus&reorder_items=true"> +
+ + + + + + + +
+
 
+ + + + + + + + + + + data-sortable="cms/?mode=menus&reorder_items=true"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - -
 
+ + + + + + + + + + + +   +
+ + + + + + + +
+ +
 
- - -
-
-
+ +
+
diff --git a/cms/templates/admin/subtemplates/menus_edit_item.inc.tpl b/cms/templates/admin/subtemplates/menus_edit_item.inc.tpl index 54f58f1..eeb26dc 100644 --- a/cms/templates/admin/subtemplates/menus_edit_item.inc.tpl +++ b/cms/templates/admin/subtemplates/menus_edit_item.inc.tpl @@ -1,35 +1,44 @@ - - -

» » »

+ -
-
- - - - - - - - - - - - - - - - - - - - -
 
-
-
- - - -

- - +

» » » +

+ +
+
+ + + + + + + + + + + + + + + + + + + + +
 
+
+
+ + + +

+ + diff --git a/cms/templates/admin/subtemplates/menus_new.inc.tpl b/cms/templates/admin/subtemplates/menus_new.inc.tpl index 006ad61..f0567c9 100644 --- a/cms/templates/admin/subtemplates/menus_new.inc.tpl +++ b/cms/templates/admin/subtemplates/menus_new.inc.tpl @@ -1,6 +1,6 @@

@@ -8,15 +8,17 @@
-
- - -
- - - - -
-
+
+ + + +
+ + + + +
+
diff --git a/cms/templates/admin/subtemplates/modal_insert_gallery.tpl b/cms/templates/admin/subtemplates/modal_insert_gallery.tpl index b99bfed..1ead50b 100644 --- a/cms/templates/admin/subtemplates/modal_insert_gallery.tpl +++ b/cms/templates/admin/subtemplates/modal_insert_gallery.tpl @@ -1,34 +1,36 @@