[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4906 - in phpcompta/trunk: html include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4906 - in phpcompta/trunk: html include |
Date: |
Fri, 15 Jun 2012 20:37:19 +0200 (CEST) |
Author: danydb
Date: 2012-06-15 20:37:18 +0200 (Fri, 15 Jun 2012)
New Revision: 4906
Modified:
phpcompta/trunk/html/ajax.php
phpcompta/trunk/html/ajax_history.php
phpcompta/trunk/html/ajax_ledger.php
phpcompta/trunk/html/ajax_misc.php
phpcompta/trunk/html/export.php
phpcompta/trunk/html/extension.raw.php
phpcompta/trunk/include/cfgledger.inc.php
Log:
start to use $cn as global database connx
Modified: phpcompta/trunk/html/ajax.php
===================================================================
--- phpcompta/trunk/html/ajax.php 2012-06-15 08:47:03 UTC (rev 4905)
+++ phpcompta/trunk/html/ajax.php 2012-06-15 18:37:18 UTC (rev 4906)
@@ -15,7 +15,7 @@
mb_internal_encoding("UTF-8");
$cn=new Database(dossier::id());
-global $g_user;
+global $g_user,$cn,$g_parameter;
$g_user=new User($cn);
$g_user->check(true);
Modified: phpcompta/trunk/html/ajax_history.php
===================================================================
--- phpcompta/trunk/html/ajax_history.php 2012-06-15 08:47:03 UTC (rev
4905)
+++ phpcompta/trunk/html/ajax_history.php 2012-06-15 18:37:18 UTC (rev
4906)
@@ -38,7 +38,7 @@
*if $_SESSION['g_user'] is not set : echo a warning
*/
ajax_disconnected($div);
-global $g_user;
+global $g_user,$cn;
$cn=new Database(dossier::id());
$g_user=new User($cn);
/* security */
Modified: phpcompta/trunk/html/ajax_ledger.php
===================================================================
--- phpcompta/trunk/html/ajax_ledger.php 2012-06-15 08:47:03 UTC (rev
4905)
+++ phpcompta/trunk/html/ajax_ledger.php 2012-06-15 18:37:18 UTC (rev
4906)
@@ -47,7 +47,7 @@
{
exit();
}
- global $g_parameter;
+ global $g_user,$cn,$g_parameter;
mb_internal_encoding("UTF-8");
Modified: phpcompta/trunk/html/ajax_misc.php
===================================================================
--- phpcompta/trunk/html/ajax_misc.php 2012-06-15 08:47:03 UTC (rev 4905)
+++ phpcompta/trunk/html/ajax_misc.php 2012-06-15 18:37:18 UTC (rev 4906)
@@ -57,7 +57,7 @@
exit();
extract($_REQUEST);
set_language();
-global $g_user,$cn;
+global $g_user,$cn,$g_parameter;
$cn = new Database($gDossier);
$g_user = new User($cn);
$g_user->check(true);
Modified: phpcompta/trunk/html/export.php
===================================================================
--- phpcompta/trunk/html/export.php 2012-06-15 08:47:03 UTC (rev 4905)
+++ phpcompta/trunk/html/export.php 2012-06-15 18:37:18 UTC (rev 4906)
@@ -26,7 +26,7 @@
*
*/
-global $g_user;
+global $g_user,$cn,$g_parameter;
require_once('class_database.php');
require_once('class_user.php');
$gDossier=dossier::id();
Modified: phpcompta/trunk/html/extension.raw.php
===================================================================
--- phpcompta/trunk/html/extension.raw.php 2012-06-15 08:47:03 UTC (rev
4905)
+++ phpcompta/trunk/html/extension.raw.php 2012-06-15 18:37:18 UTC (rev
4906)
@@ -35,8 +35,9 @@
require_once ('constant.security.php');
require_once ('class_user.php');
+global $g_user,$cn,$g_parameter;
+
$cn=new Database(dossier::id());
-global $g_user;
$g_user=new User($cn);
$g_user->check();
$only_plugin=$g_user->check_dossier(dossier::id());
Modified: phpcompta/trunk/include/cfgledger.inc.php
===================================================================
--- phpcompta/trunk/include/cfgledger.inc.php 2012-06-15 08:47:03 UTC (rev
4905)
+++ phpcompta/trunk/include/cfgledger.inc.php 2012-06-15 18:37:18 UTC (rev
4906)
@@ -35,7 +35,7 @@
require_once 'class_acc_ledger.php';
$gDossier=dossier::id();
-$cn=new Database($gDossier);
+global $cn;
$ledger=new Acc_Ledger($cn,-1);
$sa=HtmlInput::default_value("sa","",$_REQUEST);
---
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] r4906 - in phpcompta/trunk: html include,
phpcompta-dev <=