From 579859d94729c8eadc96d35d1fbd4cc3fa7d4b0d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 May 2010 09:11:52 +0200 Subject: Set version for rpmphp, display version and license on index page --- FedoraClient.php | 2 +- README | 4 ++++ index.php | 2 ++ main.inc.php | 9 ++++++--- pkgdb-ajax.php | 2 +- smarty/templates/rpmphp/index.tpl | 4 +++- zoom.php | 1 - 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/FedoraClient.php b/FedoraClient.php index 6eca761..4a7cfd6 100644 --- a/FedoraClient.php +++ b/FedoraClient.php @@ -21,7 +21,7 @@ * */ -define ('FEDORACLIENT_VERSION','0.1'); +define ('FEDORACLIENT_VERSION','0.1.0-dev'); if (!function_exists('curl_version')) { die("curl extension required\n"); diff --git a/README b/README index a429120..83b0578 100644 --- a/README +++ b/README @@ -3,6 +3,10 @@ This repository manage sources of PHP scripts use to generate reports for Packages in Fedora repositories http://rpms.famillecollet.com/rpmphp/ + + Project page + + http://redmine.ulysses.fr/projects/rpmphp In order to use this software, you will need to install: - PHP 5 (5.3+) diff --git a/index.php b/index.php index dc6f25a..c8cc868 100644 --- a/index.php +++ b/index.php @@ -70,6 +70,8 @@ try { sprintf("%s ERREUR : %s\n", date("r"), $e->getMessage()) ); } +$smarty->assign('rpmphp_version', RPMPHP_VERSION); +$smarty->assign('fedcli_version', FEDORACLIENT_VERSION); $page_content = $smarty->fetch('index.tpl'); $smarty->assign('page_content', $page_content); diff --git a/main.inc.php b/main.inc.php index a160604..18c844f 100644 --- a/main.inc.php +++ b/main.inc.php @@ -1,6 +1,9 @@ compile_dir = 'smarty/templates_c'; $smarty->cache_dir = 'smarty/cache'; $smarty->config_dir = 'smarty/configs'; -$ariane[] = array( - 'url' => './', - 'text' => 'Reports home' +$ariane[] = array ( + 'url' => './', + 'text' => 'Reports home' ); ?> \ No newline at end of file diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php index 5cff16c..c02e68d 100644 --- a/pkgdb-ajax.php +++ b/pkgdb-ajax.php @@ -1,6 +1,6 @@

Script sources

-

You can retrieve the current application sources from my GIT repository on github.com: http://github.com/remicollet/rpmphp.

+

License : RPMPHP version {$rpmphp_version} is AGPL, + FedoraClient version {$fedcli_version} is LGPLv2+, +

You can retrieve the current application sources from my GIT repository on github.com.

Feedbacks, RFE and patches are welcome.

diff --git a/zoom.php b/zoom.php index 5a3f6cb..d136d56 100644 --- a/zoom.php +++ b/zoom.php @@ -36,7 +36,6 @@ * @since The begining of times. */ require 'main.inc.php'; -require 'FedoraClient.php'; $fedcli = new FedoraPkgdb(); -- cgit