get($contentid); $readpoint = $data['readpoint']; $title = $data['title']; $keys = array_keys($data); if(in_array('groupids_view',$keys)) { if($data['groupids_view']) { if(!$priv_group->check('contentid', $contentid, 'view', $_groupid)) showmessage('您没有查看权限'); } if(in_array('readpoint', $keys)) { $C = cache_read('category_'.$data['catid'].'.php'); if($C['defaultchargepoint'] || !empty($readpoint)) { $readpoint = $readpoint ? $readpoint : $C['defaultchargepoint']; $pay = load('pay_api.class.php', 'pay', 'api'); if($C['repeatchargedays']) { if($pay->is_exchanged($contentid, $C['repeatchargedays']) === FALSE) { $allow_readpoint = 0; } } else { session_start(); if($_SESSION['pay_contentid'] != $contentid) $allow_readpoint = 0; } } } } } $player = load('player.class.php'); $result = $player->get($p); @extract($result); $videourl = trim($f); $code = str_replace('{$filepath}',$videourl, $code); $code = str_replace('{$PHPCMS[siteurl]}', $PHPCMS['siteurl'], $code); $code = str_replace('{$PHPCMS[sitename]}', $PHPCMS['sitename'], $code); $templateid = $templateid ? $templateid : 'play'; include template($mod, $templateid); ?>