diff --git a/system/admin/admin.php b/system/admin/admin.php
index 96a81f2..b3642a6 100644
--- a/system/admin/admin.php
+++ b/system/admin/admin.php
@@ -876,141 +876,6 @@ function get_feed($feed_url, $credit)
}
}
-// Get recent posts by user
-function get_user_posts()
-{
-
- if (isset($_SESSION[config("site.url")]['user'])) {
- $posts = get_profile_posts($_SESSION[config("site.url")]['user'], 1, 5);
- if (!empty($posts)) {
- echo '
';
- echo '| ' . i18n('Title') . ' | ' . i18n('Published') . ' | ';
- if (config("views.counter") == "true")
- echo ''.i18n('Views').' | ';
- echo '' . i18n('Category') . ' | ' . i18n('Tags') . ' | ' . i18n('Operations') . ' |
';
- $i = 0;
- $len = count($posts);
- foreach ($posts as $p) {
- if ($i == 0) {
- $class = 'item first';
- } elseif ($i == $len - 1) {
- $class = 'item last';
- } else {
- $class = 'item';
- }
- $i++;
- echo '';
- echo '| ' . $p->title . ' | ';
- echo '' . format_date($p->date) . ' | ';
- if (config("views.counter") == "true")
- echo '' . $p->views . ' | ';
- echo ''. strip_tags($p->category) .' | ';
- echo '' . $p->tag . ' | ';
- echo '' . i18n('Edit') . ' ' . i18n('Delete') . ' | ';
- echo '
';
- }
- echo '
';
- }
- }
-}
-
-// Get all static pages
-function get_user_pages()
-{
- if (isset($_SESSION[config("site.url")]['user'])) {
- $posts = get_static_post(null);
- if (!empty($posts)) {
- krsort($posts);
- echo '';
- echo '| ' . i18n('Title') . ' | ';
- if (config("views.counter") == "true")
- echo ''.i18n('Views').' | ';
- echo '' . i18n('Operations') . ' |
';
- $i = 0;
- $len = count($posts);
- foreach ($posts as $p) {
- if ($i == 0) {
- $class = 'item first';
- } elseif ($i == $len - 1) {
- $class = 'item last';
- } else {
- $class = 'item';
- }
- $i++;
-
- echo '';
- echo '| ' . $p->title . ' | ';
- if (config("views.counter") == "true")
- echo '' . $p->views . ' | ';
- echo '' . i18n('Add_sub') . ' ' . i18n('Edit') . ' ' . i18n('Delete') . ' | ';
- echo '
';
-
- $shortUrl = substr($p->url, strrpos($p->url, "/") + 1);
- $subPages = get_static_sub_post($shortUrl, null);
-
- foreach ($subPages as $sp) {
- echo '';
- echo '| » ' . $sp->title . ' | ';
- if (config("views.counter") == "true")
- echo '' . $sp->views . ' | ';
- echo '' . i18n('Edit') . ' ' . i18n('Delete') . ' | ';
- echo '
';
- }
- }
- echo '
';
- }
- }
-}
-
-// Get all available zip files
-function get_backup_files()
-{
- if (isset($_SESSION[config("site.url")]['user'])) {
- $files = get_zip_files();
- if (!empty($files)) {
- krsort($files);
- echo '