コード例 #1
0
<?php

require_once "../boot.php";
$dbCon = new DbConn();
require_once APP_INC_DIR . "incColumnShow.php";
$smarty = new SmartyEx();
if (!validatePath($_GET["id"])) {
    $smarty->showErrorPage(404);
    exit;
}
$ColumnShow = new ColumnShow($dbCon, $smarty);
// キーを設定
$ColumnShow->SetColPath($_GET["id"]);
// データベースからデータをセット
$isData = $ColumnShow->SetDbData();
if ($isData) {
    $smarty->display("column/column.html");
} else {
    $smarty->showErrorPage(404);
}
function validatePath($str)
{
    if (strlen($str) <= 1) {
        return false;
    }
    if (strlen($str) >= 3) {
        if (preg_match("/^[0]+/", $str)) {
            return false;
        }
    }
    return true;
コード例 #2
0
ファイル: thanks.php プロジェクト: aim-web-projects/mansion
            $message = "お客様の情報が送信されました。\n";
            $message.= "\n";
            $message.= "後日、お客様の地域に熟知した各不動産会社よりご連絡を差し上げますので、\n";
            $message.= "少々お待ちください。\n";
            $message.= "\n";
            $message.= "ご利用ありがとうございました。\n";

    //        fdb_kill_token($gc, $_POST["token"]);

        }
    }

//}


$smarty2= New SmartyEx();
$smarty2->assign("purpose", $_POST["purpose_flg"]);
$smarty2->assign("companies", $arr_company_info);
$smarty2->assign("server", "http://".$_SERVER["SERVER_NAME"]."/");
$smarty2->assign("thanks_message", $thanks_message);
$company_table = $smarty2->fetch("form/selected_company.html");


header("Content-Type: text/html; charset=UTF-8");

$smarty->assign("referer", $_SESSION["referer"]);

$smarty->assign("terms", HTTP_ROOT."terms.php");
$smarty->assign("privacy", HTTP_ROOT."privacy.php");
$smarty->assign("manager", HTTP_ROOT."manager.php");
$smarty->assign("_SESSION", $_SESSION);
コード例 #3
0
<?php

require_once "boot.php";
$dbCon = new DbConn();
require_once APP_INC_DIR . "incColumnListForTop.php";
$smarty = new SmartyEx();
$ColumnList = new ColumnListForTop($dbCon, $smarty);
//// キーを設定
//$ColumnEdit->SetKey($_GET["id"]);
// データベースからデータをセット
$ColumnList->SetPageData();
$smarty->display("root/index.html");
コード例 #4
0
<?php

