Ejemplo n.º 1
0
        exit;
    } else {
        echo json_encode(array('status' => 0, 'error' => show_feedback(false)));
        exit;
    }
}
////////////////////////////////////////////////
// remove  database backup
if (isset($_POST['act']) && $_POST['act'] == 'remove') {
    $file = isset($_POST['name']) ? $_POST['name'] : 1;
    require_once 'lib/backup.class.php';
    if (remove_backup($file)) {
        echo json_encode(array('status' => 1, 'suc' => show_feedback(false)));
        exit;
    } else {
        echo json_encode(array('status' => 0, 'error' => show_feedback(false)));
        exit;
    }
}
////////////////////////////////////////////////
// download database backup
if (isset($_GET['act']) && $_GET['act'] == 'download') {
    $file = isset($_GET['name']) ? $_GET['name'] : 1;
    require_once 'lib/backup.class.php';
    if (download_backup($file)) {
        //	echo json_encode(array('status'=>1,'suc'=>show_feedback(false)));
        exit;
    } else {
        //	echo json_encode(array('status'=>0,'error'=>show_feedback(false)));
        exit;
    }
Ejemplo n.º 2
0
        echo _T("admin_log_your_email");
        ?>
</label><input type="text" id="email" name="email" class="text_input"/></div>
							<input type="submit" class="button button_cen" name="enter" value="<?php 
        echo _T("admin_log_button");
        ?>
"/><br/>
							<input type="hidden" name="forgot" value="forgot" style="display: none;">
					</form>
				</div>
			<div class="clear"></div>
		</div>
<?php 
    } else {
        // RESET PASSWORD
        show_feedback();
        ?>
<!-- reset password page -->
		<h2 class="title"><?php 
        echo _T("admin_log_forgot_password_title");
        ?>
</h2>
		<form id="reset-form" action="admin.php" method="POST">
			<div class="code_box"><label><?php 
        echo _T("admin_set_new_password");
        ?>
 :</label><input class="text_input" type="password" name="newPassword" value="" size="20" /></div>
			<div class="code_box"><label><?php 
        echo _T("admin_set_confirm_new_password");
        ?>
 :</label><input class="text_input" type="password" name="newConfirm" value="" size="20" /></div>