| punbb-1.2.18/upload/include/email.php |
fluxbb-1.2.19/upload/include/email.php |
| 123: | 123: |
| 124: $recipients = explode(',', $to); | 124: $recipients = explode(',', $to); |
| 125: | 125: |
| | 126: // Sanitize the message |
| | 127: $message = str_replace("\r\n.", "\r\n..", $message); |
| | 128: $message = (substr($message, 0, 1) == '.' ? '.'.$message : $message); |
| | 129: |
| 126: // Are we using port 25 or a custom port? | 130: // Are we using port 25 or a custom port? |
| 127: if (strpos($pun_config['o_smtp_host'], ':') !== false) | 131: if (strpos($pun_config['o_smtp_host'], ':') !== false) |
| 128: list($smtp_host, $smtp_port) = explode(':', $pun_config['o_smtp_host']); | 132: list($smtp_host, $smtp_port) = explode(':', $pun_config['o_smtp_host']); |
| punbb-1.2.18/upload/include/parser.php |
fluxbb-1.2.19/upload/include/parser.php |
| 100: message($lang_prof_reg['Signature quote/code']); | 100: message($lang_prof_reg['Signature quote/code']); |
| 101: } | 101: } |
| 102: | 102: |
| | 103: if (preg_match('#\[url\](.*?)([\[]+?)(.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)([\[]+?)(.*?)\](.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)\](.*?)([\[]+?)(.*?)\[/url\]#', $text)) |
| | 104: message('BBCode can not be nested within [url] tags.'); |
| | 105: if (preg_match('#\[email\](.*?)([\[]+?)(.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)([\[]+?)(.*?)\](.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)\](.*?)([\[]+?)(.*?)\[/email\]#', $text)) |
| | 106: message('BBCode can not be nested within [email] tags.'); |
| | 107: |
| 103: return trim($text); | 108: return trim($text); |
| 104: } | 109: } |
| 105: | 110: |
| punbb-1.2.18/upload/moderate.php |
fluxbb-1.2.19/upload/moderate.php |
| 141: <fieldset> | 141: <fieldset> |
| 142: <legend><?php echo $lang_misc['Confirm delete legend'] ?></legend> | 142: <legend><?php echo $lang_misc['Confirm delete legend'] ?></legend> |
| 143: <div class="infldset"> | 143: <div class="infldset"> |
| 144: <input type="hidden" name="posts" value="<?php echo implode(',', array_keys($posts)) ?>" /> | 144: <input type="hidden" name="posts" value="<?php echo implode(',', array_map('intval', array_keys($posts))) ?>" /> |
| 145: <p><?php echo $lang_misc['Delete posts comply'] ?></p> | 145: <p><?php echo $lang_misc['Delete posts comply'] ?></p> |
| 146: </div> | 146: </div> |
| 147: </fieldset> | 147: </fieldset> |
| 334: if (empty($topics)) | 334: if (empty($topics)) |
| 335: message($lang_misc['No topics selected']); | 335: message($lang_misc['No topics selected']); |
| 336: | 336: |
| 337: $topics = implode(',', array_keys($topics)); | 337: $topics = implode(',', array_map('intval', array_keys($topics))); |
| 338: $action = 'multi'; | 338: $action = 'multi'; |
| 339: } | 339: } |
| 340: else | 340: else |
| 457: <h2><?php echo $lang_misc['Delete topics'] ?></h2> | 457: <h2><?php echo $lang_misc['Delete topics'] ?></h2> |
| 458: <div class="box"> | 458: <div class="box"> |
| 459: <form method="post" action="moderate.php?fid=<?php echo $fid ?>"> | 459: <form method="post" action="moderate.php?fid=<?php echo $fid ?>"> |
| 460: <input type="hidden" name="topics" value="<?php echo implode(',', array_keys($topics)) ?>" /> | 460: <input type="hidden" name="topics" value="<?php echo implode(',', array_map('intval', array_keys($topics))) ?>" /> |
| 461: <div class="inform"> | 461: <div class="inform"> |
| 462: <fieldset> | 462: <fieldset> |
| 463: <legend><?php echo $lang_misc['Confirm delete legend'] ?></legend> | 463: <legend><?php echo $lang_misc['Confirm delete legend'] ?></legend> |
| punbb-1.2.18/upload/userlist.php |
fluxbb-1.2.19/upload/userlist.php |
| 154: <?php | 154: <?php |
| 155: | 155: |
| 156: // Grab the users | 156: // Grab the users |
| 157: $result = $db->query('SELECT u.id, u.username, u.title, u.num_posts, u.registered, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id>1'.(!empty($where_sql) ? ' AND '.implode(' AND ', $where_sql) : '').' ORDER BY '.$sort_by.' '.$sort_dir.' LIMIT '.$start_from.', 50') or error('Unable to fetch user list', __FILE__, __LINE__, $db->error()); | 157: $result = $db->query('SELECT u.id, u.username, u.title, u.num_posts, u.registered, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id>1'.(!empty($where_sql) ? ' AND '.implode(' AND ', $where_sql) : '').' ORDER BY '.$sort_by.' '.$sort_dir.', u.id ASC LIMIT '.$start_from.', 50') or error('Unable to fetch user list', __FILE__, __LINE__, $db->error()); |
| 158: if ($db->num_rows($result)) | 158: if ($db->num_rows($result)) |
| 159: { | 159: { |
| 160: while ($user_data = $db->fetch_assoc($result)) | 160: while ($user_data = $db->fetch_assoc($result)) |