static function destroy_plugin_data() { mb()->deactivateAndDestroyMBData(); return; }
static function deactivateAndDestroyMBData() { return; global $MB_VERSION; mb()->destroyMBOptions(); mb()->destroyMBDB(); //if plugin is in default folder name if (is_plugin_active('mango-buttons/mango-buttons.php')) { deactivate_plugins('mango-buttons/mango-buttons.php'); } //if plugin is in '-plugin' folder name if (is_plugin_active('mango-buttons-plugin/mango-buttons.php')) { deactivate_plugins('mango-buttons-plugin/mango-buttons.php'); } //if plugin is in versioned folder name if (is_plugin_active('mango-buttons-' . $MB_VERSION . '/mango-buttons.php')) { deactivate_plugins('mango-buttons-' . $MB_VERSION . '/mango-buttons.php'); } }
//↑↑===========nm00142 end================================== require_once 'MailSender.php'; //-------------------------------------- // 違反報告メール送信 //-------------------------------------- $str = ''; $str .= "話題ID: " . $_POST['t']; $str .= "\nコメントID: " . $_POST['m']; $str .= "\n違反報告項目:" . mb($_POST['reason']); $str .= "\n違反報告の詳細:\n" . mb($_POST['detail']); $str .= "\n\n"; $str .= "\n以下は、システムログ"; $str .= "\n-- _POST -- \n"; foreach ($_POST as $k => $v) { $str .= "{$k}: " . mb($v) ."\n"; } $str .= "\n-- _SERVER -- \n"; foreach ($_SERVER as $k => $v) { $str .= "{$k}: $v\n"; } //-------------------------------------- // メール送信 //-------------------------------------- $smtp['host'] = MAIL_SMTP; $smtp['port'] = 25; $smtp['auth'] = false; $mail = new MailSender($smtp); $mail->setFrom(MAIL_FROM);
function statistics($s) { $a = super_explode($s); $arr = array(); array_values_recursive($a, $arr); if ($_POST['casei'] == 'on') { for ($i = 0; $i < count($arr); ++$i) { $arr[$i] = mb() ? mb_strtolower($arr[$i]) : strtolower($arr[$i]); } } $ret = array_count_values($arr); $r = array(); foreach ($ret as $key => $val) { $r[] = ent_en($key) . "\t" . $val; } return implode("\n", $r); }