/** * Get Cliprz framework team and sttuf names. * * @access protected. */ protected static function cliprz_team() { $developers_path = SYS_PATH . 'configuration' . DS . 'developers.ini'; $team = c_ini_data($developers_path); return (string) $team['developers']; }
/** * get cliprz configuration. * * @param (string) $key - the key in configuration ini file. * @access public. */ public static function get_framework($key) { $output = null; $s = ' '; $configuration = null; $configuration_path = SYS_PATH . 'configuration' . DS; if (file_exists($configuration_path . 'cliprz.ini')) { $configuration = c_ini_data($configuration_path . 'cliprz.ini'); } if ($configuration == null) { trigger_error($configuration_path . 'cliprz.ini not exists.'); } else { switch ($key) { case 'name': $output = (string) $configuration['name']; break; case 'version': $output = (string) $configuration['version']; break; case 'ver': $output = (int) $configuration['ver']; break; case 'stability': $output = (string) $configuration['stability']; break; case 'readable': $output = (string) $configuration['name'] . $s . 'version' . $s . $configuration['version'] . $s . $configuration['stability']; break; case 'under': $output = (string) "Working under" . $s . '<a target="_blank" href="http://www.' . $configuration['website'] . '/">' . $configuration['name'] . '</a>' . $s . 'environment.'; break; case 'generator': $output = (string) $configuration['name'] . " Version " . $configuration['version']; break; default: $output = $configuration['name']; break; } } return $output; }