'; switch ($part) { case 'info': $info = mymps_get_infos(5000); if (is_array($info)) { foreach ($info as $k => $v) { $mayi .= ' '; $mayi .= $mymps_global['SiteUrl'] . $v['uri'] . ' '; $mayi .= ''; $mayi .= GetTime($v['begintime'], 'Y-m-d H:i:s'); $mayi .= ' '; $mayi .= 'weekly '; $mayi .= '0.9 '; $mayi .= ' '; } } break; case 'category': $categories = get_categories_tree(0, 'category'); if (is_array($categories)) { foreach ($categories as $k => $v) { $mayi .= ' '; $mayi .= $v[uri] . ' '; $mayi .= ''; $mayi .= GetTime($timestamp, 'Y-m-d'); $mayi .= ' '; $mayi .= 'daily '; $mayi .= '0.9 '; $mayi .= ' '; if (is_array($v[children])) { foreach ($v[children] as $u => $w) { $mayi .= ' '; $mayi .= $w[uri] . ' '; $mayi .= ''; $mayi .= GetTime($timestamp, 'Y-m-d'); $mayi .= ' '; $mayi .= 'daily '; $mayi .= '0.8 '; $mayi .= ' '; } } } } break; case 'store': $store = mymps_get_members(5000); if (is_array($store)) { foreach ($store as $k => $v) { $mayi .= ' '; $mayi .= $mymps_global['SiteUrl'] . $v['uri'] . ' '; $mayi .= ''; $mayi .= GetTime($v['jointime'], 'Y-m-d H:i:s'); $mayi .= ' '; $mayi .= 'daily '; $mayi .= '0.9 '; $mayi .= ' '; } } break; case 'news': $news = mymps_get_news(5000); if (is_array($news)) { foreach ($news as $k => $v) { $mayi .= ' '; $mayi .= $mymps_global['SiteUrl'] . $v['uri'] . ' '; $mayi .= ''; $mayi .= GetTime($v['begintime'], 'Y-m-d H:i:s'); $mayi .= ' '; $mayi .= 'daily '; $mayi .= '0.9 '; $mayi .= ' '; } } break; case 'docu': $docu = get_member_docu(1000); if (is_array($docu)) { foreach ($docu as $k => $v) { $mayi .= ' '; $mayi .= $mymps_global['SiteUrl'] . $v['uri'] . ' '; $mayi .= ''; $mayi .= GetTime($v['pubtime'], 'Y-m-d H:i:s'); $mayi .= ' '; $mayi .= 'weekly '; $mayi .= '0.9 '; $mayi .= ' '; } } break; } $mayi .= ''; echo $mayi; is_object($db) && $db->Close(); $db = $db_mymps = NULL; ?>