web/wp-content/themes/selecta/ocmx/ads_refresh.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
	global $post_details, $my_id;
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
	require_once("../../../../wp-blog-header.php");
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
	require_once("ocmx-create-options.php");
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
	if($_GET['small_ads']) :
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
		update_option("ocmx_small_ads", $_GET["small_ads"]);
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
		for($i = 1; $i <= get_option("ocmx_small_ads"); $i++)
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
			{small_ad_form($i);}
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
	endif;
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
?>