芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/includes/PRG/Ship/Item-20251219193118.php
prepare("SELECT * FROM `{$wpdb->prefix}b2s_user_contact` WHERE `blog_user_id` = %d", B2S_PLUGIN_BLOG_USER_ID); $this->userData = $wpdb->get_row($sqlUserData); return $this->userData; } public function getCountryHtml() { $countries = simplexml_load_string(PRG_Api_Get::get(B2S_PLUGIN_PRG_API_ENDPOINT . 'get.php?action=getCountry')); $prgKeyName = 'titel_' . substr(B2S_LANGUAGE, 0, 2); $content = ''; foreach ($countries as $val) { $content .= '
userData->land_presse) && !empty($this->userData->land_presse)) { if ($val->tag == $this->userData->land_presse) { $content .= ' selected="selected"'; } } else { //default if ($val->tag == "US") { $content .= ' selected="selected"'; } } $content .= '>' . esc_html($val->$prgKeyName) . '
' . PHP_EOL; } return $content; } public function getCategoryHtml() { $cats = simplexml_load_string(PRG_Api_Get::get(B2S_PLUGIN_PRG_API_ENDPOINT . 'get.php?action=getCategory')); $prgKeyName = 'titel_' . substr(B2S_LANGUAGE, 0, 2); $content = ''; foreach ($cats as $val) { $content .= '
' . esc_html($val->$prgKeyName) . '
' . PHP_EOL; } return $content; } }