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"])); /**/ echo '
Page Level Restriction?
' . "\n"; echo '' . "\n"; echo '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 'API Scripting -> Custom Capabilities' . "\n";
}
}
/**/
else if ($page_id == $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["membership_options_page"])
echo 'This Page is your:Post Level Restriction?
' . "\n"; echo '' . "\n"; echo '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 '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: