Changeset 548
- Timestamp:
- 04/14/05 14:39:52 (8 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
wifidog/classes/Content.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r546 r548 1 2005-04-14 Benoit Grégoire <bock@step.polymtl.ca> 2 * Content.php: Fix db reference; 3 1 4 2005-04-14 Benoit Grégoire <bock@step.polymtl.ca> 2 5 * Fix Content object enumeration preventing usage of admin interface -
trunk/wifidog-auth/wifidog/classes/Content.php
r546 r548 309 309 public function getAdminInterface($subclass_admin_interface = null) 310 310 { 311 global $db; 311 312 $html = ''; 312 313 $html .= "<div class='admin_container'>\n"; … … 409 410 public function processAdminInterface() 410 411 { 412 global $db; 411 413 if ($this->getContentType() == 'Content') /* The object hasn't yet been typed */ 412 414 { … … 424 426 { 425 427 $title_id = $title->GetId(); 426 $ this->mBd->ExecSqlUpdate("UPDATE content SET title = '$title_id' WHERE content_id = '$this->id'", FALSE);428 $db->ExecSqlUpdate("UPDATE content SET title = '$title_id' WHERE content_id = '$this->id'", FALSE); 427 429 } 428 430 } … … 433 435 if (!empty ($_REQUEST[$name]) && $_REQUEST[$name] == true) 434 436 { 435 $ this->mBd->ExecSqlUpdate("UPDATE content SET title = NULL WHERE content_id = '$this->id'", FALSE);437 $db->ExecSqlUpdate("UPDATE content SET title = NULL WHERE content_id = '$this->id'", FALSE); 436 438 $title->delete(); 437 439 } … … 449 451 { 450 452 $description_id = $description->GetId(); 451 $ this->mBd->ExecSqlUpdate("UPDATE content SET description = '$description_id' WHERE content_id = '$this->id'", FALSE);453 $db->ExecSqlUpdate("UPDATE content SET description = '$description_id' WHERE content_id = '$this->id'", FALSE); 452 454 } 453 455 } … … 458 460 if (!empty ($_REQUEST[$name]) && $_REQUEST[$name] == true) 459 461 { 460 $ this->mBd->ExecSqlUpdate("UPDATE content SET description = NULL WHERE content_id = '$this->id'", FALSE);462 $db->ExecSqlUpdate("UPDATE content SET description = NULL WHERE content_id = '$this->id'", FALSE); 461 463 $description->delete(); 462 464 } … … 474 476 { 475 477 $project_info_id = $project_info->GetId(); 476 $this-> mBd->ExecSqlUpdate("UPDATE content SET project_info = '$project_info_id' WHERE content_id = '$this->id'", FALSE);478 $this->db->ExecSqlUpdate("UPDATE content SET project_info = '$project_info_id' WHERE content_id = '$this->id'", FALSE); 477 479 } 478 480 } … … 483 485 if (!empty ($_REQUEST[$name]) && $_REQUEST[$name] == true) 484 486 { 485 $this-> mBd->ExecSqlUpdate("UPDATE content SET project_info = NULL WHERE content_id = '$this->id'", FALSE);487 $this->db->ExecSqlUpdate("UPDATE content SET project_info = NULL WHERE content_id = '$this->id'", FALSE); 486 488 $project_info->delete(); 487 489 } … … 499 501 { 500 502 $sponsor_info_id = $sponsor_info->GetId(); 501 $this-> mBd->ExecSqlUpdate("UPDATE content SET sponsor_info = '$sponsor_info_id' WHERE content_id = '$this->id'", FALSE);503 $this->db->ExecSqlUpdate("UPDATE content SET sponsor_info = '$sponsor_info_id' WHERE content_id = '$this->id'", FALSE); 502 504 } 503 505 } … … 508 510 if (!empty ($_REQUEST[$name]) && $_REQUEST[$name] == true) 509 511 { 510 $this-> mBd->ExecSqlUpdate("UPDATE content SET sponsor_info = NULL WHERE content_id = '$this->id'", FALSE);512 $this->db->ExecSqlUpdate("UPDATE content SET sponsor_info = NULL WHERE content_id = '$this->id'", FALSE); 511 513 $sponsor_info->delete(); 512 514 }
