コード例 #1
0
ファイル: index.php プロジェクト: hkirsman/tsitaat_com
		$smarty_q->assign("author_wiki_url_de", $quotes_temp[0]["author_wiki_url_de"]);
		break;
	case "generate_indexes":
		acl();
		tag::generate_index();
		robots::generate("robots_".$config_q["locale"].".txt");
		sitemap::generate("sitemap_".$config_q["locale"].".xml");
		die("done");
		break;
	case "find_similar_quotes":
		acl();
		quote::find_similar_quotes();
		break;
	case "get_new_quotes_from_zitate_de":
		acl();
		quote::get_new_quotes_from_zitate_de();
		break;
	case "admin":
		acl();
		echo "admin";
		break;
	case "userprofile":
		$context["h1"] = "";
		$context["fake_h1"] = _("User") ." ". $a_path[0];

		$userinfo = user_q::user_info($a_path[0]);

		if ($config_q["locale"] == "et")
		{
			$content = ucwords($a_path[0]) . " on olnud tsitaat.com kasutaja alates ".$userinfo["user_regdate_parsed"].'. Ta on '.
      ($userinfo["quotes_added"]?'<a href="'.$user->data["username_clean"]."/".$context["labels"]["added-quotes_clean"].'">':'').