Changeset 132
- Timestamp:
- 12/23/07 17:06:25 (1 year ago)
- Files:
-
- branches/RB-0.9/wp-infocard/pw-config.php (modified) (1 diff)
- branches/RB-0.9/wp-infocard/wp/admin.pw.php (modified) (3 diffs)
- branches/RB-0.9/wp-infocard/wp/utils.pw.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/RB-0.9/wp-infocard/pw-config.php
r125 r132 8 8 define ('PW_PLUGINPATH', '/wp-content/plugins/wp-infocard'); 9 9 define ('PW_VERSION', 'v0.9'); 10 define ('PW_VERSION_DATE', '11/12/07'); 10 define ('PW_VERSION_DATE', '12/23/07'); 11 define ('PW_DB_VERSION', 'DB v3'); 11 12 define ('PW_USECAPTCHAS', false ); 12 13 define ('PW_DEBUG_ON', get_settings('pw_debug_on')); branches/RB-0.9/wp-infocard/wp/admin.pw.php
r131 r132 185 185 function setup() 186 186 { 187 global $wpdb; 187 188 pw_admin::createInfocardAuditTable(); 188 return; 189 global $wpdb; 189 pw_admin::createInfocardIdentityTable(); 190 190 191 191 $isAuditTableCreated = $this->_createAuditTable(); … … 201 201 $this->createOption('pw_securesiteurl', $https_url); 202 202 203 $this->createOption('pw_db_version', PW_DB_VERSION); 203 204 $this->createOption('pw_debug_on', 0); 204 205 $this->createOption('pw_enable_pass', 0); … … 362 363 $opts = pw_admin::updateAdminOptions(); 363 364 // 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 365 371 { 366 372 ?> branches/RB-0.9/wp-infocard/wp/utils.pw.php
r125 r132 316 316 } 317 317 318 function databaseUpToDate()319 {320 // Current version: PW DB v3321 // note that for this version anything older than the322 // current version will not even have a pw_db_version323 // option324 return (bool)pw_admin::getOption('pw_db_version');325 }326 327 318 } // end class pw_utils 328 319 ?>
