<?php require_once "parts.php"; require_once "model.php"; ?> <?php $allTools = getAllTools(); $toolsNames = array(); foreach ($allTools as $tool) { array_push($toolsNames, $tool['name']); } $toolsNames = "['" . implode("','", $toolsNames) . "']"; ?> <html> <head> <link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Oswald:400,700" rel="stylesheet" type="text/css"> <!-- HTML5 Support for IE --> <!--[if lt IE 9]> <script src="/js/html5shim.js"></script> <![endif]--> <!-- Stylesheets --> <link href="style/bootstrap.css" rel="stylesheet"> <link href="style/animate.min.css" rel="stylesheet"> <link href="style/flexslider.css" rel="stylesheet">
) [3] => Array ( [0] => text/html; charset=UTF-8 [1] => text/html; charset=UTF-8 [2] => ebay, electronics, cars, clothing, apparel, collectibles, sporting goods, digital cameras, antiques, tickets, jewelry, online shopping, auction, online auction [3] => Buy and sell electronics, cars, fashion apparel, collectibles, sporting goods, digital cameras, baby items, coupons, and everything else on eBay, the world's online marketplace [4] => j6ZKbG61n+f9pUtbkf69zFRBrRSeUqyfEJ2BjiRxWDQ= [5] => acf32e2a69cbc2b0 [6] => 31154A785F516EC9842FC3BA2A70FB1A ) )*/ require_once 'model.php'; $tools = getAllTools(); foreach ($tools as $t) { $url = $t['url']; $original_file = file_get_contents($url); preg_match_all("/<title>(.*)<\\/title>/", $original_file, $title); $tags = get_meta_tags($url); echo $title[1][0]; echo "<br/>"; echo $tags['keywords']; // php documentation echo "<br/>"; echo $tags['description']; // a php manual echo "<br/>"; echo "<br/>"; }
<?php require_once 'parts.php'; require_once 'model.php'; ?> <?php $toolsList = getAllTools(); ?> <?php $title = "Startup Tools and Resources"; $description = "Tools to help you build, run and grow a startup: "; $keywords = "Startup Tools, "; $i = 0; foreach ($toolsList as $kw) { $i++; if ($i < 7) { $keywords = $keywords . ", " . $kw["name"]; $description = $description . $kw["name"] . ", "; } } $description = substr($description, 0, -2); get_header($title, $description, $keywords); ?> <script>mixpanel.track("All Tools Page");</script> <?php
<?php include "_lib.php"; ?> <ul> <?php $Docs = getAllTools(); if (sizeof($Docs)) { ?> <?php foreach ($Docs as $e) { ?> <li><a href=<?php echo $e['url']; ?> ><?php echo $e['title']; ?> </a> <?php } } else { ?> <li><i>документация не установлена.</i> <?php } ?> </ul>