0) { $row = mysql_fetch_array($rst); if($row['password'] != md5($_POST['password'])) { mysql_close(); header("Location: login.php?status=not_found"); exit(); } else { mysql_close(); // start session session_start(); $_SESSION["logged_in"] = "yes"; $_SESSION["login"] = $_POST['login']; } } else { mysql_close(); header("Location: login.php?status=not_found"); exit(); } } if($_GET['act'] == "logout") { session_destroy(); header("Location: index.php"); exit(); } /////////////////////////////////////////////////////////////////////////// // get meta information /////////////////////////////////////////////////////////////////////////// $sql = "select meta_title, meta_description, meta_keywords, " . "seo_urls, seo_urls_scheme, new_window, display_cnt " . "from dir_settings limit 1"; $rst = mysql_query($sql); if(mysql_affected_rows() == 0) { $meta_title = ""; $meta_description = ""; $meta_keywords = ""; $seo_urls = "N"; $seo_urls_scheme = 1; $new_window = "N"; $display_cnt = "N"; } else { $row = mysql_fetch_array($rst); $meta_title = $row['meta_title']; $meta_description = $row['meta_description']; $meta_keywords = $row['meta_keywords']; $seo_urls = $row['seo_urls']; $seo_urls_scheme = $row['seo_urls_scheme']; $new_window = $row['new_window']; $display_cnt = $row['display_cnt']; } /**** CHECKS METADESCRIPTION'S LENGHT TO CUT IT DOWN TO 250 CHARS ---- START ---- ****/ $text = $meta_description; //echo mb_strlen($text, 'Shift_JIS'); $maxTextLenght = 70; if(mb_strlen($text, 'Shift_JIS') > $maxTextLenght ) { $text = mb_strimwidth($text, 0, $maxTextLenght, "...", "Shift_JIS"); $short_meta = $text; } else{ $short_meta = $meta_description; } /**** CHECKS METADESCRIPTION'S LENGHT TO CUT IT DOWN TO 250 CHARS ---- END ---- ****/ ?> <?php echo($meta_title); ?> ★★★是非ブックマークしてください!★★★


サイト内ページ ?> " . $row['name'] . ""; } else { print "■ " . $row['name'] . "

"; } } else { print "" . $row['name'] . ""; } if($_SESSION["logged_in"] == "yes") { print "   [EDIT]" . "  [DEL]"; } endwhile; ?> 0) { ?> ▼ おすすめサイト

" . $row['title'] . "
"; } else { print "" . $row['title'] . "
"; } if($_SESSION["logged_in"] == "yes") { print "[修正]"; print "[削除]"; } if($show_pr == "Y") { print "  " . fnGetPageRankImgHTML($row['url'], $dir_root_path); } print $row['description'] . "

"; if($new_window == "Y") { //print $row['url']; } else { //print $row['url']; } endwhile; ?>


スポンサーリンク