예제 #1
0
<?php

//!	認証処理サンプル	ログイン画面
require_once 'ppAuth.php';
require_once 'p41authopt.php';
$auth = new PpAuth($ppopts);
$auth->loginProc();
예제 #2
0
<?php

//!	認証処理サンプル	認証済み画面1
require_once 'ppAuth.php';
require_once 'p41authopt.php';
$auth = new PpAuth($ppopts);
$auth->isLogined();
//	認証済みの場合のみ、以下が実行される
$page = new PpPage();
$page->display('p41auth1.html');
예제 #3
0
 public function __construct(array $options = array())
 {
     $cfgData = get_class_vars(TUNE_CFG_CLASS);
     $opts = array('db_host' => $cfgData['db_host'], 'db_user' => $cfgData['db_user'], 'db_password' => $cfgData['db_password'], 'db_name' => $cfgData['db_name'], 'db_encoding' => $cfgData['db_encoding'], 'security_salt' => $cfgData['security_salt'], 'tmplfile' => 'tonemelogin.html', 'login_page' => $cfgData['login_page'], 'loginok_page' => $cfgData['loginok_page'], 'sessname' => $cfgData['sessname']);
     if (is_array($options) && count($options) > 0) {
         $opts = array_merge($opts, $options);
     }
     parent::__construct($opts);
 }