uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
forum-e-syn
/
FUDforum
/
plugins
/
welcome_pm.plugin
/
/
<?php /** * copyright : (C) 2001-2011 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id: welcome_pm.plugin 5770 2014-04-02 07:30:23Z naudefj $ * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. **/ // Initialize plugin. plugin_add_hook('EMAILCONFIRMED', 'plugin_welcome_pm'); // Send user a welcome private message function plugin_welcome_pm($usr) { fud_use('private.inc'); fud_use('wordwrap.inc'); if ((@include_once $GLOBALS['PLUGIN_PATH'] .'welcome_pm.ini') === false) { die('ERROR: Please configure the Welcome PM plugin from the Plugin Manager Control panel.'); } $msg_p = new fud_pmsg; $msg_p->fldr = 1; $msg_p->subject = $ini['WELCOME_SUBJECT']; $msg_p->body = $ini['WELCOME_BODY']; $msg_p->body = char_fix(nl2br(htmlspecialchars($msg_p->body))); fud_wordwrap($msg_p->body); $msg_p->read_stamp = 0; $msg_p->ouser_id = 2; // admin $msg_p->duser_id = $usr->id; $msg_p->pmsg_opt = 49; $msg_p->add(1); return $usr; } function welcome_pm_info() { return array('name' => 'Welcome Private Message', 'desc' => 'This plugin, if enabled, will send a welcome PM (private message) to users when they confirm their E-mail addresses.', 'version' => '1.1'); } function welcome_pm_enable() { if ((@include_once $GLOBALS['PLUGIN_PATH'] .'welcome_pm.ini') === false) { return array(null, 'Please configure the welcome_pm plugin before enabling it.'); // OK, Err. } } function welcome_pm_config() { if ((@include $GLOBALS['PLUGIN_PATH'] .'welcome_pm.ini') === false) { $ini = NULL; } if (isset($_POST['Set'])) { foreach (array_keys($_POST) as $key) { if (substr($key,0,8) == 'WELCOME_') { $ini[$key] = $_POST[$key]; } } $fp = fopen($GLOBALS['PLUGIN_PATH'] .'/welcome_pm.ini', 'w'); fwrite($fp, '<?php $ini = '. var_export($ini, 1) .'; ?>'); fclose($fp); pf(successify('Settings successfully saved.')); } ?> <p>Subject for welcome message:<br /> <input name="WELCOME_SUBJECT" value="<?php echo $ini['WELCOME_SUBJECT'] ?>" size="60" /></p> <p>Body of welcome message:<br /> <textarea name="WELCOME_BODY" cols="72" rows="8"><?php echo $ini['WELCOME_BODY'] ?></textarea></p> <?php }
/var/www/forum-e-syn/FUDforum/plugins/welcome_pm.plugin