[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4897 - in phpcompta/trunk: html include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4897 - in phpcompta/trunk: html include |
Date: |
Thu, 14 Jun 2012 20:17:52 +0200 (CEST) |
Author: danydb
Date: 2012-06-14 20:17:52 +0200 (Thu, 14 Jun 2012)
New Revision: 4897
Modified:
phpcompta/trunk/html/user_login.php
phpcompta/trunk/include/constant.php
Log:
0000622: Indicateur de mise ?\195?\160 jour
Modified: phpcompta/trunk/html/user_login.php
===================================================================
--- phpcompta/trunk/html/user_login.php 2012-06-14 17:58:57 UTC (rev 4896)
+++ phpcompta/trunk/html/user_login.php 2012-06-14 18:17:52 UTC (rev 4897)
@@ -25,6 +25,7 @@
include_once ("ac_common.php");
require_once('class_database.php');
require_once('class_itext.php');
+html_page_start($_SESSION['g_theme']);
$rep=new Database();
include_once ("class_user.php");
$User=new User($rep);
@@ -76,10 +77,21 @@
echo '<a hreF="'.$base.'">'.$a.'</a></h2>';
}
+if ( $User->Admin() == 1)
+{
+ if (SITE_UPDATE !="") {
+ address@hidden(SITE_UPDATE);
+ if ($update > $version_phpcompta ) {
+ echo '<div class="inner_box"
style="margin-left:0px;margin-top:3px;left:3px">';
+ echo '<p class="notice">';
+ echo "Mise à jour disponible de PhpCompta version actuelle :
$update votre version $version_phpcompta";
+ echo '</p>';
+ echo '</div>';
+ }
+ }
+}
-html_page_start($_SESSION['g_theme']);
include_once("user_menu.php");
-
$priv=($User->admin==1)?"Administrateur":"Utilisateur";
echo '<div class="welcome"> ';
/**
@@ -88,6 +100,7 @@
* so it will be directly redirected to this folder or to the plugins of this
* folder if he's an "plugin user"
*/
+
if ( $User->admin == 0 )
{
// how many folder ?
Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php 2012-06-14 17:58:57 UTC (rev
4896)
+++ phpcompta/trunk/include/constant.php 2012-06-14 18:17:52 UTC (rev
4897)
@@ -38,6 +38,11 @@
//$version_phpcompta=SVNINFO;
//define ("DEBUG",false);
+// If you don't want to be notified of the update
+// define ("SITE_UPDATE",'');
+define ("SITE_UPDATE",'http://www.phpcompta.eu/last_version.txt');
+
+
$version_phpcompta=4800;
define ("DEBUG",true);
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4897 - in phpcompta/trunk: html include,
phpcompta-dev <=