[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: timetrack admin5.php,1.1.2.1,1.1.2.2
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: timetrack admin5.php,1.1.2.1,1.1.2.2 |
Date: |
Sun, 14 Apr 2002 11:40:47 -0400 |
Update of /cvsroot/phpgroupware/timetrack
In directory subversions:/tmp/cvs-serv27608/timetrack
Modified Files:
Tag: Version-0_9_14-branch
admin5.php
Log Message:
Needed to do db_addslashes() for companies that have slashes in the name.
Index: admin5.php
===================================================================
RCS file: /cvsroot/phpgroupware/timetrack/admin5.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** admin5.php 14 Mar 2002 19:26:33 -0000 1.1.2.1
--- admin5.php 14 Apr 2002 15:40:44 -0000 1.1.2.2
***************
*** 157,161 ****
// Check to see if $cname is already in the db before trying to add it
$GLOBALS['phpgw']->db->query("SELECT company_name from
phpgw_ttrack_customers "
! . "WHERE company_name='$cname'");
if($GLOBALS['phpgw']->db->num_rows() > 0)
{
--- 157,161 ----
// Check to see if $cname is already in the db before trying to add it
$GLOBALS['phpgw']->db->query("SELECT company_name from
phpgw_ttrack_customers "
! . "WHERE
company_name='".$GLOBALS['phpgw']->db->db_addslashes($cname)."'",__LINE__,__FILE__);
if($GLOBALS['phpgw']->db->num_rows() > 0)
{
***************
*** 164,168 ****
$GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
. "(company_name) "
! . "VALUES ('$cname')");
echo "$cname added to Customers List<br>";
}
--- 164,168 ----
$GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
. "(company_name) "
! . "VALUES
('".$GLOBALS['phpgw']->db->db_addslashes($cname)."')",__LINE__,__FILE__);
echo "$cname added to Customers List<br>";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: timetrack admin5.php,1.1.2.1,1.1.2.2,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: admin/inc class.soapplications.inc.php,1.4,1.5
- Next by Date:
[Phpgroupware-cvs] CVS: felamimail/templates/idsociety/images read_small.png,NONE,1.1.2.1 unread_deleted_small.gif,NONE,1.1.2.1 unread_deleted_small.png,NONE,1.1.2.1 unread_flagged_small.png,NONE,1.1.2.1 unread_small.png,NONE,1.1.2.1 sm_delete.gif,1.1.1.1,NONE sm_delete.png,1.1.2.1,NONE sm_important.png,1.1.1.1,NONE sm_read.png,1.1.1.1,NONE
- Previous by thread:
[Phpgroupware-cvs] CVS: admin/inc class.soapplications.inc.php,1.4,1.5
- Next by thread:
[Phpgroupware-cvs] CVS: felamimail/templates/idsociety/images read_small.png,NONE,1.1.2.1 unread_deleted_small.gif,NONE,1.1.2.1 unread_deleted_small.png,NONE,1.1.2.1 unread_flagged_small.png,NONE,1.1.2.1 unread_small.png,NONE,1.1.2.1 sm_delete.gif,1.1.1.1,NONE sm_delete.png,1.1.2.1,NONE sm_important.png,1.1.1.1,NONE sm_read.png,1.1.1.1,NONE
- Index(es):