shouldShow()) return; echo '
'; echo '
'; echo $this->getLang('i_qcscore'); echo '
'; echo '
'; echo '
'; } /** * Should the QC plugin be shown? * * @return bool */ function shouldShow() { global $ACT, $INFO, $ID; if($ACT != 'show' || !$INFO['exists']) return false; if(p_get_metadata($ID, 'relation qcplugin_disabled')) return false; if($this->getConf('adminonly')) { if(!isset($_SERVER['REMOTE_USER']) || !auth_isadmin()) { return false; } } return true; } /** * Return the raw quality data * * Always call this asynchronly! * * @param $theid * @return array */ function getQCData($theid) { global $ID; $oldid = $ID; $ID = $theid; $data = unserialize(p_cached_output(wikiFN($ID), 'qc', $ID)); $ID = $oldid; return $data; } }