require_once "boot.php";
$dbCon = new DbConn();
require_once APP_INC_DIR . "incColumnListForTop.php";
$smarty = new SmartyEx();
$ColumnList = new ColumnListForTop($dbCon, $smarty);
//// キーを設定
//$ColumnEdit->SetKey($_GET["id"]);
// データベースからデータをセット
$ColumnList->SetPageData();
$smarty->display("root/index_test.html");
コード例 #5
0
ファイル: confirm.php プロジェクト: aim-web-projects/mansion
        $company_table = $smarty->fetch("sp/form/light_company_pickup.html");
    }
} else {
    // ライトプラン処理
    if ($_SESSION['purpose_flg'] == 1) {
        // ユーザに提示する提携不動産会社の取得
        $posted = $_SESSION;
        $companies = get_lightplan($posted);

        if (count($companies) == 0) {
            $msg_post_error = "<p class='alert_message'>お取扱いする不動産会社が見つかりませんでした。</p>";
        } else {
            $_SESSION["arr_company_info"] = $companies;

            // 提携不動産会社の表作成
            $smarty = New SmartyEx();
            $smarty->assign("companies", $companies);
            $smarty->assign("msg_post_error", $msg_post_error);
            $company_table = $smarty->fetch("sp/form/light_company_pickup.html");
        }
    } else {
        // ユーザに提示する提携不動産会社の取得
        $posted = $_SESSION;
        $companies = get_standardplan($posted);

        if (count($companies) == 0) {
            $msg_post_error = "<p class='alert_message'>お取扱いする不動産会社が見つかりませんでした。</p>";
        } else {
            $_SESSION["arr_company_info"] = $companies;

            $company_table = "<div class='formTop_text'>上記の内容でお間違いが無いかご確認ください。<br>".
コード例 #6
0
<?php

require_once "boot.php";
$smarty = new SmartyEx();
$smarty->showErrorPage(404);
コード例 #7
0
<?php

require_once "../boot.php";
$dbCon = new DbConn();
require_once APP_INC_DIR . "incColumnListForIndex.php";
$smarty = new SmartyEx();
$ColumnList = new ColumnListForIndex($dbCon, $smarty);
//// キーを設定
//$ColumnEdit->SetKey($_GET["id"]);
// データベースからデータをセット
$ColumnList->SetPageData();
$smarty->display("column/index.html");
コード例 #8
0
<?php

/*******************************************************************************
 *
 * ログイン
 *
 * ファイル名:login.php
 *
 ******************************************************************************/
// 起動 ------------------------------------------------------------------------
require_once "../boot.php";
$dbCon = new DbConn();
// 必要なファイルをインクルード ------------------------------------------------
require_once APP_INC_DIR . "incLogin.php";
// メイン処理開始 --------------------------------------------------------------
$smarty = new SmartyEx();
$Login = new Login($dbCon, $smarty);
$Login->SetPageData();
header("Content-Type: text/html;charset=UTF-8");
// テンプレート表示
$smarty->display("admin/login.html");
exit;
// 関数群 ======================================================================
コード例 #9
0
ファイル: index.php プロジェクト: aim-web-projects/mansion
	foreach($_POST as $key => $value){
		if( $key != "submit" ) $_SESSION[$key] = $value;
	}
	header( 'Location: '."confirm.php" );
	exit();
	
elseif( ph('submit') == "修正" ):
	$change_flg = true;
endif;

if (strpos($_SERVER["HTTP_REFERER"], "http://") === 0) {
	$_SESSION["referer"] = $_SERVER["HTTP_REFERER"];
	$_SESSION["posted"] = false;
}

$smarty = New SmartyEx();

$from_front = !(strpos($_SERVER['HTTP_REFERER'], "index2.php") ||
                strpos($_SERVER['HTTP_REFERER'], "confirm.php"));

if (!$from_front) {
    $smarty->assign('change_flg', $change_flg);
    $smarty->assign('posted', $_SESSION);
    $smarty->display("sp/form/index.html");
    exit() ;
} else {
    
    if ($_POST["todoufuken"] && $_POST["shikucyouson"] && $_POST["q1"]) {
        $toriatsukai_ari = exist_toriatsukai($_POST["shikucyouson"], $_POST["q1"]);
        if ($toriatsukai_ari) {
            $smarty->assign('change_flg', $change_flg);
コード例 #10
0
ファイル: index.php プロジェクト: aim-web-projects/mansion
require_once("../../init.inc.php");
require_once(C_INC_DIR_SSL."kenNo_ref.php");
require_once(C_INC_DIR_SSL."teikei_pickup.php");
require_once(C_INC_DIR_SSL."form_utils.php");

session_cache_limiter('private_no_expire');
session_start();

$_SESSION["not_enough"] = False;
if (strpos($_SERVER["HTTP_REFERER"], "http://") === 0) {
	$_SESSION["referer"] = $_SERVER["HTTP_REFERER"];
    $_SESSION["posted"] = false;
}

$smarty = new SmartyEx();

$smarty->assign("terms", HTTP_ROOT."terms.php");
$smarty->assign("privacy", HTTP_ROOT."privacy.php");
$smarty->assign("manager", HTTP_ROOT."manager.php");

if ($_GET["r"] == 1) {
    // confirm.phpから戻ってきたときのフォーム表示
    $_SESSION["return_info"]["q1"] = $_SESSION["return_info"]["buken_sbt"];
    $smarty->assign('_POST', $_SESSION["return_info"]);

    // 提携不動産会社をランダムで取得して表示
    $teikei_dict = get_teikei();
    $smarty->assign('teikei_dict', $teikei_dict);

    $buken_arr = array(1=>"分譲マンション", 2=>"一棟アパート・マンション", 3=>"一戸建て");
コード例 #11
0
 *
 * ログアウト
 *
 * ファイル名:logout.php
 *
 ******************************************************************************/
// 起動 ------------------------------------------------------------------------
require_once "../boot.php";
$dbCon = new DbConn();
$session = new SessionUtil($dbCon);
if (!$session->IsLogin()) {
    header("Location: login.php");
    exit;
}
// メイン処理開始 --------------------------------------------------------------
$smarty = new SmartyEx();
dbLogout($dbCon);
header("Content-Type: text/html;charset=UTF-8");
// テンプレート表示
$smarty->display("admin/logout.html");
exit;
// 関数群 ======================================================================
function dbLogout($dbCon)
{
    if (!$_COOKIE[APP_LOGIN_ADM_ID]) {
        return false;
    }
    setcookie(APP_LOGIN_ADM_ID, "", time() - 3600);
    try {
        // SQL組み立て ----------------------------------------------
        $param = array();
コード例 #12
0
<?php

require_once "../boot.php";
$dbCon = new DbConn();
header("Content-Type: application/xml");
require_once APP_INC_DIR . "incColumnListForRss.php";
$smarty = new SmartyEx();
// Smartyテンプレートでキャッシュ作成の設定
$smarty->caching = 1;
// キャッシュの寿命設定[秒]
$smarty->cache_lifetime = 600;
// キャッシュがない場合データベースからデータをセット
if (!$smarty->is_cached('feed/rss.xml')) {
    $ColumnListForRss = new ColumnListForRss($dbCon, $smarty);
    $ColumnListForRss->SetPageData();
}
$smarty->display("feed/rss.xml");
コード例 #13
0
<?php

require_once "../boot.php";
$dbCon = new DbConn();
require_once APP_INC_DIR . "incColumnPickUpList.php";
$smarty = new SmartyEx();
$ColumnList = new ColumnPickUpList($dbCon, $smarty);
// データベースからデータをセット
$ColumnList->SetDbData();
$filename = "detail/" . $_GET["id"] . ".html";
$smarty->display($filename);