Example #1
0
         }
         if (!preg_match(ALLOW_PASSWD_PATTERN, $authdata['password'])) {
             $error .= 'パスワードは、英数半角と一部の記号のみ(スペース不可)で入力してください<br />';
         }
         if (strlen($authdata['password']) < ALLOW_PASSWD_NUM) {
             $error .= 'パスワードは、' . ALLOW_PASSWD_NUM . '文字以上を設定してください<br />';
         }
         if ($error == '') {
             // FTP情報の暗号化
             if (isset($_SESSION['ftp_info'])) {
                 $fm = new HKN_FTP();
                 $fm->readProps();
                 $authdata['encrypt_ftp'] = $fm->encrypt_ftp($authdata['username'] . $authdata['password']);
             }
             // qhm.ini.php の設定
             if (($error = auth_init($authdata)) === TRUE) {
                 // メールの送信
                 $ens->setProps($authdata);
                 $ens->send_mail();
                 go_link('install.php?complete&mode=install');
                 // 完了画面へ
             }
         } else {
             $vdata['error'] = $error;
             $vdata['email'] = $ens->get_email();
             $viewfunc = 'view_set_admin';
         }
     }
 } else {
     if (isset($_GET['replace'])) {
         $ens->readProps();
Example #2
0
<?php

require_once "defs.php";
require_once IBSINC . "session.php";
require_once IBSINC . "errors.php";
require_once IBSINC . "error.php";
require_once IBSINC . "auth.php";
require_once IBSINC . "request.php";
require_once IBSINC . "smarty.php";
require_once IBSINC . "lib.php";
//var_dump(ini_set("magic_quotes_gpc","0"));
//print_r($_REQUEST);
session_init();
auth_init();