phpBMS

Changeset 679 for trunk/phpbms/install

Show
Ignore:
Timestamp:
12/15/09 12:22:34 (2 years ago)
Author:
nate
Message:
  • Installing modules no longer requires a createtables.sql file to exist in the module's install folder.
  • Added install.php and version.php to mailchimp module.
Location:
trunk/phpbms/install
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/install/installajax.php

    r642 r679  
    221221 
    222222        function moduleInstall($module){ 
    223  
     223                 
    224224                if(!$this->db->connect()) 
    225225                        return $this->returnJSON(false, "Could not connect to database ".$this->db->getError()); 
     
    328328 
    329329        function install(){ 
    330  
     330                 
    331331                if(!$this->db->connect()) 
    332332                        return $this->returnJSON(false, "Could not connect to database ".$this->db->getError()); 
     
    338338 
    339339                //Run create table sql file ocreate the tables 
    340                 $tempReturn = $installer->processSQLfile($this->pathToModule.$this->createTablesSQL); 
    341  
    342                 if($tempReturn !== true) 
    343                         return $this->returnJSON(false, $tempReturn); 
     340                if(file_exists($this->pathToModule.$this->createTablesSQL)){ 
     341                        $tempReturn = $installer->processSQLfile($this->pathToModule.$this->createTablesSQL); 
     342                 
     343                        if($tempReturn !== true) 
     344                                return $this->returnJSON(false, $tempReturn); 
     345                                 
     346                }//end if 
    344347 
    345348                $thereturn = ""; 
  • trunk/phpbms/install/install_include.php

    r528 r679  
    2020 
    2121                                foreach($fileReturn->errors as $error) 
    22                                         $return = "\n\n".$error; 
     22                                        $return .= "\n\n".$error; 
    2323 
    2424                                $return = substr($return, 2); 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.