* 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 * */ /* serial Management section */ // key to authenticate define('INDEX_AUTH', '1'); // key to get full database access define('DB_ACCESS', 'fa'); // main system configuration require '../../../sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-serialcontrol'); // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/form_maker/simbio_form_element.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/simbio_dbop.inc.php'; require MODULES_BASE_DIR . 'serial_control/serial_base_lib.inc.php'; // privileges checking $can_read = utility::havePrivilege('serial_control', 'r'); $can_write = utility::havePrivilege('serial_control', 'w'); if (!$can_read) { die('<div class="errorBox">' . __('You are not authorized to view this section') . '</div>'); } // page title $page_title = 'Kardex List';
* 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 * */ /* Topic List */ // key to authenticate define('INDEX_AUTH', '1'); // key to get full database access define('DB_ACCESS', 'fa'); // main system configuration require '../../../sysconfig.inc.php'; // IP based access limitation require LIB . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-bibliography'); // start the session require SB . 'admin/default/session.inc.php'; require SIMBIO . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO . 'simbio_DB/simbio_dbop.inc.php'; $sysconf['subject_level'][1] = 'Primary'; $sysconf['subject_level'][2] = 'Additional'; // page title $page_title = 'Topic List'; // get id from url $biblioID = 0; if (isset($_GET['biblioID']) and !empty($_GET['biblioID'])) { $biblioID = intval($_GET['biblioID']); } // start the output buffer ob_start();
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ /* Chart/Plot Report section */ // key to authenticate define('INDEX_AUTH', '1'); if (!defined('SENAYAN_BASE_DIR')) { // main system configuration require '../../../sysconfig.inc.php'; // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; } // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-reporting'); require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; // PHPLOT Library if (file_exists(LIB_DIR . 'phplot' . DIRECTORY_SEPARATOR . 'phplot.php')) { require LIB_DIR . 'phplot' . DIRECTORY_SEPARATOR . 'phplot.php'; } else { die; } // privileges checking $can_read = utility::havePrivilege('reporting', 'r'); $can_write = utility::havePrivilege('reporting', 'w'); if (!$can_read) { die; } /**
* 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 * */ /* Backup Management section */ // key to authenticate define('INDEX_AUTH', '1'); // main system configuration require '../../../sysconfig.inc.php'; // IP based access limitation require_once LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-system'); // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/paging/simbio_paging.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/datagrid/simbio_dbgrid.inc.php'; // create token in session $_SESSION['token'] = utility::createRandomString(32); // privileges checking $can_read = utility::havePrivilege('system', 'r'); $can_write = utility::havePrivilege('system', 'w'); if (!($can_read and $can_write)) { die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>'); } /* search form */
* 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 * */ /* Reserve List */ // key to authenticate define('INDEX_AUTH', '1'); // main system configuration require '../../../../sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-circulation'); // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; // privileges checking $can_read = utility::havePrivilege('circulation', 'r'); $can_write = utility::havePrivilege('circulation', 'w'); if (!$can_read) { die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>'); } require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/paging/simbio_paging.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/form_maker/simbio_form_element.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/datagrid/simbio_dbgrid.inc.php'; require MODULES_BASE_DIR . 'reporting/report_dbgrid.inc.php'; $page_title = 'Reservation List Report';
* 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"); } // IP based access limitation do_checkIP('opac'); do_checkIP('opac-member'); // required file require LIB . 'member_logon.inc.php'; // check if member already logged in $is_member_login = utility::isMemberLogin(); $info = __('Welcome to Member\'s Area where you can view your current loan information and view your membership status.'); // member's password changing flags define('CURR_PASSWD_WRONG', -1); define('PASSWD_NOT_MATCH', -2); define('CANT_UPDATE_PASSWD', -3); // if member is logged out if (isset($_GET['logout']) && $_GET['logout'] == '1') { // write log utility::writeLogs($dbs, 'member', $_SESSION['email'], 'Login', $_SESSION['member_name'] . ' Log Out from address ' . $_SERVER['REMOTE_ADDR']); // completely destroy session cookie simbio_security::destroySessionCookie(null, MEMBER_COOKIES_NAME, SWB, false);
* 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 * */ /* Author Management section */ // key to authenticate define('INDEX_AUTH', '1'); // key to get full database access define('DB_ACCESS', 'fa'); // main system configuration require '../../../sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-masterfile'); // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/paging/simbio_paging.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/datagrid/simbio_dbgrid.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/simbio_dbop.inc.php'; // privileges checking $can_read = utility::havePrivilege('master_file', 'r'); $can_write = utility::havePrivilege('master_file', 'w'); if (!$can_read) { die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>'); } /* RECORD OPERATION */
* 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 * */ // key to authenticate define('INDEX_AUTH', '1'); sleep(1); require '../../../sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-membership'); require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; // privileges checking $can_read = utility::havePrivilege('membership', 'r'); if (!$can_read) { die; } header('Content-type: text/json'); $json_array = array(); // get search value if (isset($_POST['inputSearchVal'])) { $searchVal = $dbs->escape_string(trim($_POST['inputSearchVal'])); } else { $json_array[] = ''; echo json_encode($json_array); exit;
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ /* Stock Take */ // key to authenticate define('INDEX_AUTH', '1'); if (!defined('SENAYAN_BASE_DIR')) { // main system configuration require '../../../sysconfig.inc.php'; // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; } // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); do_checkIP('smc-stocktake'); require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/paging/simbio_paging.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/datagrid/simbio_dbgrid.inc.php'; require SIMBIO_BASE_DIR . 'simbio_DB/simbio_dbop.inc.php'; // privileges checking $can_read = utility::havePrivilege('stock_take', 'r'); $can_write = utility::havePrivilege('stock_take', 'w'); if (!$can_read) { die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>'); } ?> <fieldset class="menuBox"> <div class="menuBoxInner stockTakeIcon">
* 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 * */ // key to authenticate define('INDEX_AUTH', '1'); // required file require 'sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('opac'); // member session params require LIB_DIR . 'member_session.inc.php'; // start session session_start(); if ($sysconf['template']['base'] == 'html') { require SIMBIO_BASE_DIR . 'simbio_GUI/template_parser/simbio_template_parser.inc.php'; } // page title $page_title = $sysconf['library_name'] . ' | ' . $sysconf['library_subname'] . ' :: OPAC'; // default library info $info = __('Web Online Public Access Catalog - Use the search options to find documents quickly'); // total opac result page $total_pages = 1; // default header info $header_info = '';
* 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 * */ // key to authenticate define('INDEX_AUTH', '1'); // required file require '../sysconfig.inc.php'; // IP based access limitation require LIB_DIR . 'ip_based_access.inc.php'; do_checkIP('smc'); // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; // session checking require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/template_parser/simbio_template_parser.inc.php'; require LIB_DIR . 'module.inc.php'; // https connection (if enabled) if ($sysconf['https_enable']) { simbio_security::doCheckHttps($sysconf['https_port']); } // create the template object $template = new simbio_template_parser($sysconf['admin_template']['dir'] . '/' . $sysconf['admin_template']['theme'] . '/index_template.html'); // page title $page_title = $sysconf['library_name'] . ' :: Library Automation System'; // main menu
function do_checkIP($module = 'general') { global $sysconf; if (isset($sysconf['ipaccess']['' . $module . ''])) { $accmod = $sysconf['ipaccess']['' . $module . '']; } else { die('Invalid access module'); } #$accmod = $sysconf['ipaccess'][''.$module.'']; $is_allowed = false; $remote_addr = $_SERVER['REMOTE_ADDR']; if ($accmod != 'all' and is_array($accmod)) { foreach ($accmod as $value) { $pattern = "/^" . $value . "/i"; if (preg_match($pattern, $remote_addr)) { $is_allowed = true; } } } elseif ($accmod == 'all') { $is_allowed = true; } else { $is_allowed = false; } if (!$is_allowed) { echo 'Stop here! Access now allowed.'; exit; } } } do_checkIP();