">
AdWork Media EZ Content Locker Integration for WordPress
AdWork Media provides easy monetization solutions for website & blog owners. Generate earnings from your content, downloads, services, guides, expert advice, & more by temporary blocking access with our Content & File Lockers.
Do you already have an account? This plugin requires a valid account at AdWorkMedia.com to generate the Gateway code.
New users can activate a 5 Hour, 5% Earnings Bonus with the Promo Code "AWMEZWP" .
Click here to apply for a free AdWork Media account »
if ($_POST['AWM_create_submit']) {
if(empty($_REQUEST['new_code'])) {
echo '
Error, please enter your AdWork Media Content Locker code!
';
} else {
if(!is_array($_REQUEST['new_pages'])) {
$newPages=$_REQUEST['new_pages'];
} else {
$newPages=implode(',',$_REQUEST['new_pages']);
}
if(!is_array($_REQUEST['new_posts'])) {
$newPosts=$_REQUEST['new_posts'];
} else {
$newPosts=implode(',', $_REQUEST['new_posts']);
}
createLocker($_REQUEST['new_profile_name'], $_REQUEST['new_code'], $newPages, $newPosts, $_REQUEST['new_display'], $_REQUEST['hideShow']);
//echo '
Success, your preferences have been updated.
';
$created=true;
}
}
if ($_POST['AWM_update_submit']) {
$count=$_REQUEST['lockerID'];
if(empty($_REQUEST['code'.$count])) {
echo '
Error, please enter your AdWork Media Content Locker code!
';
} else {
if(!is_array($_REQUEST['pages'.$count])) {
$updatePages=$_REQUEST['pages'.$count];
} else {
$updatePages=implode(',',$_REQUEST['pages'.$count]);
}
if(!is_array($_REQUEST['posts'.$count])) {
$updatePosts=$_REQUEST['posts'.$count];
} else {
$updatePosts=implode(',', $_REQUEST['posts'.$count]);
}
updateLocker($count, $_REQUEST['profile_name'.$count], $_REQUEST['code'.$count], $_REQUEST['status'.$count], $updatePages, $updatePosts, $_REQUEST['display'.$count], $_REQUEST['hideShow'.$count]);
}
//echo '
Success, your preferences have been updated.
';
}
if($_POST['delete_locker']=='Delete Profile') {
$count=$_REQUEST['lockerID'];
deleteLocker($count);
}
$findLockers=mysql_query("SELECT * FROM ".AWM_TABLE);
?>
if(mysql_num_rows($findLockers)>0) { ?>
Current Content Lockers
Manage your existing content lockers »
while($rowLocker=mysql_fetch_array($findLockers)) { ?>
} ?>
} ?>
if($created!=true) { ?>
Add New Content Locker
Enter the details below to create a new Content Locker profile...
} ?>
*Profile settings may override each other
Copyright © 2011 - =date('Y');?> AdWork Media Group, LLC - AdWorkMedia.com