芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/ja.bf1.my/wp-content/plugins/ecwid-shopping-cart/includes/class-ecwid-help-page.php
user_email; $result = wp_mail( $to, $_POST['subject'], implode(PHP_EOL, $body_lines), 'Reply-To:' . $reply_to ); if ($result) { $nonce = wp_create_nonce( self::CONTACT_US_ACTION_NAME ); echo json_encode( array( 'nonce' => $nonce ) ); wp_die(); } else { header('500 Send mail failed'); die(); } } public function get_faqs() { global $faqs; include 'faq_entries.php'; $max = 8; $guaranteed_3 = null; foreach ( $faqs as $idx => $faq ) { if ( isset( $faq['priority'] ) && $faq['priority'] == 'guaranteed_3' ) { $guaranteed_3 = array(); $guaranteed_3[] = $faq; unset( $faqs[$idx] ); break; } } $result = array(); foreach ( $faqs as $idx => $faq ) { if ( isset($faq['priority']) && $faq['priority'] == 'newbie_with_woo' ) { $installed_within_two_weeks = time() - get_option( 'ecwid_installation_date' ) < 60 * 60 * 24 * 14; if ( ecwid_get_woocommerce_status() && $installed_within_two_weeks ) { $result[] = $faq; unset($faqs[$idx]); } } } $faqs = array_values($faqs); while ( count($result) < $max + ( $guaranteed_3 ? 1 : 0 ) ) { $rand = rand(0, count($faqs) - 1); $result[] = $faqs[$rand]; unset($faqs[$rand]); $faqs = array_values($faqs); } array_splice( $result, 2, 0, $guaranteed_3 ); $faqs = $result; $result = array(); foreach ($faqs as $faq) { $faq['body'] = preg_replace('!