ID) && (($post->post_type === "page" && current_user_can ("edit_page", $post_id)) || current_user_can ("edit_post", $post_id)))
{
if ($post->post_type === "page" && ($page_id = $post_id)) /* OK. So we're dealing with a Page classification. */
{
if (!in_array ($page_id, array_merge (array ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["membership_options_page"], $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"], $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["file_download_limit_exceeded_page"]), preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"]))))
{
echo '' . "\n";
echo '' . "\n";
/**/
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
$pages[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_pages"]));
/**/
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
$posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"]));
/**/
echo '
Page Level Restriction?
' . "\n";
echo '' . "\n";
echo '
* see: General Options -> Page Level Access' . "\n";
/**/
if (!is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site ())
/* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */
{
echo 'Require Custom Capabilities?
' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '
* see: API Scripting -> Custom Capabilities' . "\n";
}
}
/**/
else if ($page_id == $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["membership_options_page"])
echo 'This Page is your:
Membership Options Page
( always publicly available )';
/**/
else if ($page_id == $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"])
echo 'This Page is your:
Login Welcome Page
( automatically guarded by s2Member )';
/**/
else if ($page_id == $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["file_download_limit_exceeded_page"])
echo 'This Page is your:
Download Limit Exceeded Page
( automatically guarded by s2Member )';
/**/
else if (in_array ($page_id, preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"])))
echo 'This Page is a:
Specific Post/Page for sale
( already guarded by s2Member )';
}
else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */
{
if (!in_array ($post_id, preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"])))
{
echo '' . "\n";
echo '' . "\n";
/**/
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
$posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"]));
/**/
echo 'Post Level Restriction?
' . "\n";
echo '' . "\n";
echo '
* see: General Options -> Post Level Access' . "\n";
/**/
if (!is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site ())
/* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */
{
echo 'Require Custom Capabilities?
' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '
* see: API Scripting -> Custom Capabilities' . "\n";
}
}
/**/
else if (in_array ($post_id, preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"])))
echo 'This Post is a:
Specific Post/Page for sale
( already guarded by s2Member )';
}
}
/**/
do_action ("ws_plugin__s2member_after_security_meta_box", get_defined_vars ());
/**/
return; /* Return for uniformity. */
}
}
}
?>