Php method, from the Internet to download a website program, this step did not understand what is to do, ask for advice

Source: Internet
Author: User
Php method, from the Internet to download a website program, this method did not understand what is doing, ask for advice
function seo ($ident)
{
Include App_path. " /plus/seo.cache.php ";
$seo = $seo [$ident];
if (Is_array ($seo)) {
foreach ($seo as $k = = $v) {
if ($v [affiliation]!= "") {
[Email protected] (",", $v [' affiliation ']);
if ($_session[did]!= "" && In_array ($_session[' did '), $did)) {
$seo = $v;
}elseif (In_array ("0", $did)) {
$seo = $v;
}
}else{
$seo = $v;
}
}
}
$data = $this->data;
if (Is_array ($seo))
{
$cityname = $_session[' cityname ']?$_session[' CityName '): $this->config["sy_indexcity"];
foreach ($seo as $key = $value)
{
$seo [$key] = Str_replace ("{webname}", $this->config[' Sy_webname '], $seo [$key]);
$seo [$key] = Str_replace ("{Webkeyword}", $this->config[' Sy_webkeyword '], $seo [$key]);
$seo [$key] = Str_replace ("{Webdesc}", $this->config[' Sy_webmeta '], $seo [$key]);
$seo [$key] = Str_replace ("{Weburl}", $this->config[' Sy_weburl '], $seo [$key]);
$seo [$key] = Str_replace ("{City}", $cityname, $seo [$key]);
if (Is_array ($data)) {
foreach ($data as $k = = $v) {
$seo [$key] = Str_replace ("{". $k. "}", $v, $seo [$key]);
}
}
if ([email protected] (' {seacrh_class} ', $seo [$key])) {
$rdata = $this->get_search_class ($ident, $key);
$seo [$key] = Str_replace ("{seacrh_class}", $rdata, $seo [$key]);
}
$seo [$key]=str_replace (",", $seo [$key]);
$seo [$key]=str_replace (Array ("--", "--"), '-', $seo [$key]);
$seo [$key]=str_replace (Array ("--", "--"), '-', $seo [$key]);
}
}
$this->yunset ("title", $seo [' title ']);
$this->yunset ("keywords", $seo [' keywords ']);
$this->yunset ("description", $seo [' description ']);
}
function Yunset ($name, $value) {
$this->tpl->assign ($name, $value);
}
------Solution--------------------
Optimize Address bar Links
------Solution--------------------
You can explain to me which sentence you don't understand.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.