[PHP-Budget-updates] phpbudget/includes functions.inc.php,NONE,1.1 db_setup.inc.php,1.1,1.2
Status: Planning
Brought to you by:
rodrigoh
|
From: <rod...@us...> - 2002-10-23 21:32:59
|
Update of /cvsroot/php-budget/phpbudget/includes
In directory usw-pr-cvs1:/tmp/cvs-serv1994/includes
Modified Files:
db_setup.inc.php
Added Files:
functions.inc.php
Log Message:
more db code :).. alot of bad code also... just temporarily though
--- NEW FILE: functions.inc.php ---
<?
#########################
#Name:PHPBudget #
#Version: 0.1 #
#File: functions.inc.php#
#########################
//Functions file
//check POST GET VARS, this is to be modified
function check_input()
{
foreach($_GET as $key=>$value)
{
addslashes($value);
echo "$key: Value: $value<br\n";
}
foreach($_POST as $key=>$value)
{
addslashes($value);
//debug _POST vars
echo "$key: Value: $value<br>\n";
}
?>
Index: db_setup.inc.php
===================================================================
RCS file: /cvsroot/php-budget/phpbudget/includes/db_setup.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** db_setup.inc.php 16 Oct 2002 10:54:55 -0000 1.1
--- db_setup.inc.php 23 Oct 2002 21:32:55 -0000 1.2
***************
*** 4,16 ****
//Vars. section, Enter the correct database info,
//##########################
! $user="root";
! $pass="";
! $host="localhost";
! $db="phpb";
//##########END##############
//Connection attempt
$link=mysql_pconnect($host, $user, $pass) OR DIE("Houston the shit went down");
- #echo "whoooooooo";
mysql_select_db($db, $link) OR DIE("this DB sucks!");
?>
--- 4,18 ----
//Vars. section, Enter the correct database info,
//##########################
! $user="root"; // You´re mysql user
! $pass=""; // Mysql user pass
! $host="localhost"; // Mysql db host
! $db="phpb"; // The database created for this project
! $U_table="T_user"; // User table
! $B_table="T_main"; // Budget table
! $D_table="T_data"; // Data table
//##########END##############
//Connection attempt
$link=mysql_pconnect($host, $user, $pass) OR DIE("Houston the shit went down");
mysql_select_db($db, $link) OR DIE("this DB sucks!");
?>
|