예제 #1
0
web-based applications.

Standard CMS functionality (such as news publishing, e-commerce and
forums) are already implemented and ready to use. Standalone libraries
can be used for cross-platform database-independent browser-neutral
PHP projects. Because eZ Publish is a web-based application, it can
be accessed from anywhere you have an internet connection.';
$license = 'This copy of eZ Publish is distributed under the terms and conditions of
the GNU General Public License (GPL). Briefly summarized, the GPL gives
you the right to use, modify and share this copy of eZ Publish. If you
choose to share eZ Publish, you may only share it under the terms and
conditions of the GPL. If you share a modified version of eZ Publish,
these modifications must also be placed under the GPL. Read the
complete legal terms and conditions of the GPL at
http://www.gnu.org/licenses/gpl.txt or see the file named LICENSE in
the root directory of this eZ Publish distribution.';
## END LICENSE INFO ##
$contributors = getContributors(EZ_ABOUT_CONTRIBUTORS_DIR);
$thirdPartySoftware = getThirdPartySoftware(EZ_ABOUT_THIRDPARTY_SOFTWARE_FILE);
$extensions = getExtensionsInfo();
list($whatIsEzPublish, $license, $contributors, $thirdPartySoftware, $extensions) = strReplaceByArray(array('eZ Systems AS' => '<a href="http://ez.no/">eZ Systems AS</a>', 'eZ Systems as' => '<a href="http://ez.no/">eZ Systems AS</a>', 'eZ systems AS' => '<a href="http://ez.no/">eZ Systems AS</a>', 'eZ systems as' => '<a href="http://ez.no/">eZ Systems AS</a>', 'eZ Publish' => '<a href="http://ez.no/ezpublish">eZ Publish</a>', 'eZ publish' => '<a href="http://ez.no/ezpublish">eZ Publish</a>'), array($whatIsEzPublish, $license, $contributors, $thirdPartySoftware, $extensions));
$tpl = eZTemplate::factory();
$tpl->setVariable('ezinfo', $ezinfo);
$tpl->setVariable('what_is_ez_publish', $whatIsEzPublish);
$tpl->setVariable('license', $license);
$tpl->setVariable('contributors', $contributors);
$tpl->setVariable('third_party_software', $thirdPartySoftware);
$tpl->setVariable('extensions', $extensions);
$Result = array();
$Result['content'] = $tpl->fetch("design:ezinfo/about.tpl");
$Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('kernel/ezinfo', 'Info')), array('url' => false, 'text' => ezpI18n::tr('kernel/ezinfo', 'About')));
예제 #2
0
/**
 * getGuthubData
 * retrieve data through github API
 */
function getData($params)
{
    $response = array();
    // repository
    $response['repository'] = getRepository($params['user'], $params['repo']);
    // contributors
    $response['contributors'] = getContributors($params['user'], $params['repo']);
    // issues
    // $response['issues'] = getIssues($params['user'], $params['repo'], array());
    return json_encode($response);
}