[geeklog-cvs] MVCnPHP/contactmanager Validate.class.php,1.1.1.1,1.1.1.1.2.1 config.php,1.2,1.2.2.1 index.php,1.2,1.2.2.1

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jul 18 14:56:06 EDT 2003


Update of /usr/cvs/geeklog/MVCnPHP/contactmanager
In directory internal.geeklog.net:/tmp/cvs-serv20462/contactmanager

Modified Files:
      Tag: rel-1-0-php5-port
	Validate.class.php config.php index.php 
Log Message:
Ported most classes to PHP5, not using exceptions yet.  This has not been tested.


Index: Validate.class.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/contactmanager/Validate.class.php,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** Validate.class.php	5 Apr 2003 20:00:52 -0000	1.1.1.1
--- Validate.class.php	18 Jul 2003 18:56:04 -0000	1.1.1.1.2.1
***************
*** 36,40 ****
      *
      */
!     function validateStateCode($state)
      {
          $errors = array();
--- 36,40 ----
      *
      */
!     public function validateStateCode($state)
      {
          $errors = array();
***************
*** 116,120 ****
      *
      */
!     function validateZip($zip)
      {
          $errors = array();
--- 116,120 ----
      *
      */
!     public function validateZip($zip)
      {
          $errors = array();
***************
*** 139,143 ****
      *
      */
!     function validatePhone($phoneNumber, $name = '')
      {
          $errors = array();
--- 139,143 ----
      *
      */
!     public function validatePhone($phoneNumber, $name = '')
      {
          $errors = array();

Index: config.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/contactmanager/config.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** config.php	14 Jul 2003 16:23:58 -0000	1.2
--- config.php	18 Jul 2003 18:56:04 -0000	1.2.2.1
***************
*** 40,54 ****
  $gConf['dbms'] = 'mysql';
  $gConf['dbhost'] = 'localhost';
! $gConf['dbname'] = 'contactmanager';
! $gConf['dbuser'] = 'username';
! $gConf['dbpass'] = 'password';
  
  // Site settings
  
  // Modify the URL according to where you installed this package
! $gConf['site_url'] = 'http://www.example.com';
  
  // Point this to the base MVC code (where ever Controller.class.php is)
! $gConf['path_mvc'] = '/path/to/MVCnPHP/';
  
  // DO NOT CHANGE BELOW HERE
--- 40,54 ----
  $gConf['dbms'] = 'mysql';
  $gConf['dbhost'] = 'localhost';
! $gConf['dbname'] = 'MVC_Test';
! $gConf['dbuser'] = 'root';
! $gConf['dbpass'] = '';
  
  // Site settings
  
  // Modify the URL according to where you installed this package
! $gConf['site_url'] = 'http://localhost/MVCnPHP/contactmanager';
  
  // Point this to the base MVC code (where ever Controller.class.php is)
! $gConf['path_mvc'] = '/var/www/projects/MVCnPHP/';
  
  // DO NOT CHANGE BELOW HERE

Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/contactmanager/index.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** index.php	14 Jul 2003 16:25:17 -0000	1.2
--- index.php	18 Jul 2003 18:56:04 -0000	1.2.2.1
***************
*** 51,55 ****
  
  $configData = $gConf['path_mvc'] . 'contactmanager/mvcconfig.xml'; 
! $controller = &new Controller($configData, MVC_XML);
  $controller->setMVCBase($gConf['path_mvc']);
  $controller->setBaseURL($gConf['site_url']);
--- 51,55 ----
  
  $configData = $gConf['path_mvc'] . 'contactmanager/mvcconfig.xml'; 
! $controller = new Controller($configData, MVC_XML);
  $controller->setMVCBase($gConf['path_mvc']);
  $controller->setBaseURL($gConf['site_url']);





More information about the geeklog-cvs mailing list