Changeset 132

Show
Ignore:
Timestamp:
12/23/07 17:06:25 (1 year ago)
Author:
pdingle
Message:

fixed new install issues - added PW_DB_VERSION to pw_config.php, updated PW_VERSION_DATE

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/RB-0.9/wp-infocard/pw-config.php

    r125 r132  
    88define ('PW_PLUGINPATH', '/wp-content/plugins/wp-infocard'); 
    99define ('PW_VERSION', 'v0.9'); 
    10 define ('PW_VERSION_DATE', '11/12/07'); 
     10define ('PW_VERSION_DATE', '12/23/07'); 
     11define ('PW_DB_VERSION', 'DB v3'); 
    1112define ('PW_USECAPTCHAS', false ); 
    1213define ('PW_DEBUG_ON', get_settings('pw_debug_on')); 
  • branches/RB-0.9/wp-infocard/wp/admin.pw.php

    r131 r132  
    185185        function setup() 
    186186        { 
     187                global $wpdb; 
    187188                pw_admin::createInfocardAuditTable(); 
    188                 return; 
    189                 global $wpdb; 
     189                pw_admin::createInfocardIdentityTable(); 
    190190 
    191191                $isAuditTableCreated = $this->_createAuditTable(); 
     
    201201                $this->createOption('pw_securesiteurl', $https_url); 
    202202 
     203                $this->createOption('pw_db_version', PW_DB_VERSION); 
    203204                $this->createOption('pw_debug_on', 0); 
    204205                $this->createOption('pw_enable_pass', 0); 
     
    362363                $opts = pw_admin::updateAdminOptions(); 
    363364                // write submitted changes if this page reload shows a submit 
    364                 if (!pw_utils::databaseUpToDate()) 
     365                if (pw_utils::databaseUpToDate()) 
     366                { 
     367                        echo "<p>Plugin Version: ". PW_VERSION . " " . PW_VERSION_DATE  
     368                        . " (" . $opts['pw_db_version'] . ")</p>"; 
     369                } 
     370                else             
    365371                { 
    366372?> 
  • branches/RB-0.9/wp-infocard/wp/utils.pw.php

    r125 r132  
    316316        } 
    317317 
    318         function databaseUpToDate() 
    319         { 
    320                 // Current version:  PW DB v3 
    321                 // note that for this version anything older than the 
    322                 // current version  will not even have a pw_db_version 
    323                 // option 
    324                 return (bool)pw_admin::getOption('pw_db_version'); 
    325         } 
    326  
    327318} // end class pw_utils 
    328319?>