- Timestamp:
- 12/17/10 09:14:47 (17 months ago)
- Location:
- branches/1.5
- Files:
-
- 3 modified
-
install/index.php (modified) (1 diff)
-
install/install_tables.php (modified) (1 diff)
-
libs/Messages.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/install/index.php
r2303 r2304 499 499 } else { 500 500 501 $tables = array('blocked', 'categories', 'comments', 'm essaging', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets');501 $tables = array('blocked', 'categories', 'comments', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets'); 502 502 503 503 // delete *all* tables in db: -
branches/1.5/install/install_tables.php
r2303 r2304 112 112 $db->query($sql); 113 113 } 114 115 116 // MESSAGING TABLE117 118 if ($table_name == "messaging") {119 //echo "table doesn't exist. Stopping before creation."; exit;120 $sql = "CREATE TABLE `" . DB_PREFIX . $table_name . "` (121 `message_id` int(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,122 `message_updatedts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,123 `message_archived` enum('Y','N') NOT NULL DEFAULT 'N',124 `message_from` int(20) NOT NULL DEFAULT 0,125 `message_to` int(20) NOT NULL DEFAULT 0,126 `message_date` timestamp NULL,127 `message_subject` varchar(255) NOT NULL DEFAULT '',128 `message_content` text NULL,129 `message_read` tinyint(1) NOT NULL DEFAULT '0',130 `message_inbox` tinyint(1) NOT NULL DEFAULT '1',131 `message_outbox` tinyint(1) NOT NULL DEFAULT '1',132 `message_updateby` int(20) NOT NULL DEFAULT 0,133 INDEX (`message_archived`)134 ) ENGINE=" . DB_ENGINE . " DEFAULT CHARSET=" . DB_CHARSET . " COLLATE=" . DB_COLLATE . " COMMENT='Messaging';";135 echo $lang['install_step2_creating_table'] . ": '" . DB_PREFIX . $table_name . "'...<br />\n";136 $db->query($sql);137 }138 114 139 115 -
branches/1.5/libs/Messages.php
r1662 r2304 35 35 * Usage: 36 36 * Longhand: 37 * $ this->hotaru->message = "This is a message";38 * $ this->hotaru->messageType = "green";39 * $ this->hotaru->showMessage();37 * $h->message = "This is a message"; 38 * $h->messageType = "green"; 39 * $h->showMessage(); 40 40 * 41 41 * Shorthand: 42 * $ this->hotaru->showMessage("This is a message", "green");42 * $h->showMessage("This is a message", "green"); 43 43 */ 44 44 public function showMessage($h, $msg = '', $msg_type = 'green') … … 59 59 * 60 60 * Usage: 61 * $this->hotaru->messages['This is a message'] = "green";62 * $this->hotaru->showMessages();61 * $h->messages['This is a message'] = "green"; 62 * $h->showMessages(); 63 63 */ 64 64 public function showMessages($h)