Changeset 1168887
- Timestamp:
- 05/27/2015 10:36:28 PM (11 years ago)
- Location:
- free-counter
- Files:
-
- 2 edited
-
tags/1.1/plugin.php (modified) (1 diff)
-
trunk/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
free-counter/tags/1.1/plugin.php
r1131904 r1168887 537 537 } 538 538 } 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 552 540 /** 553 541 * check site (local or net local) -
free-counter/trunk/plugin.php
r1131904 r1168887 537 537 } 538 538 } 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 552 540 /** 553 541 * check site (local or net local)
Note: See TracChangeset
for help on using the changeset viewer.