예제 #1
0
 /**
  * Include the required files
  *
  * @since 1.1
  * @return void
  */
 function includes()
 {
     if (cpm_is_pro()) {
         include_once CPM_PATH . '/includes/pro/loader.php';
     } else {
         include_once CPM_PATH . '/includes/free/loader.php';
     }
     include_once CPM_PATH . '/includes/urls.php';
     include_once CPM_PATH . '/includes/html.php';
     include_once CPM_PATH . '/includes/shortcodes.php';
 }
예제 #2
0
function cpm_user_can_access_file($project_id, $section, $is_private)
{
    if (!cpm_is_pro()) {
        return true;
    }
    if ($is_private == 'no') {
        return true;
    }
    return cpm_user_can_access($project_id, $section);
}