{php} require_once CONF_DIR."history.php"; foreach($keyword as $key => $val) { $keyword_list[$key] = str_replace(''',"'",str_replace('&','&',$val)); } $this->assign("keyword_list", $keyword_list); require_once CONF_DIR."list.php"; foreach($keyword as $key => $val) { $keyword_list2[$key] = str_replace(''',"'",str_replace('&','&',$val)); } $this->assign("keyword_list2", $keyword_list2); $reqk = NULL; $reqk = $_REQUEST['k']; if(isset($reqk)) { //setcookie("hd","iPhone4S",time()+24*60*60); //echo $_COOKIE["hd"]; if($_REQUEST['w']!='') { $rq = $_REQUEST['w']; if(mb_detect_encoding($rq)!="UTF-8" && (strlen($rq)!=mb_strlen($rq,"SJIS"))) { $rq = mb_convert_encoding($rq,"UTF-8","SJIS"); if(isset($_REQUEST['p'])) $pstring = '&p='.$_REQUEST['p']; if(isset($_REQUEST['k'])) $pstring .= '&k='.$_REQUEST['k']; header("Location: http://".HOST."/?w=".urlencode($rq).$pstring, true, 301); exit; } $stmp = explode('[',$rq); $this->assign("stitle", $stmp['0']); $this->assign("ttitle", '#'.$stmp['0']); $this->assign("requrl", (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); } if($rq && is_string($rq) && preg_match('/^[0-9]+$/',$_REQUEST['p']) && preg_match('/^[0-9]+$/',$_REQUEST['k'])) { $bbw = bin2hex($rq); $time = time(); $jikan = date("H",$time); if($_REQUEST['p']>1) { $cpage = $_REQUEST['p'] - 1; $start = $cpage * 18; $page = $_REQUEST['p']; } else { $start = 0; $page = 1; } $imgsz = 'vga'; $this->assign("b_word", $bbw); $dim2 = 'lt,islt:vga,itp:photo,ic:color'; $roop = 0; $roop2 = 0; $start2=$start; if(preg_match('/^[0-9]+$/',$_REQUEST['k'])){ $rk = $_REQUEST['k']; } if(preg_match('/^[0-9]+$/',$start)) { $start_no = $start + 1; if($start_no > 18) { $page = ceil($start_no / 18); } else { $page = 1; } $start_tmp = $start % 18; $roop = $start_tmp; $start_tmp2 = $start % 18; if($start_tmp2!=0) { $start2 = (floor($start/18))*18; $roop2 = $start_tmp2; } } else { $start=0; $start2=0; } /* $word_tmp = pack("H*",$bbw); if(strpos($word_tmp,"\'")!==FALSE) { $word_tmp = stripslashes($word_tmp); } */ $word_tmp = pack("H*",$bbw); $word_tmp8 = pack("H*",$bbw); //検索文字をUTF-8&URLエンコード $word = urlencode($word_tmp); //半角変換 $word_tmp4 = convert_word($word_tmp); //禁止ワードチェック if(ignore_check($word_tmp4)==1) { header("Location: http://".HOST."/"); exit; } $save = 1; //保存有無チェック $save = save_check($word_tmp4); //セーフサーチチェック&保存有無チェック $safe = ''; $b2h_word = bin2hex(addslashes($word_tmp)); $b2h_word2 = bin2hex($word_tmp); $b2h_word3 = bin2hex(addslashes($word_tmp8)); $srstr2 = $word." ".$start2." 0 ".$imgsz; $srstr = $word." ".$start." 0 ".$imgsz; $mdsrstr2 = md5($srstr2); $mdsrstr = md5($srstr); $srchfilepath_name2 = HOME_DIR."srchfile3/".substr($mdsrstr2,0,2)."/".substr($mdsrstr2,0,3)."/".substr($mdsrstr2,0,4)."/".$mdsrstr2.".inc"; $srchfilepath_name = HOME_DIR."srchfile3/".substr($mdsrstr,0,2)."/".substr($mdsrstr,0,3)."/".substr($mdsrstr,0,4)."/".$mdsrstr.".inc"; $nowdate = time(); $chk_date = $nowdate - 2592000; //2012.02.10 15:30以降に作られたファイルなら保存 //$chk_date = 1345234674; //$chk_date = $nowdate; if (is_file($srchfilepath_name2)) { //クローラーorガラケーの場合はファイル読み込み if($this->_tpl_vars['carrier5']==1 || $this->_tpl_vars['carrier']>0) { $chk_date = 0; } require_once $srchfilepath_name2; if($urllist["$rk"]['ext2']) $list_srch = 1; $urllist2["$rk"] = $urllist["$rk"]; $urllist = ''; $urllist = $urllist2; $urllist2 = ''; if(mb_detect_encoding($urllist["$rk"]['ext2'])=='UTF-8') { $urllist["$rk"]['ext2'] = $urllist["$rk"]['ext2']; } $urllist[$rk]['ext2'] = strip_tags(htmlspecialchars_decode($urllist[$rk]['ext2'])); if($urllist[$rk]['img2']!="") $urllist["$rk"]['path2'] = pack("H*",$urllist["$rk"]['img2']); if($urllist["$rk"]['ref']!='') { $ref2 = ''; $ref2tmp = ''; $ref = substr(pack('H*',$urllist["$rk"]['ref']), 7, 40); $ref2 = substr($ref, 7, 40); $ref2tmp = explode('/',$ref2); $urllist["$rk"]['ref2'] = $ref2tmp['0'] . '/'; } } if($list_srch!=1) { $urllist = false; //検索結果取得 $result = get_sresult($this->_tpl_vars['carrier4'],"$b2h_word","$start2","$roop","$safe","$dim2"); $result2 = unserialize($result); $i = 0; if(is_array($result2)){ foreach($result2 as $key => $val) { $urllist["$i"]['img2'] = $val['img2']; $urllist["$i"]['ref'] = $val['ref']; $urllist["$i"]['path'] = $val['path']; $urllist["$i"]['ext'] = $val['ext']; $urllist["$i"]['ext2'] = pack("H*",$val['ext']); $urllist["$i"]['size'] = $val['size']; $urllist["$i"]['time'] = $val['time']; //サムネイル画像URL $thumbnail = pack("H*",$val['img2']); $urlstr="$thumbnail 100 2"; $md5 = md5($urlstr); if($md5 == '201a810ca2b6f87bc0010b7d4e690ec1') $this->assign("jipo", 1); $cachepath_name = WWW_DIR."image/thumbnail/".substr($md5,0,2)."/".substr($md5,0,3)."/".substr($md5,0,4)."/".$md5.".jpg"; $urllist["$i"]['img3']='/image/thumbnail/'.substr($md5,0,2)."/".substr($md5,0,3)."/".substr($md5,0,4)."/".$md5.".jpg"; $urllist["$i"]['img']=$thumbnail; $i++; } $engine = 'google'; $urllist2["$rk"] = $urllist["$rk"]; $urllist = ''; $urllist = $urllist2; $urllist2 = ''; if($urllist["$rk"]['img2']!="") $urllist["$rk"]['path2'] = pack("H*",$urllist["$rk"]['img2']); if($urllist["$rk"]['ref']!='') { $ref2 = ''; $ref2tmp = ''; $ref = substr(pack('H*',$urllist["$rk"]['ref']), 7, 40); $ref2 = substr($ref, 7, 40); $ref2tmp = explode('/',$ref2); $urllist["$rk"]['ref2'] = $ref2tmp['0'] . '/'; } } } if(is_array($urllist)) { $id = pack("H*",$urllist["$rk"]['path']); $urllist["$rk"]['path'] = $id; $ref = pack("H*",$urllist["$rk"]['ref']); $urllist["$rk"]['ref'] = $ref; $img2 = pack("H*",$urllist["$rk"]['img2']); $urllist["$rk"]['img2'] = $img2; $urllist["$rk"]['ext2'] = str_replace('\u201c','“',$urllist["$rk"]['ext2']); $urllist["$rk"]['ext2'] = str_replace('\u201d','”',$urllist["$rk"]['ext2']); $urllist["$rk"]['ext2'] = str_replace('\u0027',"'",$urllist["$rk"]['ext2']); if(url_check($id)==1) { $urllist["$rk"] = false; } if(url_check($ref)==1) { $urllist["$rk"] = false; } if(url_check($img2)==1) { $urllist["$rk"] = false; } //半角変換 $ext2_tmp = convert_word($urllist["$rk"]['ext2']); //禁止ワードチェック if(ignore_check($ext2_tmp)==1) { $urllist["$rk"] = false; } $recomend = get_recomend($word_tmp8); $this->assign("recomend", $recomend); } $size = pack("H*",$urllist["$rk"]['size']); if ($size) { if(strpos($size,"x")!==false) { $orign_size_tmp = explode("x",$size); $this->assign("o_width", $orign_size_tmp['1']); $this->assign("o_height", $orign_size_tmp['0']); $urllist["$rk"]['size2'] = $orign_size_tmp['1']."x".$orign_size_tmp['0']; } else { $urllist["$rk"]['size2'] = $size; } } if($urllist["$rk"]["ext2"]!='') { $urllist["$rk"]["ext2"] = str_replace('\u2013','-',$urllist["$rk"]["ext2"]); if(strpos($urllist["$rk"]["ext2"],'】')!==FALSE && strpos($urllist["$rk"]["ext2"],'】')<16) { $extmp = explode('】',$urllist["$rk"]["ext2"]); $urllist["$rk"]["ext2"] = $extmp['1']; } } $this->assign("urllist", $urllist["$rk"]); $this->assign("next", $_REQUEST["start"]+3); } if($urllist["$rk"]['path']=='') { header("HTTP/1.0 404 Not Found"); }else { $p = $_REQUEST['p']; $prevlink = ''; $this->assign("prevlink", $prevlink); } $nextlink .= '">次の画像'; $this->assign("nextlink", $nextlink); } $this->assign("word", $word_tmp8); $this->assign("amazonword", $word); $this->assign("imgsz", $imgsz); $this->assign("start2", $start2); $this->assign("pageno", $page); $this->assign("roop2", $roop2); $this->assign("prevp", $start - 3); $this->assign("imgsz2", bin2hex($imgsz)); $this->assign("b2h_word", $b2h_word); $agent = $_SERVER['HTTP_USER_AGENT']; $this->assign("agent", $agent); if(strpos($agent,'bot')!==FALSE || strpos($agent,'spider')!==FALSE || preg_match("/site/", $_REQUEST['ew']) ) { $this->assign("nosend", 1); } if (preg_match("/DoCoMo/", $_SERVER['HTTP_USER_AGENT'])) { header('Content-Type: application/xhtml+xml'); } else { header("Content-Type: text/html"); } }else { if($_REQUEST['w']!='') { $rq = $_REQUEST['w']; if(mb_detect_encoding($rq)!="UTF-8" && (strlen($rq)!=mb_strlen($rq,"SJIS"))) { $rq = mb_convert_encoding($rq,"UTF-8","SJIS"); if(isset($_REQUEST['p'])) $pstring = '&p='.$_REQUEST['p']; header("Location: http://".HOST."/?w=".urlencode($rq).$pstring, true, 301); exit; } } else { /* if($keyword_list['0']!='') { $rq = $keyword_list['0']; } else { $rq = '松岡茉優'; } */ } $rq = str_replace(array(" "," "),' ',$rq); $stmp = explode('[',$rq); $this->assign("stitle", $stmp['0']); $this->assign("ttitle", '#'.$stmp['0']); $this->assign("requrl", (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); if($rq && is_string($rq)) { $bbw = bin2hex($rq); $time = time(); $jikan = date("H",$time); if(preg_match('/^[0-9]+$/',$_REQUEST['p'])) { if($_REQUEST['p']>1) { $cpage = $_REQUEST['p'] - 1; $start = $cpage * 18; $page = $_REQUEST['p']; } elseif($_REQUEST['p']==1) { header("Location: http://".HOST."/?w=".$_REQUEST['w'], true, 301); } else { $start = 0; $page = 1; } } else { $start = 0; $page = 1; } if($_REQUEST['imgsz']) { $imgsz = pack("H*",$_REQUEST['imgsz']); } $imgsz = 'vga'; $this->assign("b_word", $bbw); if(!(preg_match('/^[a-z\|]+$/',$imgsz))) { $imgsz = ""; } $dim2 = 'lt,islt:vga,itp:photo,ic:color'; $roop = 0; $roop2 = 0; $start2=$start; if(preg_match('/^[0-9]+$/',$start)) { $start_no = $start + 1; if($start_no > 18) { $page = ceil($start_no / 18); } else { $page = 1; } $start_tmp = $start % 18; $roop = $start_tmp; $start_tmp2 = $start % 18; if($start_tmp2!=0) { $start2 = (floor($start/18))*18; $roop2 = $start_tmp2; } } else { $start=0; $start2=0; } /* $word_tmp = pack("H*",$bbw); if(strpos($word_tmp,"\'")!==FALSE) { $word_tmp = stripslashes($word_tmp); } */ $word_tmp = pack("H*",$bbw); $word_tmp9 = pack("H*",$bbw); $word_tmp8 = pack("H*",$bbw); //検索文字をUTF-8&URLエンコード $word = urlencode($word_tmp); //半角変換 $word_tmp4 = convert_word($word_tmp); //禁止ワードチェック if(ignore_check($word_tmp4)==1) { header("Location: http://".HOST."/"); exit; } $save = 1; //保存有無チェック $save = save_check($word_tmp4); //セーフサーチチェック&保存有無チェック $safe = ''; $b2h_word = bin2hex(addslashes($word_tmp)); $b2h_word2 = bin2hex($word_tmp9); $b2h_word3 = bin2hex(addslashes($word_tmp8)); $srstr2 = $word." ".$start2." 0 ".$imgsz; $srstr = $word." ".$start." 0 ".$imgsz; $mdsrstr2 = md5($srstr2); $mdsrstr = md5($srstr); $srchfilepath_name2 = HOME_DIR."srchfile3/".substr($mdsrstr2,0,2)."/".substr($mdsrstr2,0,3)."/".substr($mdsrstr2,0,4)."/".$mdsrstr2.".inc"; $srchfilepath_name = HOME_DIR."srchfile3/".substr($mdsrstr,0,2)."/".substr($mdsrstr,0,3)."/".substr($mdsrstr,0,4)."/".$mdsrstr.".inc"; $nowdate = time(); $chk_date = $nowdate - 2592000; //2012.02.10 15:30以降に作られたファイルなら保存 //$chk_date = 1345234674; //$chk_date = $nowdate; if (is_file($srchfilepath_name2)) { //クローラーorガラケーの場合はファイル読み込み if($this->_tpl_vars['carrier5']==1 || $this->_tpl_vars['carrier']>0) { $chk_date = 0; } if (filemtime($srchfilepath_name2) > $chk_date) { require_once $srchfilepath_name2; if($urllist['0']['ext2']) $list_srch = 1; foreach($urllist as $ukey => $uval) { if(mb_detect_encoding($urllist["$ukey"]['ext2'])=='UTF-8') { $urllist["$ukey"]['ext2'] = $urllist["$ukey"]['ext2']; } $urllist[$ukey]['ext2'] = strip_tags(htmlspecialchars_decode($urllist[$ukey]['ext2'])); if($urllist[$ukey]['img2']!="") $urllist["$ukey"]['path2'] = pack("H*",$urllist["$ukey"]['img2']); if($urllist["$ukey"]['ref']!='') { $ref2 = ''; $ref2tmp = ''; $ref2 = substr(pack('H*',$urllist["$ukey"]['ref']), 7, 40); $ref2tmp = explode('/',$ref2); $urllist["$ukey"]['ref2'] = $ref2tmp['0'] . '/'; } } } } if($list_srch!=1) { $urllist = false; //検索結果取得 $result = get_sresult($this->_tpl_vars['carrier4'],"$b2h_word","$start2","$roop","$safe","$dim2"); $result2 = unserialize($result); $i = 0; if(is_array($result2)){ foreach($result2 as $key => $val) { $urllist["$i"]['img2'] = $val['img2']; $urllist["$i"]['ref'] = $val['ref']; $urllist["$i"]['path'] = $val['path']; $urllist["$i"]['ext'] = $val['ext']; $urllist["$i"]['ext2'] = pack("H*",$val['ext']); $urllist["$i"]['size'] = $val['size']; $urllist["$i"]['time'] = $val['time']; //サムネイル画像URL $thumbnail = pack("H*",$val['img2']); $urlstr="$thumbnail 100 2"; $md5 = md5($urlstr); if($md5 == '201a810ca2b6f87bc0010b7d4e690ec1') $this->assign("jipo", 1); $cachepath_name = WWW_DIR."image/thumbnail/".substr($md5,0,2)."/".substr($md5,0,3)."/".substr($md5,0,4)."/".$md5.".jpg"; $urllist["$i"]['img3']='/image/thumbnail/'.substr($md5,0,2)."/".substr($md5,0,3)."/".substr($md5,0,4)."/".$md5.".jpg"; $urllist["$i"]['img']=$thumbnail; $i++; } $engine = 'google'; //負荷の少ない14時の間だけキャッシュ保存 // if($jikan==25) // if($urllist['0']['img2']!="" && $urllist['0']['time'] > 1328855495) if($urllist['0']['img2']!="") { $srch_result = ' $val3) { if(mb_substr($urllist["$key3"]['ext2'],-1,1,"UTF-8")=='\\') { $ext2tmp = NULL; $ext2tmp = mb_substr($urllist["$key3"]['ext2'],0,-1,"UTF-8"); $urllist["$key3"]['ext2'] = $ext2tmp; } if(mb_substr($urllist["$key3"]['ext2'],-1,1,"UTF-8")=='\\') { $ext2tmp = NULL; $ext2tmp = mb_substr($urllist["$key3"]['ext2'],0,-1,"UTF-8"); $urllist["$key3"]['ext2'] = $ext2tmp; } if(mb_substr($urllist["$key3"]['ext2'],-1,1,"UTF-8")=='\\') { $ext2tmp = NULL; $ext2tmp = mb_substr($urllist["$key3"]['ext2'],0,-1,"UTF-8"); $urllist["$key3"]['ext2'] = $ext2tmp; } $srch_result .= '$urllist[\''.$key3.'\'][\'img\']="'.$urllist["$key3"]['img3'].'"; $urllist[\''.$key3.'\'][\'imgflg\']="1"; $urllist[\''.$key3.'\'][\'img2\']="'.$urllist["$key3"]['img2'].'"; $urllist[\''.$key3.'\'][\'ref\']="'.$urllist["$key3"]['ref'].'"; $urllist[\''.$key3.'\'][\'path\']="'.$urllist["$key3"]['path'].'"; $urllist[\''.$key3.'\'][\'ext\']="'.$urllist["$key3"]['ext'].'"; $urllist[\''.$key3.'\'][\'ext2\']="'.$urllist["$key3"]['ext2'].'"; $urllist[\''.$key3.'\'][\'size\']="'.$urllist["$key3"]['size'].'"; $urllist[\''.$key3.'\'][\'time\']="'.$urllist["$key3"]['time'].'"; '; } $srch_result .= '$moshikashite="'.$moshikashite.'"; ?>'; if($engine=='google') { $srchfilepath = HOME_DIR."srchfile3/".substr($mdsrstr2,0,2)."/"; $srchfilepath2 = HOME_DIR."srchfile3/".substr($mdsrstr2,0,2)."/".substr($mdsrstr2,0,3)."/"; $srchfilepath3 = HOME_DIR."srchfile3/".substr($mdsrstr2,0,2)."/".substr($mdsrstr2,0,3)."/".substr($mdsrstr2,0,4)."/"; if (file_exists($srchfilepath)==false) @mkdir($srchfilepath); if (file_exists($srchfilepath2)==false) @mkdir($srchfilepath2); if (file_exists($srchfilepath3)==false) @mkdir($srchfilepath3); $srch_result2 = $srch_result; @file_put_contents($srchfilepath_name2,$srch_result2); } else { $srchfilepath = HOME_DIR."srchfile3/".substr($mdsrstr,0,2)."/"; $srchfilepath2 = HOME_DIR."srchfile3/".substr($mdsrstr,0,2)."/".substr($mdsrstr,0,3)."/"; $srchfilepath3 = HOME_DIR."srchfile3/".substr($mdsrstr,0,2)."/".substr($mdsrstr,0,3)."/".substr($mdsrstr,0,4)."/"; if (file_exists($srchfilepath)==false) @mkdir($srchfilepath); if (file_exists($srchfilepath2)==false) @mkdir($srchfilepath2); if (file_exists($srchfilepath3)==false) @mkdir($srchfilepath3); $srch_result2 = $srch_result; @file_put_contents($srchfilepath_name,$srch_result2); } } foreach($urllist as $key3 => $val3) { if($urllist["$key3"]['img2']!="") $urllist["$key3"]['path2'] = pack("H*",$urllist["$key3"]['img2']); if($urllist["$key3"]['ref']!='') { $ref2 = ''; $ref2tmp = ''; $ref2 = substr(pack('H*',$urllist["$key3"]['ref']), 7, 40); $ref2tmp = explode('/',$ref2); $urllist["$key3"]['ref2'] = $ref2tmp['0'] . '/'; } } } } if(strpos($b2h_word2,'efbfbd')=='0' && strpos($b2h_word2,'efbfbd')!==FALSE){ $save = 0; } if(strpos($rq,'25')=='0' && strpos($rq,'25')!==FALSE) { $save = 0; } if(strpos($rq,'%')=='0' && strpos($rq,'%')!==FALSE) { $save = 0; } $nowtime = time() % 3; if($page==1 && $nowtime ==0 && $this->_tpl_vars['carrier5']!=1 && $urllist['0']['ext']!="" && $this->_tpl_vars['carrier']==0 && $save==1) { if((strlen($word_tmp))<50) { $db = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASSWD); mysql_select_db(MYSQL_DB); $sql = "INSERT IGNORE INTO Image_keywords (word,count,date) values ('".$b2h_word2."','1','".time()."')"; mysql_query($sql); $sql = "UPDATE Image_keywords SET count=count+1, date='".time()."' WHERE word='".$b2h_word2."'"; mysql_query($sql); mysql_close($db); } } if(is_array($urllist)) { $size2=50*2; $scale=2; $mem = new Memcached(); $mem->addServer('localhost', 11211); foreach($urllist as $key => $val) { $size = NULL; $size = pack("H*",$val['size']); if ($size) { $urllist["$key"]['size2'] = $size; } $urllist["$key"]['ext2'] = str_replace('\u201c','“',$val['ext2']); $urllist["$key"]['ext2'] = str_replace('\u201d','”',$urllist["$key"]['ext2']); $urllist["$key"]['ext2'] = str_replace('\u0027',"'",$urllist["$key"]['ext2']); $descp .= ' | ' . mb_substr($urllist["$key"]['ext2'],0,20,"UTF-8"); if($key < 2) $descp2 .= '|' . $urllist["$key"]['ext2']; if($val['path']!='') { $id = pack("H*",$val['path']); if(url_check($id)==1) { $urllist["$key"]["path"] = false; } } if($val['ref']!='') { $ref = pack("H*",$val['ref']); if(url_check($ref)==1) { $urllist["$key"]["path"] = false; } } if($val['img2']!='') { $img2 = pack("H*",$val['img2']); if(url_check($img2)==1) { $urllist["$key"]["path"] = false; } } //半角変換 $ext2_tmp = convert_word($urllist["$key"]['ext2']); //禁止ワードチェック if(ignore_check($ext2_tmp)==1) { $urllist["$key"]["path"] = false; } if($val['path2']!='') { $urlstr2="pre " . $urllist["$key"]['path2'] . " $size2 $scale"; $md5_2 = md5($urlstr2); $value = $mem->get($md5_2); if(strlen($value)>1000) { $urllist["$key"]['path3'] = base64_encode($value); } } } $recomend = get_recomend($word_tmp8); $this->assign("recomend", $recomend); } $this->assign("urllist", $urllist); $this->assign("next", $_REQUEST["start"]+3); } if($urllist['0']['path2']=="" && $rq!='') { $nohit = 1; $this->assign("nohit", $nohit); header("HTTP/1.0 404 Not Found"); } $this->assign("word", $word_tmp8); $this->assign("descp", $descp); $this->assign("descp2", $descp2); $this->assign("amazonword", $word); $this->assign("imgsz", $imgsz); $this->assign("start2", $start2); $this->assign("pageno", $page); $this->assign("roop2", $roop2); $this->assign("prevp", $start - 3); $this->assign("imgsz2", bin2hex($imgsz)); $this->assign("b2h_word", $b2h_word); $agent = $_SERVER['HTTP_USER_AGENT']; $this->assign("agent", $agent); if(strpos($agent,'bot')!==FALSE || strpos($agent,'spider')!==FALSE || preg_match("/site/", $_REQUEST['ew']) ) { $this->assign("nosend", 1); } if (preg_match("/DoCoMo/", $_SERVER['HTTP_USER_AGENT'])) { header('Content-Type: application/xhtml+xml'); } else { header("Content-Type: text/html"); } } {/php} {if $k==""}{if $w}【待ち受け】{$word|escape:"html"}{else}{$site_name}{/if}{$descp2}{else}【待ち受け】{$urllist.ext2|escape:"html"}{/if} {if $w} {if $k==""}

{$word|escape:"html"} 待ち受けVol.{$pageno}


{include file=`$www_dir`ad.html"}
{if $nohit==1} 一件もヒットしませんでした。
{/if} {foreach from=$urllist key=k2 item=v name=thumb} {if $v.path} {/if} {/foreach}

{include file=`$www_dir`ad.html"}
{else} {if $urllist.path2}
{include file=`$www_dir`ad.html"}
{$urllist.ext2|escape:

{if $prevlink}{$prevlink}{/if}  {if $nextlink}{$nextlink}{/if}

{$urllist.ext2|escape:"html"}

{include file=`$www_dir`ad.html"}


切り取り位置や回転

iPhone

           

Android

           

PC

           

{*{include file=`$www_dir`ad.html"}*} {if $recomend}

おすすめ関連画像

{foreach from=$recomend key=k2 item=v name=recomend}  {if $smarty.foreach.recomend.iteration < 7} {if $v!=$word} {/if} {/if} {/foreach} {/if}

{*

画像サイズ一覧

iPhone
XS MAX/11Pro壁紙向き 1242x2688{if $o_height>$o_width}(余白なし){/if}
X/XS/11PM壁紙向き 1125x2436{if $o_height>$o_width}(余白なし){/if}
XR/11壁紙向き 828x1792{if $o_height>$o_width}(余白なし){/if}
8/7/6s/6 Plus壁紙向き 1080x1920{if $o_height>$o_width}(余白なし){/if}
8/7/6s/6壁紙向き 750x1334{if $o_height>$o_width}(余白なし){/if}
5s/5c/5壁紙向き 640x1136{if $o_height>$o_width}(余白なし){/if}
4s/4壁紙向き 640x960{if $o_height>$o_width}(余白なし){/if}
Android
Android壁紙向き 2560x2880{if $o_height>$o_width}(余白なし){/if}
Android壁紙向き 1440x2560{if $o_height>$o_width}(余白なし){/if}
Android壁紙向き 1920x2160{if $o_height>$o_width}(余白なし){/if}
Android壁紙向き 1080x1980{if $o_height>$o_width}(余白なし){/if}
Android壁紙向き 1280x1440{if $o_height>$o_width}(余白なし){/if}
Android壁紙向き 640x960{if $o_height>$o_width}(余白なし){/if}
PC
PC壁紙向き 2560x1440{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1920x1080{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1536x864{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1440x900{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1366x768{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1280x800{if $o_width>$o_height}(余白なし){/if}
PC壁紙向き 1280x1024{if $o_width>$o_height}(余白なし){/if}
*}
{/if} {/if} {/if}
{if $w && $k==""}
{if $pageno > 1} {if $nohit!=1}      {/if} {else} {/if}

{if $recomend}

おすすめ関連画像

{foreach from=$recomend key=k2 item=v name=recomend}  {if $smarty.foreach.recomend.iteration < 7} {if $v!=$word} {/if} {/if} {/foreach} {/if}
{/if} {if $word=="" && $k==""}


{/if}

画像検索


人気の画像


{if $keyword_list2}

{foreach from=$keyword_list2 key=k2 item=v name=history}   {/foreach}

{/if}
{include file=`$www_dir`ad.html"}

検索履歴


{if $keyword_list}

{foreach from=$keyword_list key=k2 item=v name=history}   {/foreach}

{/if}
{include file=`$www_dir`ad.html"}
{if $k!=""}
※この画像についてのお問い合わせは掲載元サイト様へお願いします。
{/if} {php} $accept = array('66.249.64.0/19', '72.14.192.0/18'); $remote_ip = $_SERVER['REMOTE_ADDR']; foreach($accept as $key => $val) { list($accept_ip, $mask) = explode('/', $val); $accept_long = ip2long($accept_ip) >> (32 - $mask); $remote_long = ip2long($remote_ip) >> (32 - $mask); if ($accept_long == $remote_long) { $this->assign("no_analyze", '1'); break; } } {/php} {if $no_analyze!="1"} {/if}