コード例 #1
0
<?php

ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
require_once $_SERVER['DOCUMENT_ROOT'] . '/comment_mail_test/db/init_db.php';
global $link;
include $_SERVER['DOCUMENT_ROOT'] . 'comment_mail_test/controller/form_controller.php';
$controll = new FormController();
if (isset($_POST['email']) && isset($_POST['email']) != "") {
    /*echo '<script type="text/javascript">
    		$(document).ready(function(){
    			$("#modal_alert").modal("show");
    			jQuery(".close").css("display", "none");
    			jQuery(".modal-message").css("display", "none");
    			jQuery(".modal-footer").css("display", "none");
    		});
      </script>';*/
    $controll->set_data();
    $controll->get_view();
    $controll->send_email();
} else {
    $controll->get_last_comments();
}