Plugin Directory

Changeset 1168887


Ignore:
Timestamp:
05/27/2015 10:36:28 PM (11 years ago)
Author:
Free-counter
Message:

bugs fixed

Location:
free-counter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • free-counter/tags/1.1/plugin.php

    r1131904 r1168887  
    537537            }
    538538        }
    539         static function check_stat()
    540         {
    541             if (isset($_POST["id_counter"]) && isset($_POST['value_'])) {
    542                 $id_counter = get_option(_PREFIX . 'counter_id');
    543                 if ($id_counter == $_POST["id_counter"]) {
    544                     $code = get_option(_PREFIX . 'counter_code');
    545                     $code = preg_replace("/<!--end-->(.*)<\/div>/i", "<!--end-->{$_POST['value_']}</div>", $code);
    546                     update_option(_PREFIX . 'counter_code', $code);
    547                     echo "ok";
    548                 }
    549             }
    550             return true;
    551         }
     539       
    552540        /**
    553541        * check site (local or net local)
  • free-counter/trunk/plugin.php

    r1131904 r1168887  
    537537            }
    538538        }
    539         static function check_stat()
    540         {
    541             if (isset($_POST["id_counter"]) && isset($_POST['value_'])) {
    542                 $id_counter = get_option(_PREFIX . 'counter_id');
    543                 if ($id_counter == $_POST["id_counter"]) {
    544                     $code = get_option(_PREFIX . 'counter_code');
    545                     $code = preg_replace("/<!--end-->(.*)<\/div>/i", "<!--end-->{$_POST['value_']}</div>", $code);
    546                     update_option(_PREFIX . 'counter_code', $code);
    547                     echo "ok";
    548                 }
    549             }
    550             return true;
    551         }
     539       
    552540        /**
    553541        * check site (local or net local)
Note: See TracChangeset for help on using the changeset viewer.