private static function _generate_authors() { $authors = author::get_authors(); $current_lastname_firstchar = $robotstxt = ""; foreach ($authors as $key => $var) { $robotstxt .= "Allow: /" . _("quotes") . "/" . _("authors") . "/" . $var["url_friendly_author_name"] . "\n"; } $author_index = author::get_author_index(); foreach ($author_index as $key => $var) { $robotstxt .= "Disallow: /" . _("quotes") . "/" . _("authors") . "/" . $var["char"] . "/\n"; } return $robotstxt; }
$context["section"] = $section; if ($user->data["user_id"]==2) { $context["admin"] = true; $context["categories"] = $category->get_categories(); } $context["username"] = $user->data["username"]; $context["username_clean"] = $user->data["username_clean"]; $context["user_id"] = $user->data["user_id"]; //$smarty_q->assign ("user_type", $user->data["user_type"]); //$smarty_q->assign ("group_id", $user->data["group_id"]); //$smarty_q->assign ("robots_index", false); //$smarty_q->assign ("keywords", _("quotes, quotations, world")); //$smarty_q->assign ("author_index", author::get_author_index()); $context["author_index"] = author::get_author_index(); //$smarty_q->author_index ("tag_index", tag::get_tag_index()); $context["tag_index"] = tag::get_tag_index(); //$smarty_q->assign ("category_index", category::get_categories()); //$smarty_q->assign ("a_path", $a_path); $context["a_path"] = $a_path; //$smarty_q->assign ("enable_voting", true); $context["enable_voting"] = true; //$smarty_q->assign ("show_sidecontent", true); //$smarty_q->assign ("search_return_url", $config_q["baseurl"] . "/" . _("search")); //$smarty_q->assign ("config_q", $config_q); //$smarty_q->assign ("analytics", $config_q["analytics"]); ////$smarty_q->assign ("label_previous_page", _("Previous page")); ////$smarty_q->assign ("label_next_page", _("Next page")); ////$smarty_q->assign ("label_share_on_facebook", _("Share on Facebook")); //$smarty_q->assign ("google_site_verification", $config_q["google_site_verification"]);