Esempio n. 1
0
            //*********** 自作セッション(二重送信対策) ****************
            //ファイルが存在している
            if (!$err) {
                //ファイル削除
                unlink($file_name);
                $form = array();
                $form = SetData();
            }
        }
        //**********************************************************
        break;
        //デフォルト:フォーム表示
    //デフォルト:フォーム表示
    default:
        $template = "index";
        $form = SetData($form);
        //print_r($form);
        break;
}
$context = array('data' => $data, 'form' => $form, 'err' => $err);
$context_merge = array_merge($data['common'], $context);
$obj->display($data['Path'] . $template . '.pl', $context_merge);
//--メール送信-------------------------------------------------------------------------|
function Data_Send($to, $form, $template, $mail_title)
{
    global $mail_contents, $arr;
    $from = SITE_MAIL;
    //送信元メールアドレス
    $subject = $mail_title;
    //件名
    if ($form['enquete']) {
Esempio n. 2
0
<?php

/* ******************************
 *	Company Properties aJax actions
 * ******************************
 */
include '../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
    case 'set_data':
        $name = $_REQUEST['name'];
        $address = $_REQUEST['address'];
        $payer = $_REQUEST['payer'];
        SetData($name, $address, $payer);
        break;
    case 'get_data':
        $data = GetData();
        break;
    default:
        $error = "Action is Null";
}
$data['error'] = $error;
echo json_encode($data);
/* ******************************
 *	Company Properties Functions
 * ******************************
 */
function SetData($name, $address, $payer)
{