Server // リスト対応 if(is_array($TEXT)){ $tempTEXT = array(); foreach($TEXT as $oneText){ array_push($tempTEXT,_one_c2s($oneText)); } $TEXT = $tempTEXT; }else{ $TEXT = _one_c2s($TEXT); } return $TEXT; } function _one_c2s($TEXT){ // クライアント->サーバ $TEXT = mb_convert_kana($TEXT,"KV",'sjis-win'); // 半角カタカナ->全角カタカナ $TEXT = trim($TEXT); $TEXT = preg_replace("/\r\n/","\n",$TEXT); $TEXT = preg_replace("/\r/","\n",$TEXT); if (get_magic_quotes_gpc()) { $TEXT = stripslashes($TEXT); } return $TEXT; } function s2tag($TEXT){ // サーバ->HTML return nl2br(htmlspecialchars($TEXT,ENT_QUOTES, 'sjis-win')); } function s2form($TEXT){ // サーバ->FORM return htmlspecialchars($TEXT,ENT_QUOTES, 'sjis-win'); } function s2d($TEXT,$rdbms){ // サーバ->DB $TEXT = mb_convert_encoding($TEXT,'UTF-8','sjis-win'); if($TEXT == ''){ $TEXT = 'null'; }else{ $TEXT = '\'' . $rdbms->dbConn->real_escape_string($TEXT) . '\''; } return $TEXT; } function s2d_bit($TEXT,$rdbms){ // サーバ->DB $TEXT = mb_convert_encoding($TEXT,'UTF-8','sjis-win'); $TEXT = 'conv(' . $rdbms->dbConn->real_escape_string($TEXT) . ',2,10)'; return $TEXT; } function s2d_like($TEXT,$rdbms){ // サーバ->DB(like) $TEXT = mb_convert_encoding($TEXT,'UTF-8','sjis-win'); $TEXT = preg_replace('/%/','/%',$TEXT); return '\'%' . $rdbms->dbConn->real_escape_string($TEXT) . '%\''; } function d2s($TEXT){ // DB->サーバ $TEXT = mb_convert_encoding($TEXT,'sjis-win','UTF-8'); return $TEXT; } function d2s_date($TEXT){ // DB->サーバ $TEXT = mb_convert_encoding($TEXT,'sjis-win','UTF-8'); $TEXT = preg_replace('/-/','/',$TEXT); return $TEXT; } function d2s_datetime($TEXT){ // DB->サーバ $TEXT = mb_convert_encoding($TEXT,'sjis-win','UTF-8'); $TEXT = preg_replace('/-/','/',$TEXT); $TEXT = substr($TEXT,0,19); return $TEXT; } function checkCMSConf(){ // CMS出力フォルダ構成チェック if(!preg_match('/^[0-9a-z]+$/',CMS_FOLDER)){ print "System Error!";exit; } } function getCategoryBin($categList){ global $category; // カテゴリ番号リストからカテゴリ2進数text作成 // 引数:カテゴリ番号リスト(1つの場合スカラーの可能性あり) if(!is_array($categList)){ $categList = array($categList); } $text = ''; for($i=1;$iHTML(日付) $TEXT = preg_replace('/\//','.',$TEXT); return $TEXT; } function my_send_mail($email,$mailSubject,$mailBody,$mailFrom,$mailReplyTo,$mailErrorTo){ $phpVer = phpversion(); $extra = <<
Warning: session_save_path(): Cannot change save path when headers already sent in /var/www/vhosts/w10364.ws.domainking.cloud/kikanshi-nw.or.jp/phpLib/init.inc on line 38

Warning: session_start(): Cannot start session when headers already sent in /var/www/vhosts/w10364.ws.domainking.cloud/kikanshi-nw.or.jp/phpLib/init.inc on line 39

Fatal error: Uncaught Error: Call to undefined function checkCMSConf() in /var/www/vhosts/w10364.ws.domainking.cloud/kikanshi-nw.or.jp/phpLib/init.inc:57 Stack trace: #0 /var/www/vhosts/w10364.ws.domainking.cloud/kikanshi-nw.or.jp/sale/index.php(2): require_once() #1 {main} thrown in /var/www/vhosts/w10364.ws.domainking.cloud/kikanshi-nw.or.jp/phpLib/init.inc on line 57