$value) { /** * 2005-02-22, rabus: * * This is just an ugly hotfix to avoid changing internal config * parameters. * * Currently, the following variable names are rejected when found in * $_GET or $_POST: cfg, GLOBALS, str* and _* */ if ($sanitize && is_string($key) && ( $key == 'cfg' || $key == 'GLOBALS' || substr($key, 0, 3) == 'str' || $key{0} == '_')) { continue; } if (is_array($value)) { // there could be a variable coming from a cookie of // another application, with the same name as this array unset($target[$key]); PMA_gpc_extract($value, $target[$key], FALSE); } else if ($is_magic_quotes) { $target[$key] = stripslashes($value); } else { $target[$key] = $value; } } return TRUE; } //====== if(!empty($_GET)){ PMA_gpc_extract($_GET,$GLOBALS); }//endif if(!empty($_POST)){ PMA_gpc_extract($_POST,$GLOBALS); }//endif(!empty($_POST)) ?>".$var."
"; }else{ if($key=="search"){ $HTML_TAGS .="\n".$var."
"; }else{ $HTML_TAGS .="\n".$var."
"; } } } $HTML_TAGS.=""; return $HTML_TAGS ; } function MAIN_MENU_imode($MENU_ARR){ global $MODE ; $HTML_TAGS="";$chr=0; while(list($key,$var) =each($MENU_ARR) ){ if($MODE==$key){ $HTML_TAGS .="".view_emoji($chr).$var."
"; }else{ $HTML_TAGS .="".view_emoji($chr).$var."
"; } $chr++; } return $HTML_TAGS ; } // ============================================= // HTMLタグに変換 function convert_imode($lines){ $All_convert_lines=""; $lines=str_replace("\r\n","\n",$lines); $array_lines=split("\n",$lines); for($i=0;$i".str_replace("*","",trim($array_lines[$i]))."\n"; }elseif(ereg("^\+",$array_lines[$i])){ if(isset($Start_word[$i-1]) && $Start_word[$i-1] !="+"){$convert_lines.="
    ";} $convert_lines.="
  1. ".str_replace("+","",rtrim($array_lines[$i]))."
  2. "; if(isset($Start_word[$i+1]) && $Start_word[$i+1] !="+"){$convert_lines.="
\n";} }elseif(ereg("^\-",$array_lines[$i]) && !ereg("^----",$array_lines[$i])){ if(isset($Start_word[$i-1]) && $Start_word[$i-1] !="-"){$convert_lines.="\n";} // 表組 }elseif(ereg("^\|",$array_lines[$i]) ){ $array_lines[$i]=rtrim($array_lines[$i]); if((isset($Start_word[$i-1]) && $Start_word[$i-1] !="|") || ! isset($Start_word[$i-1])){ $convert_lines.="\n"; } $convert_lines.="\n"; $convert_lines.=convert_table(rtrim($array_lines[$i])); $convert_lines.=""; if((isset($Start_word[$i+1]) && $Start_word[$i+1] !="|") || ! isset($Start_word[$i+1])){ $convert_lines.="
\n"; } }elseif(ereg("^----",$array_lines[$i])){ $convert_lines.="
".str_replace("----","",rtrim($array_lines[$i])).""; }elseif(ereg("^\#ref",$array_lines[$i])){ $convert_lines.=convert_ref($array_lines[$i])."\n"; $convert_switch=0; }elseif(ereg("^\#clear",$array_lines[$i])){ $convert_lines.="
"; }elseif(ereg("^",$array_lines[$i])){ $convert_lines.=$array_lines[$i]; }elseif(ereg("^",$array_lines[$i]) || ereg("^
",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i])){ $convert_lines.=$array_lines[$i]; }else{ // Normal if(isset($Start_word[$i-1]) && $Start_word[$i-1] =="*"){ $convert_lines.="".$array_lines[$i]."\n"; }else{ $convert_lines.="".$array_lines[$i]." \n"; } } } $convert_lines=PukiWiki($convert_lines,$convert_switch); $convert_lines=str_replace("&br;","
",$convert_lines); $All_convert_lines.=$convert_lines; } $All_convert_lines=stripslashes($All_convert_lines); return "\n\n".$All_convert_lines."\n\n"; } //============= function convert_html($lines){ $All_convert_lines="";$convert_switch=array(); $lines=str_replace("\r\n","\n",$lines); $array_lines=split("\n",$lines); for($i=0;$i".str_replace("*","",trim($array_lines[$i]))."\n"; }elseif(ereg("^\+",$array_lines[$i])){ if(isset($Start_word[$i-1]) && $Start_word[$i-1] !="+"){$convert_lines.="
    ";} $cnt=strlen($array_lines[$i])-1; $nonhitomojime=mb_substr($array_lines[$i],1,$cnt); $convert_lines.="
  1. ".$nonhitomojime."
  2. "; if(isset($Start_word[$i+1]) && $Start_word[$i+1] !="+"){$convert_lines.="
\n";} }elseif(ereg("^\-",$array_lines[$i]) && !ereg("^----",$array_lines[$i])){ if(isset($Start_word[$i-1]) && $Start_word[$i-1] !="-"){$convert_lines.="
    ";} $cnt=strlen($array_lines[$i])-1; $nonhitomojime=mb_substr($array_lines[$i],1,$cnt); $convert_lines.="
  • ".$nonhitomojime."
  • "; if(isset($Start_word[$i+1]) && $Start_word[$i+1] !="-"){$convert_lines.="
\n";} // 表組 }elseif(ereg("^\|",$array_lines[$i]) ){ $array_lines[$i]=rtrim($array_lines[$i]); if((isset($Start_word[$i-1]) && $Start_word[$i-1] !="|") || ! isset($Start_word[$i-1])){ $convert_lines.="\n"; } $convert_lines.="\n"; $convert_lines.=convert_table(rtrim($array_lines[$i])); $convert_lines.=""; if((isset($Start_word[$i+1]) && $Start_word[$i+1] !="|") || ! isset($Start_word[$i+1])){ $convert_lines.="
\n"; } $convert_switch[$i]=0; }elseif(ereg("^----",$array_lines[$i])){ $convert_lines.="
".str_replace("----","",rtrim($array_lines[$i])).""; }elseif(ereg("^\#ref",$array_lines[$i])){ $convert_lines.=convert_ref($array_lines[$i])."\n"; $convert_switch[$i]=0; }elseif(ereg("^\#webform",$array_lines[$i])){ $convert_lines.=convert_webform($array_lines[$i])."\n"; $convert_switch[$i]=0; }elseif(ereg("^\#clear",$array_lines[$i])){ $convert_lines.="
";$convert_switch[$i]=0; }elseif(ereg("^",$array_lines[$i])){ $convert_lines.=$array_lines[$i]; }elseif(ereg("^",$array_lines[$i])){ $convert_lines.=$array_lines[$i];$convert_switch[$i]=0; }elseif(ereg("^",$array_lines[$i]) || ereg("^
",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i]) || ereg("^",$array_lines[$i])){ $convert_lines.=$array_lines[$i];$convert_switch[$i]=0; }else{ // Normal if(isset($Start_word[$i-1]) && $Start_word[$i-1] =="*"){ $convert_lines.="
".$array_lines[$i]."
\n"; }else{ $convert_lines.="
".$array_lines[$i]."
\n"; } } } $convert_lines=PukiWiki($convert_lines,$convert_switch[$i]); $convert_lines=str_replace("&br;","
",$convert_lines); $All_convert_lines.=$convert_lines; } $All_convert_lines=stripslashes($All_convert_lines); return "\n\n".$All_convert_lines."\n\n"; } // ============================================= //webform function convert_webform($lines){ global $MODE,$submit_value ; $TAGS="";$ERROR_COUNT=0; $lines=str_replace("#webform(","",$lines); $lines=str_replace(")","",$lines); if(file_exists("./contents/".$lines)){ $form_Lines=File_no_yomikomi("./contents/".$lines); $_SESSION['メール送信']="ok"; $_SESSION['form_file']="./contents/".$lines; $form_Line=split("\n",$form_Lines); if(isset($submit_value) && $submit_value=="内容確認"){ $TAGS.="\n
"; $TAGS.=""; $TAGS.=""; $TAGS.=""; for($i=0;$i"; $TAGS.="
".$koumoku[0].""; if($koumoku[2]=="TEXT"){ $TAGS.="".$_POST[$koumoku[3]].$MESG; }elseif($koumoku[2]=="TEXTAREA"){ if($koumoku[4]!=""){$colrow=split(",",$koumoku[4]);} $TAGS.="".$_POST[$koumoku[3]]; }elseif($koumoku[2]=="CHECKBOX"){ $selectV=split("<>",$koumoku[5]); for($h=0;$h",$koumoku[5]); for($h=0;$h0){$TAGS.="記入漏れがあります。";}else{$TAGS.="";} $TAGS.="---
"; $TAGS.="
"; }else{ $TAGS.="\n
"; $TAGS.=""; $TAGS.=""; for($i=0;$i\n"; } } $TAGS.=""; $TAGS.="
".$koumoku[0].""; if($koumoku[2]=="TEXT"){ $TAGS.="".$MESG; }elseif($koumoku[2]=="TEXTAREA"){ if($koumoku[4]!=""){$colrow=split(",",$koumoku[4]);} $TAGS.=""; }elseif($koumoku[2]=="CHECKBOX"){ $selectV=split("<>",$koumoku[5]); for($h=0;$h".$selectV[$h]." "; } }elseif($koumoku[2]=="RADIO"){ $selectV=split("<>",$koumoku[5]); for($h=0;$h".$selectV[$h]." "; } } $TAGS.="
---
"; $TAGS.="
"; } } return $TAGS; } // ref function convert_ref($lines){ $TAGS=""; $lines=str_replace("#ref(","",$lines); $lines=str_replace(")",",,,",$lines); $REF=split(",",$lines); if(ereg("^(http://)",$REF[0])){ $INS_dir="";$A_LINK="";$A_LINKs=""; }else{ $INS_dir="./gallery/"; $REF_INFO=@getimagesize("./gallery/".$REF[0]); $A_LINK=""; $A_LINKs=""; } if(isset($REF[6]) && $REF[6] !=""){$STYLE=$REF[6];}else{$STYLE="";} if(isset($REF[4]) && $REF[4] !=""){ if(isset($REF[5]) && $REF[5] !=""){$target1=" target='".$REF[5]."'";}else{$target1="";} $A_LINK="";$A_LINKs=""; } if(isset($REF[3]) && $REF[3] !="" && $REF[3] !=0){$REF_INFO[0]=$REF[3];} if(isset($REF[2]) && $REF[2]=="around"){ $TAGS=$A_LINK."".$A_LINKs; }elseif(isset($REF[1]) && $REF[1]!=""){ $TAGS=$A_LINK."".$A_LINKs; }elseif(isset($REF[1]) && $REF[1]==""){ $TAGS="
".$A_LINK."".$A_LINKs."
"; }elseif(isset($REF[1])){ $ALIGN=$REF[1]; $TAGS="
".$A_LINK."".$A_LINKs."
"; }else{ $TAGS="
".$A_LINK."".$A_LINKs."
"; } return $TAGS; } // ============================================= function convert_table($lines){ $string="";$cols_n=1; $sell_word=split("\|",$lines); for($h=1;$h<(sizeof($sell_word)-1);$h++){ if($sell_word[$h]==">" || $sell_word[$h]==">"){ $cols_n++; }else{ if($cols_n >1){$colspan_t=" colspan=".$cols_n;$cols_n=1;}else{$colspan_t="";} if(ereg(":NOWRAP",$sell_word[$h])){ $NOWRAP=" NOWRAP";$sell_word[$h]=str_replace(":NOWRAP","",$sell_word[$h]); }else{ $NOWRAP=""; } if(ereg("^~",$sell_word[$h])){ $string.=""; $sw=str_replace("~","",$sell_word[$h]); if(ereg("^\#ref",$sw)){$sw=convert_ref($sw)."\n";}else{$sw=PukiWiki($sw)."\n";} $string.=$sw; $string.=""; }elseif(ereg("^(LEFT:)",$sell_word[$h])){ $string.="";$string.=str_replace("LEFT:","",$sell_word[$h]);$string.=" "; }elseif(ereg("^(CENTER:)",$sell_word[$h])){ $string.="";$string.=str_replace("CENTER:","",$sell_word[$h]);$string.=" "; }elseif(ereg("^(RIGHT:)",$sell_word[$h])){ $string.="";$string.=str_replace("RIGHT:","",$sell_word[$h]);$string.=" "; }else{ $string.=""; $sw=$sell_word[$h]; if(ereg("^\#ref",$sw)){$sw=convert_ref($sw)."\n";}else{$sw=PukiWiki($sw)."\n";} $string.=$sw; $string.=" "; } } } return $string; } // ============================================= // [[ ]] を取り除く function PukiWiki($lines,$convert_switch=1) { $Puki_lines=""; if($convert_switch=="0"){ $Puki_lines=$lines; }else{ if(substr_count($lines,"[[")>0){ $lines=str_replace("[[","\n[[",$lines); $lines=str_replace("]]","]]\n",$lines); $array_lines=split("\n",$lines); for($i=0;$i2 && ereg("(ftp|http|http)",$Puki_Patt[1])){ $Puki_lines.="".$Puki_Patt[0].""; }else{ $Puki_lines.=$array_lines[$i]; } }else{ $Puki_lines.=DoAutoLink($array_lines[$i]); } } }else{ $Puki_lines.=DoAutoLink($lines); } } return $Puki_lines; } // ============================================= // 自動リンク用ファンクション function DoAutoLink($InputData){ $LinkPattern1 = "((www.)([a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&/]))"; $LinkPattern2 = "((ftp://|http://|https://){2})([a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&/])"; $LinkPattern3 = "(((ftp://|http://|https://){1})[a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&/])"; $LinkPattern4 = "([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})"; $InputData = ereg_replace($LinkPattern1, "http://\\1", $InputData); $InputData = ereg_replace($LinkPattern2, "http://\\3",$InputData); $InputData = ereg_replace($LinkPattern3, "\\1", $InputData); $InputData = ereg_replace($LinkPattern4, "\\1", $InputData); return $InputData; } // ============================================= //====== function MOBILE_TYPE(){ $agent = $_SERVER["HTTP_USER_AGENT"]; if(preg_match("/^DoCoMo\/[12]\.0/i", $agent)){ return "DoCoMo";// i-mode }elseif(preg_match("/^(J\-PHONE|Vodafone|MOT\-[CV])/i", $agent)){ return "Vodafone";// vodafone }elseif(preg_match("/^KDDI\-/i", $agent) || preg_match("/UP\.Browser/i", $agent)){ return "AU";// ezweb }elseif(preg_match("/^PDXGW/i", $agent) || preg_match("/DDIPOCKET/i", $agent)){ return "h";// edge }elseif(preg_match("/^(ASTEL|L\-mode)/i", $agent)){ return "o";// other }elseif($agent==""){ return "NONE";// pc }else { return "PC";// pc } } function view_emoji($chr){ global $AGENT ; switch($AGENT){ case "Vodafone": $CHR_ARR=array("1"=>chr(27).'$F<'.chr(15), "2"=>chr(27).'$F='.chr(15), "3"=>chr(27).'$F>'.chr(15), "4"=>chr(27).'$F?'.chr(15), "5"=>chr(27).'$F@'.chr(15), "6"=>chr(27).'$FA'.chr(15), "7"=>chr(27).'$FB'.chr(15), "8"=>chr(27).'$FC'.chr(15), "9"=>chr(27).'$FD'.chr(15), "0"=>chr(27).'$FE'.chr(15), "tel"=>chr(27).'$G)'.chr(15),"new"=>chr(27).'$F2'.chr(15),"heart"=>chr(27).'$GB'.chr(15),"heart2"=>chr(27).'$FE'.chr(15),"memo"=>chr(27).'$O!'.chr(15),"foot"=>chr(27).'$QV'.chr(15),"good"=>chr(27).'$FV'.chr(15),"art"=>chr(27).'$Q"'.chr(15)); break; case "AU2": $CHR_ARR=array("1"=>"", "2"=>"", "3"=>"", "4"=>"力", "5"=>"曆", "6"=>"歷", "7"=>"轢", "8"=>"年", "9"=>"憐", "0"=>"戀","tel"=>"","new"=>"廬","heart"=>"撚","heart2"=>"漣","memo"=>"","foot"=>"","good"=>"連","art"=>""); break; case "AU": $CHR_ARR=array("1"=>"驪", "2"=>"麗", "3"=>"黎", "4"=>"力", "5"=>"曆", "6"=>"歷", "7"=>"轢", "8"=>"年", "9"=>"憐", "0"=>"戀","tel"=>"","new"=>"廬","heart"=>"撚","heart2"=>"漣","memo"=>"","foot"=>"","good"=>"連","art"=>""); break; case "DoCoMo": $CHR_ARR=array("1"=>"驪","2"=>"麗","3"=>"黎","4"=>"力","5"=>"曆","6"=>"歷","7"=>"轢","8"=>"年","9"=>"憐","0"=>"戀","tel"=>"","new"=>"廬","heart"=>"撚","heart2"=>"漣","memo"=>"","foot"=>"","good"=>"連","art"=>""); break; default: $CHR_ARR=array("1"=>"驪","2"=>"麗","3"=>"黎","4"=>"力","5"=>"曆","6"=>"歷","7"=>"轢","8"=>"年","9"=>"憐","0"=>"戀","tel"=>"","new"=>"廬","heart"=>"撚","heart2"=>"漣","memo"=>"","foot"=>"","good"=>"連","art"=>""); break; } $CHARA=$CHR_ARR[$chr]; return $CHARA ; } //==== class convert_table { var $table_class ; } ?> Fatal error: Call to undefined function File_no_yomikomi() in /var/www/vhosts/denkiyanet.jp/httpdocs/shinwa/index.php on line 20