|
From: <tim...@us...> - 2010-12-24 09:53:36
|
Revision: 4446
http://web-erp.svn.sourceforge.net/web-erp/?rev=4446&view=rev
Author: tim_schofield
Date: 2010-12-24 09:53:30 +0000 (Fri, 24 Dec 2010)
Log Message:
-----------
Take out menu access config settings as not implemented yet
Modified Paths:
--------------
trunk/includes/GetConfig.php
Modified: trunk/includes/GetConfig.php
===================================================================
--- trunk/includes/GetConfig.php 2010-12-23 20:37:52 UTC (rev 4445)
+++ trunk/includes/GetConfig.php 2010-12-24 09:53:30 UTC (rev 4446)
@@ -20,20 +20,6 @@
DB_free_result($ConfigResult); // no longer needed
/*Maybe we should check config directories exist and try to create if not */
- $sql="SHOW tables WHERE Tables_in_".$_SESSION['DatabaseName']."='usermenurights'";
- $result=DB_query($sql, $db);
- if (DB_num_rows($result)>0) {
- $sql="SELECT menuid, access FROM usermenurights WHERE userid='".$_SESSION['UserID']."'";
- $result=DB_query($sql, $db);
- } else if (basename($_SERVER['SCRIPT_NAME'])!='UpgradeDatabase.php') {
- header("Location: UpgradeDatabase.php");
- }
-
-
- while ($myrow=DB_fetch_array($result)) {
- $_SESSION['MenuAccess'][$myrow['menuid']]=$myrow['access'];
- }
-
$sql="SHOW tables WHERE Tables_in_".$_SESSION['DatabaseName']."='pagesecurity'";
$result=DB_query($sql, $db);
if (DB_num_rows($result)>0) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|