* Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004-2013 Laurent Destailleur * Copyright (C) 2007 Franky Van Liedekerke * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * \file htdocs/admin/system/about.php * \brief About Dolibarr File page */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; $langs->load("admin"); $langs->load("help"); $langs->load("members"); $youuselaststable = 0; /* * View */ llxHeader(); print load_fiche_titre("Dolibarr",'','title_setup'); print '
'.img_picto_common('', 'dolibarr_box.png','height="120"').'
'; print '
'; print $langs->trans("Version").' / '.$langs->trans("DolibarrLicense").':'; print '
    '; print '
  • '.DOL_VERSION.''; $result = getURLContent('http://sourceforge.net/projects/dolibarr/rss'); //var_dump($result['content']); $sfurl = simplexml_load_string($result['content']); if ($sfurl) { $i=0; $version='0.0'; while (! empty($sfurl->channel[0]->item[$i]->title) && $i < 10000) { $title=$sfurl->channel[0]->item[$i]->title; if (preg_match('/([0-9]+\.([0-9\.]+))/', $title, $reg)) { $newversion=$reg[1]; $newversionarray=explode('.',$newversion); $versionarray=explode('.',$version); //var_dump($newversionarray);var_dump($versionarray); if (versioncompare($newversionarray, $versionarray) > 0) $version=$newversion; } $i++; } // Show version if ($version != '0.0') { print ' ('.$langs->trans("LastStableVersion").': '.$version.''; if (DOL_VERSION == $version) { $youuselaststable=1; print $langs->trans("YouUseLastStableVersion"); } print ')'; } print ' / GNU-GPL v3+
  • '; } else { print $langs->trans("LastStableVersion").' : ' .$langs->trans("UpdateServerOffline").'
    '; } print '
'; //print "
\n"; print $langs->trans("Developpers").':'; print ''; //print "
\n"; print $langs->trans("OtherInformations").':'; print ''; print $langs->trans("Demo").':'; print ''; print $langs->trans("ModulesMarketPlaces").':'; print ''; print '
'; print $langs->trans("HelpCenter").':'; print '
    '; print '
  • '; //print $langs->trans("SeeWikiPage",'http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers'); print ''.$langs->trans("HelpCenter").''; print '
  • '; print '
'; print $langs->trans("Foundation").':'; print '
    '; $url='https://wiki.dolibarr.org/index.php/Subscribe'; if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Adh%C3%A9rer'; if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Subscribirse'; print '
  • '.$langs->trans("SubscribeToFoundation").'
  • '; print '
  • FaceBook
  • '; print '
  • Twitter
  • '; print '
  • Google Plus page
  • '; print '
'; print $langs->trans("OtherResources").':'; print '
    '; $url='https://saas.dolibarr.org'; $title=$langs->trans("OfficialWebHostingService"); if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Solutions_de_Cloud'; if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube'; print '
  • '; print ''.$title.''; print '
  • '; $url='https://partners.dolibarr.org'; $title=$langs->trans("ReferencedPreferredPartners"); print '
  • '; print ''.$title.''; print '
  • '; print '
'; print '
'; print '
'; print '
'; if ($youuselaststable) { print '
'; print '
'; $tmp=versiondolibarrarray(); if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0)) { print $langs->trans("TitleExampleForMajorRelease").':
'; print ''; } else { print $langs->trans("TitleExampleForMaintenanceRelease").':
'; print ''; } } llxFooter(); $db->close();