Example #1
0
<?php

//!	曲データ追加画面処理
require_once 'add_class.php';
//	認証済みかチェックする
$auth = new TuneAuth();
$auth->isLogined();
//	認証済みの場合のみ、以下が実行される
$inDt = new TuneInput($auth->getSessObj());
$ppMg = new TuneDataManager($inDt);
if ($inDt->isPost()) {
    //	POST送信された場合
    $state = new TuneAddDbState();
    //	曲データ追加処理
} else {
    $state = new TuneAddInState();
    //	曲データ追加画面処理
}
$cont = new TuneCont($ppMg, $state);
$cont->doMain();
Example #2
0
<?php

//!	ログイン画面処理
require_once 'tuneConfig.php';
require_once 'tuneProc.php';
$auth = new TuneAuth();
$auth->loginProc();
Example #3
0
<?php

//!	曲データ検索画面処理
require_once 'search_class.php';
//	認証済みかチェックする
$auth = new TuneAuth();
$auth->isLogined();
//	認証済みの場合のみ、以下が実行される
$inDt = new TuneInput();
$ppMg = new TuneDataManager($inDt);
$cont = new TuneCont($ppMg, new TuneSearchState());
$cont->doMain();