Plugin Directory

Changeset 1559683


Ignore:
Timestamp:
12/22/2016 11:20:00 AM (9 years ago)
Author:
dan.sed
Message:

Adding version 1.1

Location:
simple-tag-manager
Files:
3 edited
6 copied

Legend:

Unmodified
Added
Removed
  • simple-tag-manager/tags/1.1/readme.txt

    r1547377 r1559683  
    3838The page will display a message with the to add in the head and in the body.
    3939
     40== Changelog ==
     41 
     42= 1.1 =
     43* Using Bootstrap to style the settings page
     44* Added support to translations
     45* Added support for Google Analytics and Custom Codes
     46 
     47= 1.0 =
     48* The first version of Simple Tag Manager
    4049
    4150== Google Tag Manager Errors ==
  • simple-tag-manager/tags/1.1/settings.php

    r1550615 r1559683  
    55{
    66    ?>
    7 
     7<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
     8<style>
     9body{background: #F1F1F1;}
     10.center{text-align: center;}
     11</style>
     12<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    813<div style="max-width: 95%; margin: 16px 0; margin-top: 20px;">
    9 
    10   <h1>Simple Tag Manager</h1>
    11 
    12   <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0 | <a href="https://dansedmak.com"  rel="nofollow" target="_blank"><?php _e( "Author's Website", 'stm-plugin-lang-f' ); ?></a></p>
    13   <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
     14<h1>Simple Tag Manager</h1>
     15<div class="row">
     16<div class="col-md-4 center">
     17<p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0</p>
     18<p>Copyright &copy; 2016 <a href="https://dansedmak.com"  rel="nofollow" target="_blank">Daniel Sedmak</a></p>
     19</div>
     20<div class="col-md-4 center">
     21<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    1422    <input type="hidden" name="cmd" value="_s-xclick" />
    1523    <input type="hidden" name="hosted_button_id" value="7PGYLG7MBNHK8" />
     
    1725    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
    1826  </form>
    19   <small>Copyright &copy; 2016 Daniel Sedmak | <a href="https://github.com/dansita/simple-tag-manager/"  rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a> | <a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></small>
    20   <hr>
     27</div>
     28<div class="col-md-4 center">
     29<p><a href="https://github.com/dansita/simple-tag-manager/"  rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a></p>
     30<p><a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></p>
     31</div>
     32</div>
    2133
    2234</div>
     
    2436<div style="max-width: 95%; padding: 20px; overflow: auto; margin: 16px 0; border: 1px solid #e5e5e5; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); box-shadow: 0 1px 1px rgba(0,0,0,.04); background: #fff; font-size: 13px; line-height: 2.1em;">
    2537<?php if(is_admin()){ ?>
    26   <?php if(isset($_POST['stmx_form'])){ ?><div style="color: #106914; border: solid 1px #8BC34A; background: rgb(253, 255, 235); padding-left: 10px; padding-right: 10px; margin-bottom: 20px;"><p><?php _e( 'Preferences Saved!', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>
     38  <?php if(isset($_POST['stmx_form'])){ ?><div class="alert alert-success" role="alert"><p><b><?php _e( 'Congratulations!', 'stm-plugin-lang-f' ); ?></b>&nbsp;<?php _e( 'The preferences are correctly saved', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>
    2739  <form method="post">
    2840    <?php wp_nonce_field( 'stmx_frm1', 'stmx_form' ); ?>
     
    3244      <option value="off" <?php if( ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("1") == "off"){ echo "selected"; } ?>><?php _e( 'Deactivated', 'stm-plugin-lang-f' ); ?></option>
    3345    </select>
    34     <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     46
     47<div style="margin-top: 20px;">
     48
     49  <!-- Nav tabs -->
     50  <ul class="nav nav-tabs" role="tablist">
     51    <li role="presentation" class="active"><a href="#gtm" aria-controls="home" role="tab" data-toggle="tab"><?php _e( 'Google Tag Manager', 'stm-plugin-lang-f' ); ?></a></li>
     52    <li role="presentation"><a href="#analytics" aria-controls="profile" role="tab" data-toggle="tab"><?php _e( 'Google Analytics', 'stm-plugin-lang-f' ); ?></a></li>
     53    <li role="presentation"><a href="#custom" aria-controls="settings" role="tab" data-toggle="tab"><?php _e( 'Custom', 'stm-plugin-lang-f' ); ?></a></li>
     54  </ul>
     55
     56  <!-- Tab panes -->
     57  <div class="tab-content">
     58    <div role="tabpanel" class="tab-pane active" id="gtm">
     59<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
    3560    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
    3661    <textarea name="opt2" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); ?></textarea>
     
    3863    <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p>
    3964    <textarea name="opt3" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); ?></textarea>
     65    </div>
     66    <div role="tabpanel" class="tab-pane" id="analytics">
     67<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     68    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     69    <textarea name="opt4" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); ?></textarea>
     70    </div>
     71    <div role="tabpanel" class="tab-pane" id="custom">
     72<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     73    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     74    <textarea name="opt5" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); ?></textarea>
     75<h3><?php _e( 'Body', 'stm-plugin-lang-f' ); ?></h3>
     76    <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     77    <textarea name="opt6" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); ?></textarea>
     78    </div>
     79  </div>
     80
     81</div>
     82
     83
     84
     85   
    4086    <br>
    41     <?php submit_button(  _e( 'Save Preferences', 'stm-plugin-lang-f' ) ); ?>
     87    <?php submit_button(); ?>
    4288  </form>
    4389<?php } else { ?>
  • simple-tag-manager/tags/1.1/simple-tag-manager.php

    r1550615 r1559683  
    3636    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
    3737    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     38    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     39    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     40    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
    3841}
    3942
     
    4346    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2');
    4447    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3');
     48    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4');
     49    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5');
     50    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_6');
    4551}
    4652
     
    4854function ecpt_stm_45t5dsfzxv22_zdx_35_hook_head() {
    4955    echo "<!-- Simple Tag Manager Plugin for WordPress (head)-->";
     56    echo "<!-- Google Tag Manager -->";
    5057    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2");
     58    echo "<!-- ### End ### -->";
     59    echo "<!-- Google Analytics -->";
     60    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4");
     61    echo "<!-- ### End ### -->";
     62    echo "<!-- Custom Code -->";
     63    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5");
     64    echo "<!-- ### End ### -->";
    5165    echo "<!-- End of Simple Tag Manager -->";
    5266}
     
    5569function ecpt_stm_45t5dsfzxv22_zdx_35_hook_body() {
    5670    echo "<!-- Simple Tag Manager Plugin for WordPress (footer)-->";
     71    echo "<!-- Google Tag Manager -->";
    5772    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3");
     73    echo "<!-- ### End ### -->";
     74    echo "<!-- Custom Code -->";
     75    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6");
     76    echo "<!-- ### End ### -->";
    5877    echo "<!-- End of Simple Tag Manager -->";
    5978}
     
    86105        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("2", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt2'])));
    87106        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("3", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt3'])));
     107        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("4", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt4'])));
     108        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("5", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt5'])));
     109        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("6", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt6'])));
    88110    }
    89111}
  • simple-tag-manager/trunk/readme.txt

    r1547377 r1559683  
    3838The page will display a message with the to add in the head and in the body.
    3939
     40== Changelog ==
     41 
     42= 1.1 =
     43* Using Bootstrap to style the settings page
     44* Added support to translations
     45* Added support for Google Analytics and Custom Codes
     46 
     47= 1.0 =
     48* The first version of Simple Tag Manager
    4049
    4150== Google Tag Manager Errors ==
  • simple-tag-manager/trunk/settings.php

    r1550615 r1559683  
    55{
    66    ?>
    7 
     7<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
     8<style>
     9body{background: #F1F1F1;}
     10.center{text-align: center;}
     11</style>
     12<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    813<div style="max-width: 95%; margin: 16px 0; margin-top: 20px;">
    9 
    10   <h1>Simple Tag Manager</h1>
    11 
    12   <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0 | <a href="https://dansedmak.com"  rel="nofollow" target="_blank"><?php _e( "Author's Website", 'stm-plugin-lang-f' ); ?></a></p>
    13   <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
     14<h1>Simple Tag Manager</h1>
     15<div class="row">
     16<div class="col-md-4 center">
     17<p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0</p>
     18<p>Copyright &copy; 2016 <a href="https://dansedmak.com"  rel="nofollow" target="_blank">Daniel Sedmak</a></p>
     19</div>
     20<div class="col-md-4 center">
     21<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    1422    <input type="hidden" name="cmd" value="_s-xclick" />
    1523    <input type="hidden" name="hosted_button_id" value="7PGYLG7MBNHK8" />
     
    1725    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
    1826  </form>
    19   <small>Copyright &copy; 2016 Daniel Sedmak | <a href="https://github.com/dansita/simple-tag-manager/"  rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a> | <a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></small>
    20   <hr>
     27</div>
     28<div class="col-md-4 center">
     29<p><a href="https://github.com/dansita/simple-tag-manager/"  rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a></p>
     30<p><a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></p>
     31</div>
     32</div>
    2133
    2234</div>
     
    2436<div style="max-width: 95%; padding: 20px; overflow: auto; margin: 16px 0; border: 1px solid #e5e5e5; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); box-shadow: 0 1px 1px rgba(0,0,0,.04); background: #fff; font-size: 13px; line-height: 2.1em;">
    2537<?php if(is_admin()){ ?>
    26   <?php if(isset($_POST['stmx_form'])){ ?><div style="color: #106914; border: solid 1px #8BC34A; background: rgb(253, 255, 235); padding-left: 10px; padding-right: 10px; margin-bottom: 20px;"><p><?php _e( 'Preferences Saved!', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>
     38  <?php if(isset($_POST['stmx_form'])){ ?><div class="alert alert-success" role="alert"><p><b><?php _e( 'Congratulations!', 'stm-plugin-lang-f' ); ?></b>&nbsp;<?php _e( 'The preferences are correctly saved', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>
    2739  <form method="post">
    2840    <?php wp_nonce_field( 'stmx_frm1', 'stmx_form' ); ?>
     
    3244      <option value="off" <?php if( ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("1") == "off"){ echo "selected"; } ?>><?php _e( 'Deactivated', 'stm-plugin-lang-f' ); ?></option>
    3345    </select>
    34     <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     46
     47<div style="margin-top: 20px;">
     48
     49  <!-- Nav tabs -->
     50  <ul class="nav nav-tabs" role="tablist">
     51    <li role="presentation" class="active"><a href="#gtm" aria-controls="home" role="tab" data-toggle="tab"><?php _e( 'Google Tag Manager', 'stm-plugin-lang-f' ); ?></a></li>
     52    <li role="presentation"><a href="#analytics" aria-controls="profile" role="tab" data-toggle="tab"><?php _e( 'Google Analytics', 'stm-plugin-lang-f' ); ?></a></li>
     53    <li role="presentation"><a href="#custom" aria-controls="settings" role="tab" data-toggle="tab"><?php _e( 'Custom', 'stm-plugin-lang-f' ); ?></a></li>
     54  </ul>
     55
     56  <!-- Tab panes -->
     57  <div class="tab-content">
     58    <div role="tabpanel" class="tab-pane active" id="gtm">
     59<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
    3560    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
    3661    <textarea name="opt2" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); ?></textarea>
     
    3863    <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p>
    3964    <textarea name="opt3" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); ?></textarea>
     65    </div>
     66    <div role="tabpanel" class="tab-pane" id="analytics">
     67<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     68    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     69    <textarea name="opt4" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); ?></textarea>
     70    </div>
     71    <div role="tabpanel" class="tab-pane" id="custom">
     72<h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3>
     73    <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     74    <textarea name="opt5" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); ?></textarea>
     75<h3><?php _e( 'Body', 'stm-plugin-lang-f' ); ?></h3>
     76    <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p>
     77    <textarea name="opt6" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); ?></textarea>
     78    </div>
     79  </div>
     80
     81</div>
     82
     83
     84
     85   
    4086    <br>
    41     <?php submit_button(  _e( 'Save Preferences', 'stm-plugin-lang-f' ) ); ?>
     87    <?php submit_button(); ?>
    4288  </form>
    4389<?php } else { ?>
  • simple-tag-manager/trunk/simple-tag-manager.php

    r1550615 r1559683  
    3636    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
    3737    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     38    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     39    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
     40    add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' );
    3841}
    3942
     
    4346    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2');
    4447    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3');
     48    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4');
     49    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5');
     50    delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_6');
    4551}
    4652
     
    4854function ecpt_stm_45t5dsfzxv22_zdx_35_hook_head() {
    4955    echo "<!-- Simple Tag Manager Plugin for WordPress (head)-->";
     56    echo "<!-- Google Tag Manager -->";
    5057    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2");
     58    echo "<!-- ### End ### -->";
     59    echo "<!-- Google Analytics -->";
     60    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4");
     61    echo "<!-- ### End ### -->";
     62    echo "<!-- Custom Code -->";
     63    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5");
     64    echo "<!-- ### End ### -->";
    5165    echo "<!-- End of Simple Tag Manager -->";
    5266}
     
    5569function ecpt_stm_45t5dsfzxv22_zdx_35_hook_body() {
    5670    echo "<!-- Simple Tag Manager Plugin for WordPress (footer)-->";
     71    echo "<!-- Google Tag Manager -->";
    5772    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3");
     73    echo "<!-- ### End ### -->";
     74    echo "<!-- Custom Code -->";
     75    echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6");
     76    echo "<!-- ### End ### -->";
    5877    echo "<!-- End of Simple Tag Manager -->";
    5978}
     
    86105        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("2", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt2'])));
    87106        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("3", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt3'])));
     107        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("4", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt4'])));
     108        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("5", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt5'])));
     109        ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("6", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt6'])));
    88110    }
    89111}
Note: See TracChangeset for help on using the changeset viewer.