예제 #1
0
$core = new AlladinCore(false);
$smarty =& $core->getSmarty();
// アクション処理
if (isset($_POST['login']) == true) {
    // ログインユーザーのIPアドレス取得
    $ip = $_SERVER['REMOTE_ADDR'];
    // モデル取得
    $m =& $core->getModel();
    // id pass 判定
    $loginId = $_POST['id'];
    $loginPass = $_POST['password'];
    $m->Login_login($loginId, $loginPass, $ip);
    if ($m->IsLoginOk() == true) {
        // logに出力
        $name = $core->getLoginName();
        $kind = $core->getLoginKind();
        $ip = $core->getLoginIp();
        $log =& $core->getLogger();
        $log->info("login ({$kind}){$name}:{$ip}");
        // ページ遷移
        if ($kind == 'listing') {
            $core->movePage(FULLURL_ADMIN . 'listing/index.php');
        } else {
            $core->movePage(FULLURL_ADMIN . 'index.php');
        }
    } else {
        // ログイン失敗
        $smarty->assign($m->getFormData());
    }
} else {
    // システムユーザーログイン画面からきた場合
예제 #2
0
//
///////////////////////////////////////////////////////
require_once '../../../conf/config.php';
require_once 'AlladinCore.php';
$core = new AlladinCore(false);
// ログインチェック
$core->checkLogin(array('admin', 'client'));
// モデル取得
$m =& $core->getModel();
// smarty取得
$smarty =& $core->getSmarty();
// フォーム初期化
$init = $m->Result_ClientSearchUserIndex_initFormData();
$smarty->assign($init);
// ログインクライアントID
if ($core->getLoginKind() == 'client') {
    $clientId = $core->getLoginId();
}
// 検索条件
$like = array();
if (isset($_POST['search']) == true) {
    $like['anken_id'] = $_POST['anken_id'];
    $like['pv_date_from'] = $_POST['pv_date_from'];
    $like['pv_date_to'] = $_POST['pv_date_to'];
    $like['action_date_from'] = $_POST['action_date_from'];
    $like['action_date_to'] = $_POST['action_date_to'];
    //↓↓===========nm90020 2009/09/17 start====================
    //項目削除:「申込みID」
    //$like['client_user_id'] = $_POST['client_user_id'];
    //項目追加:「アクションID],「成果地点」
    $like['action_id'] = $_POST['action_id'];
예제 #3
0
 // anken_id(必須)
 $ankenId = trim($_GET['aid']);
 if (empty($ankenId) == true) {
     throw new RequestParamsException('anken id');
 }
 // order_id(必須)
 $orderId = intval(trim($_GET['no']));
 if (empty($orderId) == true) {
     throw new RequestParamsException('order id');
 }
 //---------------------
 // 処理
 //---------------------
 // メディア企業ID取得
 $mediaCompanyId = null;
 if ($core->getLoginKind() == 'media') {
     // 所属メディアかどうかをチェック
     $mediaCompanyId = $core->getLoginId();
     $anken =& $m->Article_getAnkenData($ankenId);
     $code = $anken['campaign_code'];
     $m->Article_checkTeikeiMedia($code, $mediaCompanyId);
 }
 // ファイル名称取得
 $data =& $m->Article_Banner_getBannerLink($ankenId, $orderId);
 if (count($data) != 1) {
     throw new FileOpenException();
 }
 // ファイル名称
 $file = $data[0]['banner_link'];
 $basePath = ABS_ALLADIN . 'article/gazo/';
 $path = $basePath . $file;