* 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) { $title=$sfurl->channel[0]->item[0]->title; function word_limiter($text, $limit = 30, $chars = '0123456789.') { if (strlen( $text ) > $limit) { $words = str_word_count($text, 2, $chars); $words = array_reverse($words, TRUE); foreach($words as $length => $word) { if ($length + strlen( $word ) >= $limit) { array_shift($words); } else { break; } } $words = array_reverse($words); $text = implode(" ", $words) . ''; } return $text; } $str = word_limiter($title); $str = preg_replace('/[^0-9\.]/', '', $str); print ' ('.$langs->trans("LastStableVersion").': '.$str.''; if (DOL_VERSION == $str) { $youuselaststable=1; print $langs->trans("YouUseLastStableVersion"); } print ')'; print ' / GNU-GPL v3+
  • '; } 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='http://wiki.dolibarr.org/index.php/Subscribe'; if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='http://wiki.dolibarr.org/index.php/Adh%C3%A9rer'; if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='http://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='http://saas.dolibarr.org'; $title=$langs->trans("OfficialWebHostingService"); if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='http://wiki.dolibarr.org/index.php/Solutions_de_Cloud'; if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='http://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube'; print '
  • '; print ''.$title.''; print '
  • '; $url='http://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();