| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:53:27 2008 ] | [ myPHPNuke 1.8.8_8 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 if ( ! @include_once ( './mainfile.php' ) ) { exit( '!! INCLUDE ERROR. ACCESS DENIED !!' ); } 4 error_reporting( _E_VALUE ); 5 6 7 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 8 // +----------------------------------------------------------------------+ 9 // | myPHPNuke Version 188_8 RC2 | 10 // +----------------------------------------------------------------------+ 11 // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | 12 // +----------------------------------------------------------------------+ 13 // | Support: http://myphpnuke.com/ | 14 // +----------------------------------------------------------------------+ 15 // | Author: myPHPNuke Dev Team | 16 // +----------------------------------------------------------------------+ 17 // | Copyright: © 2001-2004 myPHPNuke Dev Team | 18 // +----------------------------------------------------------------------+ 19 // $Id: compose.php,v 1.15.2.3 2004/08/01 17:04:16 kirilt Exp $ 20 21 22 23 /*************************************************************************/ 24 # Mailbox 0.9.2a by Sivaprasad R.L (http://netlogger.net) # 25 # # 26 # -- A pop3 client addon for phpnuked websites -- # 27 # # 28 # This program is distributed in the hope that it will be useful, # 29 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 31 # GNU General Public License for more details. # 32 # # 33 # You should have received a copy of the GNU General Public License # 34 # along with this program; if not, write to the Free Software # 35 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # 36 # # 37 # Copyright (C) by Sivaprasad R.L # 38 # # 39 /*************************************************************************/ 40 41 if ( ! _MPN_USER ) 42 { 43 goBack( translate( 'You Are Not Logged In' ) ); 44 exit; 45 } 46 47 $tmp = cookiedecode(); 48 $uid = $tmp[0]; 49 unset( $tmp ); 50 51 $index = 2; 52 53 include "./header.php"; 54 include "./mailheader.php"; 55 56 global $to, $subject, $body, $op, $bgcolor2; 57 58 $body = stripslashes($body); 59 $to = stripslashes($to); 60 $subject = stripslashes($subject); 61 62 $content = null; 63 64 if(isset($op)) { 65 if($op == "reply") $subject = translate("Re: ") . $subject; 66 else if($op == "forward") $subject = translate("Fwd: ") . $subject; 67 if(eregi($body, "<br>", $out)) { 68 $bodytext = explode("<br>", $body); 69 foreach($bodytext as $bt) { 70 $content .= "> ".$bt; 71 } 72 } else { 73 $bodytext = explode("\n",$body); 74 foreach($bodytext as $bt) { 75 $content .= "> ".$bt."\n"; 76 } 77 } 78 } 79 80 if ( empty( $content ) ) { $content = ''; } 81 82 $win_page = 'mail_attach.php'; 83 $win_name = 'Upload'; 84 $win_para = 'width=350, height=400, toolbar=0, location=1, directories=0, status=0, scrollbars=1, resizable=1, copyhistory=0'; 85 $text = translate( 'Click To Upload Your Attachments' ); 86 87 $link = "<a class='subtitle1' href=\"javascript: popWindow( '{$win_page}', '{$win_name}', '{$win_para}' );\" title='$text'>$text</a>\n"; 88 89 OpenTable(); 90 91 echo "<div class='tabletitles'>\n"; 92 93 echo translate( 'Sending Email Restrictions And Requirements' ); 94 95 echo "</div>\n"; 96 97 echo "<ul>\n"; 98 99 echo "<li>\n"; 100 101 echo translate( 'Separate Multiple Addresses With A Comma' ); 102 echo "</li><li>\n"; 103 104 echo translate( 'You May Send Mail To A Maximum Of Ten Addresses' ); 105 106 echo "</li><li>\n"; 107 108 echo translate( 'If Attachments Are Required, Please Upload First' ) . '<br /> ' . translate( 'Or You Will Lose Your Mail Message' ); 109 110 echo "</li><li>\n"; 111 112 echo translate( '<b>Allowed Attachments:</b> jpg, gif, html, htm, txt' ); 113 114 echo "</li><li>\n"; 115 116 echo translate( 'All Attachments Are Subject To Sanitizing' ); 117 118 echo "</li><li>\n"; 119 120 echo translate( 'All Non-Image Attachments Will Be Sent As A Text File' ); 121 122 echo "</li><li>\n"; 123 124 echo translate( 'You May Attach A Maximum Of Five Files' ); 125 126 echo "</li><br />\n"; 127 128 echo "</ul>\n"; 129 130 CloseTable(); 131 132 echo "<br /><br />\n"; 133 134 echo "<div class='center'>\n"; 135 136 echo $link; 137 138 echo "</div>\n"; 139 140 echo "<br /><br />\n"; 141 142 ?> 143 144 <FORM METHOD="POST" ACTION="nlmail.php" name=emailform> 145 146 <TABLE align=center width=100% border=0> 147 <TR><TD class="label"> <?php echo translate("To") ?> :<br /><input type=text name="to" size=47 maxlength="250" value='<?php echo $to ?>'></TD></TR> 148 <TR><TD class="label"> <?php echo translate("Subject") ?> :<br /><input type=text name="subject" size=47 value='<?php echo $subject ?>'></TD></TR> 149 <TR><TD class="label"><i><?php echo translate("cc") ?></i>: <input type=text name="cc" size=20 maxlength="250"><br /><br /> 150 <i class="label"><?php echo translate("bcc") ?></i>: <input type=text name="bcc" size=20 maxlength="250"></TD></TR> 151 152 <TD class="label"><?php echo translate("Priority") ?> : <select name="prior"> 153 <option value="1"> <?php echo translate("High") ?> </option> 154 <option value="3" selected> <?php echo translate("Normal") ?> </option> 155 <option value="4"> <?php echo translate("Low") ?> </option> 156 </select> 157 </TD> 158 </TR><TR><TD class="label"> <?php echo translate("Message") ?> :<br /> 159 160 <TEXTAREA NAME="message" ROWS=20 COLS=70 WRAP=virtual><?php echo $content ?></TEXTAREA> 161 </TD></TR> 162 <tr><td colspan=2><hr></td></tr> 163 164 <?php 165 166 $allowed_files = array( 'jpg', 'gif', 'txt', 'htm', 'html' ); 167 $attachment = array(); 168 $dir_content = array(); 169 170 $dir_content = $_SERVER['F_LIB'] -> dirContents( _DP_MAIL_ATTACH, $allowed_files ); 171 172 echo "<tr><td colspan='2'>\n"; 173 echo "<b>" . translate( 'You Have Attached The Following Files' ) . ":</b>\n"; 174 175 echo "<br /><br />\n"; 176 177 if ( is_array( $dir_content ) && sizeof( $dir_content ) > 0 ) 178 { 179 foreach( $dir_content AS $key => $v ) 180 { 181 if ( (bool)FALSE !== strpos( $v, $uid ) ) 182 { 183 $filename = NULL; 184 185 if ( $key <= 4 ) 186 { 187 $name_start = strpos( $v , '_' ) + 1; 188 $name_end = strrpos( $v , '_' ); 189 $filename = substr( $v, $name_start, ( $name_end - $name_start ) ); 190 } 191 else 192 { 193 @unlink( _DP_MAIL_ATTACH . $v ); 194 } 195 196 if ( ! empty( $filename ) ) 197 { 198 echo "<input type='checkbox' name='$filename' value='$key' checked='checked'/>\n"; 199 echo " \n"; 200 echo "<span class='label'>$filename</span>\n"; 201 202 echo "<br /><br />\n"; 203 204 echo "<span class='font4'>\n"; 205 206 echo "<em class='look'>* </em>\n"; 207 echo translate( 'To remove a file from this mail, uncheck the checkbox' ); 208 209 echo "</span>\n"; 210 } 211 } 212 } 213 } 214 else 215 { 216 217 echo '<b>' . translate( 'No Attached Files' ) . '</b>'; 218 echo "<br />\n"; 219 } 220 221 222 echo "<br /><hr /></td></tr>\n"; 223 224 ?> 225 <tr><td colspan=2></td></tr> 226 <TD><INPUT class='button' TYPE="submit" name="send" VALUE="<?php echo translate("Send Message") ?>"> 227 </TD><TD> 228 229 <?php 230 231 echo "<input type='hidden' name='stripit_form' value='to|subject|cc|bcc|prior|message' />\n"; 232 echo "<input type='hidden' name='mpn_sectype' value='1' />\n"; 233 ?> 234 235 <INPUT class='button' TYPE="reset" VALUE="<?php echo translate("Clear All") ?>"></TD></TR> 236 </TABLE> 237 </center> 238 239 </FORM> 240 241 <?php 242 243 include "mailfooter.php"; 244 245 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |