phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/class.uientity.php, 1.1.1.6


From: nomail
Subject: [Phpgroupware-cvs] property/class.uientity.php, 1.1.1.6
Date: Sun, 23 May 2004 17:52:43 -0000

Update of /property
Modified Files:
        Branch: 
          class.uientity.php

date: 2004/04/28 21:15:15;  author: sigurdne;  state: Exp;  lines: +26 -26

Log Message:
temp fix for get_var
=====================================================================
Index: property/class.uientity.php
diff -u property/class.uientity.php:1.1.1.5 property/class.uientity.php:1.1.1.6
--- property/class.uientity.php:1.1.1.5 Mon Apr 26 12:21:24 2004
+++ property/class.uientity.php Wed Apr 28 21:15:15 2004
@@ -158,7 +158,7 @@
 
                        $GLOBALS['phpgw_info']['flags']['headonly']=true;
 
-                       $values                 = 
get_var('values',array('POST','GET'));
+                       $values                 = 
$this->bocommon->get_var2('values',array('POST','GET'));
 
                        if ($values['save'] && $this->cat_id)
                        {
@@ -210,9 +210,9 @@
                        }
 
                        $GLOBALS['phpgw_info']['flags']['noframework'] = True;
-                       $file_name      = 
urldecode(get_var('file_name',array('POST','GET')));
-                       $loc1           = get_var('loc1',array('POST','GET'));
-                       $id             = get_var('id',array('POST','GET'));
+                       $file_name      = 
urldecode($this->bocommon->get_var2('file_name',array('POST','GET')));
+                       $loc1           = 
$this->bocommon->get_var2('loc1',array('POST','GET'));
+                       $id             = 
$this->bocommon->get_var2('id',array('POST','GET'));
 
                        $file = $this->fakebase. SEP . $this->category_name . 
SEP . $loc1 . SEP . $id . SEP . $file_name;
 
@@ -260,8 +260,8 @@
 
                        $links = $this->menu->links();
 
-                       $start_date             = 
urldecode(get_var('start_date',array('POST','GET')));
-                       $end_date                       = 
urldecode(get_var('end_date',array('POST','GET')));
+                       $start_date             = 
urldecode($this->bocommon->get_var2('start_date',array('POST','GET')));
+                       $end_date                       = 
urldecode($this->bocommon->get_var2('end_date',array('POST','GET')));
 
                        $entity_list = 
$this->bo->read(array('start_date'=>$start_date,'end_date'=>$end_date));
 
@@ -512,12 +512,12 @@
                        $config         = 
CreateObject('phpgwapi_config',$this->currentapp);
                        $bolocation                     = 
CreateObject($this->currentapp.'_bolocation');
 
-                       $id                             = 
get_var('id',array('POST','GET'));
-                       $values                         = 
get_var('values',array('POST','GET'));
-                       $values_attribute       = 
get_var('values_attribute',array('POST','GET'));
-                       $bypass                         = 
get_var('bypass',array('POST','GET'));
-                       $lookup_tenant          = 
get_var('lookup_tenant',array('POST','GET'));
-                       $tenant_id                      = 
get_var('tenant_id',array('POST','GET'));
+                       $id                             = 
$this->bocommon->get_var2('id',array('POST','GET'));
+                       $values                         = 
$this->bocommon->get_var2('values',array('POST','GET'));
+                       $values_attribute       = 
$this->bocommon->get_var2('values_attribute',array('POST','GET'));
+                       $bypass                         = 
$this->bocommon->get_var2('bypass',array('POST','GET'));
+                       $lookup_tenant          = 
$this->bocommon->get_var2('lookup_tenant',array('POST','GET'));
+                       $tenant_id                      = 
$this->bocommon->get_var2('tenant_id',array('POST','GET'));
 
                        $insert_record          = 
$this->fm_session->appsession('insert_record',$this->currentapp);
                        $insert_record_entity = 
$this->fm_session->appsession('insert_record_entity',$this->currentapp);
@@ -529,11 +529,11 @@
 
                        
$this->bocommon->xsl_add_file(array('entity','attributes_form'));
 
-                       $values['vendor_id']            = 
get_var('vendor_id',array('POST'));
-                       $values['vendor_name']          = 
get_var('vendor_name',array('POST'));
-                       $values['date']                         = 
get_var('date',array('POST'));
-                       $ticket_id                      = 
get_var('ticket_id',array('POST','GET'));
-                       $request_id             = 
get_var('request_id',array('POST','GET'));
+                       $values['vendor_id']            = 
$this->bocommon->get_var2('vendor_id',array('POST'));
+                       $values['vendor_name']          = 
$this->bocommon->get_var2('vendor_name',array('POST'));
+                       $values['date']                         = 
$this->bocommon->get_var2('date',array('POST'));
+                       $ticket_id                      = 
$this->bocommon->get_var2('ticket_id',array('POST','GET'));
+                       $request_id             = 
$this->bocommon->get_var2('request_id',array('POST','GET'));
 
                        if($_POST && !$bypass)
                        {
@@ -561,13 +561,13 @@
                        }
                        else
                        {
-                               $location_code          = 
get_var('location_code',array('POST','GET'));
-                               $values['descr']        = 
get_var('descr',array('POST','GET'));
-                               $p_entity_id            = 
get_var('p_entity_id',array('POST','GET'));
-                               $p_cat_id                       = 
get_var('p_cat_id',array('POST','GET'));
+                               $location_code          = 
$this->bocommon->get_var2('location_code',array('POST','GET'));
+                               $values['descr']        = 
$this->bocommon->get_var2('descr',array('POST','GET'));
+                               $p_entity_id            = 
$this->bocommon->get_var2('p_entity_id',array('POST','GET'));
+                               $p_cat_id                       = 
$this->bocommon->get_var2('p_cat_id',array('POST','GET'));
                                $values['p'][$p_entity_id]['p_entity_id']       
        = $p_entity_id;
                                $values['p'][$p_entity_id]['p_cat_id']          
        = $p_cat_id;
-                               $values['p'][$p_entity_id]['p_num']             
                = get_var('p_num',array('POST','GET'));
+                               $values['p'][$p_entity_id]['p_num']             
                = $this->bocommon->get_var2('p_num',array('POST','GET'));
 
                                if($p_entity_id && $p_cat_id)
                                {
@@ -897,8 +897,8 @@
                                
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=8&acl_location='
 . $this->acl2_location);
                        }
 
-                       $id = get_var('id',array('POST','GET'));
-                       $confirm        = get_var('confirm',array('POST'));
+                       $id = 
$this->bocommon->get_var2('id',array('POST','GET'));
+                       $confirm        = 
$this->bocommon->get_var2('confirm',array('POST'));
 
                        $link_data = array
                        (
@@ -907,7 +907,7 @@
                                'cat_id'                => $this->cat_id
                        );
 
-                       if (get_var('confirm',array('POST')))
+                       if ($this->bocommon->get_var2('confirm',array('POST')))
                        {
                                $this->bo->delete($id);
                                Header('Location: ' . 
$this->bocommon->link('/index.php',$link_data));
@@ -943,7 +943,7 @@
                        $config         = 
CreateObject('phpgwapi_config',$this->currentapp);
                        $bolocation                     = 
CreateObject($this->currentapp.'_bolocation');
 
-                       $id     = get_var('id',array('POST','GET'));
+                       $id     = 
$this->bocommon->get_var2('id',array('POST','GET'));
 
                        
$this->bocommon->xsl_add_file(array('entity','attributes_view'));
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]