Location: PHPKode > projects > SENAYAN Library Automation > senayan3-stable5/admin/modules/system/backup.php
<?php

/*

VERSION : 3.0
CODENAME : SENAYAN
AUTHOR :
    Code and Programming : ARIE NUGRAHA (hide@address.com)
    Database Design : HENDRO WICAKSONO (hide@address.com) & WARDIYONO (hide@address.com)

SENAYAN Library Automation System
Copyright (C) 2007

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 2 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 (GPL License.txt); if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

/* Backup Management section */

// start the session
session_start();

require '../../../sysconfig.inc.php';
require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php';

// privileges checking
$can_read = utility::havePrivilege('system', 'r');
$can_write = utility::havePrivilege('system', 'w');

if (!($can_read AND $can_write)) {
    die('<div class="errorBox">'.lang_sys_common_no_privilege.'</div>');
}
/* search form */
?>
<table id="searchForm" cellpadding="5" cellspacing="0">
<tr>
	<td class="imageLeft" valign="top" style="background-image: url(<?php echo $sysconf['admin_template']['dir'].'/'.$sysconf['admin_template']['theme'].'/database.png'; ?>)">
		<?php echo strtoupper(lang_sys_backup); ?> - <a onMouseOver="return noStatus()" href="javascript: setContent('backupStat', '<?php echo MODULES_WEB_ROOT_DIR; ?>/system/backup_proc.php', 'post', 'start=true');" class="headerText2"><?php echo lang_sys_backup_new_add; ?></a>
		<hr />
		<form name="search" action="blank.html" target="blindSubmit" onsubmit="$('doSearch').click();" id="search" method="get" style="display: inline;"><?php echo lang_sys_common_form_search_field; ?> :
                <input type="text" name="keywords" size="30" />
                <input type="button" id="doSearch" onClick="setContent('backupStat', '<?php echo MODULES_WEB_ROOT_DIR; ?>system/backup_proc.php?' + $('search').serialize(), 'post')" value="<?php echo lang_sys_common_form_search; ?>" class="button" />
		</form>
	</td>
</tr>
</table>
<div id="backupStat">
<?php require 'backup_proc.php'; ?>
</div>
Return current item: SENAYAN Library Automation