phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.uiproject.php, 1.1.1.8


From: nomail
Subject: [Phpgroupware-cvs] property/class.uiproject.php, 1.1.1.8
Date: Sun, 23 May 2004 06:30:39 -0000

Update of /property
Modified Files:
        Branch: 
          class.uiproject.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.uiproject.php
diff -u property/class.uiproject.php:1.1.1.7 
property/class.uiproject.php:1.1.1.8
--- property/class.uiproject.php:1.1.1.7        Mon Apr 26 17:02:33 2004
+++ property/class.uiproject.php        Wed Apr 28 21:15:15 2004
@@ -87,8 +87,8 @@
                        require('PEAR.php');
                        $xls            = 
CreateObject($this->currentapp.'_excel');
 
-                       $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')));
                        $list           = 
$this->bo->read($start_date,$end_date,$allrows=True);
 
                        $uicols = $this->bo->uicols;
@@ -148,9 +148,9 @@
                                                                                
'nextmatchs',
                                                                                
'search_field'));
 
-                       $lookup = get_var('lookup',array('POST','GET'));
-                       $start_date             = 
urldecode(get_var('start_date',array('POST','GET')));
-                       $end_date                       = 
urldecode(get_var('end_date',array('POST','GET')));
+                       $lookup = 
$this->bocommon->get_var2('lookup',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')));
 
                        $links = $this->menu->links('project');
 
@@ -445,8 +445,8 @@
                {
                        $this->bocommon->xsl_add_file(array('date_search'));
                        $GLOBALS['phpgw_info']['flags']['headonly']=true;
-                       $values['start_date']           = 
get_var('start_date',array('POST'));
-                       $values['end_date']                     = 
get_var('end_date',array('POST'));
+                       $values['start_date']           = 
$this->bocommon->get_var2('start_date',array('POST'));
+                       $values['end_date']                     = 
$this->bocommon->get_var2('end_date',array('POST'));
 
                        $function_msg   = lang('Date search');
                        $appname                = lang('project');
@@ -502,10 +502,10 @@
                        {
                                
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=2&acl_location='
 . $this->acl2_location);
                        }
-                       $id                             = 
get_var('id',array('POST','GET'));
-                       $values                         = 
get_var('values',array('POST'));
-                       $add_request            = 
get_var('add_request',array('POST'));
-                       $add_request            = 
get_var('add_request',array('POST'));
+                       $id                             = 
$this->bocommon->get_var2('id',array('POST','GET'));
+                       $values                         = 
$this->bocommon->get_var2('values',array('POST'));
+                       $add_request            = 
$this->bocommon->get_var2('add_request',array('POST'));
+                       $add_request            = 
$this->bocommon->get_var2('add_request',array('POST'));
 
                        $config                         = 
CreateObject('phpgwapi_config');
                        $bolocation                     = 
CreateObject($this->currentapp.'_bolocation');
@@ -520,7 +520,7 @@
 
                        $this->bocommon->xsl_add_file(array('project'));
 
-                       $bypass                         = 
get_var('bypass',array('POST','GET'));
+                       $bypass                         = 
$this->bocommon->get_var2('bypass',array('POST','GET'));
 
                        if($add_request)
                        {
@@ -552,16 +552,16 @@
                        }
                        else
                        {
-                               $location_code          = 
get_var('location_code',array('POST','GET'));
-                               $tenant_id                      = 
get_var('tenant_id',array('POST','GET'));
-                               $values['descr']        = 
get_var('descr',array('POST','GET'));
-                               $ticket_id                      = 
get_var('ticket_id',array('POST','GET'));
-                               $request_id             = 
get_var('request_id',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'));
+                               $tenant_id                      = 
$this->bocommon->get_var2('tenant_id',array('POST','GET'));
+                               $values['descr']        = 
$this->bocommon->get_var2('descr',array('POST','GET'));
+                               $ticket_id                      = 
$this->bocommon->get_var2('ticket_id',array('POST','GET'));
+                               $request_id             = 
$this->bocommon->get_var2('request_id',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)
                                {
@@ -591,8 +591,8 @@
 
                        }
 
-                       $values['start_date']           = 
get_var('start_date',array('POST'));
-                       $values['end_date']                     = 
get_var('end_date',array('POST'));
+                       $values['start_date']           = 
$this->bocommon->get_var2('start_date',array('POST'));
+                       $values['end_date']                     = 
$this->bocommon->get_var2('end_date',array('POST'));
 
 //html_print_r($values);
                        $config->read_repository();
@@ -998,15 +998,15 @@
                                
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=8&acl_location='
 . $this->acl2_location);
                        }
 
-                       $project_id = get_var('project_id',array('POST','GET'));
-                       $confirm        = get_var('confirm',array('POST'));
+                       $project_id = 
$this->bocommon->get_var2('project_id',array('POST','GET'));
+                       $confirm        = 
$this->bocommon->get_var2('confirm',array('POST'));
 
                        $link_data = array
                        (
                                'sid=cookie&op' => 
$this->currentapp.'.uiproject.index'
                        );
 
-                       if (get_var('confirm',array('POST')))
+                       if ($this->bocommon->get_var2('confirm',array('POST')))
                        {
                                $this->bo->delete($project_id);
                                Header('Location: ' . 
$this->bocommon->link('/index.php',$link_data));
@@ -1043,7 +1043,7 @@
                        
$this->fm_session->appsession('receipt',$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('project'));
 




reply via email to

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