%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/dimen328/libertysa.com.br/admin/modules/PHPmailer/
Upload File :
Create Path :
Current File : //home1/dimen328/libertysa.com.br/admin/modules/PHPmailer/CTRL.php

<?php
include_once("DAO.php");

$oper = $_POST['oper'];

switch ($oper){

	case 1:
		$objDAO = new DAO();
		echo json_encode($objDAO->inserir(utf8_decode($_POST['smtpauth']),utf8_decode($_POST['smtpsecure']),$_POST['port'],utf8_decode($_POST['host']),utf8_decode($_POST['username']),utf8_decode($_POST['password']),$_POST['smtpdebug'],$_POST['status']) , true);
	break;
	
	case 2:
		$objDAO = new DAO();
		echo json_encode($objDAO->listar($_POST['filtro']), true);
	break;
	
	case 3:
		$objDAO = new DAO();
		echo json_encode($objDAO->preencher($_POST['id']) , true);
	break;
	
	case 4:
		$objDAO = new DAO();
		echo json_encode($objDAO->atualizar($_POST['id'],utf8_decode($_POST['smtpauth']),utf8_decode($_POST['smtpsecure']),$_POST['port'],utf8_decode($_POST['host']),utf8_decode($_POST['username']),utf8_decode($_POST['password']),$_POST['smtpdebug'],$_POST['status']) , true);
	break;
	
	case 5:
		$objDAO = new DAO();
		echo json_encode($objDAO->excluir($_POST['id']) , true);
	break;
	
	default:
	break;
}

?>

Zerion Mini Shell 1.0