This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/core/version.inc.php
anubis fae6352bf2 Update to PEAR 1.7.2, Image_Canvas 0.3.1, Image_Color 1.0.3, Image_Graph 0.7.2, XML_Parser 1.3.1.
Removed PHP_Compat, and references to it.
Removed ionCube/Zend/mmCache compatibility checks in test.php script.
Changed minimum PHP requirement to 5.0 in test.php script.
2009-01-04 19:22:54 -05:00

76 lines
2.2 KiB
PHP

<?php
/**
* AgileBill - Open Billing Software
*
* This body of work is free software; you can redistribute it and/or
* modify it under the terms of the Open AgileBill License
* License as published at http://www.agileco.com/agilebill/license1-4.txt
*
* For questions, help, comments, discussion, etc., please join the
* Agileco community forums at http://forum.agileco.com/
*
* @link http://www.agileco.com/
* @copyright 2004-2008 Agileco, LLC.
* @license http://www.agileco.com/agilebill/license1-4.txt
* @author Tony Landis <tony@agileco.com>
* @package AgileBill
* @version 1.4.93
*/
$list = new CORE_list;
# get version
$fp = @fopen(PATH_AGILE.'Version.txt', "r");
if($fp) {
$ver = fread($fp, 255);
fclose($fp);
} else {
$ver = "SVN";
}
# get latest version
$fp = fopen('http://agileco.com/Version.txt', "r");
$abv = fread($fp, 255);
fclose($fp);
# get encoding version
$tmp = file_get_contents(PATH_AGILE.'index.php');
if(eregi('ioncube', $tmp))
$enc = 'ioncube';
elseif(eregi('zend', $tmp))
$enc = 'zend';
else
$enc = 'ioncube';
# get installed optional modules:
$modules = Array ('affiliate' => Array ('affiliate', 'campaign', 'affiliate_commission', 'affiliate_template'),
'charge' => Array ('charge'),
'db_mapping' => Array ('db_mapping'),
'email_queue' => Array ('email_queue'),
'file' => Array ('file', 'file_category'),
'faq' => Array ('faq','faq_translate', 'faq_category'),
'htaccess' => Array ('htaccess', 'htaccess_dir', 'htaccess_exclude'),
'import' => Array ('import'),
'hosting' => Array ('host_server', 'host_registrar_plugin', 'host_tld'),
'ticket' => Array ('ticket', 'ticket_department', 'ticket_message'),
'login_share' => Array ('login_share'),
'static_page' => Array ('static_page', 'static_page_category','static_page_translate') );
foreach($modules as $name => $m) {
foreach($m as $module) {
if( empty($avail["$name"]) && $list->is_installed( $module ) ) {
$avail["$name"] = true;
$module_arr[] = $name;
}
}
}
# set smarty vars
global $smarty;
$smarty->assign('version',$ver);
$smarty->assign('ab_version',$abv);
$smarty->assign('encoding_version',$enc);
$smarty->assign('modules',@$module_arr);
?>